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
57883abdf39b75ed6e331da1744e8fc0d5992163
PHP
ramanasha/Classroom-management-system
/LastYearClass/Days/maintain_days.php
UTF-8
1,977
2.71875
3
[]
no_license
<?php session_start(); ini_set('include_path', '/home/kweavus/public_html/class'); include 'sessionchecker.php'; session_checker(); // Make database connection. include 'db.php'; $page_title="Maintain Days"; include 'header.php'; $user_level = $_SESSION['session_user_level']; $numresults=mysql_query("SELECT * FROM Day...
true
06eca9dc0e7f18ed431321d0bebdf13945b8a943
PHP
WorldTraffic/lesson
/lesson03/05bacteriya.php
UTF-8
1,680
3.03125
3
[]
no_license
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Урок 3 Бактерий</title> <style> body { background:#EDEDED; font-family:Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", serif; font-size:16px; margin:0 auto; text-align:center; padding:0; width:50%; } header { font-size:20px; pad...
true
ff45791722941a6cf60eca00a09e1febedd8ef53
PHP
amsterdan5/bonface
/api/app/Model/Banner.php
UTF-8
1,157
2.6875
3
[]
no_license
<?php namespace App\Model; class Banner { // 表名 protected $table = 'banner'; public function addBanner(string $image, string $web_image, string $lang) { return app('db')->insert( 'insert into ' . $this->table . '(`image`,`web_image`,`lang`) values(?,?)', [$image, $web_i...
true
0d8f79f694e24841bb34baf19233515e691b8c48
PHP
kidlatmc29/pkmDaycareDB
/public_html/dbweb/dbStats.php
UTF-8
2,910
3.015625
3
[]
no_license
<!-- dbStats.php Isabel Ovalles CPSC 3300 A PHP script to access the pokemon daycare database through MySQL using aggregate functions in queries --> <html> <head> <title> Pokemon Daycare Stats </title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> body{ font-family: '...
true
d373a001fd50931dea5edea278f84d91b07eddbf
PHP
Magellan91/sourceit
/20/4/index.php
UTF-8
461
2.578125
3
[]
no_license
<?php $filename='zli.gz'; $s = "Даный текст будет сжатый и записан, после чего открыт!<br>\n"; $s2 = "Эта строка не запишится<br>\n"; $zp = gzopen($filename, "w9"); gzwrite($zp, $s); gzclose($zp); $zp = gzopen($filename, "r"); flock ($zp,LOCK_EX); gzwrite($zp, $s2);//Пытаемся записать нову строку echo gzread($zp, 3); g...
true
3e5d2e4a4c8e8e6418ef1e98840e142cd84ac39b
PHP
jds3d/LCS-AWS
/app/lib/dataobject.php
UTF-8
18,790
3.046875
3
[]
no_license
<?php // copyright 2008 Levi Lansing defined('MUDPUPPY') or die('Restricted'); // dataTypes defined in database.php define("DATAFLAG_LOADED", 1); define("DATAFLAG_CHANGED", 2); define("DATAFLAG_NOTNULL", 4); class DataValue { var $dataType; var $value; var $flags; // set flag to loaded if sending val...
true
12435317d1ac6e3d500aa2b44b4f4b25292196e9
PHP
djmassive/git-deploy-php
/tools/src/Config.php
UTF-8
4,207
2.625
3
[]
no_license
<?php namespace Brunodebarros\Gitdeploy; use Brunodebarros\Gitdeploy\Helpers; class Config { public static function getArgs() { $argv = $_SERVER['argv']; $deploy = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'deploy.ini'; $commands = array('-l', '-r', '-c', '-d', '--revert', '--log', '--r...
true
8a7d109069a7e16116d6713e0d118bd0bd2ffa3f
PHP
Intermax-Cloudsourcing/laravel-json-api
/src/Filters/OperatorFilter.php
UTF-8
3,737
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Intermax\LaravelJsonApi\Filters; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Arr; use Illuminate\Support\Collection; use Illuminate\Support\Str; use Intermax\LaravelJsonApi\Filters\Contracts\Filter; use Intermax\Lar...
true
e77e823bdbcbc8996719a22f3698785259de428f
PHP
phpstan/phpstan-src
/tests/PHPStan/Analyser/data/bug-3997.php
UTF-8
310
2.515625
3
[ "MIT" ]
permissive
<?php namespace Bug3997Type; use function PHPStan\Testing\assertType; function (\Countable $c): void { assertType('int<0, max>', $c->count()); assertType('int<0, max>', count($c)); }; function (\ArrayIterator $i): void { assertType('int<0, max>', $i->count()); assertType('int<0, max>', count($i)); };
true
05b4caeda3697c5f2f56dfaa6c9629da7a1dd6a4
PHP
El-Patron25/webshop
/medewerker_paneel/leverancier_aanpassen.php
UTF-8
1,364
2.578125
3
[ "MIT" ]
permissive
<?php include "classes/db.class.php"; include "includes/header.php"; include "includes/navbar.php"; if(isset($_GET['leverancier_aanpassen'])) { $id = $_GET['leverancier_id_edit']; $connection = new DB("localhost", "vissen", "root", "", "utf8"); $leverancier = $connection->selecteerLeverancier($id); foreach($leveranci...
true
f38050f1e8ed83dade68f0e672a15faa51a8e822
PHP
gollo2408/tabla_de_registro
/index.php
UTF-8
1,879
2.828125
3
[]
no_license
<?php include_once('conexion.php'); $sentencia_select=$con->prepare('SELECT * FROM clientes ORDER BY id DESC'); $sentencia_select->execute(); $resultado=$sentencia_select->fetchAll(); // metodo buscar if(isset($_POST['btn_buscar'])){ $buscar_text=$_POST['buscar']; $select_buscar=$con->prepare('SELECT *FROM ...
true
78abc8ba05a1dfda81636ee260212532ea27ba5e
PHP
svilborg/laravel-generator-tmp
/tests/traits/MakeResourcesTrait.php
UTF-8
1,273
2.640625
3
[]
no_license
<?php use Faker\Factory as Faker; use App\Models\Resources; use App\Repositories\ResourcesRepository; trait MakeResourcesTrait { /** * Create fake instance of Resources and save it in database * * @param array $resourcesFields * @return Resources */ public function makeResources($reso...
true
879a03cb168670207e344f63b5e1e15cb4eade3e
PHP
codyml/imaginedsf
/imaginedsf-custom-theme/inc/spa.php
UTF-8
1,264
2.65625
3
[]
no_license
<?php /** * Returns the SPA template for all page requests except those starting * with "wp-". * * @package Imagined San Francisco Custom Theme */ // Redirects to HTTPS. add_filter( 'init', function() { $site_url = wp_parse_url( get_option( 'siteurl' ) ); $site_url_scheme = $site_url['scheme']; if ...
true
5e51b1afbe58b127d2e6afebb43cbe31c097c6e6
PHP
alexx-lau/RBAC
/application/service/UserHook.php
UTF-8
1,961
2.6875
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2019/5/9 * Time: 11:58 */ namespace app\service; use think\Request; use app\common\controller\Common; /** * Class UserHook * @package app\service * @desc 用户行为定义类 */ class UserHook { /** * @var string * @desc ...
true
eb1c8fa338c0dab5e47ad5d6b5461202e6bf021b
PHP
Alauridsen/md2_3crud
/fdetails.php
UTF-8
1,587
2.84375
3
[]
no_license
<!doctype html> <html> <head> <meta charset="UTF-8"> <title>Untitled Document</title> <link rel="stylesheet" href="style.css"> </head> <body> <?PHP include 'menu.php'; ?> <h1> <?PHP require_once 'dbconfig.php'; $film_id = filter_input(INPUT_GET, 'film_id', FILTER_VALIDATE_INT) or die('missing paramet...
true
a228628dde0b557e08a8a006f925abbd298a48d8
PHP
Esaou/projet4
/app/Database/Database.php
UTF-8
2,229
3.15625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Database; use App; use \PDO; class Database{ private $dbName; private $dbUser; private $dbPass; private $dbHost; private $pdo; public function __construct(string $dbName,string $dbUser = 'root',string $dbPass ='',string $dbHost='localhost'){ ...
true
aa2a791f7b2f7246aff40f5c27c28b36dacd4d6f
PHP
joaosn/curso
/PHPtestes/PHPtest/classes/acertativo.php
UTF-8
211
2.578125
3
[]
no_license
<?php class Assertativo { public $numero; private $numeros; public function getArray() { $array = array( 'nome'=>'joão', 'idade'=> 19 ); return $array; } }
true
9e5d6ae96dc10c25b540c248610e5c07d7c8735d
PHP
thangufo/angularphp
/api/controllers/OrganizationController.php
UTF-8
3,853
2.75
3
[]
no_license
<?php class OrganizationController extends AppController { public function showList() { $organizations = SchoolQuery::create() ->find(); foreach ($organizations as &$organization){ $organization->getState(); $organization->getContact(); $organization->...
true
40e6e5241ff9f689c853cc70d0c732bb7d624891
PHP
MAlejandroR/Ficheros
/descargas.php
UTF-8
2,285
2.875
3
[]
no_license
<?php require_once "funciones.php"; //Inicilizo variables $name=$_POST['name']; $pass=$_POST['pass']; $admin=false; //Por defecto no soy admin, lo modificaré si sí que nos conectamos como admin //Verifico condiciones de conexión y si no envío al index //Escribe las instrucciones necesarias para ello //Evalúo la acci...
true
6b51f76358dbb901732002b1d699b314544d0423
PHP
dimaskris98/Simasti
/admin/aset/asetview-ajax.php
UTF-8
5,553
2.515625
3
[ "MIT" ]
permissive
<?php /* Database connection start */ include ("../../konekdb.php"); $sq="SELECT data_aset.*,a.nama_bag,b.nama_karyawan as nama FROM data_aset LEFT JOIN data_uker_bagian as a ON a.kd_bag = data_aset.kd_uker LEFT JOIN data_karyawan as b ON b.nik = data_aset.nik"; /* Database connection end */ if(isset($_POST['k...
true
fbeba497035f10bd71cb57592f311769568aa00c
PHP
garethhudson07/api
/src/Schema/Validation/Validator.php
UTF-8
7,409
2.71875
3
[ "MIT" ]
permissive
<?php namespace Api\Schema\Validation; use Closure; use Respect\Validation\Exceptions\ComponentException; use Respect\Validation\Exceptions\NestedValidationException; use Respect\Validation\Rules; /** * Class Validator * @package Api\Schema\Validation */ class Validator { /** * @const array */ p...
true
e0bd2044230a1b6aa675192ad723b69530521ba9
PHP
MrMJ06/ProyectoISSI
/anadirEventoAJAX.php
UTF-8
738
2.765625
3
[]
no_license
<?php //Includes require_once ('includes/funciones.php'); //Se recogen los datos del evento $datos["DNI"] = $_POST['dni']; $datos["FECHA"] = $_POST['fecha']; $datos["NOMBRE"] = $_POST['nombre']; //Se crea una conexión a la base de datos $conexion = crearConexionBD(); //Se añade un evento para $datos llamando a la fu...
true
28f8ce247bf7cd3ef9bb096093fdabff23065092
PHP
radcampaign/omnipay-wepay
/src/Models/RequestStructures/RequestStructureInterface.php
UTF-8
1,184
2.875
3
[ "MIT" ]
permissive
<?php namespace Omnipay\WePay\Models\RequestStructures; use Omnipay\WePay\Utilities\ArrayableInterface; use JsonSerializable; use ArrayAccess; use Iterator; interface RequestStructureInterface extends ArrayableInterface, JsonSerializable, ArrayAccess, Iterator { /** * Retrieves a list of all of the accepted...
true
27b5a1bec0f6c7075777401e1fa486de05173923
PHP
nmnikolov/conference-scheduler
/Models/BindingModels/UserEditBindingModel.php
UTF-8
496
2.828125
3
[]
no_license
<?php declare(strict_types=1); namespace Framework\Models\BindingModels; class UserEditBindingModel { /** * @Required * @MinLength(2) * @MaxLength(30) * @Display(Full Name) */ private $fullName; /** * @return string */ public function getFullName() : string { ...
true
45b3b108c0ad8fdd9bc8c61ed05b20bae95c95e9
PHP
guardeivid/slim-app
/src/Artisan/GeneratorCommand.php
UTF-8
9,896
2.828125
3
[]
no_license
<?php namespace SlimApp\Artisan; use Illuminate\Support\Str; use Illuminate\Filesystem\Filesystem; use SlimApp\Artisan\ControllerMakeCommand; use SlimApp\Artisan\MigrationCreator; use SlimApp\Artisan\MigrateMakeCommand; use SlimApp\Artisan\ModelMakeCommand; use SlimApp\Artisan\ExceptionMakeCommand; use SlimApp\Artisa...
true
2b843f303b9ba22b06b3a26897305fc75de85099
PHP
DinanathThakur/Command-line-app
/tasks.php
UTF-8
1,466
2.75
3
[]
no_license
<?php use Symfony\Component\Console\Application; require 'vendor/autoload.php'; require_once 'src/config.php'; $app = new Application('Task App', '1.0'); try { $pdo = new PDO("mysql:host=" . DB_HOST . ";dbname=" . DB_NAME . "", DB_USERNAME, DB_PASSWORD); $pdo->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, P...
true
6618897ba7724d7926e2ca73578fe467d8a8b815
PHP
danilo-lima-developer/PhpUdemyStudy
/01_variaveis/variaveis.php
UTF-8
990
3.109375
3
[]
no_license
<?php $nome = "Danitech"; $sobrenome = "PE"; $nomeCompleto = $nome." ".$sobrenome; // Unindo variáveis com espaçamento echo $nomeCompleto; echo "</br>"; echo $nome; var_dump($nome); // tipo da variável e quanto está consumindo da memória echo "</br>"; unset($nome); // remove a variável da memória if(isset($no...
true
b7ae16ecb231cae81cb366125bb5d1a3d08c0276
PHP
zoem/adventofcode
/2015/day09.php
UTF-8
1,419
3.46875
3
[]
no_license
<?php $input = file_get_contents('day09.txt'); $lines = explode("\n", $input); $lines = array_filter($lines); $map = []; foreach ($lines as $line) { $parts = explode(' ', $line); $from = $parts[0]; $to = $parts[2]; $distance = $parts[4]; $map[$from][$to] = $distance; $map[$to][$from...
true
5482bcaf7283564896537515faa11bb386f5af35
PHP
josephlucia/simplicity-ticket
/app/Domain.php
UTF-8
1,190
2.84375
3
[ "MIT" ]
permissive
<?php namespace App; use App\Configuration; use Illuminate\Database\Eloquent\Model; class Domain extends Model { /** * The database table used by the model. * * @var string */ protected $table = 'domains'; /** * Indicates if the timestamps are included. * * @var bool ...
true
e2e4775ee4e5eab3e9a5bf4d21c5fc64d89f74ea
PHP
HaydenChung/PHPtoolbox
/importExcel.php
UTF-8
4,885
2.671875
3
[]
no_license
<?php session_start(); include_once('./php/libraries/spout-2.7.3/src/Spout/Autoloader/autoload.php'); use Box\Spout\Reader\ReaderFactory; use Box\Spout\Common\Type; if($_SERVER['REQUEST_METHOD'] == 'POST'){ $before = microtime(true); $filePath = $_FILES['upload_file']['tmp_name']; $importManage = new Im...
true
4985f867fa1d1fa3d82271749aa30bd5b9fc953c
PHP
querneu/exerciciosUDF
/Prova/Questao1.php
UTF-8
1,010
3.828125
4
[]
no_license
<!-- Faça um programa que receba 3 números. Informe qual é o maior e o menor dos três. Se o resultado da soma dos dois (maior e menor) for maior que 100 o programa deverá apresentar seu resultado multiplicando o maior com o menor. [IF/ELSE] --> <?php $valor1 = @$_POST['valor1']; $valor2 = @...
true
a10181364e71e875dc93bcae3490b88b2d045ede
PHP
halat1982/trainingemployee
/app/Controllers/Controller.php
UTF-8
438
2.578125
3
[]
no_license
<?php namespace App\Controllers; class Controller { const TEMPLATES_DIRECTORY = 'app/Views/'; protected function view($template_path, $data = array()) { $template = file_get_contents(self::TEMPLATES_DIRECTORY . $template_path); extract($data, EXTR_SKIP); ob_start(); eval("...
true
6a6bf34771bf445d5519ed2785bf0912c794e200
PHP
on1ManArmy/php-tuts
/03_strings.php
UTF-8
452
4.28125
4
[]
no_license
<!-- This is a tutorial in PHP --> <?php $str = "This is a String"; $len = strlen($str); echo "The length of string is:". $len; echo "<br>"; echo "The number of word in string is: ". str_word_count($str); echo "<br>"; echo "<br>"; echo "The revrse of string is: ". strrev($s...
true
8091e913f2dc1118e0c831bad6bd459d9dca859d
PHP
JetMas/Sessions_ActWebEng
/session3.php
UTF-8
1,424
2.8125
3
[]
no_license
<?php // Start the session session_start(); /* if(!empty($_POST['color']) && !empty($_POST['food'])){ $_SESSION['color'] = $_POST['color']; $_SESSION['food'] = $_POST['food']; }*/ ?> <!DOCTYPE html> <html> <head> <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta...
true
cb08fae388dfa10e185e223a66f05bdced208af5
PHP
willyCordon/Dw4_tp2
/backend/app/DaVinci/Models/Equipo.php
UTF-8
3,930
3.078125
3
[]
no_license
<?php namespace DaVinci\Models; use DaVinci\DB\Connection; use PDO; class Equipo extends Modelo { protected $table = "equipos"; protected $primaryKey = "id"; protected $attributes = ['id_equipo', 'nombre', 'puntos', 'apodo', 'entrenador', 'imagen']; protected $id_equipo; protected $nombre; pr...
true
76a08a7a833ad6686c170fb2b5e10f74da2b2a96
PHP
tiger154/fashion
/engine/_extends/php.EasyCurl/EasyCurlExecuter.php
UTF-8
5,976
2.828125
3
[]
no_license
<?php /** * @author Amir Ali Jiwani <amir.ali@pi-labs.net> * @copyright 2011 * @link http://www.facebook.com/aajiwani * @version 1.0 */ require_once('EasyCurlExceptions.php'); require_once('EasyCurlHelperClasses.php'); require_once('EasyCurlExceptions.php'); require_once('EasyCurlError.php'); require_once('Easy...
true
2def760a591277bac9ad89971a848015326a598f
PHP
saketchaitanya/yiimongo-basic
/basic/models/RegistrationForm.php
UTF-8
2,265
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for collection "registrationForm". * * @property \MongoDB\BSON\ObjectID|string $_id * @property mixed $username * @property mixed $password * @property mixed $email * @property mixed $photos * @property mixed $subscriptions * @property strin...
true
7d516b279d8fe18af824610e3edfc4b2a18fed82
PHP
kewh/echoCMS
/cms/controller/get.php
UTF-8
762
2.59375
3
[ "MIT" ]
permissive
<?php /** * controller class for get * * * @since 1.0.0 * @author Keith Wheatley * @package echocms\get */ namespace echocms; class get { /** * Download file * */ function download($fileName=null) { $filePath = 'content/downloads/'.$fileName; if (file_exists($filePath) ...
true
4603593d4d125ad8475974e81aebc0ef477d02a6
PHP
femedina/clinica-odontologica
/app/Item.php
UTF-8
1,888
2.59375
3
[ "MIT" ]
permissive
<?php /** * Created by Reliese Model. * Date: Mon, 01 Apr 2019 00:54:25 +0000. */ namespace App; use Illuminate\Database\Eloquent\Model as Eloquent; /** * Class Item * * @property int $id * @property int $brand_id * @property int $item_type_id * @property string $name * @property float $price * @propert...
true
82657268343a8d2716f97110cff71723714bc735
PHP
dominusnolan/filterSlider
/lib/Financer/FilterSlider/Shortcode/Max_Save_Interest.php
UTF-8
850
2.515625
3
[]
no_license
<?php namespace Financer\FilterSlider\Shortcode; use Financer\FilterSlider\Abstracts\Shortcode; use Financer\FilterSlider\Abstracts\Slider; /** * Class Min_Save_Amount * @package Financer\FilterSlider\Shortcode */ class Max_Save_Interest extends Shortcode { /** * @param array $atts * * @param null|s...
true
6bc0f77b2d75f1bf39f996933ca3257125d488cb
PHP
sarahbizal/CPT283
/program2/bizal.program2.php
UTF-8
1,742
2.9375
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>End-of-Month Report</title> </head> <body> <?php // FILENAME: bizal.program2.php // AUTHOR: Marcus Bizal // DESCRIPTION: This program serves to demonstrates my knowlege of // named constants, variables and here documents. // I...
true
bba7b84e5b76451537877570d41133311f30af40
PHP
liusongsen/soft-design
/src/AbstractFactory/ListFactory/ListTray.php
UTF-8
499
2.890625
3
[]
no_license
<?php namespace App\Design\AbstractFactory\Factory; use App\Design\AbstractFactory\Factory\Tray; class ListTray extends Tray { /** * ListTray constructor. * @param $caption */ public function __construct($caption) { parent::__construct($caption); } public function makeHt...
true
d24e2e496c11ad9cb2fb843b991e6b419b1a7580
PHP
ferdinand12345/client-portal
/app/Http/Controllers/AuthController.php
UTF-8
4,725
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Http\Response; use Illuminate\Routing\Controller; use Illuminate\Support\Facades\DB; use Illuminate\Support\Collection; use Session; use Config; use URL; use Validator; class AuthController extends Controller { public function __con...
true
fb07edafec3c65b7bf465fe0ccdf2d757f705c44
PHP
driek/waytagPhpApp
/public/waytagsSummary.template.php
UTF-8
2,443
2.703125
3
[]
no_license
<?php require_once("../classes/promoter.class.php"); require_once("../classes/activity.class.php"); ?> <fieldset> <legend>WayTags</legend> <span>Click on the Waytag to select it: </span> <div id="waytagslist" > <?php foreach ($wayTags as $wayTag) { $promoter = Promoter::getPromoterByWaytagID($wayTag["dWayTagO...
true
16a91a6dd4edce333cb2cb946f4e7aa645faadde
PHP
Mateodioev/php-whatsapp-api
/src/Objects/Parameter.php
UTF-8
2,011
2.859375
3
[]
no_license
<?php namespace Mateodioev\WhatsappApi\Objects; use Mateodioev\Utils\Arrays; use Mateodioev\WhatsappApi\Types\ParameterType; class Parameter extends abstractObject implements ObjectInterface { public string $type; public ?string $text = null; public ?Currency $currency = null; public ?DateTime $date_...
true
77e91a93444bef560f5d31d44c652f5fa76e4c34
PHP
bysobi/geobyip
/catalog/controller/d_geo_by_ip/geoservices.php
UTF-8
2,293
2.625
3
[]
no_license
<?php class ControllerDGeoByIpGeoservices extends Controller { public function geopluginnet($ip) { $geo_data = @file_get_contents("http://geoplugin.net/json.gp?ip={$ip}"); $geo_data = json_decode($geo_data, true); //return $geo_data; //-> you can get everything data // checking connect to geoplugin.net if ...
true
cdf67b3f22cf8519e7e966f5bf9698505805f3bd
PHP
eonx-com/easy-monorepo
/packages/EasyNotification/src/Queue/Configurators/AbstractQueueMessageConfigurator.php
UTF-8
519
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace EonX\EasyNotification\Queue\Configurators; use EonX\EasyNotification\Interfaces\QueueMessageConfiguratorInterface; use EonX\EasyUtils\Traits\HasPriorityTrait; abstract class AbstractQueueMessageConfigurator implements QueueMessageConfiguratorInterface { use HasPriorityTra...
true
0a4f9dd5d04207e7556e3fe5d0c6c4914e843cca
PHP
boyangz/WebSecurityAttacks
/php/profile.php
UTF-8
933
2.75
3
[]
no_license
<?php session_start(); if (isset($_SESSION['username'])) { echo $_SESSION['username']; echo " <a href=\"profile.php?username="; echo $_SESSION['username']; echo "\">Profile</a>"; echo " <a href=\"edit.php\">Edit</a>"; echo " <a href=\"../server/logout.php\">Logout</a> <br>"; } echo " <a href=\"....
true
d6709b2f76953171cfb542a2a61571d4e9b34483
PHP
ductuannguyen134/online-grocery-store
/public_html/controller/add_cart.php
UTF-8
1,066
2.921875
3
[]
no_license
<?php //start session to retrieve data input by user session_start(); function add_to_cart(){ if($_POST['quan'] != "" && $_POST['quan'] != "0"){ if(!isset($_SESSION['items'])){ //create session for the input $_SESSION['items'] = array(); } //set input data to variables $id = $_POST['id']; $name = $_POST['n...
true
b62573e7f0becb2e75c50edbc76111effa741de5
PHP
RonakRafaliya/Cybercom-Creation
/Practice/PHP/2021-02-04/form2/form2DB.php
UTF-8
2,494
2.703125
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = ""; // Create connection $conn = mysqli_connect($servername, $username, $password); // Check connection if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } //echo "Connected successfully"; if(mysqli_select_db($conn,'form_two')) { ...
true
d2ac574bf03364815b3c038ccfd0b5455abdf7e3
PHP
DanielBadura/Redmine-Api-Client
/src/Adapter/AdapterInterface.php
UTF-8
903
2.53125
3
[ "MIT" ]
permissive
<?php namespace DanielBadura\Redmine\Api\Adapter; /** * @author David Badura <d.a.badura@gmail.com> */ interface AdapterInterface { /** * @param string $path * @param array $options * * @return string */ public function get($path, array $options = []); /** * @param string...
true
0b8865b09fcc9370765c141ef54998b8c044ee31
PHP
meklu/uni-tsoha
/core/controller.php
UTF-8
587
2.609375
3
[]
no_license
<?php class Controller { protected static $usercache = null; public static function get_current_user() { if (isset($_SESSION["userid"])) { if (self::$usercache) { return self::$usercache; } $user = Account::find($_SESSION["userid"]); self::$usercache = $user; if (!$user) { unset($_SESSION["...
true
3252f2218b5e0bad6a316ecd823b991dc8053ea4
PHP
maxc-dev/ClothingWebsite
/products.php
UTF-8
10,319
2.703125
3
[]
no_license
<!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>Max Clothing</title> <link rel="stylesheet" href="main.css"> </head> <body> <?php require_once('select.php'); require_once('filter.php'); require_once('util.php'); session_start();...
true
670fdd48342027843464927c699378ca3e22ebb2
PHP
arvind-verma/thescholars
/application/controllers/Teacher.php
UTF-8
34,819
2.53125
3
[ "MIT" ]
permissive
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Teacher extends CI_Controller { function __construct() { parent::__construct(); $this->load->database(); $this->load->library('session'); /* cache control */ $this->output->set_header('Last-...
true
99a92008edf3dfeaa9fdb0fb98f2ab39c0068856
PHP
atlkuk/todoApp_be
/database/seeds/MyListsTableSeeder.php
UTF-8
744
2.734375
3
[]
no_license
<?php use Illuminate\Database\Seeder; use App\MyList; class MyListsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // Let's truncate our existing records to start from scratch. // MyList::truncate(); $faker...
true
715fabf26cf7f72fb6c17e4b4c11791b7f71c693
PHP
grimskin/cardmaster
/tests/Model/CardDefinitionTest.php
UTF-8
4,150
2.546875
3
[]
no_license
<?php namespace App\Tests\Model; use App\Model\CardDefinition; use App\Tests\Fixtures\FixtureLoad; use PHPUnit\Framework\TestCase; class CardDefinitionTest extends TestCase { use FixtureLoad; /** * @test */ public function shouldHandleMulticoloredLands() { $cardDef = $this->loadC...
true
8d08cd51c6a90b2c27af2a846871d4cf35c1f42e
PHP
Deserve-040900/PSwebProject
/libs/test_mail.php
UTF-8
341
2.859375
3
[]
no_license
<?php function spamcheck($mail) { //The FILTER_SANITIZE_EMAIL filter removes all illegal e-mail characters from a string. //This filter allows all letters, digits and $-_.+!*'{}|^~[]`#%/?@&= $mail=filter_var($mail,FILTER_SANITIZE_EMAIL); if(filter_var($mail,FILTER_VALIDATE_EMAIL)) { return true; } else { r...
true
05e39af49a89d40314fbeae8976aedfff282b33e
PHP
quynh56/toidicode.io
/bai05- tính chất đặc thù của hướng đối tượng/bai05-kế thừa-đa hình- đóng gói-trừng tượng.php
UTF-8
1,759
3.125
3
[]
no_license
<!--1.tính kế thưa tính chất này cho phép một đối tượng có thể có đượ các đặc tính (thuộc tính, phương thức) mà đối tượng khác đã có thông qia kế thừa (extends). điều này cho phép các đối tượng chia sẻ hay mở rộng các đặc tính sẵn có mà không phải tiến hành định nghĩa lại. --> <!--2. tính đa hình nó được theer hiện rõ ...
true
dd69589a207758ddda4a82ef3faa3823a70a24a8
PHP
TiesHogenboom/F2M5socialResponsibility
/_private/models/model.php
UTF-8
873
2.984375
3
[]
no_license
<?php // Model functions // In dit bestand zet je ALLE functions die iets met data of de database doen function getUsers() { $connection = dbConnect(); $sql = "SELECT * FROM `users`"; $statement = $connection->query( $sql ); return $statement->fetchAll(); } function getUserByEmail($email){ $connection =...
true
4b0a9006e0cd19fa2a1170ceba7f4d0d17ff4bf1
PHP
barbosa89/blog
/database/seeds/UsersTableSeeder.php
UTF-8
482
2.546875
3
[ "MIT" ]
permissive
<?php use App\Models\User; use Illuminate\Support\Carbon; use Illuminate\Database\Seeder; class UsersTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $user = new User(); $user->name = 'Barbosa'; $user->email ...
true
733a671a8d7d84c67e1fda872c1f7ba7be921be6
PHP
pavlenko/php-prestashop-ws
/src/PSWS_Model_Base.php
UTF-8
5,494
2.59375
3
[]
no_license
<?php /** * SunNY Creative Technologies * * ##### ## ## ## ## * ## ## ### ## ## ## * ## #### ## ## ## * ## ## ## ## ##### ## ## ## ## ## * ##### ...
true
395be36a7d48043da956cab72d9c8064b89f59c1
PHP
ddthanhdat/bookrest
/lib/Db.php
UTF-8
730
2.984375
3
[]
no_license
<?php use PDO as PDO; class Db extends PDO { private static $instance = NULL; public static function getInstance() { if (!isset(self::$instance)) { try { $config = parse_ini_file('config.ini'); $type = $config['dbtype']; $host = $config['dbhost']; $name = $config['...
true
ac3c4e99824667f02c8ada5374a99488885e1d74
PHP
ogmo0n/Chinese-Zodiac
/class_EventCalendar.php
UTF-8
3,707
3.28125
3
[]
no_license
<?php class EventCalendar { private $DBConnect = NULL; public function __construct() { include 'Includes/inc_ChineseZodiacDB.php'; $this->DBConnect = $DBConnect; } public function __destruct() { if (!$this->DBConnect->connect_error) { $this->DBConnect->close(); } } public function __wakeup() { inclu...
true
e7b1ea9ee4b50af8e62d1750c888a02eb5097815
PHP
modstart/ModStartCMS_Laravel9
/module/Vendor/SDK/CacheTrait.php
UTF-8
746
2.625
3
[ "Apache-2.0" ]
permissive
<?php namespace Module\Vendor\SDK; use Module\Vendor\Util\CacheUtil; trait CacheTrait { protected function cacheRememberForever($key, $callback) { return CacheUtil::rememberForever('ThirdParty:' . $key, $callback); } protected function cacheRemember($key, $seconds, $callback) { ...
true
5dc58c0d5064322209d4e9da413ba637c9fbb756
PHP
budiodank/hello_world
/lat1.php
UTF-8
128
2.984375
3
[]
no_license
<?php $bil = 10; if ($bil == 10) { echo "Angka ".$bil; } else { echo "Bukan Angka 10 tapi Angka ".$bil; } ?>
true
c9e6f90fe691424d016e21a2d230abf860039d69
PHP
baptiste-pajot/Piscine-PHP
/Day01/verif/ex10/do_op.php
UTF-8
483
3.25
3
[]
no_license
#!/usr/bin/php <?php if ($argc != 4) { echo "Incorrect Parameters\n"; return ; } $nb1 = trim($argv[1], " \t"); $op = trim($argv[2], " \t"); $nb2 = trim($argv[3], " \t"); if (is_numeric($nb1) && is_numeric($nb2)) { if ($op == "+") echo ($nb1 + $nb2)."\n"; elseif ($op == "-") echo ($nb1 - $nb2)."\n"; elseif ($op...
true
3c96c8b5068cc94957c49f0a855d9efd243df320
PHP
cotetus/StudyingPHP
/app.widgets/TElement.class.php
UTF-8
2,187
3.75
4
[]
no_license
<?php /** * classe TElement * classe para abstraccion de tags HTML */ class TElement { private $name; // nombre de la TAG private $properties; // propiedades de la TAG /** * metodo contructor * instancia una tag html * @param $name = nombre de la tag */ public functio...
true
401bfb977812efea43d49357fac9200d112e6f8f
PHP
edoerco/php-oop-2
/credit_card.php
UTF-8
445
3.15625
3
[]
no_license
<?php // Classe esterna trait CreditCard { public $expiration = null; public function getExpiration(){ $now = new DateTime(); if($this->expiration < $now) { throw new Exception('Carta scaduta'); } return $this->expiration; ...
true
d331873ef9f2ed44b3c273eb707dc8f56405a1c9
PHP
madukubah/k-pasar
/application/controllers/api/Product.php
UTF-8
13,846
2.640625
3
[ "MIT" ]
permissive
<?php use Restserver\Libraries\REST_Controller; defined('BASEPATH') OR exit('No direct script access allowed'); // This can be removed if you use __autoload() in config.php OR use Modular Extensions /** @noinspection PhpIncludeInspection */ //To Solve File REST_Controller not found require APPPATH . 'libraries/REST_Co...
true
bab46ba776c7018bb522fc1fa60737f2bee295e2
PHP
Dannschz/itemit
/php/login.php
UTF-8
1,016
3.0625
3
[]
no_license
<?php require 'database.php'; class User { public $name; public $email; public $auth; public $message; function __construct($name, $email, $auth, $message) { $this->name = $name; $this->email = $email; $this->auth = $auth; $this->message = $message; } } i...
true
0701dc1c260f674d19f44dbb7b7dbf12d252d5ac
PHP
sidler/github2mattermost
/index.php
UTF-8
4,694
2.9375
3
[]
no_license
<?php /** * A simple script to handle event notifications from github and forward them to a mattermost channel * * @author sidler@mulchprod.de * @license MIT */ class GithubHandler { /** The secret provided right here needs to be set in the GitHub webhook, too */ const GITHUB_SECRET = "placeYourSecretH1er...
true
7613a1d29fc34da81ddbd2226fb2c51425f5d6b1
PHP
darkmyst-irc/idlerpg-http
/app/Router.php
UTF-8
2,719
2.734375
3
[]
no_license
<?php class Router { private $pathPieces = array(); private $routes = array( 'players' => array( 'list' => 'listAction', ), 'player' => array( '*' => 'characterAction', ), 'index' => array( '*' => 'indexAction', ), 'q...
true
1ec66ae39f810663663a64fad8696b4f8f09696b
PHP
MelissaIADT/cinema-screenPHP
/MovieTableGateway.php
UTF-8
2,128
3.171875
3
[]
no_license
<?php class MovieTableGateway { private $connection; public function __construct($c) { $this->connection = $c; } public function getMovies(){ $sqlQuery = "SELECT * FROM movies"; $statement = $this->connection->prepare($sqlQuery); $status =...
true
c3eea196c91d319933d308f57524607e1b32c8e1
PHP
de2008de/peer-education-management
/controllers/peducator.php
UTF-8
16,311
3.21875
3
[]
no_license
<?php include_once $_SERVER['DOCUMENT_ROOT'].'/configs/config.php'; include_once $_SERVER['DOCUMENT_ROOT'].'/controllers/course.php'; include_once $_SERVER['DOCUMENT_ROOT'].'/controllers/section.php'; // ---------------------- // peducators description // ---------------------- // This class represents peer educators....
true
85f4d94718b7045fe56a7ff57ceec104f0f97fbb
PHP
Valashu/Lahaina_Framework
/libraries/navigation/classes/Navigation.class.php
UTF-8
1,761
2.90625
3
[]
no_license
<?php namespace lahaina\libraries\navigation; if (!defined('PATH')) exit('Kein direkter Skriptzugriff erlaubt!'); use lahaina\framework\common\Lahaina; /** * Navigation * * @version 1.0.3 * * @author Jonathan Nessier */ class Navigation { private $_items = array(); private $_ht...
true
b8d3b2561e4801c483d26a37f1c01718fed55d8d
PHP
stas/-junk
/dp/p1/phppolcalc/Calculator.class.php
UTF-8
708
3.140625
3
[]
no_license
<?php include "Divident.class.php"; include "Divider.class.php"; include "Result.class.php"; class Calculator { public $divident; public $divider; public $result; function Calculator() { $this->divident = new Divident(); $this->divider = new Divider(); $this->result = new R...
true
89afe932ffef92d4383111ec827a793da832238b
PHP
KuzAlexander/MVC
/vendor/ishop/core/base/Model.php
UTF-8
446
2.578125
3
[]
no_license
<?php namespace ishop\base; use ishop\Db; abstract class Model { public $attributes = []; // массив свойств модели, который будет идентичев полям в базе данных public $errors = []; // будем складывать ошибки public $rules = []; // для правил валидации данных public function __construct() { ...
true
20d785334f3e9aa7a703595d03105e3e9cea11bb
PHP
0x3UH4224D/php
/includes/Models/User.php
UTF-8
14,426
3.1875
3
[ "MIT" ]
permissive
<?php namespace CTG\Models; require_once "./includes/Models/Database.php"; class User { // User Info goes here protected $id; protected $username; protected $phone; protected $email; protected $permission; protected $password; protected $slat; protected $registration_date; // ...
true
53ba067f640b4b73b3ec6901ec66c683294d1845
PHP
cllouzeiro/blogNews
/blog/app/Http/Controllers/Controller.php
UTF-8
1,639
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Routing\Controller as BaseController; class Controller extends BaseController { use AuthorizesReques...
true
414f864400e3664108ef6cdb03d5c8217ba98ab8
PHP
caoluc/homnayangi
/app/controllers/BaseController.php
UTF-8
649
2.65625
3
[]
no_license
<?php class BaseController extends Controller { /** * @var array $viewData */ protected $viewData; /** * @var User */ protected $currentUser; /** * Setup the layout used by the controller. * * @return void */ protected function setupLayout() { ...
true
5b10f945e35b741250cd5216b0d7a95d73f301b1
PHP
xmc1993/Chapter28
/user_auth_fns.php
UTF-8
5,085
3.140625
3
[ "MIT" ]
permissive
<?php require_once('db_fns.php'); function register($username, $email, $password) { // register new person with db // return true or error message // connect to db $conn = db_connect(); // check if username is unique $result = $conn->query("select * from user where username='".$username."'"); if (!$result...
true
1dd23584c548ddf1f58bc2de75bdbdb7b041a144
PHP
Levandovski/POO
/Tratamento/exemplo02.php
UTF-8
458
3.03125
3
[]
no_license
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); function trataNome($nome){ if(!$nome){ throw new Exception("Nenhum nome foi informado.", 1); } echo ucfirst($nome)."<br>"; } try{ trataNome("João"); trataNome(""); }catch(Exception $e){ e...
true
d2cc0a321e2b01189fad0e47eb0f37d8a20b4670
PHP
ant-framework/coroutine
/src/Task.php
UTF-8
3,757
3.015625
3
[]
no_license
<?php namespace Ant\Coroutine; /** * Todo: 单元测试 * Todo: 添加Task id属性,通过ID控制不同任务的流程 * * 协程堆栈 * * Class Task * @package Ant\Coroutine */ class Task { /** * 当前协程任务 * * @var \Generator */ protected $coroutine; /** * 重入参数 * * @var mixed */ protected $reenterVa...
true
f8c25e04d8ac20819a7c716077feee6b8b3a8e28
PHP
r-war/indojaya
/classes/PHP/Compat/Function/str_ireplace.php
UTF-8
2,902
2.890625
3
[]
no_license
<?php // $Id: str_ireplace.php,v 1.22 2007/04/17 10:09:56 arpad Exp $ /** * Replace str_ireplace() * * @category PHP * @package PHP_Compat * @license LGPL - http://www.gnu.org/licenses/lgpl.html * @copyright 2004-2007 Aidan Lister <aidan@php.net>, Arpad Ray <arpad@php.net> * ...
true
142d1130afb1c5d102479ed812562e7dbac78a74
PHP
ryanolee/php-nn
/OO/class/node.php
UTF-8
3,225
2.578125
3
[ "MIT" ]
permissive
<?php namespace nn; class node{ private static $node_id; public function __construct(\nn\network &$network,array $prev_layer=[],$bias=0,$activation_function="sigmoid"){ $this->master=$network; $this->weights=[]; $this->bias=$bias=="auto"?self::get_initilize_value():$bias; ...
true
54e927c1ba85b616cf12f66263aa082447ffa3d5
PHP
LumOlloni/BlogPostProject
/app/Traits/ImageService.php
UTF-8
2,316
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Traits; use App\Post; use App\Http\Requests\PostValidation; use Image; use App\Http\Requests\EditPostValidation; use File; trait ImageService { public function uploadEditImage($file , Post $post , EditPostValidation $request){ if ($request->hasFile($file)) { ...
true
2076142a00893e159a8d5051825349f93b9370af
PHP
Cperbony/code-education-editora
/Modules/CodeEduUser/Http/Requests/RoleRequest.php
UTF-8
1,149
2.53125
3
[ "MIT" ]
permissive
<?php namespace CodeEduUser\Http\Requests; use CodeEduUser\Repositories\RoleRepository; use Illuminate\Foundation\Http\FormRequest; class RoleRequest extends FormRequest { /** * @var RoleRepository */ private $repository; /** * Determine if the user is authorized to make this request. ...
true
3b9c115d148302567013c54aa7611b0c49f4a805
PHP
rodolgl/cakey
/src/Model/Entity/Empresa.php
UTF-8
1,330
2.640625
3
[]
no_license
<?php namespace App\Model\Entity; use Cake\ORM\Entity; /** * Empresa Entity * * @property int $id * @property string $nombre * @property string $nombre_corto * @property string $email * @property string $direccion * @property string $municipio * @property string $provincia * @property string $pais * @prope...
true
c43222e6d3a763d3eeb0f6ee4f0186524a218ed7
PHP
delino12/qmail
/mail-config-example.php
UTF-8
1,232
3.015625
3
[]
no_license
<?php require_once "Mail.php"; // PEAR Mail package require_once ('Mail/mime.php'); // PEAR Mail_Mime packge class SendMail { protected $smtphost; protected $username; protected $password; public function __construct() { # code... $this->smtphost = "localhost"; $this->username = "myemail@mydomain.com"; ...
true
c080e1ac76e77cd261888d1c6354f5bcff06ce4f
PHP
williamcruzme/laravel-fcm
/src/ManageDevices.php
UTF-8
2,613
2.734375
3
[ "MIT" ]
permissive
<?php namespace Williamcruzme\Fcm; use Illuminate\Http\Request; trait ManageDevices { /** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\JsonResponse */ public function store(Request $request) { $requ...
true
2da6f0d670edbfa2632eee5e5927220c352b2ac7
PHP
welshcoder/amberdms-bs
/services/journal-edit.php
UTF-8
3,921
2.65625
3
[]
no_license
<?php /* services/journal_edit.php access: services_write Allows the addition or adjustment of journal entries. */ class page_output { var $id; var $journalid; var $action; var $type; var $obj_form_journal; function __construct() { $this->id = @security_script_input('/^[0-9]*$/', $_GET["id"]); $th...
true
a5b2f695e0c80bb888ecd55243c21d622dca3201
PHP
GraysonCordie/cs162_gc_wk8_lecture
/contact.php
UTF-8
7,812
3.015625
3
[]
no_license
<?php //1. What's included in contact form: //User's email address //Textareas to enter the actual message //User's contact name (first)(last) //Subject about contact //Phone number //check box for preferred contact method(email or phone) //2. User should be able ...
true
7bda0d8e847dfb27fe8c08da5d31e056641c719a
PHP
basilgohar/play
/village/generate-people.php
UTF-8
2,397
2.84375
3
[]
no_license
<?php $start_time = microtime(true); /* $pid = pcntl_fork(); if ($pid == -1) { die('could not fork'); } else if ($pid) { // we are the parent } else { // we are the child } */ require_once 'config.php'; set_time_limit(0); $names_male = array_values($db->fetchCol("SELECT `value` FROM `Names` WHERE `ty...
true
b09324d6276badf18ae9ab930b980669b360442a
PHP
arewolf/schoolwork
/localhost/project4/php/items.php
UTF-8
1,032
2.90625
3
[]
no_license
<?php $mysqli = new mysqli('localhost', 'root', '', 'gun_shop'); // (url, username, password, database) if ($mysqli->connect_errno) { echo 'Failed to connect to MySQL: (' . $mysqli->connect_errno . ')' . $mysqli->connect_error; } $sql = "select * from product;"; $results = $mysqli->query($sql); ?> ...
true
f8d2ea2e930e53e7a5c73cc6f963de9456d13f13
PHP
AlexStansfield/gomeeki
/src/AlexStansfield/Gomeeki/Models/History.php
UTF-8
2,197
3.109375
3
[]
no_license
<?php namespace AlexStansfield\Gomeeki\Models; use Doctrine\DBAL\Connection; /** * Class History * @package AlexStansfield\Gomeeki\Models */ class History { /** * @var Connection */ protected $db; /** * @param Connection $db */ public function __construct(Connection $db) {...
true
fb1455f8003a8642462418eb2d762455776a4f07
PHP
AdamKyle/flare
/app/Flare/Values/SiteAccessStatisticValue.php
UTF-8
1,467
2.609375
3
[ "MIT", "LicenseRef-scancode-free-unknown" ]
permissive
<?php namespace App\Flare\Values; use Carbon\Carbon; use App\Flare\Models\UserSiteAccessStatistics; use Illuminate\Support\Facades\DB; class SiteAccessStatisticValue { /** * Gets registered users for the data. * * @return array */ public static function getRegistered(): array { ...
true
0f1125daa1e6cb60fc770e1b1a08ae9e118e890d
PHP
a15lam/jarvis
/src/PlexClient.php
UTF-8
4,463
2.875
3
[ "Apache-2.0" ]
permissive
<?php namespace a15lam\Jarvis; use a15lam\Workspace\Utility\ArrayFunc; use a15lam\Workspace\Utility\DataFormat; use a15lam\Jarvis\Workspace as WS; class PlexClient { /** * PMS port. */ const PORT = '32400'; /** * PMS API to use. */ const API = 'status/sessions'; /** * Med...
true
62f9ea3a76022d9ef26b2ec6b9ca7ac2e5241c5a
PHP
nfaiz/ci4-debug-toolbar
/src/Formatter.php
UTF-8
2,447
2.828125
3
[ "MIT" ]
permissive
<?php namespace Nfaiz\DebugToolbar; use \Highlight\Highlighter; class Formatter { /** * Returns Highlighted SQL * * @return string */ public function highlightSql(string $sql = ''): string { $hl = new Highlighter(); try { $highlighted = $hl->h...
true
8492e9c5c9d5d552ee1ce9a91632661e5b5b347a
PHP
markvdv/hifluenceremote2
/mvdv/file/entity/basefile.php
UTF-8
1,249
2.625
3
[]
no_license
<?php namespace MVDV\File\Entity; class BaseFile extends \MVDV\Core\Entity\BaseEntity implements \JsonSerializable { protected $basefileid; protected $basefilename; protected $basefilemimetype; protected $basefilepath; protected $basefilesize; function getBasefileid() { return $this-...
true
c9796a699c1fbb05b811f651cf43a54ef036bf0f
PHP
nonetallt/php-helpers
/test/Unit/Generic/CollectionTest.php
UTF-8
5,143
2.984375
3
[]
no_license
<?php namespace Test\Unit\Generic; use PHPUnit\Framework\TestCase; use Nonetallt\Helpers\Generic\Collection; use Nonetallt\Helpers\Generic\Exceptions\ExceptionCollection; use Nonetallt\Helpers\Common\Collections\StringCollection; class CollectionTest extends TestCase { private $collection; public function s...
true