blob_id
stringlengths
40
40
language
stringclasses
1 value
repo_name
stringlengths
5
116
path
stringlengths
2
241
src_encoding
stringclasses
31 values
length_bytes
int64
14
3.6M
score
float64
2.52
5.13
int_score
int64
3
5
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
text
stringlengths
14
3.57M
download_success
bool
1 class
6b7484f1f945633d5012b6ad873b7d36de7edf46
PHP
qwert19981228/P4
/课件/bobo-redis/redis4个列子/lesson/demo4/class/Model.class.php
UTF-8
816
2.984375
3
[]
no_license
<?php class Model { public $pdo; //PDO对象 public $redis; //Redis对象 public $sql; //SQL语句 public $key; //SQL生成的KEY public function __construct() { $this->redis = new Redis(); $this->redis->connect('127.0.0.1', 6379); $this->redis->auth('123456'); } public function get($sql) { //根据SQL生...
true
8aad3e60fd24501122473798fa4ba10960e283ce
PHP
ferrl/personal-website
/src/database/migrations/2017_11_11_202031_create_resume_translations_table.php
UTF-8
1,089
2.5625
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateResumeTranslationsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('resu...
true
5787499d56ea5613e480db53d57490ba708ec5af
PHP
bedrift/travelholic
/src/app/Placeholders/Translate.php
UTF-8
2,150
2.671875
3
[]
no_license
<?php namespace App\Placeholders; class Translate { private $language; function __construct($language) { $this->language = $language; } function __invoke($m) { $language = $this->language; $placeholder = $m[0]; $handler = $m[1]?? null;...
true
4e23a932c347811bf4ec19f184ee3f254e0e6a63
PHP
sumanengbd/How-to-change-collation-of-database-table-column-
/functions.php
UTF-8
483
2.71875
3
[]
no_license
<?php $con = mysql_connect('localhost', 'user', 'password'); if (!$con) { echo "Cannot connect to the database "; die(); } mysql_select_db('dbname'); $result = mysql_query('show tables'); while ($tables = mysql_fetch_array($result)) { foreach ($tables as $key => $value) { mysql_q...
true
adc2c936ca986dc0350d8cf8f81285f63ab4e0d8
PHP
james2302smith/kostenlosspielen
/wp-content/plugins/kos_favorites/KosFavorites.php
UTF-8
6,051
2.578125
3
[]
no_license
<?php /** * Created by JetBrains PhpStorm. * User: nttuyen * Date: 1/22/14 * Time: 10:06 PM * To change this template use File | Settings | File Templates. */ class KosFavorites { private $perPage = 2; private $currentPage = 1; private $total = 0; private $orderType; private $games; ...
true
a9d6b50828c42d198a7ca900ba3f39d9b12fad74
PHP
kudejwiktor/rest-challenge
/src/Application/Product/Commands/CreateProductValidator.php
UTF-8
1,141
3.03125
3
[]
no_license
<?php namespace Dogadamycie\Application\Product\Commands; use Dogadamycie\Application\Command\{CommandValidator, CommandValidatorException}; /** * Class CreateProductValidator * @package Dogadamycie\Application\Product\Commands */ class CreateProductValidator { /** * @var array */ private $rules...
true
74e99887c439de2980774fbfcb7ef89e070d9bd4
PHP
wybcp/wechat
/src/Kernel/Client.php
UTF-8
4,797
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace EasyWeChat\Kernel; use EasyWeChat\Kernel\Contracts\AccessToken as AccessTokenInterface; use EasyWeChat\Kernel\Contracts\AccessTokenAwareHttpClient as AccessTokenAwareHttpClientInterface; use JetBrains\PhpStorm\Pure; use Symfony\Component\HttpClient\DecoratorTrait; use Symfony...
true
b1e0ca8cf08b1c88e36effc6f5c355ed83f2042b
PHP
EnRodage/Blade-Codeigniter-3
/application/controllers/admin/Login.php
UTF-8
1,665
2.515625
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Login extends MY_Controller { public function __construct() { parent::__construct(); $this->load->model('User_model', 'user'); } public $viewData = array('title' => 'Login'); /** * Login Page *...
true
3a4ab741de0142f56657e2c800cdcd1007c79f03
PHP
kvesskrishna/21csskpias
/webservices/lib/global_template_sample.php
UTF-8
4,740
2.53125
3
[]
no_license
<?php require_once('api_auth.php'); if ($response['auth_status']==1) { $verb = $_SERVER['REQUEST_METHOD']; switch ($verb) { case 'GET': if(!empty($_GET["service_id"])) { $service_id=intval($_GET["service_id"]); get_services($service_id); } else { get_services(); } break; case 'POST'...
true
3d0afbdbee63c13c249dd3e011d173e58d72cef7
PHP
nicklaw5/twitch-api-php
/src/HelixGuzzleClient.php
UTF-8
1,009
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace TwitchApi; use GuzzleHttp\Client; class HelixGuzzleClient { private $client; private const BASE_URI = 'https://api.twitch.tv/helix/'; public function __construct(string $clientId, array $config = [], string $baseUri = null) { if ($baseUri == null) { ...
true
80abe78d873024f14680f7498b044cd346d26894
PHP
andrewjwolf/frankintelligence
/app/database/seeds/FieldTypesTableSeeder.php
UTF-8
386
2.59375
3
[ "MIT" ]
permissive
<?php class FieldTypesTableSeeder extends Seeder { public function run() { // Uncomment the below to wipe the table clean before populating DB::table('field_types')->truncate(); $field_types = array( ['name' => 'type1'], ['name' => 'type2'], ); // Uncomment the below to run th...
true
fff15fee6cf117a9552c04f0295000cf0351928f
PHP
zf424zf/phpms
/flow-control.php
UTF-8
501
3.171875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2018/5/8 0008 * Time: 上午 11:37 */ //php遍历数组的三种方式 //1.for 只能循环索引数组 //2.foreach 可以循环索引和关联数组,会对数组指针重置 //3.while,list(),each() 同上,且不会进行reset()操作-不会把指针重置 //php如何优化if else if -> 1.概率较大的尽量往前放。2如果是比较复杂的结构,如果是整形,字符串,浮点类型,可以使用switch case
true
60718f1def5cf0c49a64b2c9c92bee50050d0ac8
PHP
mattiaruberto/GestioneAcquariMarini
/Implementazione/ProgettoGestioneAcquariMarini/GestioneAcquariMarini/libs/ValidationFunction/validationFunction.php
UTF-8
9,960
3.0625
3
[]
no_license
<?php class ValidationFunction{ /** * Costante per identificare quando un parametro è già usato. */ const ALREDY_EXIST = "alredy_exist"; /** * Costante per identificare quando un parametro è sbagliato. */ const INCORRECT_INPUT = "incorrect"; /** * Costante per identificare q...
true
bfc7502bddf1f82b20f9b9af38adcf1e81784d3e
PHP
Quark-X10/Micro-rezo
/modele/administration.php
UTF-8
3,114
2.65625
3
[]
no_license
<?php require_once("connection_requetes_bdd.php"); function changer_mot_de_passe($utilisateur_id,$mot_de_passe){ $bdd = connection_bdd(); $requete = 'UPDATE utilisateur SET mot_de_passe = :mot_de_passe WHERE utilisateur_id = :utilisateur_id'; $changement = $bdd->prepare($requete); $donnees = array('utilisateur_id' ...
true
1569e95faddf8b084369804a8f1ac2795bd85912
PHP
cuppss/RezParse
/Code/DEMO/tag_management/language/insert_language.php
UTF-8
1,224
3.328125
3
[]
no_license
<?php //data is being pulled from clearance.php if (isset($_POST['alpha'])) { //if the user inputs a value into the certification box //then assign the input to a variable and remove any whitespace from the ends $alpha = trim($_POST['alpha']); //this if statement block catches possible mistakes in the e...
true
884b3ba033198c0b3a5deb12c8ecbbba233f634d
PHP
JosephMos/ASPprojects
/2020.05.ia.01.login.signup.php
UTF-8
1,356
2.546875
3
[]
no_license
<?php require "2020.05.ia.01.login.header.php"; ?> <main> <?php echo "<br>"; if (isset ($_GET['error'])){ if ($_GET['error']=="emptyfields"){ echo "<font color='#ff2626'>Empty Fields</font>"; } elseif ($_GET['error']=="invalidmailuid"){ echo "<font color='#f...
true
d7cac86d1f052b600701c4220f55304b7f234402
PHP
CleverStyle/cleverstyle.org
/core/classes/Session.php
UTF-8
1,796
2.53125
3
[ "MIT" ]
permissive
<?php /** * @package CleverStyle Framework * @author Nazar Mokrynskyi <nazar@mokrynskyi.com> * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi * @license MIT License, see license.txt */ namespace cs; use cs\Session\Data, cs\Session\Management; /** * Class responsible for current user session * * ...
true
998b1ba48bd54c78004605d37cf78512ca542612
PHP
tranminhtrong102/code
/convert-url-youtube.php
UTF-8
436
2.5625
3
[]
no_license
if( !function_exists( 'convertUrlYoutube' ) ) { function convertUrlYoutube( $url ) { preg_match('/[\\?\\&]v=([^\\?\\&]+)/', $url, $matches); $id = $matches[1]; $width = '800px'; $height = '450px'; echo'<iframe id="ytplayer" type="text/html" width="'.$width.'" height="'.$height.'" src="https://www.youtube.c...
true
2aaa665192ecd984fec89bda07de80dc8e000b7a
PHP
AndreyShamis/the-game
/Matrix.php
UTF-8
6,278
3.609375
4
[ "Apache-2.0" ]
permissive
<?php /** * User: Andrey Shamis * Date: 12/18/14 * Time: 6:14 PM */ require_once "Vector.php"; class Matrix { protected $m_Matrix; protected $m_Columns = array(); protected $m_Rows = array(); protected $m_DimensionX = 0; protected $m_DimensionY = 0; public function getRowsSize...
true
a0c75b530048576fd82bbc361a04e0d008c426f7
PHP
zendraxl/laravel-string
/tests/Unit/StrProxyTest.php
UTF-8
9,566
2.75
3
[ "MIT" ]
permissive
<?php namespace Zendraxl\LaravelString\Tests\Unit; use Illuminate\Support\Str; use PHPUnit\Framework\TestCase; use Zendraxl\LaravelString\StrProxy; class StrProxyTest extends TestCase { /** @test */ public function str_after(): void { $this->assertSame( Str::after('This is my name', '...
true
cc60aaca89444ebc5a74234fb785f8e455ebbbe3
PHP
mutaimwiti/php-framework
/tests/Routing/RouteActionTest.php
UTF-8
905
2.6875
3
[ "MIT" ]
permissive
<?php namespace Tests\Routing; use Tests\TestCase; use Framework\Routing\RouteAction; class RouteActionTest extends TestCase { /** @test */ function it_allows_access_of_handler_and_arguments() { $handler = 'FooController@index'; $arguments = ['foo', 'bar']; $routeAction = new RouteAc...
true
f4883c379e6a87cf80aef4c2bca704d755b5a9cf
PHP
github-co/aichallenge
/website/find_user.php
UTF-8
948
2.671875
3
[]
no_license
<?php require_once("mysql_login.php"); require_once("lookup.php"); $username = mysql_real_escape_string(stripslashes($_GET['username'])); if (!isset($username) || !$username) { $users = NULL; } else { $users = search_user_row($username); if (count($users) === 1) { header("Location: profile.php?use...
true
a328e6b13822b2954fc1c5d55e7b32960e73539d
PHP
yuuuuu0412/kadai
/kadai04.php
UTF-8
848
3.75
4
[]
no_license
<?php //1 function f1($value){ $result = $value *= 2; return $result; } //echo f1(); //2 function f2($a, $b){ $result = $a + $b; return $result; } //echo f2( , ); //3 $arr = array(1,3,5,7,9); function f3($arr){ $result = 1; foreach ($arr as $arr) { $result *= $arr; } return $result...
true
1c55ab8453b451c7cfefda7a919e0fd91d3dc4d8
PHP
crazymeeks/php-shopify
/src/App/Exceptions/BadRequestException.php
UTF-8
613
2.609375
3
[]
no_license
<?php declare(strict_types=1); namespace Crazymeeks\App\Exceptions; class BadRequestException extends \Exception { public static function requiredShopUrlOrAccessToken() { return new static("Access token or shop url is required."); } public static function orderIdIsRequired() { r...
true
4e95d836677e7d41e4caec052e22e1c57a908e0a
PHP
Namaumbo/Inventory
/app/Http/Controllers/brandsController.php
UTF-8
3,365
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use http\Exception\BadHeaderException; use http\Exception\BadMessageException; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use Illuminate\Http\Response; use App\brands; class brandsController extends Controller { /** * Display a listing of the resourc...
true
87fba9887afff909f84995627db115a070d11743
PHP
huadaxiaa/awesome-algorithm
/ranking/hackernews/hackernews.php
UTF-8
249
3.0625
3
[ "MIT" ]
permissive
<?php /** * hackernews 网站的排名算法,php 的实现 * @param $p 帖子得票数 * @param $t 发帖时间 * @param $g 重力因子 */ function hackernews($p, $t, $g){ $score = ($p -1) / pow(($t +2 ), $g); return $score; } ?>
true
a7304bb714df32a99a748f8b772e07d12c0a9d6f
PHP
JordanLiebe/TouchAndTalkPi
/talk/index.php
UTF-8
2,795
2.578125
3
[]
no_license
<html> <head> <link rel="stylesheet" type="text/css" href="../style.css"> <script src="../jquery.js"></script> </head> <body> <div id="main"> <?php $owner = "0014'; $err = 0; if ($owner == "0014"){ $sql = "Select * From touchntalkpro Where owner = '".$owner."'"; try{ $dbc = new PDO('sqlite:/home/p...
true
50fd7187924d1bcdf11446771d8cc214505a7c00
PHP
utiamaguilherme/AMS
/AMS - FORUM/leticket/modules/shared/initializer.php
UTF-8
576
2.515625
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ function getImg($img, $alt=null, $width=null){ $w = ""; if($width != null){ $w=" width=\"".$width...
true
af5162bbb6755362e25223798d6e67055bcb2a4d
PHP
SimonasB88/Shopware
/Exceptions/OrderNotFoundException.php
UTF-8
269
2.609375
3
[]
no_license
<?php namespace MollieShopware\Exceptions; class OrderNotFoundException extends \Exception { /** * @param $orderNumber */ public function __construct($orderNumber) { parent::__construct('Order ' . $orderNumber . ' not found!'); } }
true
2756b3745a6a6de70020368ff71f00d17abd23dc
PHP
anilpokhariyal/easyapi
/app/Http/Controllers/APIController.php
UTF-8
7,462
2.75
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\JsonResponse; use Illuminate\Support\Facades\DB; use Illuminate\Http\Request; use Illuminate\Support\Facades\Schema; class APIController extends Controller { /** * Common api for all get apis on database tables * select = * * from = table_...
true
5f73d5cbbb873c8803a32696c271f7cefab44ceb
PHP
musialbartek/zsk
/23_09.php
UTF-8
1,162
2.875
3
[]
no_license
<?php $x=1; $y=1.0; if($x===$y){ echo "identyczne<hr>"; }else{ echo "różne<hr>"; } $x=2; echo $x++;// echo ++$x;// echo $x;// $y = $x++; echo $y;// $y=++$x; echo $y;// echo ++$y;// $text='123ssd'; $x=(int)$text; echo $x,'<hr>'; //123 $text1=12; $x1=(bool)$text1; echo $x1; $text2=100; $x2=(unset)$text2; e...
true
8776ce647af7203cf211c30952411a0a0f2c9958
PHP
lalocespedes/slim3-skeleton
/app/Middleware/AuthMiddleware.php
UTF-8
636
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Middleware; use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\ServerRequestInterface as Request; class AuthMiddleware extends Middleware { private $container; public function __construct($container) { $this->container = $container; } public functio...
true
fa50a4a2902d75844a2a1c6e0fde97d8d286bd8a
PHP
AeonDigital/PHP-HTTP
/src/Data/File.php
UTF-8
6,428
2.734375
3
[ "MIT" ]
permissive
<?php declare (strict_types = 1); namespace AeonDigital\Http\Data; use AeonDigital\Interfaces\Http\Data\iFile as iFile; use AeonDigital\Interfaces\Stream\iFileStream as iFileStream; use AeonDigital\BObject as BObject; /** * Representa um arquivo sendo enviado por um ``UA``. * * Esta classe implementa a inter...
true
704be069703f4edc36ac146603bc8af9416a2d1f
PHP
jgonzalezdr/usvn
/src/library/USVN/SVNUtils.php
UTF-8
18,095
2.578125
3
[]
no_license
<?php /** * Usefull static method to manipulate an svn repository * * @author Team USVN <contact@usvn.info> * @link http://www.usvn.info * @license http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt CeCILL V2 * @copyright Copyright 2007, Team USVN * @since 0.5 * @package client * @subpackage utils * * ...
true
02dc7ed87f9a04ebd1053a360e08a3ff1e4d85b4
PHP
php-task/php-task
/src/Task/Lock/Storage/FileLockStorage.php
UTF-8
1,690
2.90625
3
[ "MIT" ]
permissive
<?php /* * This file is part of php-task library. * * (c) php-task * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Task\Lock\Storage; use Task\Lock\LockStorageInterface; /** * Save locks in the filesystem. */ class FileLockStorage...
true
603a5d039c225f0962a60f998046b5f08c0638d2
PHP
rongcloud/server-sdk-php
/RongCloud/Lib/Chatroom/Gag/Gag.php
UTF-8
4,036
2.5625
3
[ "MIT" ]
permissive
<?php /** * 聊天室成员禁言 */ namespace RongCloud\Lib\Chatroom\Gag; use RongCloud\Lib\Request; use RongCloud\Lib\Utils; class Gag { /** * 聊天室成员禁言路径 * * @var string */ private $jsonPath = 'Lib/Chatroom/Gag/'; /** * 请求配置文件 * * @var string */ private $conf = ""; ...
true
4260efaf367936d9c0f4129a4584094b518d5d74
PHP
taginnovationschool/codemaster-mailup
/src/HttpClient/Formatter/HttpClientFormatterInterface.php
UTF-8
920
2.9375
3
[]
no_license
<?php namespace Codemaster\MailUp\HttpClient\Formatter; /** * Interface implemented by formatter implementations for the http client */ interface HttpClientFormatterInterface { /** * Serializes arbitrary data to the implemented format. * * @param mixed $data * The data that should be serial...
true
6deaba38365361d428df573ddab36d5b40881620
PHP
admix/php_pracc_fun
/array_funcs/array_map_exmpl.php
UTF-8
448
4.21875
4
[ "Apache-2.0" ]
permissive
<?php function fourth($num) //calculated the fourth degree of the $num { return ($num * $num * $num * $num); } $a = array(1,2,3,4,5,6,7); $b = array_map("fourth", $a); print_r($b); /* ---------------------------------------- */ function concat($str) //making all letters in the string UPPERCASE { return ...
true
c898f1cb25aac325b2a357e7895b2688ff7d5137
PHP
darrenwilly/bot-skeleton
/lib/global-autoload.php
UTF-8
5,966
2.703125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1) ; /** * Logic that create a loadable PSR array dataset include file for autoloader base on available modular folder * * @param $psrTypeFile */ function _generate_psr_file($dirToGenerate=__DIR__) { /** * Please note that before this __FILE__ is called, master autoload must ...
true
4adf0387b8ee25678f173ac16eda11bebbd2926e
PHP
alexandre-ostacolpin/coursPHP
/inc/tete.inc.php
UTF-8
808
3.0625
3
[]
no_license
<!DOCTYPE html> <?php $variable1 = " la page faite avec des fichiers en INC"; ?> <html lang="fr"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <?php echo " <title>Page faite avec des fic...
true
337635ba49ab3137e2886332ff5417e44c5e3220
PHP
tsorelle/austinquakers.net
/web.root/tops/tops_lib/vr/vr_api_response.php
UTF-8
904
3.0625
3
[]
no_license
<?php namespace VerticalResponse\API; /** * Response class for the VR API. */ class Response { public $url; public $items; public $attributes; public $links; public $success; public $error; function __construct($response) { $this->items = $this->extract("items...
true
277abb5ed5a42647539adccea2ef62b7a7f33897
PHP
pchauvelin/supply
/src/Entity/Sale.php
UTF-8
2,904
2.734375
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\SaleRepository") */ class Sale { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type=...
true
ec8b96a5f3d0343e25a74864fec5698f947d6e6d
PHP
lamquanghagisc/kinhdoanh_q4
/widgets/maps/types/DivIcon.php
UTF-8
3,544
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * @copyright Copyright (c) 2013-2015 2amigOS! Consulting Group LLC * @link http://2amigos.us * @license http://www.opensource.org/licenses/bsd-license.php New BSD License */ namespace app\widgets\maps\types; use dosamigos\leaflet\LeafLet; use yii\helpers\Json; use yii\web\JsExpression; /** * * DivIco...
true
08ff63bd2d4f1b23829918207e5d3a7704a84f70
PHP
sebastian-lenz/craft-utils
/src/events/AnchorsEvent.php
UTF-8
1,840
2.921875
3
[ "MIT" ]
permissive
<?php namespace lenz\craft\utils\events; use craft\base\ElementInterface; use yii\base\Event; /** * Class AnchorsEvent */ class AnchorsEvent extends AbstractElementEvent { /** * @var array */ private array $_anchors = []; /** * @var string */ const EVENT_FIND_ANCHORS = 'findAnchors'; /** ...
true
0742a2e37cc1237dbba21070b465e8537d69c5a5
PHP
msredhotero/crmcreditos
/includes/zulmaQuitar.php
UTF-8
7,631
2.515625
3
[ "MIT" ]
permissive
<?php function columnaTablaModificar($id,$lblid,$tabla,$nombreCampo,$columnaSize,$catalogos) { $serviciosFunciones = new Servicios(); switch ($tabla) { default: $sqlMod = "select * from ".$tabla." where ".$lblid." = ".$id; $resMod = $this->query($sqlMod,0); } $lblcambio = $s...
true
0dce561790f5812484c98549e4d5666013da910d
PHP
flaviovs/uconfig
/tests/config.php
UTF-8
896
2.5625
3
[ "MIT" ]
permissive
<?php use UConfig\Config; class ConfigTestCase extends PHPUnit_Framework_TestCase { public function testConstructorDefaults() { $defaults = [ 'section' => [ 'foo' => 'bar', ], ]; $cfg = new Config($defaults); $this->assertEquals($defaults, $cfg->getItems()); } public function testGet() { $...
true
b493c6e5c617be9979241ed79d208aeeea849452
PHP
MDobak/DoctrineDynamicShardsBundle
/src/Doctrine/DBAL/DynamicShardConnection.php
UTF-8
2,999
2.578125
3
[]
no_license
<?php namespace MDobak\DoctrineDynamicShardsBundle\Doctrine\DBAL; use Doctrine\Common\EventManager; use Doctrine\DBAL\Configuration; use Doctrine\DBAL\Driver; use Doctrine\DBAL\Sharding\PoolingShardConnection; use MDobak\DoctrineDynamicShardsBundle\Shard\ShardRegistryInterface; /** * Class DynamicShardConnection *...
true
ec29d997c08e96b8b16d480c8d602b16bdcef77b
PHP
yordan-kovachev/BoxGifts
/customer/cust_details_update.php
UTF-8
5,664
2.5625
3
[]
no_license
<?php /*Created by *author name: Yordan Kovachev *author id: abdt361 *date created: 04/2012 */ //This block check if the customer is logged in or not session_start(); if(!isset($_SESSION["customer"])){ header("location: customer_login.php"); exit(); } //Now establish DB connection include('../store/storescripts/confi...
true
e6f97ffe470e1818e64301cbfcfeb42f791b299e
PHP
marscore/hhvm
/hphp/test/slow/compilation/1320.php
UTF-8
238
2.78125
3
[ "Zend-2.0", "PHP-3.01", "MIT" ]
permissive
<?php class X { static function foo() { return new X; } function bar() { var_dump(__METHOD__); } } function id($x) { return $x; } function test() { id(X::foo(1))->bar(); } <<__EntryPoint>> function main_1320() { ; test(); }
true
df610dccc3da2483acf0fb2301fb47a75f775173
PHP
mschnitzer/de.mschnitzer.wcf.useriplog
/files/lib/system/event/listener/UserIPLogFetchUserIPListener.class.php
UTF-8
1,664
2.5625
3
[]
no_license
<?php namespace wcf\system\event\listener; use wcf\system\event\EventHandler; use wcf\system\event\IEventListener; use wcf\system\WCF; use wcf\util\UserUtil; /** * Collecting the IP address and the user agent from the current user * * @author Manuel Schnitzer * @copyright 2015-2015 Manuel Schnitz...
true
a50bc67d313cc729c4f8ce3a3194514e56d367f6
PHP
Wonghzx/apiSwoole
/Core/Component/Error/ErrorHandler.php
UTF-8
1,993
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2017/12/15/015 * Time: 14:50 */ namespace Core\Component\Error; use Core\AbstractInterface\AbstractErrorHandler; use Core\Component\Logger; use Core\Swoole\HttpServer\Storage\Request; use Core\Swoole\HttpServer\Storage\Response; class...
true
a838ba01f9995d86b6b81adbf756cf3736f4b45b
PHP
DevSazal/APIATO-crud-restful-api
/app/Containers/AppSection/Authorization/Tasks/DetachPermissionsFromRoleTask.php
UTF-8
775
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Containers\AppSection\Authorization\Tasks; use App\Containers\AppSection\Authorization\Models\Role; use App\Ship\Parents\Tasks\Task; class DetachPermissionsFromRoleTask extends Task { public function run(Role $role, $singleOrMultiplePermissionIds): Role { if (!is_array($singleOrMu...
true
0758dfb45b0582f2422659eff5256e3960ced8b3
PHP
andy1992/react-redux-crud
/api/read_all_categories.php
UTF-8
407
2.71875
3
[ "Apache-2.0" ]
permissive
<?php // include core configuration include_once '../config/core.php'; // include database connection include_once '../config/database.php'; // product object include_once '../objects/category.php'; // class instance $database = new Database(); $db = $database->getConnection(); $category = new Category($db); // rea...
true
a9a2eccb2089fe812a6f95f529111fe5eb6bf890
PHP
rainsens/adm
/tests/Unit/Models/AdmUserTest.php
UTF-8
584
2.515625
3
[]
no_license
<?php namespace Rainsens\Adm\Tests\Unit\Models; use Illuminate\Foundation\Testing\RefreshDatabase; use Rainsens\Adm\Models\AdmUser; use Rainsens\Adm\Tests\TestCase; class AdmUserTest extends TestCase { use RefreshDatabase; /** @test */ public function a_adm_user_has_a_name() { $admUser = create(AdmUser::class...
true
5c92e81f961397fc0356732dc01ad80f6fa03b28
PHP
a59715a/Library-Management-System-in-Codeigniter
/ciproject/application/models/author_model.php
UTF-8
1,213
2.90625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Author_model extends CI_Model{ public function addAuthorData($data){ $this->db->insert('tbl_author', $data); } public function getAuthorData(){ $this->db->select('*'); $this->db->from('tbl_author'); $this->db->order_by('aId', 'desc'); $qresult = $this->db->get(...
true
6c54f6a5ab7d0b97d016edca39f13386841fe3e6
PHP
moElwan/my-laravel-starter
/database/migrations/2017_03_26_094432_create_metables_table.php
UTF-8
866
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateMetablesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('metables', fun...
true
1f26c23c097e70d511591653fdfdf011a4c2a1d9
PHP
lalofee/php_day_1
/exercise_2.php
UTF-8
230
2.703125
3
[]
no_license
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="style.css"> <title>php uebungen</title> </head> <body> <?php if(date('D') == 'Mon') { echo "Happy Monday!"; } else { echo "Have a nice day!"; } ?> </body> </html>
true
b76f8c98a9cdb0d3b4ae36e4b5ee436c76485b2d
PHP
ruslanix/code-samples
/1_CatalogParser/Application/ParserChain/Chain/ChainInterface.php
UTF-8
321
2.765625
3
[]
no_license
<?php namespace Application\ParserChain\Chain; use Application\ParserChain\ParserUnit\ParserUnitInterface; interface ChainInterface { public function addParserUnit(ParserUnitInterface $parserUnit); public function getParserUnits(); public function getResultContainer(); public function parse($text); }...
true
ce429e908278fc40ece73d10def68bc85fbd79e0
PHP
MarekPadd13/ug
/models/DictAngle.php
UTF-8
979
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use phpbb\session; use Yii; /** * This is the model class for table "dict_angle". * * @property int $id * @property string $name * */ class DictAngle extends \yii\db\ActiveRecord { public static function tableName() { return 'dict_angle'; } /** * {@in...
true
6be787daa42049509a8ddd559415a485de5e7a1a
PHP
nboyraz/portalBoyraz
/models/event.php
UTF-8
1,779
2.5625
3
[]
no_license
<?php require_once(ROOT.DS."entity".DS."EventItem.php"); class Event extends Model{ public function GetLatestEvents($pagenum,$pageSize){ $res = []; $select = "select * from (select @rownum:=@rownum+1 'rank', p.* from `events` p, (SELECT @rownum:=0) r order by ID desc limit ".($pagenum*$pag...
true
638fa9f9cef729d064ecda3f02613035b7267cc9
PHP
Rufaro1964/logisticsManagementSystem
/controller/signInController.php
UTF-8
1,707
2.90625
3
[]
no_license
<?php session_start(); require('../database/connection.php'); class SignInController{ /** * we need to create helper functions to do some simple tasks like encrypting the password... */ private $database; private $dbConnection; public function ...
true
70b0f29c3639b5522743955cf0ad7a54d2516037
PHP
stasRevin/phpProjects
/Project2/php/userProfile.php
UTF-8
3,960
2.734375
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" type="text/css" href="index.css"> </head> <body>...
true
56985a959712a35439495c23ad51baf9c4d1f35a
PHP
cuchakma/Task-Manager
/Task Manager/index.php
UTF-8
5,058
2.59375
3
[]
no_license
<?php include_once "config.php"; $connection = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME); if(!$connection) { throw new Exception("Not Connected To Database"); } $query = "SELECT * FROM tasks WHERE complete = 0 ORDER BY ID DESC"; $result = mysqli_query($connection, $query); $complete_tasks_query = "...
true
2dbb001d0e60ec861e4ad3accbe30e70438a334f
PHP
zartata/icicle
/src/Loop/Events/ImmediateInterface.php
UTF-8
495
2.796875
3
[ "Apache-2.0" ]
permissive
<?php namespace Icicle\Loop\Events; interface ImmediateInterface { /** * @return bool */ public function isPending(); /** * Execute the immediate if not pending. */ public function execute(); /** * Cancels the immediate if pending. */ public function cancel(); ...
true
3546bfa4f9c7d4c9aeea48cc2828fe2e2a1b9e85
PHP
trisonsystem/stock-management
/application/models/MAddress.php
UTF-8
537
2.578125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class MAddress extends CI_Model { public function __construct(){ parent::__construct(); } public function get_data( $id = "" ){ $where = ($id == "") ? "" : " where id = '".$id."'"; $keysearch = $this->input->get('term'); $arr = array(); $sql = "select * from address ".$where.""; $query = ...
true
c7f6d55d239d3b3a60bf93972c5e90bbe753f2da
PHP
jeyroik/extas-jsonrpc
/src/interfaces/stages/IStageJsonRpcCommand.php
UTF-8
379
2.546875
3
[ "MIT" ]
permissive
<?php namespace extas\interfaces\stages; use extas\commands\JsonrpcCommand; /** * Interface IStageJsonRpcCommand * * @package extas\interfaces\stages * @author jeyroik@gmail.com */ interface IStageJsonRpcCommand { public const NAME = 'extas.jsonrpc.command'; /** * @param JsonrpcCommand $command ...
true
4d267057c4013a67c98f025c6f195ed6c293b855
PHP
wenzhan510/sosadfun-2019
/backend/app/Http/Resources/QuizCollection.php
UTF-8
924
2.65625
3
[]
no_license
<?php namespace App\Http\Resources; use App\Models\Quiz; use Illuminate\Http\Resources\Json\ResourceCollection; class QuizCollection extends ResourceCollection { protected $include_answer; /** * QuizCollection constructor. * @param mixed $resource * @param bool $include_answer include answer i...
true
8022e47667a45d315addb1bb60ac79c5e929ebc0
PHP
alifazel/FootballPrediction
/app/commands/CompleteRoundCommand.php
UTF-8
2,091
2.8125
3
[]
no_license
<?php use Illuminate\Console\Command; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputArgument; class CompleteRoundCommand extends Command { /** * The console command name. * * @var string */ protected $name = 'lts:completeround'; /** * The console command desc...
true
c7a702dc9de87daffcbf5b924ed72f02771ba9b8
PHP
mbube2/Universities-Ranking-System-
/php/Untitled-1.php
UTF-8
181,064
2.828125
3
[]
no_license
<?php function entropy($Prob1,$Prob2,$Prob3) { $ent = -($Prob1 * log($Prob1,2.0))-($Prob2 * log($Prob2,2.0))-($Prob3 * log($Prob3,2.0)); return $ent; //echo(log(2.7183) . "<br>"); //echo log(0,2.0); //echo "<br>"; } function decision() { mySQL_connect("localhost","root","1234") or die(mySQL_error()); ...
true
b3f7986905cd8049d505027c9f6709b14e891ce9
PHP
devskyfly/php56
/src/core/Cli.php
UTF-8
1,497
3
3
[]
no_license
<?php namespace devskyfly\php56\core; use devskyfly\php56\types\Vrbl; class Cli { /** * Set title to current process * @param string $title * @return boolean */ public static function setProcessTitle($title) { return cli_set_process_title($title); } /** * Retu...
true
1ef3984aa307e17ffe355999acc15f3089e9610a
PHP
oxidmod/typed-collections
/src/TypeCheckerFactory.php
UTF-8
1,668
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Oxidmod\TypedCollections; class TypeCheckerFactory { private static array $checkers = []; public static function arrayChecker(): \Closure { return self::$checkers['array'] = self::$checkers['array'] ?? \Closure::fromCallable( fn($value) => is_...
true
5ea67d1ea7d2c0afed0172837dd7ff6abf830bbb
PHP
srigi/webloader-require-filter
/src/diacronos/Lilo/FsUtils.php
UTF-8
8,108
2.859375
3
[ "MIT" ]
permissive
<?php /** * Lilo - A file concatenation tool for PHP inspired by Sprockets and based in Snockets * * @author Rafael García <rafaelgarcia@profesionaldiacronos.com> * @copyright 2012 Rafael García * @link http://lilo.profesionaldiacronos.com * @license http://lilo.profesionaldiacronos.com/license * @version ...
true
83f2cffb5b6c30e4d6ee6c123ceb54e7c428de27
PHP
MOUNYA98/Blood-management-system
/updateprofile.php
UTF-8
2,486
2.578125
3
[ "MIT" ]
permissive
<?php $hostname="localhost"; $username="root"; $pwd=""; $db="rdbms"; $conn=mysqli_connect($hostname,$username,$pwd,$db); if(!$conn) { die("error:".mysqli_error()); } ?> <?php require 'core.inc.php'; ?> <?php require 'header.inc.php'; ?> <?php require 'nav.inc.php'; $id=$_SESSION['id']; $sql1="sele...
true
f23983fe420aa834a40b450c4beef41a5e858ca4
PHP
ana27c/blog_tag
/includes/connexion.inc.php
UTF-8
630
2.71875
3
[]
no_license
<?php include('varco.php'); //parametres de connexion mysql_connect($host, $user, $mdp); mysql_select_db($db); //creation de session session_start(); $connecte = false; //si on a un cookie sid if (isset($_COOKIE['sid'])) { // l'utilisateur est connecté // on recupere son sid, son email // et on passe la v...
true
76f41dd9af6ee3fae88219228e82e2e0475ca399
PHP
SlayerBirden/datamigration
/src/Hashmap/ArrayHashmap.php
UTF-8
1,459
2.765625
3
[ "MIT" ]
permissive
<?php namespace Maketok\DataMigration\Hashmap; use Maketok\DataMigration\HashmapInterface; class ArrayHashmap implements HashmapInterface { /** * @var string */ private $code; /** * @var array */ private $storage; /** * @param string $code */ public function __c...
true
efd6c856e4c8d7f7346783f3952279f213663c64
PHP
xat55/spatie
/app/Http/Controllers/Site/SiteController.php
UTF-8
1,321
2.53125
3
[]
no_license
<?php namespace App\Http\Controllers\Site; use Illuminate\Support\Arr; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Repositories\Site\CategoryRepository; /** * Class SiteController * @package App\Http\Controllers\Site */ class SiteController extends Controller { protected $cat_rep...
true
bc2b40410b650bf494a52e1dde91df8b18c28a27
PHP
franolg/shilengae_web
/private/core/model/User.php
UTF-8
7,625
2.671875
3
[]
no_license
<?php /** * User Model */ class User extends Database { protected function ListAll() { $sql = "SELECT * FROM tableusers WHERE status = 1"; $stmt = $this->c()->query($sql); // getting country list if($stmt->rowCount() > 0) { // checking if the table is not empty return $stmt->fetchAll(); }else { retur...
true
349d4e797dc7cc67bb902fcc40b47ebc9514a6ac
PHP
mkungla/aframe-php
/src/Core/Helpers/ShaderAbstract.php
UTF-8
1,795
2.703125
3
[ "MIT" ]
permissive
<?php /** @formatter:off * ****************************************************************** * Created by Marko Kungla on Jun 25, 2016 - 8:48:28 AM * Contact marko@okramlabs.com * @copyright 2016 Marko Kungla - https://github.com/mkungla * @license The MIT License (MIT) * * @category AframeV...
true
1bfc736399c765ebe187a5686b1b332dbdc2901c
PHP
prabhucomo/asandbox
/plugins/apostropheMysqlSearchPlugin/lib/aMysqlSearch.class.php
UTF-8
14,153
2.765625
3
[ "MIT" ]
permissive
<?php // See aSearchService for an explanation of the public methods // IMPORTANT: to use this to add searchability to additional model classes // you must set up appropriate refclasses and aliases. You can do so at // project level or in your own plugins. See schema.yml in this plugin, // specifically aPageToASearch...
true
f104f5964cbd3180beeb86c7dd8e8b7d1c72e7a3
PHP
Torann/skosh-generator
/src/Builder.php
UTF-8
15,933
2.734375
3
[ "BSD-2-Clause" ]
permissive
<?php namespace Skosh; use Symfony\Component\Finder\Finder; use Symfony\Component\Filesystem\Filesystem; use Twig_Environment; use Twig_Loader_Chain; use Twig_Loader_Filesystem; use Skosh\Content\Doc; use Skosh\Content\Content; use Skosh\Console\Application; class Builder { /** * Path to the source direct...
true
30da0727b5de833cfdf9b750de5c798ac96750d3
PHP
tectronics/Coat-of-Arms
/app/Model/Fighter.php
UTF-8
17,024
2.671875
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ App::uses('Folder', 'Utility'); App::uses('File', 'Utility'); App::uses('Surrounding', 'Model'); App::uses('Event', 'Model'); c...
true
cfaeb056056765fad3c485e2adca4b96986abf2a
PHP
Ura20/phpoop
/users.php
UTF-8
4,029
2.71875
3
[]
no_license
<?php require("classes/User.php"); //Create an instance for User session_start(); $id = $_SESSION['userid']; $user = new User; $row = $user->selectOne($id); if(empty($_SESSION['userid'])){ header('location:login.php'); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="v...
true
835d7a7ec49b4638463908bb37ae361b8803e4eb
PHP
bhutanio/laravel-utilities
/src/Bhutanio/Laravel/Helpers.php
UTF-8
2,686
2.796875
3
[]
no_license
<?php // Laravel Aliases /** * @return \Bhutanio\Laravel\Services\MetaDataService */ function meta() { return app(Bhutanio\Laravel\Services\MetaDataService::class); } /** * @param $config array * * @return \Bhutanio\Laravel\Services\Guzzler */ function guzzler($config = []) { return app(Bhutanio\Laravel...
true
93c5f12a7812a972968eb7de4e910aca96a6646e
PHP
masr/smnju
/source/model/model.class.php
UTF-8
8,106
2.765625
3
[]
no_license
<?php abstract class Model { protected static $table_name = NULL; protected static $class_name = NULL; protected static $id_name = 'id'; protected static $translate = array(); protected static $require_not_null=array(); protected static $unique = array(); protected static $unchanged = array(); pro...
true
d6428863e3f9831458e6b62ea63928606ed56c71
PHP
sop/jwx
/lib/JWX/JWK/Parameter/ECCPrivateKeyParameter.php
UTF-8
743
2.796875
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Sop\JWX\JWK\Parameter; use Sop\JWX\Parameter\Feature\Base64URLValue; /** * Implements 'ECC Private Key' parameter. * * @see https://tools.ietf.org/html/rfc7518#section-6.2.2.1 */ class ECCPrivateKeyParameter extends JWKParameter { use Base64URLValue; /** ...
true
7d33ac54658fb7be226ef6519ed9b01d10eea8a7
PHP
josdavidmo/orion
/clases/aplicacion/CHallazgosPendientes.php
UTF-8
3,171
3.109375
3
[ "Apache-2.0" ]
permissive
<?php /** * Clase Plana Hallazgos Pendientes. * @package clases * @subpackage aplicacion * @author SERTIC SAS * @version 2014.10.30 * @copyright SERTIC */ class CHallazgosPendientes { /** Almacena el id del Hallazgo Pendiente. */ var $id; /** Almacena la observacion del Hallazgo P...
true
a15982025e05a0d7df2b6c5649d46c2bf98f2a04
PHP
josemalcher/Udemy-Curso-Completo-de-php-7
/09-poo/ex10-Autoload.php
UTF-8
548
2.6875
3
[]
no_license
<?php /*function __autoload($nomedaClasse){ require_once ("$nomedaClasse.php"); }*/ function incluirClasses($nomeClasse){ if(file_exists($nomeClasse.".php")===true){ require_once ($nomeClasse.".php"); } } spl_autoload_register("incluirClasses"); spl_autoload_register(function ($nomeClasse){ if...
true
0ab971a314fc1cb00227a23bcae0ed8340bf2462
PHP
declanmunroe/PHP-OOP
/application/services/Config.php
UTF-8
453
2.609375
3
[]
no_license
<?php class Application_Service_Config { public static function getStripePrivateKey($source) { // Right now I am using the same keys but its ready to use a different set of api keys based on source // Good way to work with two stripe accounts in same application code $api_key = ($source...
true
05a972a2b23981069eb0ca57b3156b60393cab78
PHP
masv87/ZfbUser
/src/Repository/TokenRepositoryInterface.php
UTF-8
773
2.65625
3
[ "MIT" ]
permissive
<?php namespace ZfbUser\Repository; use ZfbUser\Entity\TokenInterface; use ZfbUser\Entity\UserInterface; /** * Interface TokenRepositoryInterface * * @package ZfbUser\Repository */ interface TokenRepositoryInterface { /** * @param \ZfbUser\Entity\UserInterface $user * @param string ...
true
ed28d9133f9d7ff33d345e6e9135ca5cfee9d3a1
PHP
vr-davis-group/sql_integration
/read.php
UTF-8
600
2.84375
3
[]
no_license
<?php $servername = "localhost"; $serverusername = "root"; $serverpassword = ""; $databasename = "unity"; $conn = new mysqli($servername, $serverusername, $serverpassword, $databasename); if(!$conn){ die("Connection failed! ".mysqli_connect_error()); } $sql = "SELECT user_id, use...
true
3bc2aea9f3c6d84ec214fd44e4d58fe09ec9d0df
PHP
d-marchuk93/bank
/src/Entity/Deposit.php
UTF-8
3,435
2.546875
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\DepositRepository") */ class Deposit { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column...
true
2d7be2b4007b34760c2aac888d99933ae5f5da70
PHP
thierryHalot/decouverte-php-mysql
/openClassroom/test/fonctionPhp.php
UTF-8
2,018
3.875
4
[]
no_license
<?php /** * Created by PhpStorm. * User: thierry * Date: 25/04/18 * Time: 13:48 */ // la fonction strlen retourne la longueur d'une chaine,c'est a dire le nombre de caractère,espace compris ! $phrase = 'Bonjour je suis une longue chaine de caractere!!'; $longueur = strlen($phrase); echo "la phrase stoquer dans...
true
28cc48d9dc597ec937492b8f4c5f6a1e863b465d
PHP
AlifArnado/project_destinasi-using-yii
/protected/views/tblPegawai/tampilkan.php
UTF-8
938
2.546875
3
[]
no_license
<style type="text/css" media="screen"> table.dataGrid { border-collapse: collapse; border: 1px solid balck; width: 100%; #font-size: 8px; } table.dataGrid td { border: 1px solid black; padding: 5px 5px 5px 5px; } </style> <h2 align="center">DAFTAR PEGAWAI<...
true
7075852d45981ca7f01b6050f14c1034ba8a8780
PHP
JoelDichamp/angular_events_API
/models/User.php
UTF-8
671
2.828125
3
[]
no_license
<?php class User extends Model implements JsonSerializable { private $username; private $pwd; public function getUsername() { return $this->username; } public function setUsername($username) { $this->username = $username; return $this; } public fu...
true
ce548aac2ec3e7cbc8b1fa374d7f53eba811c668
PHP
icekristal/smsint-for-laravel
/src/Services/InitTrait.php
UTF-8
3,081
2.6875
3
[ "MIT" ]
permissive
<?php namespace Icekristal\SmsintForLaravel\Services; use Carbon\Carbon; trait InitTrait { private array $params = []; private ?string $message = null; private ?array $recipients = null; private ?string $senderName = null; private bool $isOnlyValid = false; private ?Carbon $startDateTime =...
true
0396f153adcb64ed07e7a1167cc311f9198e5182
PHP
yourant/custom-service
/modules/orders/models/OrderPackageKefu.php
UTF-8
1,130
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\modules\orders\models; use Yii; use app\components\Model; class OrderPackageKefu extends Model { /** * 返回当前模型连接的数据库 */ public static function getDb() { return Yii::$app->db_order; } /** * 返回当前模型的表名 */ public static function tableName() { ...
true
2a25d390032bbebb25655dcc64d724eea875dcea
PHP
adriftcloud/ShopCart
/app/Models/Image.php
UTF-8
840
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * App\Models\Image * * @property-read mixed $file * @mixin \Eloquent * @property int $id * @property \Carbon\Carbon|null $created_at * @property \Carbon\Carbon|null $updated_at * @method static \Illuminate\Database\Eloquent\Builder|\App\...
true
d32a89003d0468571d51796b8b2a0d2b02479444
PHP
niamurndc/ff-tournament
/result.php
UTF-8
1,276
2.5625
3
[]
no_license
<?php include('header.php'); ?> <h2>Results</h2> <?php $query = "SELECT * FROM matches WHERE status = 1"; $result = mysqli_query($conn, $query); $matchs = mysqli_fetch_all($result, MYSQLI_ASSOC); foreach($matchs as $match){ ?> <div class="board"> <a class="view-tag" href="view_result.php?id=<?php echo $match[...
true
0b28e21acee8940e800677dbe732d93dfb57ee90
PHP
wrong-about-everything/tindergram
/src/Infrastructure/Routing/Route/RouteByMethodAndPathPatternWithQuery.php
UTF-8
1,070
2.53125
3
[]
no_license
<?php declare(strict_types=1); namespace TG\Infrastructure\Routing\Route; use TG\Infrastructure\Http\Request\Inbound\Request; use TG\Infrastructure\Http\Request\Method; use TG\Infrastructure\Http\Request\Url\Query\FromUrl as QueryFromUrl; use TG\Infrastructure\Routing\MatchResult; use TG\Infrastructure\Routing\Match...
true
bdb97c07c80cb7638910e2cc594fb55b8c0f529f
PHP
sanjay7500/sanjay.github.io
/loop7.php
UTF-8
203
3.046875
3
[]
no_license
<?php for($i=1; $i<=5; $i++) { for($x=4; $x>=$i; $x--) { echo "&nbsp&nbsp"; } for($j=1; $j<=$i; $j++) { echo "*"; } for($j=2; $j<=$i; $j++) { echo "*"; } echo "<br>"; } ?>
true