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
603841452e3ea558e16486bcc1444be9160b44f2
PHP
oman36/crud_laravel
/app/FormGenerator/FormGenerator.php
UTF-8
2,991
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\FormGenerator; use App\DataBaseSettings\DataBaseSettings; /** * Class FormGenerator. */ class FormGenerator { public const FIELD_TYPE_TO_HTML = [ 'int' => 'number', 'tinyint' => 'radio', 'varchar' => 'text', 'text' => 'textarea', 'date'...
true
4f96a52bf472e88ee1ffb3bf08c461ae359e67ca
PHP
ehewer/FreshPi
/connect/save_image.php
UTF-8
552
2.6875
3
[]
no_license
<?php // This script retrieves an image from a post request and writes it to the /image/ directory define("TAG_FILE","file"); define("TAG_NAME","name"); define("TAG_TMP","tmp_name"); if(isset($_FILES[TAG_FILE][TAG_NAME])) { $image = $_FILES[TAG_FILE]; $name = $_FILES[TAG_FILE][TAG_NAME]; if(move_upl...
true
2636a6b0efd6b4b975170cc492dfaf555abcfbaa
PHP
Niranjanseedrala/Hello
/guestbook.php
UTF-8
5,512
2.5625
3
[]
no_license
<?php // disabling possible warnings if (version_compare(phpversion(), "5.3.0", ">=") == 1) error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED); else error_reporting(E_ALL & ~E_NOTICE); require_once('classes/CMySQL.php'); // including service class to work with database // get visitor IP function getVisitorIP() ...
true
12e359a0ae67e6e82c59c3c4ee078b42d1a14e55
PHP
tsw79/youvids
/vendor/phpchassis/ddd/src/http/middleware/HttpStatusCode.php
UTF-8
12,699
2.53125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: tharwat * Date: 7/22/2019 * Time: 14:04 */ namespace phpchassis\http\middleware; /** * Class HttpStatusCode * This class represents a list of HTTP Statud Codes! * Ref: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes * * Status Code synopsis:...
true
f34446ceff64b31207126c7d66c770ad58f36e66
PHP
dotrinh81197/Laravel-Module3
/week 1-2/greeting/routes/web.php
UTF-8
1,956
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Route; use App\Http\Controllers\TestController; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your applicatio...
true
a9995a2fabeeb08397c46c0185b8dc9bcf1da69f
PHP
Skpd/Mosbot
/module/Blog/src/Blog/Entity/Entry.php
UTF-8
1,912
2.96875
3
[]
no_license
<?php namespace Blog\Entity; use DateTime; class Entry { /** @var int */ private $id; /** @var string */ private $header; /** @var string */ private $body; /** @var DateTime */ private $created; /** @var DateTime */ private $updated; /** @var boolean */ private $publis...
true
22294acf14afb7642b65d43675a95df7ced9a437
PHP
JamessCz/moje-portfolio
/php-ukoly/Banka/vlozit.php
UTF-8
1,458
2.828125
3
[]
no_license
<?php $servername = "localhost"; $username = "jakubhoracek"; $password = "xwx48xwx"; $dbname = "banka2"; $ok = $_POST['ok']; $deposit = $_POST['deposit']; session_start(); $id = $_SESSION['id']; if(isset($ok)){ $conn = new mysqli($servername, $username, $password, $dbname); if ($conn->connect_error) { ...
true
db7ea14dd4a272214c00aabae1ab2e26aa1ce5dd
PHP
aullah3115/Football-league
/scripts/deleteteam.s.php
UTF-8
2,780
2.53125
3
[]
no_license
<?php session_start(); include '../includes/connect.inc.php'; include '../includes/checklog.inc.php'; if (!isset($_POST)){ header('Location ../dashboard.php'); exit(); } $league = (int)$_SESSION['league_id']; $team = array_search('delete', $_POST); //check to see if delete was clicked and delete team if(isset($_...
true
7621d6799681ac3539414a5a72d7a592ba8ff5d3
PHP
franklynbarreram/ASOJUP
/database/seeds/RoleSeeder.php
UTF-8
940
2.609375
3
[]
no_license
<?php use Illuminate\Database\Seeder; use App\Models\Role; class RoleSeeder extends Seeder { protected $data = [ [ 'role' => 'Admin', 'description' => 'Usuario principal que puede ejecutar todas las funciones dentro del sistema' ], [ 'role' => 'Del...
true
efc0af8db58f81e4e2cb5e8c90478377776b8973
PHP
Dav1337de/EliteHax
/EliteHax server/registrationConfirm.php
UTF-8
4,830
2.703125
3
[ "MIT" ]
permissive
<?php include 'db.php'; include 'validate.php'; try { if (!isset($_GET['code'])) { exit("CODE MISSING"); } $input = $_GET['code']; //Base64 Decode $decoded = base64_decode($input); if ($decoded === false) { exit("INVALID CODE"); } //HMAC Retrieve $mac = mb_substr($decoded, 0, 32, '8bit'); // stored $me...
true
7575339f872f1b1c2bc22368072fe8a0da121104
PHP
namnguyen191/PHP-Python
/Incidents Report Project/incident_categories.php
UTF-8
5,085
2.875
3
[]
no_license
<?php $host = "localhost"; $user = "root"; $password = ""; $dbName = "incident_report_system_db"; $Incident_categories_id = ''; $Incident_categories_name = ''; $con = mysqli_connect($host, $user, $password, $dbName) or die("Connection is failed"); // INSERT if(isset($_POST['SAVE'])) if(!empty(htmlspecialchars($_PO...
true
8bd2451f0e75c28483637c1e210d40626c3da771
PHP
chris9797/FoodHub_23_24_25
/fetch.php
UTF-8
882
2.609375
3
[]
no_license
<?php $connect = mysqli_connect("localhost", "root", "", "search"); $output = ''; if(isset($_POST["query"])) { $search = mysqli_real_escape_string($connect, $_POST["query"]); $query = " SELECT * FROM searchengine WHERE title LIKE '%".$search."%' OR description LIKE '%".$search."%' OR url LIKE '%".$search."%' ...
true
2f895923ae3d061490395c976630a144bc044ac5
PHP
seikouhou/php-app-exception
/src/exceptions/HTTP/BadRequestException.php
UTF-8
1,699
2.625
3
[ "MIT" ]
permissive
<?php // このファイルの名前空間の定義 namespace SKJ\AppException\HTTP; // 別名定義 use SKJ\AppException\HttpException; /** * Bad Request HTTP層実行例外 * * リクエストの構文を間違えている事を示す例外です * * ◆詳細◆ * <ul> * <li>異常なパラメータが指定されたなど、リクエストの構文を間違えている場合に利用される</li> * <li>他の4xx系エラーコードに適さないようなケースでも利用される</li> * <li>クライアントは未知の4xxエラーコードを受...
true
15965626c5991861d89e23a9cb4fbd6b475744cb
PHP
lucasviei/PHP
/Codigosphp/aula98.php
UTF-8
193
3.53125
4
[ "MIT" ]
permissive
<?php class Pessoa{ public $idade = 0; public $nome; function __construct(){ echo "Teste\n"; var_dump($this); } } $p1 = new Pessoa(); $p2 = new Pessoa(); ?>
true
1482ce0a2a304d018aad423ae94996a4f3990d4c
PHP
djmattyg007/WebFramework
/src/app/framework/Core/View/View.php
UTF-8
3,780
2.984375
3
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain", "Unlicense" ]
permissive
<?php namespace MattyG\Framework\Core\View; class View { /** * @var string */ protected $fileName; /** * @var Manager */ protected $viewManager; /** * @var array */ protected $children; /** * @var bool */ protected $directOutput; /** ...
true
68dc1f53457118a51fd6d9ea7485fc818aba983a
PHP
kamil1209/KSIEGA-GOSCI-MYSQL-PHP
/index.php
UTF-8
2,077
2.765625
3
[]
no_license
<?php /*Marcin Maj *2017 *WSB DG*/ require 'header.php'; /*Sprawdzenie czy użytkownik jest zalogowany*/ if (!isset($_SESSION['login'])) { echo 'Aby przeglądać stronę należy zalogować się <a href="login.php">tutaj</a> lub utworzyć nowe konto <a href="register.php">tutaj</a>.'; } else{ include 'cfg.php'; /*Jeże...
true
15b128ea4b99e8c5dbc22e1f3be43049b734273d
PHP
nagyanna/PHP-MySQL-Wrapper
/codeigniter/database.php
UTF-8
2,697
3.3125
3
[]
no_license
<?php /** * Active Record - Ports some basic Utility Functionality of Rails Active Records to PHP */ class ActiveRecord extends Model { /** * Constructor sets basic connection variables. * * @author Merrick Christensen * @param $host:string - host, $username:string - mysql username, $password:string...
true
4fbbfbe809fd92e8ec314c9e772823a01722248d
PHP
imskm/phpframework
/Core/Validator.php
UTF-8
10,420
3.296875
3
[]
no_license
<?php namespace Core; /** * Validator Class * Class contains function for validating user input */ class Validator { /** * @var array $errors Contains errors message if any */ public $errors = []; /** * @var string $validateField stores field (one) to be validated */ protected $validateField; /*...
true
8f41260e670460d52cdeba8673de1defa657048b
PHP
i-am-tom/schemer
/src/Formatter/Boolean.php
UTF-8
375
2.921875
3
[ "ISC" ]
permissive
<?php namespace Schemer\Formatter; /** * Boolean formatter. */ class Boolean extends FormatterAbstract { /** * The value will be a boolean. */ public function __construct() { $this->transformations = [ function ($value) : bool { return 'false' === $value ? f...
true
99f203e4fba170b647d82ffe3ea35d993f701a94
PHP
async-aws/aws
/src/Service/MediaConvert/src/Enum/DvbSubtitleApplyFontColor.php
UTF-8
949
2.71875
3
[ "MIT" ]
permissive
<?php namespace AsyncAws\MediaConvert\Enum; /** * Ignore this setting unless Style Passthrough is set to Enabled and Font color set to Black, Yellow, Red, Green, Blue, * or Hex. Use Apply font color for additional font color controls. When you choose White text only, or leave blank, * your font color setting only ...
true
fe53bf80709e2f38cafb7b2298754b33c947a722
PHP
rachit011/Travel-Mate
/code-checker/phpcheckstyle/test/sample/bad_deprecation.php
UTF-8
603
2.671875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "OSL-2.1", "LicenseRef-scancode-proprietary-license", "OSL-3.0" ]
permissive
<?php /** * This file is an exemple of PHP file containing deprecated code. * This file should generate 5 warnings with the default config. */ class Deprecation { /** * Depretacted functions. * * @param String $aVarVar * @param String $bVarVar */ function testDeprecation($aVar, $bVar) { ...
true
76fc4fda36cfe7dad4da98fa64414cd2a208997c
PHP
drandru/queue
/src/DRD/Queue/Common/Queue/Consume.php
UTF-8
1,834
3.03125
3
[]
no_license
<?php namespace DRD\Queue\Common\Queue; /** * Class Consume * @package DRD\Queue\Common\Queue */ class Consume implements ConsumeInterface { /** * @var string */ private $queueName; /** * @var string */ private $consumerTag; /** * @var bool */ private $noLoca...
true
2deb97cfe49eaeb0d4630cf5bd1645b859b48caa
PHP
JordanTrind/ALNHSPanel
/global/application_db.php
UTF-8
2,645
2.671875
3
[]
no_license
<?php if(isset($_POST["search_application_db"])) { if($_POST["app_do_all"] === "true") { $medics = new medic(); $sql = "SELECT * FROM medic"; $value = $medics->DBClear(trim($_POST["search_application_db"])); if($value !== "") { $sql .= " WHERE name L...
true
23ef47589618bff5065de92d598f2ebc685ad1dd
PHP
linojiang268/sponsor-server-php
/app/Repositories/TeamRepository.php
UTF-8
6,484
2.546875
3
[]
no_license
<?php namespace Sponsor\Repositories; use Sponsor\Contracts\Repositories\TeamRepository as TeamRepositoryContract; use Sponsor\Models\Team; use Sponsor\Entities\Team as TeamEntity; use Sponsor\Utils\SqlUtil; class TeamRepository implements TeamRepositoryContract { /** * (non-PHPdoc) * @see \Sponsor\Cont...
true
a30eb2d39ed1a205137108bbf5a02986d529456f
PHP
softwarefan/cityfinder
/login_service.php
UTF-8
474
2.640625
3
[]
no_license
<?php include_once("config.php"); $name = trim($_GET['user-name']); $password = trim($_GET['password']); $sql = "SELECT name, password from users where name = '" . $name . "' and password = '" . $password . "'"; if (isset($name) && isset($password)) { $res = $conn->query($sql); if ($res->num_rows == 1) { ...
true
2813472d84836c5b74ed16d8078ceb28c999bb76
PHP
Nuwira/bandrek
/src/Password/DatabaseTokenRepository.php
UTF-8
2,010
2.703125
3
[ "MIT" ]
permissive
<?php namespace Nuwira\Bandrek\Password; use Carbon\Carbon; use Illuminate\Auth\Passwords\DatabaseTokenRepository as BaseDatabaseTokenRepository; use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract; use Nuwira\Bandrek\BandrekContract; class DatabaseTokenRepository extends BaseDatabaseTokenRepo...
true
b96dbbb1965a639b3b31276be135a141bc61bcbb
PHP
dilowagner/skyhub-client
/src/Api/Freight.php
UTF-8
431
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace DW\SkyHub\Api; use DW\SkyHub\Route; use DW\SkyHub\Response; class Freight extends Api { /** * @var string */ const FREIGHT_ROUTE = 'freights'; /** * Recebe histórico de frete * @return Response * * GET /freights */ public f...
true
fa601e45f06f87521915875f33e123a138687587
PHP
realskudd/breakfast
/application/Controller.class.php
UTF-8
2,454
2.625
3
[]
no_license
<?php class Controller { /** @var array */ public $viewData = array(); /** * @param string $uri * * @return self * @throws Exception */ public static function factory($uri) { list($controllerName) = explode('/', $uri); if ($controllerName == '') $controlle...
true
6dae455ed276892ec216d965c3c9a4ab23e5a92c
PHP
Manuelgn27/AmbienteWebServidor
/Semana5/Ejercicio 1/ver_detalles.php
UTF-8
1,536
2.875
3
[]
no_license
<?php echo "<h1 align='center';>Examen #1</h1>"; $db=new mysqli("localhost","admin","12345","registro_civil"); //Consulta $sql="Select * From personas"; $consulta=$db->query($sql); if ($consulta===FALSE) { echo "<h2>Error: ".$db->error."</h2>"; } echo "<h1 align='center'>Detalles de las Person...
true
0e5bd452a3db882b52c674aa7d3603625633d607
PHP
Runalyze/Runalyze
/src/CoreBundle/Twig/DisplayablePace.php
UTF-8
1,329
2.921875
3
[]
no_license
<?php namespace Runalyze\Bundle\CoreBundle\Twig; use Runalyze\Metrics\Velocity\Unit\AbstractPaceInTimeFormatUnit; class DisplayablePace extends DisplayableValue { /** * @param mixed $value * @param AbstractPaceInTimeFormatUnit $unit */ public function __construct($value, AbstractPaceInTimeForm...
true
a72bd2a760630b598cb75542ecbeba42217fa05b
PHP
i-lateral/silverstripe-importexport
/tests/BulkLoaderTest.php
UTF-8
7,393
2.625
3
[ "MIT" ]
permissive
<?php namespace ilateral\SilverStripe\ImportExport\Tests; use SilverStripe\Dev\TestOnly; use SilverStripe\ORM\DataObject; use SilverStripe\Dev\SapphireTest; use ilateral\SilverStripe\ImportExport\Tests\Model\Person; use ilateral\SilverStripe\ImportExport\Tests\Model\Country; use ilateral\SilverStripe\ImportExport\Bul...
true
e0bd90de7bd464d5cd494efa53fc1b9ac1744997
PHP
alexandreNascimentoIFPE/projetoweb1
/funcoes/funcoes.php
UTF-8
13,438
2.796875
3
[]
no_license
<?php include_once 'conexao.php'; class Biblioteca { public function adicionarUsuario($nome, $email, $senha, $funcao, $sexo) { try{ $mySQL = new MySQL; $mySQL->connMySQL(); $sql = "INSERT INTO usuario(nome, email, senha, funcao, sexo) VALUES ('{$nome}', '{$email}', '{$senha}', '{$fu...
true
ddcdd1671ba0cb3035341088c374cd33fa57802c
PHP
hyouwelkom/nuitdelinfo
/config.php
UTF-8
1,362
2.640625
3
[]
no_license
<?php $host = "localhost"; $database = "stop"; $user = "root"; $password = "root"; try { $bdd = new PDO('mysql:host='.$host.';dbname='.$database.';charset=utf8', ''.$user.'', ''.$password.''); } catch (Exception $e) { die('Erreur : ' . $e->getMessage()); } $ip = $_SERVER["REMOTE_ADDR"]; ...
true
02950659519d17ae80b04e867a0ca22b20b77281
PHP
SintLucasJaaruiting2014/Website
/app/src/SintLucas/Provider/SchoolServiceProvider.php
UTF-8
1,706
2.59375
3
[ "MIT" ]
permissive
<?php namespace SintLucas\Provider; use Illuminate\Support\ServiceProvider; use SintLucas\Domain\School\Models\Location; use SintLucas\Domain\School\Models\Program; use SintLucas\Domain\School\Models\Year; use SintLucas\Domain\School\Models\Type; use SintLucas\Domain\School\Repos\LocationRepo; use SintLucas\Domain\Sch...
true
613d353ff7f0f046837b1587d52ad1d4c528927d
PHP
Brymastr/clickracer
/app/controllers/GameController.php
UTF-8
1,410
2.75
3
[ "MIT" ]
permissive
<?php class GameController extends \BaseController { /** * Display a listing of the resource. * * @return Response */ public function index() { return View::make('index'); } /** * Show the form for creating a new resource. * * @return Response */ public function create() { // } ...
true
1ca49e17edf71685b2d8b84ef95add6511e48d17
PHP
Lazarra17/portfolio
/Portfolio/static-website/ntip/excelreader/update-attendance.php
UTF-8
4,318
2.53125
3
[]
no_license
<?php session_start(); include "../php/function.php"; include '../php/headerforsub.php'; ?> <html> <body> <head> <title>Import Attendance</title> </head> <?php include '../php/sidebarforsub.php';?> <div class="col s12" style="margin-left: 5%;"> <div class="container white z-depth-...
true
d3b02343478587f1c92018dac3b38e5c2669c5cd
PHP
gizmore/gwf3
/core/module/Navigation/GWF_NaviInstall.php
UTF-8
7,214
2.71875
3
[]
no_license
<?php /** * Install the Navigation module * Install PageMenu * @author spaceone */ class GWF_NaviInstall { public static function onInstall(Module_Navigation $module, $dropTable) { return GWF_ModuleLoader::installVars($module, array( 'lockedPM' => array(false, 'bool'), )); } public static function Page...
true
db961fc2776a5d5b97df3a18936d933fa594bdf4
PHP
MrMime/spqrriskonline
/library/class.CombatManager.php
UTF-8
3,034
3.53125
4
[]
no_license
<?php class CombatManager { /** * * Make a terran attack from Player1 to Player2 * @param Integer player1 unit * @param Integer player2 unit * @return array of number of unit lost */ static function terranAttack($player1,$player2,&$logManager,$language){ $dices = DiceManager::rollCombat...
true
51824fcf32aae499824f7d971537a695811f3ce4
PHP
yaoguais/phpctags.vim
/tests/Parser/UseTest.php
UTF-8
3,916
2.578125
3
[ "Apache-2.0" ]
permissive
<?php namespace Tests\Parser; class UseTest extends \Tests\BaseTest { public function testParseUse() { $cases = [ [ '<?php use A\B\ClassC;', [ 'classc' => [['A\B\ClassC', \PhpCTags\Parser\Use_::TYPE_NORMAL, 2]], ], ...
true
0b8c9ad9176afda0be91d81b14a9d679c8bddddc
PHP
phpwutz/stomp-php
/tests/Unit/Stomp/FrameTest.php
UTF-8
1,611
2.71875
3
[ "Apache-2.0" ]
permissive
<?php /* * This file is part of the Stomp package. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Stomp\Tests\Unit\Stomp; use Stomp\Frame; class FrameTest extends \PHPUnit_Framework_TestCase { /** @test */ publ...
true
7201cc183598ca516c57cf05882aa91e77785140
PHP
KantoWatanabe/Slim-App
/src/Middleware/ExampleMiddleware.php
UTF-8
834
2.671875
3
[]
no_license
<?php namespace App\Middleware; use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Server\MiddlewareInterface as Middleware; use Psr\Http\Server\RequestHandlerInterface as RequestHandler; use Psr\Container\ContainerInterface; class ExampleMiddlewa...
true
254e5efa1d53387033b81723882f31ed15ef89bb
PHP
filmtools/polynomial
/src/MultipleInterpolator.php
UTF-8
1,091
2.75
3
[]
no_license
<?php namespace FilmTools\PolynomialModel; use DrQue\PolynomialRegression; class MultipleInterpolator implements CoefficientsProviderInterface { use CoefficientsProviderTrait, CoefficientsAssertionTrait; /** * @param iterable|CoefficientsProviderInterface $coefficients */ public funct...
true
91935dddf0b500764cfc0c61ce4b6cd2ee4c1278
PHP
abahrisd/php_loft
/hw4/Tariffs/AbstractTariff.php
UTF-8
2,502
3.203125
3
[]
no_license
<?php namespace hw4\Tariffs; use Exception; use hw4\Traits\AddDriver; use hw4\Traits\AddGPS; abstract class AbstractTariff implements TariffInterface { use AddGPS; use AddDriver; protected $pricePerKm = 0; protected $pricePerMin = 0; protected $driversAge = 0; protected $isAddGPS = false; ...
true
ed8ffd0425d9388c7de9dbd8936372227b4ec99e
PHP
originphp/cache
/tests/Engine/ArrayEngineTest.php
UTF-8
3,319
2.578125
3
[ "MIT" ]
permissive
<?php /** * OriginPHP Framework * Copyright 2018 - 2021 Jamiel Sharief. * * Licensed under The MIT License * The above copyright notice and this permission notice shall be included in all copies or substantial * portions of the Software. * * @copyright Copyright (c) Jamiel Sharief * @link https://www....
true
360dc972efad7a46f8b1d87239ffdd8b9b4ac050
PHP
SOF3/static-overloads
/src/Signature.php
UTF-8
2,293
2.921875
3
[ "Apache-2.0" ]
permissive
<?php /* * static-overloads * * Copyright (C) 2017 SOFe * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
true
5540151c793c3e7e8961d59b817e0d3386df1c82
PHP
mevoghenero/Projects
/pnation/app/Repositories/Subject/SubjectRepositoryInterface.php
UTF-8
282
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Subject; interface SubjectRepositoryInterface { public function getAll(); public function getById($id); public function createSubject($attributes); public function updateSubject(array $attributes, $id); public function deleteById($id); }
true
7a219931defb4c90a22878f2c34bbdddcbdf4521
PHP
davidfig/name-generator
/populate.php
UTF-8
4,365
3.03125
3
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
<?php /* https://github.com/davidfig/name-generator */ namespace YYFNG; require "database.php"; //define (TEST, "Dwarf - LOTR (Wikipedia)"); $p = new Populate(); if (defined(TEST)) { echo '<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head>'; echo "Testing ".TEST."<br>"; $p->testSou...
true
6d62c1b23fa9d3848e3b74da60b40757223088de
PHP
Maenhalah1/Gallery-System
/admin/classes/users.php
UTF-8
7,557
2.796875
3
[]
no_license
<?php class users extends db_object { protected static $db_table = "users"; protected static $db_table_fields = array("username", "password","email", "first_name", "last_name","user_image"); public $id; public $username; public $password; public $email; public $first_name; public $last_n...
true
cc6f312e7f064080ed1f23c14a0cb0c95d822b95
PHP
pedrilla/light
/src/Light/Filter/HtmlSpecialChars.php
UTF-8
321
2.796875
3
[]
no_license
<?php declare(strict_types = 1); namespace Light\Filter; /** * Class HtmlSpecialChars * @package Light\Filter */ class HtmlSpecialChars extends FilterAbstract { /** * @param $value * @return mixed|string */ public function filter($value) { return htmlspecialchars($value); } ...
true
cdec8f0f88d451cba94c15c2558db999b6698c05
PHP
Aspectus-PHP/terminal
/src/TerminalDevice.php
UTF-8
4,932
2.78125
3
[ "MIT" ]
permissive
<?php namespace Aspectus\Terminal; use Amp\ByteStream\ClosedException; use Amp\ByteStream\ReadableResourceStream; use Amp\ByteStream\ReadableStream; use Amp\ByteStream\StreamException; use Amp\ByteStream\WritableResourceStream; use Amp\ByteStream\WritableStream; use Amp\DeferredCancellation; use Amp\Future; use Aspec...
true
de0b425debd69a044b8588d7603a2e311ae7ce5b
PHP
harshit-123/Hospital-Help-Project
/fact.php
UTF-8
983
3.140625
3
[]
no_license
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Factorial</title> </head> <body> <h1>Factorial:</h1> <?php if(isset($_POST["B2"])) { if(isset($_POST["B1"]))unset($_POST["B1"]); unset($_POST["B2"]); } if(isset($_POST["B1"])) { unset($_POST["B1"]); $n=$_...
true
ee7eb9d976cae1cf5b6020364739be81c2759ccf
PHP
ChihyuKah/mysql
/model/dataReader.php
UTF-8
669
3.03125
3
[]
no_license
<?php class dataReader extends connection { public function dataRead() { $sql = "SELECT * FROM students.student ORDER BY id ASC "; $stmt = $this->openConnection()->prepare($sql); $result = $stmt->execute([]); $user = $stmt->fetchAll(PDO::FETCH_ASSOC); return $user; ...
true
5b5335fc2adb3199c3274cb37c323e373380de21
PHP
marianomayo/trabajo_practico_WEB_2
/model/UserModel.php
UTF-8
1,508
2.59375
3
[]
no_license
<?php require_once './controller/UserController.php'; class UserModel { private $db; function __construct(){ $this->db= new PDO('mysql:host=localhost;'.'dbname=db_ropa;charset=utf8', 'root', ''); } function getusuario($nombre){ $query= $this->db->prepare('SELECT * FROM usu...
true
2ead8952cc602fb87c427705c39590d55b581055
PHP
luismec90/dev
/app/models/Shop.php
UTF-8
3,217
2.53125
3
[ "MIT" ]
permissive
<?php class Shop extends \Eloquent { public static $createRules = [ 'name' => 'required', 'link' => 'required|alpha_dash|unique:shops', 'town_id' => 'required|exists:towns,id', 'email' => 'required|email', 'administrator_...
true
1b1feab4ffefbec14527923217850543b0dae968
PHP
ortega-alex/php-mysql-mvc
/class/nota/nota_controller.php
UTF-8
2,193
2.6875
3
[]
no_license
<?php require_once "nota_model.php"; require_once "nota_view.php"; /** * */ class nota_controller { var $objView; var $objModel; function __construct() { $this->objModel = new nota_model(); $this->objView = new nota_view(); } public function drawContentPage($strAction){ $strUsuario = ...
true
49d4ca6aee8ba98f032b62dee56557f9a3f57a45
PHP
alchemy-fr/PHPExiftool
/lib/PHPExiftool/PHPExiftool.php
UTF-8
2,145
2.703125
3
[ "MIT-0", "MIT" ]
permissive
<?php namespace PHPExiftool; use PHPExiftool\Driver\TagGroupFactory; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; use PHPExiftool\Exception\DirectoryNotFoundException; class PHPExiftool { const v = "3.1.2"; const ROOT_NAMESPACE = "PHPExiftool\\Driver"; const SUBDIR = "TagGroup"; private stri...
true
5a4569710417efac7f3cfaa3ee9e120e65902985
PHP
GhimpuLucianEduard/ubb-ir-2016-2019
/web/xampp/work/Q&A/getIntrebari.php
UTF-8
710
2.65625
3
[]
no_license
<?php include "dbconfig.php"; $Connection = new mysqli($servername, $username, $password, $dbname); $cmd = "select i.text, i.data, u.email, u.avatar, i.id from intrebari i inner join users u on i.user = u.id ORDER by i.data"; $stmt = $Connection->prepare($cmd); $stmt->execute(); $stmt->bind_result($col1...
true
1bf596c2fc69bcb86034ac037c21c8d123f136a2
PHP
zhangjingyang/php-coach
/1/32/1.php
UTF-8
135
2.6875
3
[]
no_license
<?php //展示函数的灵活性,复用性 function mobile($tel){ return substr($tel,0,-4).'****'; } echo mobile('13998674839');
true
f52387f2ca841214f39c398af3a774ee01cc58b6
PHP
TobiasKrais/d2u_helper
/lib/d2u_addon_backend_helper.php
UTF-8
34,327
2.5625
3
[ "MIT" ]
permissive
<?php /** * @api * Offers methods for Redaxo backend forms, used by addons published by * www.design-to-use.de. */ class d2u_addon_backend_helper { /** * Create a HTML String with Redaxo Media Buttons for managing the element * postition. * @param int $field_id Name of die media field * @ret...
true
2b2056ac774825e29a1258d0b8b4100639e24136
PHP
alexica3000/about_php
/code/4_standards/home/03_output/src/Classes/First.php
UTF-8
169
3.125
3
[]
no_license
<?php namespace App\Classes; use App\Interfaces\Formatter; class First { public function format($string) { return ucfirst($string) . PHP_EOL; } }
true
5189e9d8b7ffab72a73f6832b0695910ab50106f
PHP
mateotisljar/webdip_zadaca5
/dnevnik.php
UTF-8
685
2.515625
3
[]
no_license
<?php include 'baza.class.php'; class Dnevnik { public static function pisiUDnevnik($korisnik,$prezime,$id_korisnika,$ime,$url,$datum_vrijeme,$greska,$akcija){ $baza = new Baza(); $upit = "insert into dnevnik (datum_vrijeme, id_korisnika, korisnick_ime, ime, prezime, skripta, greska,akcija) values('".$da...
true
da8fd7fb92cff7d2c71648f3d7a8dcbd27a9db21
PHP
denovolab/class4_fusion_v5
/web/app/views/reports_db/term_usage_report_csv.ctp
UTF-8
2,482
2.53125
3
[]
no_license
<table class="list"> <thead> <tr> <?php foreach($show_fields as $field): ?> <td><?php echo $replace_fields[$field]; ?></td> <?php endforeach; ?> <td><?php __('CDR Count'); ?></td> <td>Percentage of calls(%)</td> <td><?php __('Dura...
true
5972cb0c332b002bec2a425412ed7fa297a801de
PHP
FredPeal/canvas-core
/src/Traits/FileManagementTrait.php
UTF-8
5,651
2.53125
3
[]
no_license
<?php declare(strict_types=1); namespace Canvas\Traits; use Phalcon\Http\Response; use Phalcon\Validation; use Phalcon\Validation\Validator\File as FileValidator; use Canvas\Exception\UnprocessableEntityHttpException; use Canvas\Models\FileSystem; use Canvas\Filesystem\Helper; use Baka\Http\QueryParser; use Canvas\H...
true
a509d6e20fcca8abc1104867c1188299ccad29ca
PHP
xkevas24/xkevas24.github.io
/ziondeng_static/app/time_ajax.php
UTF-8
1,064
2.578125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: xkevas * Date: 2019/10/7 * Time: 17:25 */ $con=mysqli_connect("localhost","root","","ziondeng"); //检查是否有该IP的记录 function getIp() { if (!empty($_SERVER["HTTP_CLIENT_IP"])) { $cip = $_SERVER["HTTP_CLIENT_IP"]; } else if (!empty($_SERVER["HTTP_X...
true
c619ce818d9f09f9f8b1457756a3a622c1cb0d83
PHP
oumarsowbbsy/table_de_multiplication
/resultat.php
UTF-8
661
3.03125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <a href="traitement.php"> rejouer</a> </body> </html> <?php $nombre1 ...
true
3f778bee0f4c7ed3f8fb61a47ed959777df506e4
PHP
raul881007/findaway_backend
/src/DataFixtures/SpecicOutcomeFixtures.php
UTF-8
1,611
2.515625
3
[]
no_license
<?php namespace App\DataFixtures; use App\Entity\NSpecicOutcome; use App\Entity\NSpecicOutcomeTranslation; use App\Entity\Language; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Common\Persistence\ObjectManager; /** * Class SpecicOutcomeFixtures * @package App\DataFixtures */ class SpecicOutcomeFixture...
true
e403bafef5e89162573696da9e10c470900b56a7
PHP
Hagfjall/EITF05-web-security
/websec/database.inc.php
UTF-8
6,883
3.40625
3
[]
no_license
<?php class Database { private $host; private $userName; private $password; private $database; private $conn; private $iterations; /** * Constructs a database object for the specified user. */ public function __construct($host, $userName, $password, $database) { $...
true
4a5553b66d101b34262492d48d22a5f1c320674d
PHP
ovy4you/hero
/src/Game/Hero/Bot.php
UTF-8
781
3
3
[]
no_license
<?php namespace App\Game\Hero; class Bot extends AbstractCharacter { public function __construct($info) { parent::__construct($info); $this->_characterStats['health'] = rand(60, 90); $this->_characterStats['strength'] = rand(60, 90); $this->_characterStats['defence'] = rand(4...
true
6ad05e781b46c99a7684ca8b4f2f00e829f37c46
PHP
alexrogeriodj/CRUD_PHP_MATERIALIZECSS
/CRUD_PHP_MATERIALIZECSS-master/banco_de_dados/create.php
UTF-8
1,040
2.546875
3
[ "MIT" ]
permissive
<?php session_start(); include_once 'conexao.php'; $nome = filter_input(INPUT_POST, 'nome', FILTER_SANITIZE_SPECIAL_CHARS); $email = filter_input(INPUT_POST, 'email', FILTER_VALIDATE_EMAIL); $telefone = filter_input(INPUT_POST, 'telefone', FILTER_SANITIZE_NUMBER_INT); $querySelect = $link->query("select ...
true
8d54e7c9285c7dc86412dd44aad8e275e177415e
PHP
hrkngt/CafeCross
/PhpFiles/db_connect.php
UTF-8
785
2.671875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: HARUKI * Date: 2018/01/17 * Time: 19:51 */ class DB_CONNECT { //constructor function __construct() { //connecting to database $this -> connect(); } function __destruct() { //closin...
true
b5a0993148f798308c52887f112416eef50d6090
PHP
dunghuava/gianhanew
/application/models/Musertrackers.php
UTF-8
602
2.515625
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * Model Users * * @author Pham Quoc Hieu quochieuhcm@gmail.com or thietkeweb.qh@gmail.com | 0949.133.224 * @copyright @2015 */ class Musertrackers extends MY_Model { protected $table_name='usertrackers'; public function __construct() { ...
true
bc201ed6ce9d9bbb47905a055697405f3419d172
PHP
senechalloic/ZZ2Chat
/src/send_messages.php
UTF-8
854
3.046875
3
[]
no_license
<?php #This function permit to send a message session_start(); if(isset($_POST['submit']))// We verify that the user has entered a message { $message = $_POST['message']; if(isset($_SESSION['pseudo']))// A connected user send the message { $pseudo = $_SESSION['pseudo']; $randimg = $_SESSION['randimg']; } else...
true
2cbd4e04982ed1e2fd066bf567969e5db8fef8c6
PHP
northdpole/ZapWorkshopAppsec2017
/Access_To_Unit_Tests/app/fooTest.php
UTF-8
2,021
2.515625
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; use \Facebook\WebDriver\Remote; class fooTest extends TestCase { private $proxy = 'http://127.0.0.1'; private $proxy_port = '8090'; static private $webDriver = null; private $wdUrl = 'http://localhost:4444/wd/hub'; private $url = 'http://127.0.0.1:7070/app/ind...
true
ebb18094bf62094de2aa73149864a77c825b8f38
PHP
novosrpf/de
/utilerias/login.php
UTF-8
632
2.734375
3
[]
no_license
<?php require_once('constantes.php'); // 1.- Conexion a la base de datos $conexion = mysql_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD); if (!$conexion) { die("No se ha podido conectar al servidor: " . mysql_error()); } else { //echo "Correctamente conectados a la base de datos MySQL. <br/>"; ...
true
4283631ea935eeece822b75864ac0fe2db91be0a
PHP
vuchkov/json-api-client
/src/ItemHydrator.php
UTF-8
7,772
2.625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Swis\JsonApi\Client; use Illuminate\Support\Arr; use Illuminate\Support\Str; use Swis\JsonApi\Client\Exceptions\HydrationException; use Swis\JsonApi\Client\Interfaces\ItemInterface; use Swis\JsonApi\Client\Interfaces\ManyRelationInterface; use Swis\JsonApi\Client\Interfaces\OneRelationInterface; use S...
true
4ad4c49be450b2b5e13723ef6f2a2462a7295b46
PHP
giovanelizot/product_stock_system-deprecated-
/src/models/PedidosModel.php
UTF-8
1,771
2.75
3
[]
no_license
<?php class PedidosModel { public function getAll() { include('src/core/connection.php'); $data = $conn->query('SELECT * FROM pedidos;'); while($row = $data->fetch_assoc()){ $finalResult[] = $row; } return $finalResult; } public function addprod($pedido, $produtos_id, $qtd) { include('src/core/con...
true
70cbeee50cebe4cd2db6badb5700c8a4b84cfc27
PHP
uniwa/elke-teiath
/application/forms/Subforms/SynedriasiSelect.php
UTF-8
1,199
2.609375
3
[]
no_license
<?php class Application_Form_Subforms_SynedriasiSelect extends Dnna_Form_SubFormBase { protected $_defaultSynedriasi; protected $_required = true; public function __construct($options = array(), $view = null) { if(isset($options['default'])) { $this->_defaultSynedriasi = $options['defau...
true
750205270dcd53ec75d20ba72c78c6aebfacdad0
PHP
live-admin/business
/czy_www/colourlife/common/models/PersonalRepairsHandling.php
UTF-8
5,821
2.65625
3
[]
no_license
<?php /** * This is the model class for table "personal_repairs_handling". * * The followings are the available columns in table 'personal_repairs_handling': * @property integer $id * @property integer $personal_repairs_id * @property string $handling_object * @property integer $employee_id */ class PersonalRe...
true
fc8c65e4abd7c65409d7be0350e9c3669ead9337
PHP
eightbitdave/social-app
/app/Group.php
UTF-8
1,103
2.6875
3
[ "MIT" ]
permissive
<?php namespace App; use DB; use Illuminate\Database\Eloquent\Model; class Group extends Model { /** * The database table used by the model. * * @var string */ protected $table = 'groups'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = ['name', 'about']; ...
true
60ce1e19ba747d49a4c373da4b3ae24646e49f29
PHP
alexandremsouza1/shop-react-laravel
/server/app/Http/Controllers/Auth/AuthController.php
UTF-8
2,728
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Models\User; use Carbon\Carbon; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; use App\Rules\IsValidPassword; use Illuminate\Support\Facades\Hash; class AuthController extends Controller { /** * D...
true
082ca35d96685dc016d6f1022a27f724691b066f
PHP
dsilentobsrvr/Social-Networking
/profile.php
UTF-8
3,249
2.53125
3
[]
no_license
<?php ob_start(); ?> <?php $conn=mysql_connect('localhost','root','') or die(mysql_error()); mysql_select_db('socialnetworking', $conn) or die(mysql_error()); if(!isset($_COOKIE[id])) die("Login first!"); ?> <html> <head> <link rel="stylesheet" type="text/css" href="profile.css" /> <title>Profile</title> </h...
true
c7f50725e19db1480f9163ff4a19cf5f53046b31
PHP
lastguest/aeria
/classes/AeriaSES.php
UTF-8
1,138
2.609375
3
[ "MIT" ]
permissive
<?php // Exit if accessed directly. if( false === defined('AERIA') ) exit; class SesClientProxyForPHPMailer { private $phpmailer; public function __construct($phpmailer) { $this->phpmailer = $phpmailer; } public function Send() { // Build the raw email $this->phpmailer->preSend(); try { return Aeri...
true
619f42c75305aa0bc35833006b3bec6e0db1889b
PHP
jc438302/ICT2
/bullterrierrescue/login_oracle.php
UTF-8
1,650
2.765625
3
[]
no_license
<?php //must appear BEFORE the <html> tag session_start(); include_once('config_oracle.php'); if( isset($_POST["email"])&& isset($_POST["email"]) ) { $email = $_POST["email"]; $password = $_POST["password"]; if ($email && $password) { // if the user has just tried to log in //make the ...
true
e7ac511d7ae4dd92048432f72042b1844df4049b
PHP
manytimes1/tech-module-php
/04.Functions and Forms - Lab/10.RepeatString.php
UTF-8
201
3.109375
3
[ "MIT" ]
permissive
<?php $string = readline(); $count = intval(readline()); echo strRepeat($string, $count); function strRepeat($input, $multiplier) { $return = str_repeat($input, $multiplier); return $return; }
true
be35c217bb1443e380e97cc71e2f3d998863fdd6
PHP
gistol/SourceBook
/src/ch04/batch06_2/Runner.php
UTF-8
351
2.625
3
[]
no_license
<?php declare(strict_types=1); namespace popp\ch04\batch06_2; include "C:/USR/www/SourceBook/vendor/autoload.php"; class Runner { public static function run() { /* listing 04.19 */ $p = new ShopProduct(); print $p->calculateTax(100) . "\n"; print $p->generateId() . "\n"; /* /listing 0...
true
6e31ab5e223b1d99933349421aaab54fc370f105
PHP
duytc/ur-api
/src/UR/DomainManager/ConnectedDataSourceManagerInterface.php
UTF-8
900
2.5625
3
[ "MIT" ]
permissive
<?php namespace UR\DomainManager; use Doctrine\DBAL\Query\QueryBuilder; use UR\Model\Core\ConnectedDataSourceInterface; use UR\Model\Core\DataSetInterface; use UR\Model\Core\DataSourceInterface; use UR\Model\PagerParam; interface ConnectedDataSourceManagerInterface extends ManagerInterface { /** * @param Da...
true
2082a46ee312a6923f77fb5a7e341483b014c5b5
PHP
prof1983/myphpexample
/lib/CheckUnitContentUnit.php
UTF-8
737
2.65625
3
[]
no_license
<?php include_once('../lib/Globals.php'); include_once('../lib/Print.php'); /** * Проверяет наличие ChildUnitRevId в контексте UnitRevId. Если сборочная единица не найдена, то возвращает true, иначе false. */ function CheckUnitContentUnit($Db, $UnitRevId, $ChildUnitRevId, $DebugLevel) { global $DEBUG_SQL; $Sql =...
true
0b5406b44d8dfcdcdf2a02d2077af58156b5631c
PHP
haposoft/json-converter
/app/Converters/GhostJsonConverter.php
UTF-8
7,322
2.734375
3
[]
no_license
<?php namespace App\Converters; use Illuminate\Support\Facades\Log; class GhostJsonConverter { const INPUT_FILE = 'storage/app/public/hapolog.ghost.2021-08-29.json'; const OUTPUT_FILE = 'storage/app/public/hapolog.ghost.4.json'; protected $posts; protected $users; protected $tags; public fu...
true
646c8904e5b5961c6a8e3a3b65ae039d0ebe7c86
PHP
Floxim/floxim-cache
/Manager.php
UTF-8
2,704
3.0625
3
[]
no_license
<?php namespace Floxim\Cache; /** * Cache manager * * @package Floxim\Cache */ class Manager { /** * Storage repository * * @var array */ protected $storages = array(); /** * Default prefix for keys * * @var string */ protected $keyPrefix = ''; /** ...
true
2b620d9a315677e56a4372579c9c773712a0474b
PHP
cultuurnet/calendar-summary-v3
/tests/Single/SmallSinglePlainTextFormatterTest.php
UTF-8
8,933
2.515625
3
[]
no_license
<?php declare(strict_types=1); namespace CultuurNet\CalendarSummaryV3\Single; use Carbon\CarbonImmutable; use CultuurNet\CalendarSummaryV3\CalendarSummaryTester; use CultuurNet\CalendarSummaryV3\Offer\BookingAvailability; use CultuurNet\CalendarSummaryV3\Offer\Offer; use CultuurNet\CalendarSummaryV3\Offer\OfferType;...
true
3bd12afc81ce3443fc05c84c05709ac15a5bde2a
PHP
akbardhany/Project-Manajemen
/config/index.php
UTF-8
261
2.609375
3
[]
no_license
<?php session_start(); if (empty($_SESSION['username'])){ header("Location:../login.php"); }else{ if ($_SESSION['username']) { echo "Log in as ".$_SESSION['username']; }else { header("Location:../login.php"); } } ?>
true
3bf1728d97866047677df1ea68f8b10e15ea8c07
PHP
nguoicodon95/ARCANESOFT
/app/Bases/Providers/RouteServiceProvider.php
UTF-8
720
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Bases\Providers; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; use Illuminate\Routing\Router; /** * Class RouteServiceProvider * * @package App\Bases\Providers * @author ARCANEDEV <arcanedev.maroc@gmail.com> */ abstract class RouteServiceProvider ...
true
7005d1b57340a73c9c6c49eccfe8896374f436ed
PHP
silverstripe/silverstripe-hybridsessions
/src/Crypto/CryptoHandler.php
UTF-8
438
2.75
3
[ "BSD-3-Clause" ]
permissive
<?php namespace SilverStripe\HybridSessions\Crypto; interface CryptoHandler { /** * @param string $data * * @return string */ public function encrypt($data); /** * @param string $data * * @return string */ public function decrypt($data); /** * @return...
true
47997ecbf1735000fc5002779b90ce2f46568128
PHP
zylinkusopen/commonsense-php-lib
/objects/Group.php
UTF-8
7,152
2.84375
3
[ "Apache-2.0" ]
permissive
<?php error_reporting(E_ALL); /** * sense dashboard - Group.php * * This file is part of sense dashboard. * * @author Remi Appels <remi@sense-os.nl> */ if (0 > version_compare(PHP_VERSION, '5')) { die('This file was made for PHP 5'); } /** * The class Group handels all the group actions * * @access publ...
true
4e00083d5fbd4dbf7b2e447b596b903641094ab6
PHP
afeynaud/WCS_Quest_PHP_OOP3
/Bicycle.php
UTF-8
206
2.953125
3
[]
no_license
<?php require_once 'Vehicle.php'; class Bicycle extends Vehicle { private bool $hasLuggageRack = true; public function getHasLuggageRack(): bool { return $this->hasLuggageRack; } }
true
adc1f320e1a55aff4cf0fcce816e6beb3de4836d
PHP
fabio-tenorio/boutique
/Application/Models/ModelAgenda.php
UTF-8
2,656
2.640625
3
[]
no_license
<?php Namespace App\Application\Models; use App\Application\Model; class ModelAgenda extends Model { // vai no ModelAgenda e parte no ControllerAgenda public function selectReservations() { $tab=[]; $pdo=$this->connect_db('boutique'); $reqlogin = $pdo->prepare("SELECT r.id, r.id_utili...
true
609682d0fb8ac6a497cee3fc2ac183c902e4db3c
PHP
fsolutions/region750
/app/Bundles/Import/MainImport.php
UTF-8
3,433
2.671875
3
[]
no_license
<?php namespace App\Bundles\Import; use Illuminate\Support\Facades\Storage; use PhpOffice\PhpSpreadsheet\IOFactory; use Illuminate\Support\Facades\Validator; use PhpOffice\PhpSpreadsheet\Reader\Exception; class MainImport { /** * Full path to upload import file. * * @var */ private $full...
true
8998acde329108f610a5031b7f31f5fd444b5f59
PHP
purnami/praktikumwebA
/FinalProject/app/models/Pinjam_model.php
UTF-8
4,603
2.796875
3
[]
no_license
<?php class Pinjam_model{ private $table = 'pinjam'; private $db; public function __construct(){ $this->db = new Database; } public function getAllPinjam(){ $this->db->query('SELECT * FROM ' . $this->table); return $this->db->resultSet(); } public function tambahDataPinjam($dat...
true
22a68cda27280f4a3c326dba2f074ee6129106ce
PHP
fozeutakoudjou/patate
/core/models/Log.php
UTF-8
2,051
2.671875
3
[]
no_license
<?php namespace core\models; class Log extends Model{ protected $id; protected $idUser; protected $type; protected $data; protected $action; protected $dateAdd; protected $trackingData; protected $additionalInfos; protected $definition = array( 'entity' => 'log', 'primary' => 'id', 'auto_increment' => t...
true
1913e10dc26d0611de4f428ba9e87af19932b54c
PHP
vrinconoriontek/Mobius
/application/models/Provider_model.php
UTF-8
4,156
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * Provider_model class * * @author Victor Rincon */ class Provider_model extends MY_Model { /** * Name of the table for this model. * @var string */ protected $_table = 'providers'; /** * Validation rules ...
true