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
446de95e60455640088ca6f9753f57869af637d0
PHP
EduGatewayTeam/WhiteTumbler
/app/Socialite/ExtendSocialite.php
UTF-8
657
2.78125
3
[]
no_license
<?php namespace App\Socialite; use SocialiteProviders\Manager\SocialiteWasCalled; class ExtendSocialite { public const STUDENT_PROVIDER = StudentSocialiteProvider::IDENTIFIER; public const LECTURER_PROVIDER = LecturerSocialiteProvider::IDENTIFIER; /** * Register custom providers. * @param ...
true
58d0eca3fe1f042224f703887ac7c763d84c3e14
PHP
ilakkiya12/php-fw-ilakkiya
/src/Metinet/Core/Config/ChainLoader.php
UTF-8
531
2.6875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: lp * Date: 16/01/2018 * Time: 14:24 */ namespace Metinet\Core\Routing; class ChainLoader implements FileLoader { /** @var FileLoader[] */ private $loaders; public function __construct(array $loaders) { $this->loaders = $loaders; } public f...
true
d14cfb06a878fcee1e2f088aab6003e62ecc1c3a
PHP
sshirima/guliopoa
/app/Models/Service.php
UTF-8
1,950
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * Class Service * @package App\Models */ class Service extends Model { const COLUMN_ID = 'id'; const COLUMN_SERVICE_NAME = 'service_name'; const COLUMN_SERVICE_BRAND = 'service_brand'; const COLUMN_PREVIOUS_PRICE = 'previous_p...
true
b714ff44ef3b12f2765f0942402008f5bcb3dbc2
PHP
BrasilBlackhat/curso-php
/aula1/if.php
UTF-8
1,510
3.234375
3
[]
no_license
<?php /* $a == $b Igual Verdadeiro (TRUE) se $a é igual a $b. $a === $b Idêntico Verdadeiro (TRUE) se $a é igual a $b, e eles são do mesmo tipo. $a != $b Diferente Verdadeiro se $a não é igual a $b. $a <> $b Diferente Verdadeiro se $a não é igual a $b. $a !== $b Não idêntico Verdadeiro de $a...
true
5ead7e6b0d59ce2ef5bff14f0e1f8724eda51613
PHP
jurikaca/timetrackingBE
/app/Http/Controllers/TimesController.php
UTF-8
1,539
2.890625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Time; use Illuminate\Http\Request; class TimesController extends Controller { public function __construct() { } /** * function to store time logged information on db * * @param Request $request, request data * @return json */ ...
true
7411b23de41c655b2fda65929df652af63647845
PHP
razvancurcudel/database
/src/PrefixConnectionDecorator.php
UTF-8
841
2.921875
3
[ "MIT" ]
permissive
<?php /* * This file is part of KoolKode Database. * * (c) Martin Schröder <m.schroeder2007@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace KoolKode\Database; /** * Connection decorator that applies a schem...
true
c72a2a4098c5487c4fa350270f8c77963848f86e
PHP
Fenzland/php-cli
/src/Args.php
UTF-8
2,864
3.078125
3
[ "MIT" ]
permissive
<?php declare( strict_types= 1 ); namespace Fenzland\CLI; use FenzHelpers\TGetter; //////////////////////////////////////////////////////////////// class Args implements IArgs { use TGetter; /** * Constructor * * @access public * * @param array $args */ public function __construct( array$args ) ...
true
fca18fb8c0376b94eb093009370d7693904b3113
PHP
studies-and-exercises/formacao-desenvolvedor-php-alura
/2 - Avançando com PHP Arrays Strings Função e Web/fixar_conteudo/placas.php
UTF-8
423
2.78125
3
[]
no_license
<?php $carros = [ 'PMS-1020' => [ "modelo" => "Bravo", "marca" => "Fiat", "dono" => "Pedro" ], 'RMS-1022' => [ "modelo" => "Fiesta Hatch", "marca" => "Ford", "dono" => "Karla" ], 'SMS-1025' => [ "modelo" => "Kicc", "marca" => "Nissan", "dono" => "Alvaro" ], ]; forea...
true
1b0bf2b75358ff8f055e9d373b98387c59407429
PHP
laravel-dojo/201507-ntpc-php-example
/24-trait/index.php
UTF-8
310
3.46875
3
[]
no_license
<?php require 'Animal.php'; require 'Swimmable.php'; require 'Dog.php'; require 'Cat.php'; require 'Human.php'; echo '<pre>'; $dog = new Dog; echo 'dog is '; $dog->swim(); echo "\n"; $cat = new Cat; echo 'cat is '; $cat->swim(); echo "\n"; $human = new Human; echo 'human is '; $human->swim(); echo "\n";
true
93a103da489ad406da7368ff07b9c78a718c57d5
PHP
mandriv68/documents
/classes/controllers/FrontController.php
UTF-8
2,722
2.96875
3
[]
no_license
<?php /** * Description of FrontController * * @author admin */ class FrontController { private $_controller = ''; private $_action = ''; private $_params = []; private static $instance; /* объявляем синглтон */ public static function getInstance() { if (!(self::$instanc...
true
cd42d85056c64330940f72457403ff79828f18bf
PHP
LaurentBouquet/composer-tp
/src/index.php
UTF-8
723
2.640625
3
[ "MIT" ]
permissive
<?php require_once '../vendor/autoload.php'; use Monolog\Logger; use Monolog\Handler\StreamHandler; $logger = new Logger('main'); $logger->pushHandler(new StreamHandler(__DIR__ . '/../log/app.log', Logger::DEBUG)); $logger->info('First message'); //print("OK"); // Définir le dossier où se trouvent les templates $l...
true
c0c474870db35361e9baf5d6e63b69d45ffcdadc
PHP
dwiky24/Tugas-Hosting
/functions.php
UTF-8
640
2.71875
3
[]
no_license
<?php function query($query) { global $conn; $result = mysqli_query($conn,$query); $rows = []; while($row = mysqli_fetch_assoc($result) ) { $rows[] = $row; } return $rows; } function cari($keyword, $type) { if ($type == "semua") { $query = "SELECT*FR...
true
6bd18e06f3c91d8e6dc42da9df6f9fbda207990e
PHP
AndreSSouza/Definitivo
/_interno/admin/Chamada.php
UTF-8
4,997
3.140625
3
[]
no_license
<!doctype html> <html> <head> <<<<<<< HEAD <meta charset="utf-8"> <title>Chamada</title> </head> <body> <form method='post'> Qual desses alunos faltou hj?<br> <?php $host = "localhost"; $user = "root"; $pass = ""; $db = "testechamada"; $con = mysqli...
true
faa1a5c9e448d4d2c5098b24678499afb8604c79
PHP
joingi/school_sem1
/week-36/webshop-2/index.php
UTF-8
1,325
2.90625
3
[]
no_license
<!DOCTYPE html> <?php ini_set('display_errors', 0); error_reporting(E_ERROR | E_WARNING | E_PARSE); ?> <html> <head> <title>showProducts</title> </head> <body> <div class="english"> <img src="" alt=""> </div> <div class="danish"> <img src="" alt=""> </div> <ul> <?php $aLanguage = ["en", "dk"]; ...
true
9f32bb51cccc7baa2f4faf22b51bedb07b502090
PHP
wangdan3024/backend-skeleton
/modules/admin/modules/wechat/forms/BillDownload.php
UTF-8
691
2.625
3
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
<?php namespace app\modules\admin\modules\wechat\forms; /** * 对账单下载 * * @package app\modules\admin\modules\wechat\forms * @author hiscaler <hiscaler@gmail.com> */ class BillDownload extends \yii\base\Model { public $type; public $date; public function init() { parent::init(); $t...
true
3096688e40b3c007ab01ef637679319a45ddd2f2
PHP
mashaod/Booker
/server/utils/Db.php
UTF-8
564
3.125
3
[]
no_license
<?php /* * Class: DateBase * * Model a DateBase on the system. Support connect to DB and get data from * the database for transmission in the model. */ class DateBase { private static $db = null; public static function getInstance() { if(is_null(self::$db)) { ...
true
d2ecb72e3006de9989633feeebef24cf73c348a2
PHP
franciscobaumert/apk_restaurant_0
/ajax/editar_configelect.php
UTF-8
4,272
2.578125
3
[]
no_license
<?php include('is_logged.php');//Archivo verifica que el usario que intenta acceder a la URL esta logueado /*Inicia validacion del lado del servidor*/ if (empty($_POST['fac_ele'])) { $errors[] = "Nombre de empresa esta vacío"; }else if (empty($_POST['usuariosol'])) { $errors[] = "Teléfo...
true
65739d8d1d53c26ceaadbe1edd6b1103c02487a0
PHP
Alan-thapa98/php-courese
/3dbconn.php
UTF-8
913
3.28125
3
[]
no_license
<!-- Creating a Table in MySQL using php --> <?php // Connecting to the Database $servername = "localhost"; $username = "root"; $password = ""; $database = "dbharry"; // Create a connection $conn = mysqli_connect($servername, $username, $password, $database); // Die if connection was not successful ...
true
fb113263112cb0608e67bbe6748e4aa48a1b9c69
PHP
AndreeNY/laravel-almacen
/app/controllers/TaskController.php
UTF-8
575
2.875
3
[ "MIT" ]
permissive
<?php class TaskController extends BaseController { //Base Controller: necesario. //metodos o funciones para el controlador. public function getTasks() { $users = Task::all(); return Response::json($users); } public function getTask($id) { return 'Task with id ' . $id; } public function saveTask() { ...
true
05e09d2cfae3ace9cde3437ac2edd9ad7255df7f
PHP
riponghosh/kalien
/app/Formatter/APIFormatter.php
UTF-8
893
2.71875
3
[]
no_license
<?php namespace App\Formatter; use App\Formatter\Interfaces\IAPIFormatter; use App\ViewModels\IViewModel; use Illuminate\Contracts\Routing\ResponseFactory; class APIFormatter implements IAPIFormatter { private $response; public function __construct(ResponseFactory $response) { $this->response = ...
true
c7b25831ae4079ee12ad124cb6ae657287548cfe
PHP
aminelagh/Projet2_gm
/app/Http/Controllers/PDFController.php
UTF-8
2,028
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\User; use PDF; use DB; use Carbon\Carbon; class PDFController extends Controller { public function imprimer($param) { switch($param) { case 'users': return $this->printUsers(); break; ...
true
15e90ff2f9d2f0c3011d2b6b2bf61813d174300a
PHP
doaaMohmmed/hr
/module/Payment/src/Payment/Model/Person.php
UTF-8
933
2.921875
3
[]
no_license
<?php namespace Payment\Model; use Application\Contract\EntityInterface; class Person implements EntityInterface { protected $id; protected $employeeName; protected $dateOfBirth; protected $lkpReligionId; public function getId() { return $this->id; } public function setId($id) { ...
true
6cd0734d44b62268ce729e0f02609b30f3f897b1
PHP
auwfar/AdminLTE-CRUD-With-Codeigniter
/assets/phpexcel/Examples/18extendedcalculation.php
UTF-8
4,397
2.671875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "LicenseRef-scancode-warranty-disclaimer", "GPL-1.0-or-later", "LGPL-2.0-or-later", "LGPL-2.1-or-later", "GPL-2.0-only" ]
permissive
<?php /** * PHPExcel * * Copyright (C) 2006 - 2014 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
true
dbae6410b7b9924cadafb18c3f9752ebbe3110f1
PHP
AzonMedia/guzaba2
/src/Guzaba2/Http/QueueRequestHandler.php
UTF-8
1,850
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Guzaba2\Http; use Azonmedia\Apm\Profiler; use Guzaba2\Base\Base; use Guzaba2\Event\Event; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\MiddlewareInterface; use Psr\Http\Server\RequestHandlerInterface; /** * Class Q...
true
96241f2a960da3d63de7869b8caaba5476db0417
PHP
starnmoon1/larave_demo_shop
/app/Http/Repositories/Products/ProductRepo.php
UTF-8
707
2.828125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Repositories\Products; use App\Product; class ProductRepo implements ProductInterface { protected $product; public function __construct(Product $product) { $this->product = $product; } function getAll() { return $this->product->all(); } fun...
true
03d890c4de4c56d7b086ae01b63ef211711a843a
PHP
CodbitDeveloper/Codbit-Foods
/app/Http/Middleware/ChangeDatabase.php
UTF-8
521
2.53125
3
[]
no_license
<?php namespace App\Http\Middleware; use Config; use Closure; use DB; class ChangeDatabase { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { ...
true
2f0fdb4e442edb19a551f7d63141ec434c08e062
PHP
ZiyanK/auction-website-php
/change-password.php
UTF-8
2,050
2.75
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title>Registration</title> <style> input { margin: 0.5em 0.25em; } </style> </head> <body> <?php require('config.php'); if (isset($_REQUEST['username'])) { $username = stripslashes($_REQUEST['username...
true
77df2a7e6f6b6e43810020c800a2805c13fa46b1
PHP
torlopov/CardWay
/php/registratsia.php
UTF-8
1,669
3.03125
3
[]
no_license
<html> <head> <title>Example</title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> </head> <body> <? $link = mySqli_connect('localhost', 'bx1125_test2', '123456', 'bx1125_test2'); //доступ к базе данных function clearStr($data){ //убераем из строки все лишнее global $link; return mysqli_real_esca...
true
44636235f6cdb270092fd9531d814ddc9d5288bb
PHP
xulei1931/chlidren
/app/Models/Ci.php
UTF-8
387
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Ci extends Model { protected $table = 'ci'; public function getInfoByWord($word){ return Ci::where('word','=',$word)->first(); } public function getRandWordById($id){ $start = $id-2; $end = $id+3; return Ci::wh...
true
040784db93e0252222d3e7a8a2c5245015e26ca6
PHP
BureauVeritasPeru/CertificacionVehiculos
/app/class/entity/eUbgCountry.php
UTF-8
736
3.09375
3
[]
no_license
<?php /** * Object represents table 'ubg_country' * * @author: Junior Huallullo * @date: 2011-04-07 16:59 */ class eUbgCountry{ public $countryID; public $countryCode; public $countryName; public $active; public function __construct($countryID...
true
a1d05b46204ee3d825bceb58f80db48ba9092951
PHP
mithunmo/phpsample
/classes/mofilm/user/terms/set.class.php
UTF-8
4,396
2.8125
3
[]
no_license
<?php /** * mofilmUserTermsSet * * Stored in termsSet.class.php * * @author Dave Redfern * @copyright Mofilm (c) 2009-2010 * @package mofilm * @subpackage user * @category mofilmUserTermsSet * @version $Rev: 10 $ */ /** * mofilmUserTermsSet * * Manages user term relations. * * @package mofilm * @subp...
true
af78e66e3a9ef09ca7ca0d3a0b76285922dbb8ad
PHP
axwax/java-php-course
/ud2/ex775.php
UTF-8
528
2.78125
3
[]
no_license
<?php $mysqli = new mysqli("localhost", "axwax", "bee109", "ax"); if ($mysqli->connect_errno) { die("mysqli_connect failed: " . mysqli_connect_error()); } print "conectado a " . $mysqli->host_info . "<br/>\n"; $result = $mysqli->query("SELECT name FROM testtable", MYSQLI_USE_RESULT); //while ($row = $result->fetch...
true
c265070f8aa19e6d57bef2ba16915b6704cc642d
PHP
mitsuru793/sandbox
/php/2017-08-04_adapt_model_bind_of_adamwathan-form_to_multiple_models.php
UTF-8
3,958
3.21875
3
[]
no_license
<?php /* adamwathan/formのモデルへのbindを、複数モデルに対応させる。 inputのname属性には`user[0][name]`とは書けないため、`name[]`と書く。 レコードのカラム値以外の値が混ざると対応できない。 */ require_once __DIR__ . '/vendor/autoload.php'; use function Lib\puts; use AdamWathan\Form\FormBuilder; function main() { if (empty($_POST)) { $users = createUser(5); ...
true
1d04907a9d6588448fcba9da8822801e09837097
PHP
co1injcasey/PHP_SQL_Connection
/git/register.php
UTF-8
7,808
2.53125
3
[]
no_license
<?php $servername = "localhost"; // THE NAME OF YOUR LOCALSERVER, USUALLY LOCALHOST $username= "admin"; // CHANGE THIS TO YOUR DB USERNAME $password = "password!"; // CHANGE THIS TO YOUR DB PSWD FOR THE USERNAME ABOVE $dbname = "databaseName"; // CHANGE THIS TO THE NAME OF THE DATABASE $conn = new mysqli...
true
38bfcad8d02f889bdc3c4fc34d2cf3611fdd95cb
PHP
brucegust/kitchen
/adm/notes/article_doc_insert_execute.php
UTF-8
3,711
2.671875
3
[]
no_license
<?php session_start(); if (@$_SESSION['auth'] != "yes") { header("Location: default.php"); exit(); } include ("../carter.inc"); $cxn = mysqli_connect($host,$user,$password,$database) or die ("couldn't connect to server"); //this is a quick select statement so I can grab the class id and...
true
e817aa0e52925361dff4ab59d57bcf268599c0ac
PHP
filipekp/service
/admin/modules/menu/MenuDao.php
UTF-8
1,730
2.734375
3
[]
no_license
<?php namespace prosys\model; use prosys\core\mapper\SqlFilter, prosys\core\common\Functions; /** * Represents the menu data access object. * * @author Pavel Filípek * @copyright (c) 2014, Proclient s.r.o. */ class MenuDao extends MyDataAccessObject { public function __construct() { ...
true
051d052e452d29c62dd3aed253fb25b8b8b814f7
PHP
raymondchandra/asia_jaya
/app/database/seeds/AccountsTableSeeder.php
UTF-8
1,136
2.65625
3
[ "MIT" ]
permissive
<?php // Composer: "fzaninotto/faker": "v1.3.0" use Faker\Factory as Faker; class AccountsTableSeeder extends Seeder { public function run() { $faker = Faker::create(); Account::create([ 'username' => 'owner', 'password' => Hash::make('owner'), 'role' => 1, 'last_login' => $faker->dateTime($max ...
true
fd928cc2af09e578086b785ad7ceee3357be13f6
PHP
JudeChih/iscar_member
/app/Http/Controllers/APIControllers/MemberCar/ModifyMemberCar.php
UTF-8
13,668
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers\APIControllers\MemberCar; use Request; use DB; /** modifymembercar 會員修改車輛 * */ class ModifyMemberCar { /** * 會員修改車輛 * @param [string] $modacc [模組帳號] * @param [string] $modvrf [模組驗證碼] * @param [string] $sat [用戶登入存取憑證] ...
true
0c1a537ab78600d2cf20e2787d573bdd6c5ec821
PHP
Cyb3rNet/Cimpfony
/lib/connection.inc.php
UTF-8
1,956
2.546875
3
[ "MIT" ]
permissive
<?php /** * The Campfire connection classes * * This file contains the classes that make the API requests. * * @author Serafim Junior Dos Santos Fagundes <serafim@cyb3r.ca> * @copyright Copyright (c) 2010 Serafim Junior Dos Santos Fagundes Cyb3r Networks * @license MIT License * * @package Connections */ ...
true
411e5470a1ccff5b4f417f9d7c8e1d0516d242d2
PHP
0407324/Harrys-Hot-Sauce
/Harrys hot sauce/account.php
UTF-8
4,815
2.671875
3
[]
no_license
<?php include 'includes/core.php'; include 'includes/connection.php'; date_default_timezone_set('America/New_York'); error_reporting(E_ERROR | E_PARSE); if(loggedin()) { $_SESSION['Login_username'] = getuserfield('Login_username'); $accountID = $_SESSION['Login_account_id']; $query = "SELECT * FROM `Acco...
true
28f2dbb13534111f50f5961b2fb0636ef0e15d14
PHP
juve534/TIL
/PHP/GuzzleHttp/GuzzleFork.php
UTF-8
1,290
3.109375
3
[]
no_license
<?php /** * GuzzleHttp\Clientをfork */ class GuzzleFork { /** * @var Guzzle */ private $guzzle; public function __construct($obj) { $this->guzzle = $obj; } /** * URLを単独で実行 * * @param string $url [URL] * @return bool */ public function executeUrl...
true
bf2c53349d9d8bf51a675b4cb2a2aef2c9c659fd
PHP
mouaadBenAllal/boardgametournament
/app/Http/Controllers/Admin/Category/CategoryController.php
UTF-8
4,654
2.828125
3
[]
no_license
<?php namespace App\Http\Controllers\Admin\Category; use App\Components\FlashSession; use App\Http\Controllers\Controller; use App\Models\Category; use Illuminate\Http\Request; use Illuminate\Http\RedirectResponse; use Illuminate\Http\Response; /** * Class for handling everything for the category within the CMS. *...
true
a92c6b4919060c620f56151aa2742bf01e6b5ad1
PHP
VovchenkoMykyta/oct-mvc-ajax
/app/controllers/IndexController.php
UTF-8
343
2.515625
3
[]
no_license
<?php namespace controllers; use core\View; use models\MessageModel; class IndexController { public function index() { $messages = new MessageModel(); $view = new View(); $view->messages = $messages->all(); session_start(); $view->render('index_index_view.php', 'defa...
true
3f1716650c5abe6636ced4e10ed83a645d8410ca
PHP
jvpink200/democode
/image_upload.php
UTF-8
2,338
2.9375
3
[]
no_license
<?php include 'connection/dbconnection.php'; if(isset($_POST['bt-upload'])) { $target_dir="profile_photos/"; $target_file=$target_dir.basename($_FILES['img']['name']); $imgType=pathinfo($target_file,PATHINFO_EXTENSION); $imgSize=$_FILES['img']['size']/1024; //size in kb $check=getimagesize($_FILES['img']...
true
21c51647a9735576deabf772e0be42a0f5fe8618
PHP
StudentNiels/Project-web-app
/uploadvideoresult.php
UTF-8
1,673
2.9375
3
[]
no_license
<!doctype html> <html> <head> <style> h1{ font-size: 30px; } </style> <?php include('conn.php'); if (isset($_POST['but_upload'])) { $maxsize = 5242880000; $name = $_FILES['file']['name']; $titel =...
true
910cdfe78cec67acfce4e26e93d43fd29170a3e2
PHP
mediahost/mt
/app/model/entity/User/traits/UserPassword.php
UTF-8
1,974
2.671875
3
[]
no_license
<?php namespace App\Model\Entity\Traits; use DateTime; use Kdyby\Doctrine\MemberAccessException; use Nette\Security\Passwords; /** * @property-write $password * @property-read string $recoveryToken * @property-read DateTime $recoveryExpiration */ trait UserPassword { /** @ORM\Column(type="string", length=256, ...
true
6a20dbd2878111aae8090f65b1805a5631410bbe
PHP
TkachenkoMax/diploma_new
/database/migrations/2018_05_12_132718_add_new_fields_to_users_table.php
UTF-8
1,063
2.625
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddNewFieldsToUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('users', fu...
true
396269f429ea265fbd2feb323d5adf26a112bc1e
PHP
mikikg/whois_checher
/index.php
UTF-8
2,025
2.84375
3
[]
no_license
<?php //------------------------------------------------------------- // Simple Whois checker // // Author: A. Markovic <mikikg@gmail.com> //------------------------------------------------------------- define("MyWhoisChecker", true); //Check existence of engine class file $class_file = dirname(__FILE__) . "/inc/eng...
true
f95537ecda67806aba7eee6cf45e329407ed3d7f
PHP
netzonjoelui/test-backend-app
/tests/lib/CAntObjectTest.php
UTF-8
56,721
2.515625
3
[]
no_license
<?php // ANT Includes require_once(dirname(__FILE__).'/../../lib/AntConfig.php'); require_once(dirname(__FILE__).'/../../lib/Ant.php'); require_once(dirname(__FILE__).'/../../lib/AntUser.php'); require_once(dirname(__FILE__).'/../../lib/CAntObject.php'); require_once(dirname(__FILE__).'/../../lib/CAntObjectList....
true
0bc3c8af0176bf2a710f281c5b2f41d7555a7dd2
PHP
Tamayn/sctama30
/mission_4-1.php
UTF-8
3,446
2.875
3
[]
no_license
<?php //データベースへの接続、変数指定 $dsn='dataname'; $user='username'; $password='password'; $pdo=new PDO($dsn,$user,$password); //テーブルの作成 $sql="create table mission_4( id int not null auto_increment primary key, name char(32), comment text, date datetime, pass char(32) )"; $stml=$pdo->query($sql); ?> <!DOCTYPE html> <htm...
true
11828519f91207a197b4d3e0b1dc26eb9d82e12f
PHP
kallerha/bean
/src/DateTimeObject.php
UTF-8
516
2.828125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace FluencePrototype\Bean; use DateTime; use DateTimeZone; use JsonSerializable; use stdClass; class DateTimeObject extends DateTime implements JsonSerializable { public function __construct($datetime = 'now', DateTimeZone $timezone = null) { parent::__construct...
true
cf2aeb5372a4b57e191041818b89fdd56947c3fe
PHP
mcdo110492/sjwpLaravel
/app/Confirmation.php
UTF-8
2,815
2.53125
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; use Carbon\Carbon; use Validator; class Confirmation extends Model { // protected $table = 'tblconfirmations'; protected $primaryKey = 'confirmation_id'; protected $fillable = [ 'child_name', '...
true
b940dfe63ed85429c7ffbbaf07181303af0f6914
PHP
anthonyp/CakePHP-AWS-Plugin
/models/datasources/s3_base_source.php
UTF-8
17,964
2.625
3
[ "MIT" ]
permissive
<?php /** * S3BaseSource DataSource File * * Copyright (c) 2011 Anthony Putignano * * Distributed under the terms of the MIT License. * Redistributions of files must retain the above copyright notice. * * PHP version 5.3 * CakePHP version 1.3 * * @package aws * @subpackage aws.models.datas...
true
575377ae6b974da86dbe727ea44b52b968d9ad9b
PHP
jasonbdaro/php_design_pattern_app
/app/PizzaStore/ChicagoStylePizzaStore.php
UTF-8
1,163
3.140625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: JASONBDARO * Date: 10/7/2018 * Time: 1:36 AM */ namespace PizzaStore; use PizzaStore\Contracts\PizzaStore; /** * Class ChicagoStylePizzaStore * @package PizzaStore */ class ChicagoStylePizzaStore extends PizzaStore { /** * ChicagoStylePizzaStore constructor....
true
0c13efcdd67d872d8c0136e89c94d50b62d3a7e3
PHP
pigochu/docker-phpmyadmin-autoconfig
/script/vendor/amphp/file/lib/Driver.php
UTF-8
6,370
3.109375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace Amp\File; use Amp\Promise; interface Driver { /** * Open a handle for the specified path. * * @param string $path * @param string $mode * @return \Amp\Promise<\Amp\File\Handle> */ public function open(string $path, string $mode): Promise; /** * Execute ...
true
43f46b8e807deec01c920be69494ad34cfb7d0b6
PHP
mrsimonbennett/core
/src/Property/ValueObjects/Bathrooms.php
UTF-8
1,068
3.078125
3
[]
no_license
<?php namespace FullRent\Core\Property\ValueObjects; use SmoothPhp\Contracts\Serialization\Serializable; /** * Class Bathrooms * @package FullRent\Core\Property\ValueObjects * @author Simon Bennett <simon@bennett.im> */ final class Bathrooms implements Serializable, \SmoothPhp\Contracts\EventSourcing\Event { ...
true
949786316b35e2fd1e8cb255ff9b552f6d90c606
PHP
sohelahmedghori/Php_old
/RISHI/PHP/calender.php
UTF-8
528
2.734375
3
[]
no_license
<html> <head> <title>calender</title> <style> tr{ color: red; } table{ background-color: yellow; } </style> </head> <body> <table align="center" cellspacing="0" cellpadding="18" border="1"> <tr> <td>Sun</td> <td>Mon</td> <td>Tue</td> <td>Wed</td> <td>Thr</td> ...
true
66a5fb71988da61157302ca80c5ddf69ca7786fc
PHP
Svish/sda.digital
/src/Controller/Content.php
UTF-8
849
2.59375
3
[]
no_license
<?php namespace Controller; use HTTP, Model, View; /** * Handles Content pages. */ class Content extends Controller { public function get($id, $slug = null) { switch($id) { case 'my-fresh': $template = 'content/my-fresh'; $content_list = Model::fresh()->mine(); break; case 'new': throw...
true
661d1ccbcfb670ee51ef1977643c7c1fd238bd30
PHP
ty536804/laravel_admin
/app/Services/SiteServices.php
UTF-8
1,067
2.765625
3
[]
no_license
<?php namespace App\Services; use App\Models\Admin\Site; use App\Tools\ApiResult; use App\Tools\Constant; use Illuminate\Support\Facades\Cache; class SiteServices { use ApiResult; /** * @description 添加站点 * @param $request * @return \Illuminate\Http\JsonResponse * @auther caoxiaobin ...
true
7e79c8fd6729c1a9005d6b4082c8407b32adc9fb
PHP
emaphp/eMapper
/tests/eMapper/SQLite/Attribute/EntityMappingTest.php
UTF-8
1,382
2.625
3
[ "MIT" ]
permissive
<?php namespace eMapper\SQLite\Attribute; use eMapper\SQLite\SQLiteConfig; use eMapper\Attribute\AbstractEntityMappingTest; /** * Test dynamic attributes on entities * @author emaphp * @group sqlite * @group attribute */ class EntityMappingTest extends AbstractEntityMappingTest { use SQLiteConfig; public fun...
true
c3fcf685c868baf3c693a7cdf00f10d5742818c7
PHP
KolFoxy/AncestorBotPHP
/src/BotIO/UserInterface.php
UTF-8
472
2.5625
3
[ "MIT", "CC-BY-NC-SA-3.0" ]
permissive
<?php namespace Ancestor\BotIO; use React\Promise\PromiseInterface; interface UserInterface { public function getUsername(): string; public function getAvatarUrl(): string; public function getId(): string; public function getMention(): string; /** * @return PromiseInterface Resolves with...
true
51ed5255315ae36717fffdbf4dab8e10606b8c3e
PHP
VadymLinyvyi/docker-magento2
/Elogic/Vendor/Api/VendorRepositoryInterface.php
UTF-8
945
2.59375
3
[]
no_license
<?php namespace Elogic\Vendor\Api; use Elogic\Vendor\Api\Data\VendorInterface; use Elogic\Vendor\Api\Data\VendorSearchResultInterface; use Magento\Framework\Api\SearchCriteriaInterface; use Magento\Framework\Exception\NoSuchEntityException; /** * Class VendorRepositoryInterface * @package Elogic\Vendor\Api */ inte...
true
448cfcd504eecf5dd54905271098238e2a06698a
PHP
sshamsudheen/laravel-api
/app/Http/Controllers/ProductController.php
UTF-8
3,242
2.6875
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Product; use App\Collection; use Illuminate\Support\Facades\DB; class ProductController extends Controller { protected $collection; protected $product; protected $collectionIds; protected $collectionFields; public function __const...
true
4eebc277a07021cf62c5aa6c21b05829fb5e865a
PHP
TheXobbitt/rest
/otherTasks/object.php
UTF-8
309
3.234375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Oleksandr Blakov * Date: 12/29/17 * Time: 11:33 */ class A { public $b; } function test($obj) { $obj->b = 6; } function test1($obj) { $obj = 10; } $obj = new A; $obj->b = 1; test($obj); echo $obj->b . PHP_EOL; //6 test1($obj); echo $obj->b . PHP_EOL; //6
true
1be2787cefcd49cde024544aae36904e1bf29cbf
PHP
Didar123213/zcms
/app/controller/backend/solution/Addsltn_Solution_Backend_Controller.php
UTF-8
8,791
2.703125
3
[]
no_license
<?php /** * Класс Addsltn_Solution_Backend_Controller формирует страницу с формой для * добавления типового решения. Получает данные от модели Solution_Backend_Model, * административная часть сайта */ class Addsltn_Solution_Backend_Controller extends Solution_Backend_Controller { /** * идентификатор катег...
true
a94b64966950cb9b42bde2e861737fc35e9299a7
PHP
momosc/NetbeansCodeTemplate
/phpDoc.php
UTF-8
1,062
2.734375
3
[]
no_license
<?php /* * 入口文件 */ require_once 'NetbeansCodeTemplate.php'; $NetbeansCodeTemplate = new NetbeansCodeTemplate(); $defaultTplList = $NetbeansCodeTemplate->getDefaultTplList(); $str = ''; foreach ($defaultTplList as $key => $value) { $str .= "<div class='row'> <div class='col-sm-12'> <h3>$key</h3> ...
true
00e1f347fe13fb9e1ec1bb3511d167ad0768a384
PHP
TimS70/duke-data-science
/Tutorials/php/contactForm/contactForm.php
UTF-8
541
2.84375
3
[]
no_license
<?php // We need to upload this to an online server to test it if (isset($_POST["submit"])) { $name = $_POST["name"]; $subject = $_POST["subject"]; $mailFrom = $_POST["mail"]; $message = $_POST["message"]; $header = "From: ".$mailFrom; $txt = "You have received an email from ".$name.".\n\n".$m...
true
eb3b46d5e60ceadc04ec2e368277c9edc4298c1e
PHP
LukeXF/Jetpack
/classes/AdminOrders.php
UTF-8
4,083
2.8125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: luke.brown * Date: 17/12/2015 * Time: 13:50 */ class adminOrders extends siteFunctions { /* * Loads all user data from table */ private function getAllOrders() { // if database connection opened if ($this->databaseConnection()) { ...
true
4c9e878d85046b11571ca2bda214c7453593085b
PHP
Rafaj-Design/WebGuru
/admin/wgframework/libs/class.wgModules.php
UTF-8
3,123
2.828125
3
[]
no_license
<?php /** * Modules administration * * @package WebGuru3 * @subpackage libs * @author Ondrej Rafaj * @version 3.0.0.0 * @since 21. October 2008 * * @todo Check if the include path in runModule is safe */ class wgModules { private static $_mod = array(); /** * Class c...
true
e0391ff2450e8a90a1a963b24fa2142f194390e9
PHP
ApiGen/ApiGen
/src/Index/FileIndex.php
UTF-8
401
2.625
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace ApiGen\Index; use ApiGen\Info\ClassLikeInfo; use ApiGen\Info\FunctionInfo; class FileIndex { /** @var ClassLikeInfo[] indexed by [classLikeName] */ public array $classLike = []; /** @var FunctionInfo[] indexed by [functionName] */ public array $function = []; publi...
true
d7de1aa537bbc689cbfac9322bc8b75ec982779e
PHP
jephmann/jephmann
/_views/head.php
UTF-8
2,902
2.546875
3
[]
no_license
<?php /* * Across-the-board server-side code */ // URL $server_http_host = (string) $_SERVER['HTTP_HOST']; $server_request_uri = (string) parse_url( $_SERVER['REQUEST_URI'], PHP_URL_PATH ); $server_url = $server_http_host . $server_request_uri; $s = (str...
true
fc7c3cefe04d7943aa0933235c94e6c47cfd41e5
PHP
unity-framework/Router
/src/RoutesCollection.php
UTF-8
768
2.734375
3
[ "MIT" ]
permissive
<?php namespace Unity\Component\Router; use Psr\Http\Message\RequestInterface; use Unity\Component\Router\Contracts\IRoutesCollection; class RoutesCollection implements IRoutesCollection { protected $routes = [ 'get' => [], 'put' => [], 'post' => [], 'patch' => [], 'delete...
true
c4e384126d866265947beae1b555283de6817f39
PHP
eloquent/asplode
/src/Asplode.php
UTF-8
3,421
2.796875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Asplode package. * * Copyright © 2016 Erin Millard * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Eloquent\Asplode; use Eloquent\Asplode\Exception\ErrorHandlingConfigurationExceptio...
true
425008f749174d93485c856b80d396cba7f41289
PHP
ynajem/php-project
/Router.php
UTF-8
1,098
3.265625
3
[]
no_license
<?php class Route { // List of URI's to match against private $urls = array(); // List of closures to call private $functions = array(); // Adds a URI and Function to the two lists public function add($uri, $function) { $uri = trim($uri, '/\^$'); $this->urls[] = $uri; $this->functions[] = $function; ...
true
42d2a63ca37b93232a11d6e1afaf0a28b44c9042
PHP
santoscaio/carrinho
/class/conexaoClass.php
UTF-8
1,789
3.15625
3
[]
no_license
<?php /** * Classe de configuração e utilização de conexão com o Banco de Dados */ class Conexao { var $host = "localhost"; var $user = "root"; var $senha = ""; var $dbase = "carrinho"; var $query; var $link; var $resultado; /** * Instancia o Objeto para podermos usar */ ...
true
60cfb2547a55ab7c28abd814fc5272c46194522b
PHP
javierovico/tupasy-tienda-api
/app/Models/Permiso.php
UTF-8
2,330
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; /** * Class Permiso * @package App\Models * @property mixed id * @property mixed codigo * @property mixed descripcion * @property mixed created_at * @property mixed updated_at */ class P...
true
7df941f990b8d454fc8aae5ea95fc4e876b71e11
PHP
brialx40/Certiretie
/pagina/src/DTO/Residencial_DTO.php
UTF-8
1,908
2.640625
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ include_once 'UsoFinal_DTO.php'; /** * Description of Residencial * * @author Sejib2 */ class Residencial_DTO {...
true
76e7518cb1fe35a4308c560ae7c266516a361505
PHP
AMIT9027/article-master
/lib/php/login.php
UTF-8
931
2.53125
3
[]
no_license
<?php include "connection.php"; include "crypto.php"; $email = decrypt($_POST['email']); $pass = sha1(decrypt($_POST['pass'])); try { if(isset($email, $pass)){ $req = $db->prepare("SELECT * FROM users WHERE email=? AND password=?"); $req->execute(array($email, ...
true
872ca63c1e3c67a2d1dba597478e8f1b19ed1a0f
PHP
ftomasini/smdb
/wifi/protected/components/.svn/text-base/Autenticacao.php.svn-base
UTF-8
981
2.921875
3
[]
no_license
<?php /** * Classe que abstrai a importação de um dado método de autenticação * */ class Autenticacao { /** * Instância do método de autenticação * * @var Objeto */ private static $autenticacao; /** * Importa a classe dada da autenticação se não importada ainda e retorna...
true
ba9d7b19f6daa42ab4f91c8a9260c5d3df96c230
PHP
drdominguez/IU_GP7
/et1_iu/install_finish.php
UTF-8
1,035
2.625
3
[]
no_license
<?php $mysqli = new mysqli("localhost", $_POST["usuario"], $_POST["password"]); if ($mysqli->connect_errno) { echo "Fallo al conectar a MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error; } else { $sql = ''; $fichero = file('IU2016.sql'); foreach ($fichero as $linea) { if (substr...
true
046344ca2b0a3a704c639af87b6f6c6217885187
PHP
limdblur/ldc_exihibit
/database/migrations/2018_04_02_151128_create_roomenv_table.php
UTF-8
1,462
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateRoomenvTable extends Migration { private $tableName='room_env'; private $tableComment='库房环境管理'; /** * Run the migrations. * * @return void */ p...
true
c8fdc6cfc37e956d340856c6cce69e0f7bb28d86
PHP
fransr/epl2html-render
/render.php
UTF-8
2,606
2.5625
3
[]
no_license
<?php function parseEPL($file) { $file = file_get_contents($file); $file = explode("\n", $file); foreach($file as $row) { $row = explode(',', $row); if($row[0] !== 'b13') if(!@is_numeric($row[1]) || !@is_numeric($row[2]) || !@is_numeric(trim($row[3]))) { continue; } #print_r($row); $left = preg_...
true
6a8ef7f7b1399ff7fafa56aa72fda9dec56ecc6b
PHP
takaaki-mizuno/swagger-parser
/src/Objects/V20/Contact.php
UTF-8
1,331
2.765625
3
[]
no_license
<?php namespace TakaakiMizuno\SwaggerParser\Objects\V20; use TakaakiMizuno\SwaggerParser\Exceptions\InvalidFormatException; use TakaakiMizuno\SwaggerParser\Objects\Base; class Contact extends Base { protected static $name = 'Contact'; protected $fields = [ 'name' => [ Base::KEY_TYPE ...
true
b164663d3cf1dd3ea27658978f2426340d4a4bc2
PHP
AdrianAlexander/Programming-Project
/app/Http/Controllers/CarController.php
UTF-8
6,207
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Car; use App\Staff; class CarController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { //$allCar = Car::select('car_name...
true
1b5dae00aa190e4b7f93ba7675802bc5b03becad
PHP
PlaylistScience/selfhost-agent
/src/Service/Minio.php
UTF-8
1,771
2.734375
3
[]
no_license
<?php namespace App\Service; use Aws\S3\S3Client; use League\Flysystem\AwsS3v3\AwsS3Adapter; use League\Flysystem\Filesystem; class Minio { /** * @var \Aws\S3\S3Client */ protected $client; /** * @var \League\Flysystem\AwsS3v3\AwsS3Adapter */ protected $adapter; /** * ...
true
4129f808e016c5c5fdcfd919930284f5facef23d
PHP
javallejos2020/PROYECTO_FINAL
/registrarvaloracion.php
UTF-8
1,256
2.765625
3
[]
no_license
<html> <head> <title>Valoracion Nutricional</title> <meta charset="utf-8"> <link rel="stylesheet" href="css/estilofinal.css"> </head> <body> <?php include("conexion.php"); if (isset($_POST['register'])) { if (strlen($_POST['ci']) >= 1 && strlen($_POST['peso']) >= 1 && strlen($_POST['talla']...
true
b21f1b80831baa1a0248a1b40617051cc8b9c797
PHP
OraceMundle/php_primer
/stringmanipulation.php
UTF-8
2,952
3.625
4
[]
no_license
<!-- PHP TAG linking includes folder with header file show menus --> <?php //variable used to display title name. $title ='STRING MANIPULATION'; include 'includes/header.php' ?> <!-- End of PHP Tag for header --> <!-- <body> --> <h1><?php echo $title?></h1> <!--PHP CODE --> ...
true
5ba06f44f87964f66335121d868e66e95daeab49
PHP
PierreRebeilleau/ApiComponentBundle
/src/Entity/Component/Feature/FeatureItemInterface.php
UTF-8
510
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Silverback\ApiComponentBundle\Entity\Component\Feature; use Silverback\ApiComponentBundle\Entity\Route\Route; interface FeatureItemInterface { public function getTitle(): string; public function setTitle(string $title): AbstractFeatureItem; public function getU...
true
659aba6c265d64321d3bdc9a8ae417afa0ceb929
PHP
valentelf62/php
/aula_39.php
UTF-8
128
3.25
3
[]
no_license
<?php //Estrutura de repição II for($x=0; $x<10; $x++){ echo $x . "<br>"; } for($x=10; $x>0; $x--){ echo $x . "<br>"; }
true
8d07304cb5934d544b78295863e0abe9897201ca
PHP
EatDrinkAndBeMiller/inspirational_quotes
/models/Author.php
UTF-8
3,265
3.453125
3
[]
no_license
<?php class Author { //DB connection private $conn; private $table = 'authors'; //quote properties public $id; public $author; public function __construct($db) { $this->conn = $db; } //get all authors public function read() { //create query $query =...
true
628e7668c6e74274fe2fb17a7b38deeed7a948b9
PHP
feuloren/polar-orm
/Vente.class.php
UTF-8
3,487
2.578125
3
[]
no_license
<?php require_once 'PolarObject.class.php'; class Vente extends PolarObject { public static $table = 'polar_caisse_ventes'; protected static $attrs = array( 'IDVente' => T_INT, 'Article' => 'Article', 'Date' => T_STR, 'Tarif' => array('asso', 'normal'), 'Finalise' => T_...
true
f7d0382f667e50eede294aeec2337115b6006ce2
PHP
cawatou/smarty_tour
/app/prj/DataList/Paginator.php
UTF-8
4,734
2.765625
3
[]
no_license
<?php DxFactory::import('DataList'); class DataList_Paginator extends DataList { /** @var null|string */ protected $paginator_page_url = null; /** @var null|string */ protected $paginator_page_name = null; /** @var int */ protected $paginator_page_in_margin = 3; /** @var int */ prot...
true
f7690cfb352cadefc1dbe33252eb2e59571cbd60
PHP
josepostiga/docker-registry-api-explorer
/tests/Unit/Repositories/DockerRegistryTagsRepositoryTest.php
UTF-8
1,628
2.546875
3
[ "MIT" ]
permissive
<?php namespace Josepostiga\DockerRegistry\Tests\Unit\Repositories; use Mockery\MockInterface; use GuzzleHttp\Psr7\Response; use Josepostiga\DockerRegistry\Tests\TestCase; use Josepostiga\DockerRegistry\Contracts\DockerRegistryClientInterface; use Josepostiga\DockerRegistry\Repositories\DockerRegistryTagsRepository; ...
true
f89e528c2a33c30a3aab6072bcaac3410a8424bf
PHP
emersonps/yii2_course_full
/controllers/FormatterController.php
UTF-8
1,248
2.953125
3
[]
permissive
<?php namespace app\controllers; use yii\web\Controller; use Yii; class FormatterController extends Controller { public function actionIndex() { $appLang = Yii::$app->language; /** @var MyFormatter $formatter */ $formatter = Yii::$app->formatter; echo "<h2>{$appLang}</h2>"; echo " <p...
true
b7aef7daf3e483e561b32fba08be4dac2febcbec
PHP
Khande1n/aftercares
/app/Product.php
UTF-8
584
2.703125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Product extends Model { protected $table = 'products'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'product']; /** * Get the brand to which the product...
true
9d1beb43be23b92db28451f8b593200e052466e2
PHP
Snow1874/PHP_practice
/Todo/dbc.php
UTF-8
799
2.8125
3
[]
no_license
<?php require_once('env.php'); function dbConnect() { $host = DB_HOST; $dbname = DB_NAME; $user = DB_USER; $pass = DB_PASS; $dsn = "mysql:host=$host;dbname=$dbname;charset=utf8"; try{ $dbh = new PDO($dsn, $user, $pass, [ PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, ...
true
6f2c29f6bf731d7f8caa6b0b20dd1b4d7ecb7dc4
PHP
Damilola-design/investment-
/database/migrations/2021_02_16_172241_create_transaction_histories_table.php
UTF-8
907
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTransactionHistoriesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('tr...
true
b52b560d868262a63f553127150df56ad5fe247b
PHP
atompie/framework
/src/AtomPie/AnnotationTag/Header.php
UTF-8
1,080
2.5625
3
[]
no_license
<?php namespace AtomPie\AnnotationTag { /** * @Annotation * @Target("CLASS","METHOD") */ final class Header extends AnnotationTag { /** * @var string */ public $ContentType; /** * @var string */ public $CacheControl; ...
true
8a1362aa92b20195beff3ba82cae5dfcd48a9074
PHP
Nogrod/ebay-sdk-php
/src/MerchantData/ListingTipMessageType.php
UTF-8
4,717
2.578125
3
[ "MIT" ]
permissive
<?php namespace Nogrod\eBaySDK\MerchantData; use Nogrod\XMLClientRuntime\Func; /** * Class representing ListingTipMessageType * * This type is deprecated. * XSD Type: ListingTipMessageType */ class ListingTipMessageType implements \Sabre\Xml\XmlSerializable, \Sabre\Xml\XmlDeserializable { /** * This fi...
true
132a04700079c13445e6c0d8072180c48ce30696
PHP
crazykane2000/indiragandhi
/backend/load_events_details.php
UTF-8
1,779
2.6875
3
[]
no_license
<?php session_start(); include 'connection.php'; include 'function.php'; $pdo = new PDO($dsn, $user, $pass, $opt); $table = "event_sub_category"; //print_r($_REQUEST); try { $stmt = $pdo->prepare('SELECT * FROM '.$table.' WHERE `sub_category`="'.$_REQUEST['event_sub_category'].'"'); // echo 'S...
true