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
a265c356a490d3c5206e870f4313762168cec39a
PHP
pepitosoft/wikka-api
/src/classes/PagesMapper.php
UTF-8
3,530
2.6875
3
[]
no_license
<?php class PagesMapper extends Mapper { public function getDef() { if( $this->db->getAttribute(PDO::ATTR_DRIVER_NAME) == "sqlite" ){ $sql = "PRAGMA table_info([".$this->settings['db']['prefix']."pages])"; } else { $sql = "DESCRIBE ".$this->settings['db']['prefix']."pages"; } $...
true
a449e60a8c3ce6d65e671ff84f1be8606ccd635a
PHP
MisterR2/Lista01
/esportes.php
UTF-8
122
2.59375
3
[]
no_license
<?php $esportes = $_GET["esportes"]; foreach ($esportes as $atividade) { echo $atividade."<br>"; } ?>
true
e805ae9570e65693a55bb2d68e91c96280c5628f
PHP
dennis-andino/GT
/models/Courses.php
UTF-8
2,309
3
3
[ "MIT" ]
permissive
<?php class Courses { private $id, $coursename, $career; private $connection; public function __construct() { $this->id = 0; $this->coursename = ""; $this->career = 0; $this->connection = databaseController::connect(); } public function getId(): int { ...
true
0a55afa468971b14b1b4f6a7c90f0ca24d907876
PHP
zengsuyi/phprs-restful
/lib/phprs/util/FileOp.php
UTF-8
2,076
3
3
[ "MIT" ]
permissive
<?php namespace phprs\util; class FileOp { /** * 复制文件或目录 * @param string $src * @param string $dst * @param string $except * @return boolean */ static public function copys($src, $dst, $except=null) { if (is_file($src)) { if ($except !== null && (realpath($exce...
true
565a155034e9d3646317189626230b265e780e8c
PHP
inetstudio/links
/entities/links/src/Http/Responses/Back/GetItemsByIdsResponse.php
UTF-8
1,270
2.84375
3
[ "MIT" ]
permissive
<?php namespace InetStudio\LinksPackage\Links\Http\Responses\Back; use Illuminate\Http\Request; use InetStudio\LinksPackage\Links\Contracts\Services\Back\ItemsServiceContract; use InetStudio\LinksPackage\Links\Contracts\Http\Responses\Back\GetItemsByIdsResponseContract; /** * Class GetItemsByIdsResponse. */ class ...
true
94b90d5fa9538b6a2250c6a1394d1ffb50905c1d
PHP
BelickovVladislav/PHPTasks
/paragraph1/task11.php
UTF-8
485
3.59375
4
[]
no_license
<?php /* * Напечатать те элементы последовательности натуральных чисел n0 ,n1,...,nm , * которые делятся на сумму своих цифр. */ function getSum($number) { $sum = 0; while ($number != 0) { $sum += $number % 10; $number = (int)($number / 10); } return $sum; } $n = 300; for...
true
cef4433fe3b49f93f985f734e65b32432247705b
PHP
analogic/alert-bundle
/EventListener/ExceptionListener.php
UTF-8
1,608
2.578125
3
[]
no_license
<?php namespace Analogic\AlertBundle\EventListener; use Analogic\AlertBundle\Alerter\Alerter; use Symfony\Component\Console\Event\ConsoleExceptionEvent; use Symfony\Component\Console\Event\ConsoleErrorEvent; use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent; class ExceptionListener { public $al...
true
9f8cd29b7509d068d586cfdd2a2ee630443cfa80
PHP
sdk-team/aliyun-openapi-php-sdk
/aliyun-php-sdk-aas/Aas/Request/V20150701/DeleteAccessKeyForAccountRequest.php
UTF-8
1,050
2.59375
3
[ "Apache-2.0" ]
permissive
<?php namespace Aas\Request\V20150701; /** * @deprecated Please use https://github.com/aliyun/openapi-sdk-php * * Request of DeleteAccessKeyForAccount * * @method string getAKId() * @method string getPK() */ class DeleteAccessKeyForAccountRequest extends \RpcAcsRequest { /** * @var string */ ...
true
674306e1d488647a745c02b09579a017c2720c06
PHP
liamdennehy/eidas-certificate-parse
/src/Address.php
UTF-8
2,032
3.171875
3
[]
no_license
<?php namespace eIDASCertificate; /** * */ class Address { private $postalAddresses = []; private $electronicAddresses = []; public function __construct($addressesCollection) { foreach ($addressesCollection->children() as $type => $addressTypeCollection) { switch ($type) { ...
true
5204d2cc0054c70ac2734c91ac87685ade731b33
PHP
NikolaRistovskiSingidunum/KatalogLaptopova
/nedelja01/models/StorageModel.php
UTF-8
2,370
2.65625
3
[]
no_license
<?php namespace App\Models; use \App\Core\Model; use \App\Core\Field; use \App\Core\DatabaseConnection; use \PDO; use \App\Validators\BitValidator; use \App\Validators\DateTimeValidator; use \App\Validators\IpAddressValidator; use \App\Validators\NumberValidator; use \App\Valida...
true
9371961fd57da95ca76719ed9578acf0b124b654
PHP
Grenmyr/ProjektarbetePHPdg222cs
/src/model/repository/UMLRepository.php
UTF-8
3,968
3.015625
3
[]
no_license
<?php namespace model\repository; use model\Uml; use src\Exception\DbUserExistException; use src\exceptions\umltocodecontrollerexceptions\DeleteProjextException; use src\exceptions\umltocodecontrollerexceptions\ProjectExistException; class UMLRepository extends Repository{ private $userRepository; privat...
true
84bff969b5ee2fa8267bdd3f3caed407c63bda2a
PHP
StijndusBackup/B3W7L1
/functions/functions.php
UTF-8
1,688
2.6875
3
[]
no_license
<?php function selectAll(){ $pdo = dbCon(); $stmt = "SELECT * FROM `characters` ORDER BY `name`"; $stmt = $pdo->prepare($stmt); $stmt->execute(); $result = $stmt->fetchAll(); return $result; } function selectSolo($id){ $pdo = dbCon(); $stmt...
true
1ccfd22b52fba67680665537af8ec4812dd3b07b
PHP
berlianafd/simple_api
/Admin/login-proses.php
UTF-8
954
2.515625
3
[]
no_license
<?php include ('koneksi.php'); error_reporting(0); session_start(); if (isset($_POST['submit'])) { if (empty($_POST['user']) AND empty($_POST['password'])) { echo "Form Tidak Boleh Kosong"; } else { $user = $_POST['user']; $password = $_POST['password']; $sql = "SELECT * FROM admin WHERE us...
true
d154ec3069c70826ee8234c82fe597f448cb9d12
PHP
iagoneres/blog-with-laravel-and-vue
/app/Entities/Article.php
UTF-8
766
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Entities; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use Prettus\Repository\Contracts\Transformable; use Prettus\Repository\Traits\TransformableTrait; /** * Class Article. * * @package namespace App\Entities; */ class Article extends Model implements...
true
9ce87b80c2920eb974f7805fcffc22c8c04a6f79
PHP
acmephp/acmephp
/src/Cli/Monolog/ConsoleFormatter.php
UTF-8
1,691
2.671875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Acme PHP project. * * (c) Titouan Galopin <galopintitouan@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace AcmePhp\Cli\Monolog; use Monolog\Formatter\LineFormatter; use Mon...
true
6a324de8c6d328ddfccc042623fefa951186a998
PHP
rkingon/Craft-Plugin--Sprockets
/vendor/mthaml/mthaml/lib/MtHaml/NodeVisitor/PhpRenderer.php
UTF-8
7,530
2.71875
3
[ "MIT" ]
permissive
<?php namespace MtHaml\NodeVisitor; use MtHaml\Node\Insert; use MtHaml\Node\Run; use MtHaml\Node\InterpolatedString; use MtHaml\Node\Statement; use MtHaml\Node\Tag; use MtHaml\Node\ObjectRefClass; use MtHaml\Node\NodeAbstract; use MtHaml\Node\ObjectRefId; use MtHaml\Node\TagAttributeInterpolation; use MtHaml\Node\Tag...
true
c59c271c202e7c103e90b1699182ce7177f2a6d5
PHP
rawebone/Micro
/library/Application.php
UTF-8
9,461
2.78125
3
[ "MIT" ]
permissive
<?php namespace Micro; use Micro\Matching\MatcherInterface; use Micro\Matching\RequestMatcher; use Micro\Util\UrlTools; use Symfony\Component\HttpFoundation\Response; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; /** * The Dispatcher class provides the handling for routing calls from an * HTTP request to a C...
true
f64f83794f11e7addc5794696fae3286b49b6cdf
PHP
webinfopro/SitemapBundle
/Sitemap/Index.php
UTF-8
1,187
2.9375
3
[]
no_license
<?php namespace Soloist\Bundle\SitemapBundle\Sitemap; class Index implements \IteratorAggregate, \Countable { /** * @var array|Sitemap */ protected $sitemaps; /** * @var string */ protected $id; /** * @param Sitemap $sitemap * @return Index */ public functi...
true
78fb13f61f84956ce2edf0c9e213f1993a202bb1
PHP
HouraiSyuto/php_practice
/part2/chapter4/continue.php
UTF-8
182
3.234375
3
[]
no_license
<?php $dice = range(1,6); shuffle($dice); foreach($dice as $value){ if($value % 2 !== 0){ continue; } echo $value, PHP_EOL; } ?>
true
31011513184065ddfef1185fc220ab36af484b21
PHP
tkundmann/github-move
/app/Console/Commands/MigratePickupRequests.php
UTF-8
26,001
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use App\Data\Constants; use App\Data\Models\File; use App\Data\Models\Site; use Carbon\Carbon; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; class MigratePickupRequests extends Command { const ROWS_PER_ITERATION = 1000; /** * The name and signa...
true
159d2f2555699ba3e9df62a33aee0cc37677c560
PHP
ardhi95/shn
/app/Controller/Component/TreeLabelComponent.php
UTF-8
286
2.859375
3
[ "Apache-2.0" ]
permissive
<?php class TreeLabelComponent extends Component { var $label; public function __construct($lab) { $this->label = $lab; } public function __toString() { pr((string) $this->label); return (string) $this->label; } public function getLabel() { return $this->label; } }
true
778f39e3594dd653848da9c742a6571e3c623043
PHP
alexdodonov/mezon-conf
/Mezon/Conf/Tests/Expand/StringUnitTest.php
UTF-8
1,348
2.546875
3
[]
no_license
<?php namespace Mezon\Conf\Tests\Expand; use PHPUnit\Framework\TestCase; use Mezon\Conf\Conf; /** * * @psalm-suppress PropertyNotSetInConstructor */ class StringUnitTest extends TestCase { /** * * {@inheritdoc} * @see TestCase::setUp() */ protected function setUp(): void { ...
true
a17f44b9ad1714377cadd6415b777ebca90b4c05
PHP
Overfinch/matt2
/20-factory-method/factoryPlusSingletone.php
UTF-8
4,905
3.1875
3
[]
no_license
<?php // Реализация шаблона Factory Method вместу с Singletone class Settings { // имитируем файл с конфигурациями static $COMMSTYPE = 'Blogs'; } class AppConfig { // Singletone private static $instance; private $commsManager; private function __construct(){ // Выполнится только раз $...
true
97c1c0106f876f12cd1be8da2e74747c2c63c121
PHP
dhsheng/Lysine2
/src/datamapper.php
UTF-8
28,025
2.609375
3
[ "MIT" ]
permissive
<?php namespace Lysine\DataMapper; use Lysine\Service\IService; abstract class Data { use \Lysine\Traits\Event; const AFTER_DELETE_EVENT = 'AFTER DELETE EVENT'; const AFTER_INSERT_EVENT = 'AFTER INSERT EVENT'; const AFTER_SAVE_EVENT = 'AFTER SAVE EVENT'; const AFTER_UPDATE_EVENT = 'AFTER UPDATE E...
true
e589b036bca39c1df848fc93d7608f4b39492eba
PHP
HTTP-402/codeforgood
/site/clustering.php
UTF-8
2,864
3.03125
3
[]
no_license
<?php try { // a new MongoDB connection $conn = new Mongo('localhost'); // connect to test database $db = $conn->products; // a new products collection object $collection = $db->service; // fetch all product documents $cursor = $collection->find(); ...
true
9e8153b4f5ea5ce1f6acfa6f67db4001d3b56fff
PHP
wolfik0buka/glukoza-m.ru
/laravel/app/Http/Controllers/Pub/Cabinet/CabinetBonuses.php
UTF-8
585
2.546875
3
[ "Unlicense" ]
permissive
<?php namespace App\Http\Controllers\Pub\Cabinet; use App\Http\Controllers\Controller; use App\Services\BonusSystem; class CabinetBonuses extends Controller { public static function getByUserId($user_id) { $loyalty = self::loyaltyInstanceByUserId($user_id); return (object) [ 'use...
true
58c603462ed185b7dd5cd56e45d87e2addf26258
PHP
samszo/EvalEtu
/THYP1314/Moustakbal_Jihane/Personne.php
UTF-8
266
2.84375
3
[]
no_license
<?php class Personne { public $nom; public $img; public $pres; public $abs; public $notes; function __construct($nom,$img,$pres,$abs) { $this->nom = $nom; $this->img = $img; $this->pres = $pres; $this->abs = $abs; } } ?>
true
3dd98840791df6450634c0b85c2b075c0009d57b
PHP
customizations/silverstripe-ecommerce
/code/tasks/EcommerceTaskCartCleanup.php
UTF-8
15,096
2.78125
3
[]
no_license
<?php /** * @description: cleans up old (abandonned) carts... * * * @authors: Nicolaas [at] Sunny Side Up .co.nz * @package: ecommerce * @sub-package: tasks * @inspiration: Silverstripe Ltd, Jeremy **/ class EcommerceTaskCartCleanup extends BuildTask { /** * Standard SS Variable * TODO: either r...
true
21b059ca6f5fa33fed303eb64617e241436433b9
PHP
PTNUSASATUINTIARTHA-DOKU/jokul-php-library
/src/DOKU/Common/Config.php
UTF-8
358
2.640625
3
[]
no_license
<?php namespace DOKU\Common; class Config { const SANDBOX_BASE_URL = 'https://api-sandbox.doku.com'; const PRODUCTION_BASE_URL = 'https://api.doku.com'; /** * @return string Doku API URL, depends on $state */ public static function getBaseUrl($state) { return $state ? Config::PRODUCTION_BASE_...
true
98a262780d6cf1c22eda36bf4f451f5ebbcd6af8
PHP
loktionov/ales
/protected/views/journal/_view.php
UTF-8
1,819
2.546875
3
[]
no_license
<?php /* @var $this JournalController */ use helpers\DateTimeHelper; /* @var $data UserExercise */ ?> <div class="view"> <b> <?php echo CHtml::encode($data->exercise->name); ?> </b> <br/> <br/> <b> <?php echo CHtml::encode($data->exercise->description); ?> </b> <br/> ...
true
7648eea3bb810e5622ee7dc5449a24211bcddd65
PHP
stupidPrograms/order
/src/app/Tars/cservant/BB/UserService/User/classes/UserBasic.php
UTF-8
973
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Tars\cservant\BB\UserService\User\classes; class UserBasic extends \TARS_Struct { const UUID = 0; const ACCOUNT = 1; const MOBILE = 2; const CREATEDAT = 3; const ENVDOMAINID = 4; public $uuid; public $account; public $mobile; public $createdAt; public $envDomainId=1; protected ...
true
02f1c7d219b76c260396bb7706d803cd20da23a9
PHP
gamernetwork/yolk-support
/src/collections/BaseCollection.php
UTF-8
1,203
3.046875
3
[ "MIT" ]
permissive
<?php /* * This file is part of Yolk - Gamer Network's PHP Framework. * * Copyright (c) 2015 Gamer Network Ltd. * * Distributed under the MIT License, a copy of which is available in the * LICENSE file that was bundled with this package, or online at: * https://github.com/gamernetwork/yolk-support */ namespace...
true
a771989f51f98aae8fe21c1eeb55c18db1506afb
PHP
Siyeon-dev/PHP
/OOP2/10.php
UTF-8
151
3.65625
4
[]
no_license
<?php class A { public $value = array(5, 4, 3); } $obj = new A(); foreach ($obj->value as $key => $value) { echo $key . ":" . $value . "<br>"; }
true
197985a4f52552427a9a447275a4b86d3d0c52d2
PHP
f44cu/generic_api
/product/read_paging.php
UTF-8
1,906
2.71875
3
[]
no_license
<?php // headers requeridos header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); // incluir archivos de configuracion, bd y productos include_once '../config/core.php'; include_once '../shared/utilities.php'; include_once '../config/database.php'; include_once '../objects/...
true
48198a2e834808477f5e24b9d714044b0cfd56e4
PHP
jesusFernandezCh/Manager
/app/Repositories/CorreoRerpository.php
UTF-8
642
2.90625
3
[]
no_license
<?php namespace App\Repositories; use App\Models\Correo; class CorreoRerpository extends BaseRerpository implements IRerpository { private $stmt; public function __construct() { $this->stmt = new Correo(); } public function getModel() { return $this->stmt; } /** ...
true
85d760cd3c0f49b5262efc22f2f94f97d9367e7c
PHP
mihailhomenko/php.ru
/App/Parser.php
UTF-8
1,684
3.109375
3
[]
no_license
<?php /** * To parse a template class * * get($name, $default = NULL)-It refers to a specific configuration property. * @author Miha__ <mihail.homenko@yandex.ru> * @version 1.0 */ namespace App; use Exceptions; /** *To parse a template class */ class Parser { /** * To parse a template func. * * ...
true
ae652ca6782a3d42eeb6ee3ed50704478ccb7c53
PHP
woodo01/composer-diff
/src/Formatter/Formatter.php
UTF-8
592
2.625
3
[ "MIT" ]
permissive
<?php namespace IonBazan\ComposerDiff\Formatter; use IonBazan\ComposerDiff\Diff\DiffEntries; use IonBazan\ComposerDiff\Diff\DiffEntry; interface Formatter { /** * @param bool $withUrls * * @return void */ public function render(DiffEntries $prodEntries, DiffEntries $devEntries, $withUrls)...
true
5aaf4f993c6a9c9a010f42449674fa415299cc95
PHP
Space48/hubspot-to-wordpress-migration-tool
/src/ImageSearcher.php
UTF-8
1,365
3.15625
3
[ "MIT" ]
permissive
<?php namespace Space48\HubSpotWordpressBlogMigration; class ImageSearcher { private $imageRegex; /** * ImageSearcher constructor. * * @param string $imageRegex - Regular expression to use to find image URLs. */ public function __construct(string $imageRegex = null) { $thi...
true
49f800038f59d5ec6d13a476bbcdfe6d7cdd799d
PHP
gubarev-bizz/shop
/src/App/Bundle/CoreBundle/Entity/Review.php
UTF-8
3,136
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Bundle\CoreBundle\Entity; use App\Bundle\CoreBundle\Entity\Traits\IdentifiableEntityTrait; use App\Bundle\CoreBundle\Entity\Traits\TimestampableEntityTrait; use App\Bundle\ShopBundle\Entity\Product; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as SymfonyConstraints;...
true
027c38f2eef20c2b7008a7e96f968a431da1082e
PHP
MixJay/php-vk-api-sdk
/lib/VkSdk/Friends/FriendsGetLists.php
UTF-8
2,142
2.9375
3
[]
no_license
<?php namespace VkSdk\Friends; use lib\AutoFillObject; use VkSdk\Friends\Includes\Lists; use VkSdk\Includes\Request; /** * Returns a list of the user's friend lists. * Class FriendsGetLists * @package VkSdk\Friends */ class FriendsGetLists extends Request { use AutoFillObject; /** * @var integer ...
true
64a27a56d2493eb4083be0c02c777231a0a9e609
PHP
ryu1/Learning_PHP_5
/CH_13_4.php
UTF-8
479
2.65625
3
[]
no_license
<?php /** * ブラウザ特有のコード * Created by IntelliJ IDEA. * User: ishitsuka * Date: 13/04/30 * Time: 14:46 * To change this template use File | Settings | File Templates. */ // get_browser()を使用する $browser = get_browser(); if ($browser->platform == 'WinXP') { print 'You are using Windows XP.'; } elseif ($browser-...
true
2ae011e521071835949722ae09f28e4a6ce5a66f
PHP
e-h-a-b/Ebank-System-php-html-Sql-DEMO
/chess/drawboard.php
UTF-8
1,425
2.890625
3
[]
no_license
<?php include("constants.php"); // open connection to the server and selects the database $link_id = mysql_connect('localhost', $username, $password); mysql_select_db($dbase, $link_id); // Create The Query And Specify the name of database to run query on $query = "select * from chessboard where square = '$squ...
true
c11784ba397e00e2032eac8bfef54bd5e0bdeeaa
PHP
ArcadioAlpuche/BookLibrary
/books-edit.php
UTF-8
5,407
2.8125
3
[]
no_license
<?php /* EDIT.PHP Allows user to edit specific entry in database */ // creates the edit record form // since this form is used multiple times in this file, I have made it a function that is easily reusable function renderForm($id, $title, $lastname, $firstname, $genre, $subgenre, $publisher, $error){ ?> ...
true
66e506bdd8a809af4cffa38f69c2cb8fdfaa39e6
PHP
liyanage6/nfm
/Vue/vueMatch.php
UTF-8
971
2.6875
3
[]
no_license
<?php $this->titre = "Match" ?> <p>ICI placer un select aves les equipe et trouver un algo pour effectuer le match ne pas faire jouer les remplaçant ...</p> <form name="formMatch" action="?action=playMatch" method="post"> <label>Equipe 1</label> <select name="team1"> <?php foreach ($teams1 as $team): ...
true
495d627812445855c6df3544e1601a7816b43a54
PHP
TMSWhite/Dialogix2007
/Dialogix1_2995/php/VoiceXMLOutput.php
UTF-8
2,192
2.609375
3
[]
no_license
<?php require_once("login.inc.php"); ?> <?php require_once("conn_dialogix.php"); if(!isset($_GET['Instrument'])) { DialogixError("Must specify an instrument name"); } $question = 0; if(!isset($_GET['question'])) { $question = 1; } else { $question = $_GET['question']; } $InstrumentName = $_GET['Instrument']...
true
7fdc2752336dcb78491ccd7e9150468c622e5e9d
PHP
Doncode/telegram-api
/src/Telegram/Types/ReplyKeyboardMarkup.php
UTF-8
1,321
2.90625
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace unreal4u\Telegram\Types; use unreal4u\Abstracts\KeyboardMethods; /** * This object represents a custom keyboard with reply options (see Introduction to bots for details and examples). * * Objects defined as-is january 2016 * * @see https://core.telegram.org/bots/api#r...
true
3269e5dc4e754deb3dc143454c1b90a9af1e9175
PHP
longster/Houston-Deaf-Network
/lib/extra.php
UTF-8
1,380
3
3
[]
no_license
<?php /** * Plugin Name: PBD AJAX Load Posts * Plugin URI: http://www.problogdesign.com/ * Description: Load the next page of posts with AJAX. * Version: 0.1 * Author: Pro Blog Design * Author URI: http://www.problogdesign.com/ */ /** * Tests if any of a post's assigned categories are descendants of target c...
true
1f4ca88b2706e28829a42750b65bd218ba052f2d
PHP
niuye8911/rapid_server
/check.php
UTF-8
543
2.59375
3
[]
no_license
<?php /* * This file is the CHECK API Node. * Liu Liu (jack.liuliu@cs.rutgers.edu) * Rutgers, The State University of New Jersey * Oct. 2019 */ require_once("class/Autoload.php"); $argParser = new ArgumentParser(); $machineID = $argParser->getMachineID(); $appID = $a...
true
cdc14138a07d27c881378e16bf65bf1f78747771
PHP
rob-kistner/udemy-php-oops
/intro/8.php
UTF-8
1,201
4.3125
4
[]
no_license
<?php class User { private $name; private $age; public function __construct($name, $age) { $this->name = $name; $this->age = $age; } // simple get method public function getName() { return $this->name; } // simple set method public function setName($name) { $this->name = $nam...
true
87997dade90b2a414db4f406cd40dcbf957ea315
PHP
rbertram90/core
/src/view/filebrowser.inc.php
UTF-8
1,187
2.96875
3
[]
no_license
<?php /******************************* RB File Browser - 2013 *******************************/ function showJpgDirectory($path, $allowParent) { // Check folder exists if (!is_dir($path)) { echo "Unable to find directory!"; return false; } // Try and open the directory if ($handle = opendir($path)) { ...
true
b4e41c99dd0def2c8269dc7d875a4fe8bb2d908e
PHP
Morning-Train/foundation
/src/themer/src/Contracts/Theme.php
UTF-8
1,941
2.890625
3
[ "MIT" ]
permissive
<?php namespace morningtrain\Themer\Contracts; use morningtrain\Themer\Extensions\HasAssets; use morningtrain\Themer\Extensions\HasBodyClass; use morningtrain\Themer\Extensions\HasConfig; class Theme { use HasAssets, HasBodyClass; /** * @var string */ protected $name; /** * @var str...
true
1bbfc17f47332cc713a4fd6e19180c679b0360c0
PHP
czogori/Dami
/src/Dami/Cli/Command/MigrateCommand.php
UTF-8
1,920
2.671875
3
[ "MIT" ]
permissive
<?php namespace Dami\Cli\Command; use Symfony\Component\Console\Input\InputArgument, Symfony\Component\Console\Input\InputOption, Symfony\Component\Console\Input\InputInterface, Symfony\Component\Console\Output\OutputInterface; class MigrateCommand extends ContainerAwareCommand { protected function c...
true
ea74480af4e9d2bc479bdb2b33861678dfe7ca74
PHP
8ctopus/apache-php-alpine
/html/public/xdebug.php
UTF-8
464
3.03125
3
[ "MIT" ]
permissive
<?php echo('<pre>'); echo('REMOTE ADDR: '. $_SERVER['REMOTE_ADDR'] . PHP_EOL . PHP_EOL); class Strings { static function fix_string($a) { echo(xdebug_call_class(0) ."::". xdebug_call_function(0) ." is called at ". xdebug_call_file(0) .":". xdebug_call_line(0)); } static function fix_strings(a...
true
2c8bc81ab3a81bf4ec3ac69f86e8d98b1a46cc78
PHP
muharamdani/ekantinnative
/admin_dashboard/update_saldo/search_pelanggan.php
UTF-8
1,882
2.5625
3
[]
no_license
<?php require '../../konek.php'; $keywords=$_GET['keywords']; $jumlahdataperhalaman=4; $result=mysqli_query($conn, "SELECT *FROM pelanggan"); $jumlahdata=mysqli_num_rows($result); $jumlahhalaman=ceil($jumlahdata/$jumlahdataperhalaman); $halamanaktif = (isset($_GET["halaman"]) ) ? ...
true
cb19221c6f61ad03e8f01baed8e63158c8e472c1
PHP
betty29/code-1
/recipes/PHP/108479_php_htaccess/recipe-108479.php
UTF-8
6,236
2.9375
3
[ "MIT" ]
permissive
<? /** * Class for handling htaccess of Apache * @author Sven Wagener <sven.wagener@intertribe.de> * @copyright Intertribe - Internetservices Germany * @include Funktion:_include_ */ class htaccess{ var $fHtaccess=""; // path and filename for htaccess file var $fHtgroup=""; // path and filename for htgr...
true
ebac4925bdc3e7b1c0cd01ceb7aafeea4a1eb2bb
PHP
SEDCI/ws-gcfnw
/application/models/Admin_model.php
UTF-8
483
2.546875
3
[ "MIT" ]
permissive
<?php class Admin_model extends CI_Model { protected $admin_table = 'admin'; public function __construct() { $this->load->database(); } public function checkAdmin($criteria) { $result = $this->db->get_where($this->admin_table, $criteria); return $result->num_rows(); } public function updateAdmin($data,...
true
3cee8dbf8a48ef642bf8ee21aa4fcc83aa464692
PHP
thanhn51/shop_app
/app/Http/Controllers/UserController.php
UTF-8
1,849
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Requests\StoreUserRequest; use App\Models\User; use Illuminate\Http\RedirectResponse; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Session; class UserController extends Control...
true
f5630f5e6ae8c768de251076e7085a4a321ef95b
PHP
warslett/skeleton
/src/Domain/User/Registration/Listener/Registration/ExpireRegistrationTokenListener.php
UTF-8
873
2.734375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Domain\User\Registration\Listener\Registration; use App\Domain\User\Registration\Event\RegistrationEvent; use App\Factory\DateTimeFactory; use Doctrine\ORM\EntityManagerInterface; class ExpireRegistrationTokenListener { private DateTimeFactory $dateTimeFactory; p...
true
65b66cd6f05660c1f29740eaa25e4c326d12cc4d
PHP
rhabban/AReDA
/model/DBHandler.php
UTF-8
7,380
3.09375
3
[]
no_license
<?php require_once("personsRankLib/personRankDB.php"); require_once("categoriesLib/src/categoriesDB.php"); require_once("categoriesLib/src/itemsDB.php"); require_once("OwnersDB.php"); /** * @author Chupin Corentin, Universit&eacute; de Caen Basse-Normandie, France * @since February, 2015 */ class DBHandler { /*...
true
7c8adc673611d00dd7f92d1fa2397e176ea20cfc
PHP
peaceman/vpfw-fj
/Vpfw/Form/Validator/Equals.php
UTF-8
454
2.875
3
[]
no_license
<?php class Vpfw_Form_Validator_Equals implements Vpfw_Form_Validator_Interface { private $toCompareWith; public function __construct(Vpfw_Form_Field $value) { $this->toCompareWith = $value; } public function run($value) { if ($value != $this->toCompareWith->getValue()) { r...
true
0166ce4df3617ebd47baaa41151df3b12a57ddd9
PHP
lduvnas/moviestore
/show-orders.php
UTF-8
930
2.75
3
[]
no_license
<?php require_once 'header.php'; require_once 'db.php'; $sql= "SELECT O.id AS Ordernummer, C.name AS Kund, F.title AS Filmtitel, O.date AS Orderdatum FROM orders AS O, customers AS C, movies AS F WHERE O.movie = F.id AND O.customer =...
true
f09dcefb50d56817bb86319ec0bc4722426cac92
PHP
mylow/tweet-list
/twtr.php
UTF-8
1,566
2.6875
3
[]
no_license
<?php require_once('TwitterAPIExchange.php'); /** Set access tokens here - see: https://dev.twitter.com/apps/ **/ $settings = array( 'oauth_access_token' => "xxx", 'oauth_access_token_secret' => "yyy", 'consumer_key' => "zzz", 'consumer_secret' => "qqq" ); $url = "https://api.twitter.com/1.1/statuses/user_timeline.json...
true
74fe54af0b3e22f637a1506200955154cf02ead2
PHP
jrodri2001/baalplas
/woocommerce/content-product_cat.php
UTF-8
2,008
2.515625
3
[ "MIT" ]
permissive
<?php /** * The template for displaying product category thumbnails within loops. * * Override this template by copying it to yourtheme/woocommerce/content-product_cat.php * * @author WooThemes * @package WooCommerce/Templates * @version 2.4.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } globa...
true
6c8d3b79b0ec0cc589d2a15b95ac6136bdc087bc
PHP
jagodachamiec/stringCalculator
/tests/StringCalculatorTest.php
UTF-8
2,126
2.953125
3
[]
no_license
<?php declare(strict_types=1); namespace App\Tests; use App\Exception\IncorrectArgument; use App\StringCalculator; use PHPUnit\Framework\TestCase; class StringCalculatorTest extends TestCase { /** @var StringCalculator */ private $stringCalculator; /** * @return mixed[] */ public function...
true
a653cc85ec4139da9aef6fda4ec5a01c203a6cf8
PHP
lwapet/IMAD_project
/mobifake/Entities/ExtractionCopyright.class.php
UTF-8
2,334
3.1875
3
[]
no_license
<?php // Extraction de l'auteur via les copyright class ExtractionCopyright { private $scores; private $company; /* * Extraire le nom de l'auteur d'un ensemble de documents. */ public static function extract($corpus, $selection) { return new ExtractionCopyright($corpus, $selection); } private funct...
true
8169fb7b1cd2b7c330bbc54595c27c39321ba8a9
PHP
AlphaMikeFoxtrot/xaptag
/xaptag_doctor/src/assets/php/m_book.php
UTF-8
3,208
2.609375
3
[]
no_license
<?php use \Psr\Http\Message\ServerRequestInterface as Request; use \Psr\Http\Message\ResponseInterface as Response; require '../vendor/autoload.php'; DEFINE('dbuser', 'u347889504_102'); DEFINE('dbpass', 'madrasa_books'); DEFINE('dbhost', 'mysql.hostinger.in'); DEFINE('dbname', 'u347889504_102'); $connection = mysqli...
true
434211a13da08bbc96d9a336d365fbb5013ac5cf
PHP
lucymtc/wp-ajax-requests
/src/output/xml.php
UTF-8
453
2.796875
3
[]
no_license
<?php /** * Implementation of the Output interface * returns data as xml * @package Lucymtc\WPAjaxRequest */ namespace Lucymtc\WPAjaxRequest; class XML implements OutputInterface { public function load( $data ){ // if( ! is_array( $data )) $data = (array) $data; // NEED TO FORMAT DATA FOR ...
true
f24b47416450f75e98b172708dd3c3aec859f59d
PHP
pacificano/learning
/complete webdev/chapter-08-mysql/205.php
UTF-8
299
2.734375
3
[]
no_license
<?php // Password security // level 1: Plain text // level 2: Hash (md5) // level 3: Salt (fixed) // level 4: Salt (based on something different for each user, like their id) // eg md5(md5($row['id'])."password"); $salt = "gobbledeegook"; $goober = md5($salt.penis); echo $goober; ?>
true
c7b673ffa5cbb881d2bbe2a84c0715eaae307dad
PHP
AkioUnity/sports-book
/app/View/Helper/NewsHelper.php
UTF-8
1,027
2.6875
3
[]
no_license
<?php App::uses('AppHelper', 'View/Helper'); App::uses('News', 'Content.Model'); class NewsHelper extends AppHelper { /** * Helper name * * @var string */ public $name = 'Content.News'; /** * Ticket Model Object * * @var $News News */ private $News = null; ...
true
fdea6c1bac5f1a6b7190b9f7cf91fcc1a8c764da
PHP
lainchan/lainchan
/templates/themes/semirand/theme.php
UTF-8
7,177
2.765625
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php require 'info.php'; /** * Generate the board's HTML and move it and its JavaScript in place, whence * it's served */ function semirand_build($action, $settings) { global $config; if ($action !== 'all' && $action !== 'post' && $action !== 'post-thread' && $action !== 'post-delete') { retur...
true
2ff91dbee99f09c1880f507f0d00720b3816e8db
PHP
fiskolini/subscription-api
/app/src/Persistence/Db/DbRegister.php
UTF-8
969
2.640625
3
[]
no_license
<?php namespace Barkyn\Persistence\Db; use Barkyn\Application\Configuration\DbConfig; use Illuminate\Database\Capsule\Manager; class DbRegister { /** * @var DbConfig */ private DbConfig $dbConfig; /** * @var Manager */ private Manager $manager; /** * DbRegister constru...
true
c514a7104f8de21672fa01fd8f4d9c042fc684be
PHP
GameUnivers/FastRegistration
/class/class_register.php
UTF-8
2,328
3.03125
3
[ "MIT" ]
permissive
<?php require_once("class_mysqli.php"); class Register { private $username; private $password; private $passmd5; private $email; private $errors; private $token; private $link; public function __construct(Database $connection) { $this->link = $connection->getLink(); //...
true
e174a326f894df5e5518645b20cf508c3aed25bb
PHP
ASHOK6266/esgi
/test-performance/travaux-practique/rendre/cc-tests-de-perf-master/src/Controller/UserController.php
UTF-8
2,214
2.515625
3
[]
no_license
<?php namespace App\Controller; use App\Entity\User; use App\Form\ProfileType; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use App\Service\TemporaryFileMan...
true
133262a6664b4b1aea9f79b4d64a809b24da8b6d
PHP
simbha/OAuth2_Test_Application
/src/main.php
UTF-8
971
2.515625
3
[]
no_license
<?php require_once 'account/accountManager.php'; require_once 'http.php'; session_start(); if (array_key_exists('log_out', $_GET)) { unset($_SESSION['account']); } if (!(array_key_exists('account', $_SESSION))) { Http::redirect('./login.php'); } $loginName = ''; if (array_key_exists('assign_logi...
true
ea48af2e0a233e94f32458340dd24c64844f0994
PHP
albertcase/Sha-Coach-Einvite-Fy18
/Core/Request.php
UTF-8
1,473
3
3
[]
no_license
<?php namespace Core; class Request { public $request; public $query; public $params; public $validation; public function __construct() { $this->request = NULL; $this->query = NULL; if($_SERVER['REQUEST_METHOD'] == 'GET') { $this->params = $_GET; $this->query = $this; } else { $this->params ...
true
bf295a5fc6e17fc6407b8ca1b1038152b2e2f810
PHP
hherrera/MoneyWatch
/src/MoneyWatch/Console/Command/LoadCurrencyCommand.php
UTF-8
788
2.78125
3
[]
no_license
<?php namespace MoneyWatch\Console\Command; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Command\Command; /** * Load currency information into relevant database table. */ class LoadCurrencyCommand extends Command { prote...
true
11407ba0e77c63053e762465fa8b7854cd176ce2
PHP
ewastec/romanroman
/src/AppBundle/Controller/DefaultController.php
UTF-8
3,727
2.515625
3
[]
no_license
<?php namespace AppBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\Extension\Core\Type\SubmitType...
true
48c9c63e4bf4db072a2b621b12e902409cea451d
PHP
tayrosby/book-database
/app/Services/Business/OwnedBookBusinessService.php
UTF-8
3,575
3.078125
3
[ "MIT" ]
permissive
<?php namespace App\Services\Business; use App\Services\Data\OwnedBookDataService; use App\Services\Utility\Connection; use App\Model\BookModel; use App\Services\Utility\MyLogger; class OwnedBookBusinessService { /** * passes the model to the data service to insert a book * @param BookModel $book ...
true
e7083e7fa0ba235fa38fd9d0d44ed61add1db47f
PHP
klangrud/tcshl
/engine/site_access.php
UTF-8
423
2.609375
3
[ "MIT" ]
permissive
<?php if (isset($_SESSION['logged_in']) && $_SESSION['logged_in'] == true) { define('USER_ACCESS_LEVEL', $_SESSION['site_access']); if (!site_access_allows(USER_ACCESS_LEVEL, PAGE_ACCESS_LEVEL)) { header("Location: account.php"); } } function site_access_allows($user_access = 0, $page_access) { ...
true
b91e6851e1126ec1a857b6a6bfc355bddff4863c
PHP
teqneers/ext-direct-bundle
/src/Router/RequestLogger.php
UTF-8
2,704
2.71875
3
[ "MIT" ]
permissive
<?php /** * TQ\Bundle\ExtDirectBundle\Router\RequestLogger * * @author stefan * @package TQ\Bundle\ExtDirectBundle\Router * @copyright Copyright (C) 2003-2016 TEQneers GmbH & Co. KG. All rights reserved. */ namespace TQ\Bundle\ExtDirectBundle\Router; use TQ\ExtDirect\Router\RequestCollection; use TQ\ExtDir...
true
cf01f38ce4ebc13c13b6e9875de2c7acf94d1f44
PHP
akushy/StressTest
/stress_test/admin-connexion.php
UTF-8
2,900
2.65625
3
[]
no_license
<?php include_once('include/initialization.php'); define('USERNAME', 'admin'); define('PASSWORD', 'admin'); $name = cleaner($_POST['name']); $flag = false; // $admin_login = cleaner($_POST['admin_login']); // $admin_pass = cleaner($_POST['admin_pass']); $responses = [ 'error' => "Ton adress...
true
b08c0b293803ca2d8e17e2baff8cfcca45fefdbe
PHP
hpatoio/bitly-api
/src/Subscribers/ResponseStandardizationSubscriber.php
UTF-8
1,095
2.640625
3
[]
no_license
<?php namespace Hpatoio\Bitly\Subscribers; use Guzzle\Common\Event; use Symfony\Component\EventDispatcher\EventSubscriberInterface; /** * Organize the response to better fit REST standard. */ class ResponseStandardizationSubscriber implements EventSubscriberInterface { public static function getSubscribedEve...
true
264d892ca1442d9badfd8d3c1298fcc29bb83f16
PHP
code16/sharp
/src/EntityList/Commands/Wizards/SingleInstanceWizardCommand.php
UTF-8
1,919
2.71875
3
[ "MIT" ]
permissive
<?php namespace Code16\Sharp\EntityList\Commands\Wizards; use Code16\Sharp\EntityList\Commands\SingleInstanceCommand; use Code16\Sharp\Exceptions\SharpMethodNotImplementedException; use Code16\Sharp\Utils\Fields\FieldsContainer; use Illuminate\Support\Str; abstract class SingleInstanceWizardCommand extends SingleIns...
true
912c164ed8c28bca376dae661f22a9b1e4752206
PHP
Thananji/SimpleBlog
/app/Http/ViewComposers/PromotionsComposer.php
UTF-8
1,339
2.53125
3
[]
no_license
<?php namespace App\Http\ViewComposers; use Illuminate\View\View; use App\Models\Promotion; use Illuminate\Support\Facades\Cache; class PromotionsComposer { /** * The user repository implementation. * * @var UserRepository */ protected $promotions_ll; protected $promotions_p; pro...
true
09bfbc59d50aee7bf907284a137c59e49ea38305
PHP
Inpassor/php-rcb
/db/postgres/Connection.php
UTF-8
5,872
2.953125
3
[ "MIT" ]
permissive
<?php namespace rcb\db\postgres; class Connection extends \rcb\db\Connection { /** * @inheritdoc */ public $driver = 'pgsql'; /** * @inheritdoc */ public $port = 5432; /** * @param mixed $dataType * @return string * @throws \Exception */ protected fun...
true
53b065116a8e04e3c869e6c5eb3bbb434724ec8b
PHP
PyetManuel/SiteWeb-WatchTech
/connexion.php
UTF-8
882
2.53125
3
[]
no_license
<?php //inclus un fois le header require_once('includes/header.php'); //n'est pas vide if (isset($_POST['connexion'])) { if (!empty($_POST['pseudo'])and !empty($_POST['mdp'])) { $pseudo = $_POST['pseudo']; $mdp = $_POST['mdp']; $sql = "SELECT id FROM membre WHERE pseudo = '$pseudo...
true
8cec85bfea9e1816ad6c7747cd9faa02d5629b23
PHP
scento/phalcon
/src/Phalcon/Annotations/Reflection.php
UTF-8
4,687
2.921875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Reflection * * @author Andres Gutierrez <andres@phalconphp.com> * @author Eduar Carvajal <eduar@phalconphp.com> * @author Wenzel Pünter <wenzel@phelix.me> * @version 1.2.6 * @package Phalcon */ namespace Phalcon\Annotations; /** * Phalcon\Annotations\Reflection * * Allows to manipulate the annota...
true
3e8fa9474dcf3e3d75647a4f7ce0db5d5fd1b44b
PHP
ciaranmcnulty/test-driven-architecture
/src/Infrastructure/Doctrine/OrderRepository.php
UTF-8
974
2.734375
3
[ "MIT" ]
permissive
<?php namespace Cjm\Delivery\Infrastructure\Doctrine; use Cjm\Delivery\Domain\Order; use Cjm\Delivery\Domain\OrderNotFound; use Cjm\Delivery\Domain\OrderRepositoryInterface; use Doctrine\ORM\EntityManagerInterface; class OrderRepository implements OrderRepositoryInterface { public function __construct( p...
true
56118d4c954d46538c56322770806c568057b641
PHP
iyzico/iyzipay-php
/src/Iyzipay/Request/Subscription/SubscriptionDeleteProductRequest.php
UTF-8
765
2.515625
3
[ "MIT" ]
permissive
<?php namespace Iyzipay\Request\Subscription; use Iyzipay\JsonBuilder; use Iyzipay\Request; class SubscriptionDeleteProductRequest extends Request { private $productReferenceCode; public function getProductReferenceCode() { return $this->productReferenceCode; } public function setProdu...
true
7da63ef4c07f12b6ce8faa97136f315f6121d3a6
PHP
hrishi045/phpws-assignments-day1
/3.php
UTF-8
217
3.453125
3
[]
no_license
<!-- echo syntax errors --> <?php $name = "John"; $lname = "Doe"; $age = 38; ?> <p><?php echo "My name is $name<br>"; ?></p> <p><?= "My last name is $lname<br>"; ?></p> <p><?= echo "I am $age years old."; ?></p>
true
ad67e9ed5318df1c9c976b246278613837a383d7
PHP
tarqd/hasoffers-promotional-platform
/app/classes/ApiClient/Request.php
UTF-8
2,863
2.71875
3
[]
no_license
<? class ApiClient_Request { protected $url = null, $target = null, $method = null, $args = array(), $type = null ; private $request = null ; protected function __construct() { $this->request = new CurlRequest(null); } public function getCurlRequest() { return...
true
da21c74d378e198efc6194b45e6d5f7cca8ab0fd
PHP
AdelineClere/codex-international
/src/Twig/CategoriesExtension.php
UTF-8
706
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Twig; use App\Repository\CategoryRepository; use Twig\Extension\AbstractExtension; use Twig_Extension_GlobalsInterface; class CategoriesExtension extends AbstractExtension implements Twig_Extension_GlobalsInterface { protected $categoryRepo; public function __construct(CategoryRepository $ca...
true
a198db9664d6b0836d999fc3c9f6a92386a8ae43
PHP
beckerben/phpssrs
/library/PhpSsrs/ReportingService2010/ListChildren.php
UTF-8
503
2.671875
3
[ "BSD-2-Clause" ]
permissive
<?php namespace PhpSsrs\ReportingService2010; class ListChildren { /** * * @var string $ItemPath * @access public */ public $ItemPath = null; /** * * @var boolean $Recursive * @access public */ public $Recursive = null; /** * * @param string $ItemPath * @param boolean ...
true
f7ae3c561820dae168f0fdcc5a6398c4c3d91997
PHP
katzgrau/notes
/system/application/helpers/paypal_payment_helper.php
UTF-8
4,432
2.734375
3
[ "MIT" ]
permissive
<?php if ( ! function_exists('verify_and_retrieve_payment')) { // return an array with a boolean result and dictionary of the request response function verify_and_retrieve_payment() { $email = $_GET['ipn_email']; $header = ""; $emailtext = ""; // Read the post from PayPal and add 'cmd' $...
true
ed0f86b8b312e55a6614730a2e9c142daca14eba
PHP
jdreesen/retrofit-php
/src/Http/MultipartBody.php
UTF-8
1,527
2.90625
3
[ "MIT" ]
permissive
<?php /* * Copyright (c) Nate Brunette. * Distributed under the MIT License (http://opensource.org/licenses/MIT) */ declare(strict_types=1); namespace Tebru\Retrofit\Http; use Psr\Http\Message\StreamInterface; use function GuzzleHttp\Psr7\stream_for; /** * Class MultipartBody * * @author Nate Brunette <n@teb...
true
ba6dceb2ba5a8d2cd6f1e95d7e26ece5f591c1db
PHP
joncv/swoolefy
/src/Library/Cache/RedisConnection.php
UTF-8
1,780
2.765625
3
[ "MIT" ]
permissive
<?php /** +---------------------------------------------------------------------- | swoolefy framework bases on swoole extension development, we can use it easily! +---------------------------------------------------------------------- | Licensed ( https://opensource.org/licenses/MIT ) +--------------------------------...
true
24bc98fd929422c15ef5637ca64c5d59ef91d792
PHP
xsdiewl/AdminLTE-CP
/app/core/Base_Model.php
UTF-8
7,520
2.859375
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * 基类 通用方法 * @author Andy wei <andywei2010@163.com> * @created 2016-06-25 16:20 */ class Base_Model extends CI_Model { //表名 private $_table; //表主键 private $_id; public function __construct($table='', $id='') { ...
true
77fdef29b7d93618784901da93661a66c7a9d991
PHP
linuxserver/Heimdall
/vendor/fzaninotto/faker/src/Faker/Provider/pt_PT/Person.php
UTF-8
6,685
2.765625
3
[ "MIT" ]
permissive
<?php namespace Faker\Provider\pt_PT; class Person extends \Faker\Provider\Person { protected static $maleNameFormats = array( '{{firstNameMale}} {{lastName}}', '{{firstNameMale}} {{lastName}} {{lastName}}', '{{firstNameMale}} {{lastName}} de {{lastName}}', '{{firstNameMale}} {{fir...
true
78b347e8da3e3191f3c9024267498fec2598c505
PHP
gstcyr/essc
/matchup.php
UTF-8
4,209
2.640625
3
[ "MIT" ]
permissive
<? require_once('template.php'); function getResults($team1, $score1, $score2){ $scores1 = explode(',',$score1); $scores2 = explode(',',$score2); $scores = array(); $win1 = $win2 = 0; foreach($scores1 as $i=>$s){ if($s > $scores2[$i]) $win1++; elseif($s < $scores2[$i]) $win2++; if($team1) array_push($scores...
true
4d1fc54b5a53cc4fca2c2ddde3882a44f8cfc69a
PHP
szabgab/slides
/php/examples/php/simpletest/st.php
UTF-8
1,104
2.53125
3
[]
no_license
<?php //require_once(dirname(__FILE__) . '/../../../tools/simpletest/default_reporter.php'); //require_once(dirname(__FILE__) . '/../../../tools/simpletest/simpletest.php'); require_once(dirname(__FILE__) . '/../../../tools/simpletest/autorun.php'); class ShowPasses extends HtmlReporter { function pai...
true