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
2ed87959b281d4969c7caaaff46ba23e10fea19e
PHP
VenszY/school_upr1
/index(old).php
UTF-8
1,622
3.234375
3
[]
no_license
<?php // echo "Hello World ! <br>"; // $username = "Vnesz"; // echo $username."<br>"; // $age = 22; // echo $age."<br>"; // $bool = 1123; // print_r($bool."<br><br>"); // $array = [true, false, 3689, "true"]; // foreach ($array as $arrval) // { // echo $arrval."...
true
d2a7f5220ffbcf40af604ea532ce3db6367a097d
PHP
y-67/simpleFramework
/Core/Config/LoadConfigFiles.php
UTF-8
963
2.8125
3
[]
no_license
<?php namespace Core\Config; class LoadConfigFiles { protected string $path = ''; protected array $configs = []; /** * LoadConfigFiles constructor. * @param string $path */ public function __construct(string $path) { $this->path = $path; } /** * @return array...
true
680945e52b28fb0ce5afde0d6a9568e8a12a25e1
PHP
pyrello/migrate_preservation
/documents.inc
UTF-8
6,472
2.5625
3
[]
no_license
<?php /** * @file * Advanced migration examples. These serve two purposes: * * 1. To demonstrate some of the more advanced usages of the Migrate module. * Search for "TIP:" below for features not found in the basic example. * 2. To provide thorough test cases for the simpletest suite. * */ class DocumentM...
true
e3ece5ec63f8c2b04592fbe99889b63fcf922a08
PHP
gustavomontiel/cademis
/api/app/Http/Controllers/UserController.php
UTF-8
3,566
2.640625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; use Validator; use App\User; class UserController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { ...
true
7f64ac72c0cf93fe1fb593d0480bd288f048435b
PHP
CemilSamli/satranc
/web/app/controller/pvpjson.php
UTF-8
2,829
2.5625
3
[]
no_license
<?php include_once("../model/utils.php"); loadModel("DBOnline.php"); loadModel("DBOyun.php"); // How often to poll, in microseconds (1,000,000 μs equals 1 s) define('MESSAGE_POLL_MICROSECONDS', 1000000); // How long to keep the Long Poll open, in seconds define('MESSAGE_TIMEOUT_SECONDS', 25); // Timeout padding in sec...
true
3f7fd22727fbc6d586c32ce1ca364c609ab66dc2
PHP
jinbonetwork/jinbo.net.2015
/classes/Section.class.php
UTF-8
5,847
2.578125
3
[]
no_license
<?php class Section extends Objects { public $section; public $items; private $index; private $tabs; private $mode; public static function instance() { return self::_instance(__CLASS__); } public function readSectionJson($app) { $cacheFile = JFE_CACHE_PATH."/".$app."_section.json"; if(file_exists($cache...
true
8f38a9eb1fca76e72615b2a4b1c3e8a7dc80f436
PHP
himanshi1107/Basic_Banking_System
/transaction.php
UTF-8
1,634
2.625
3
[]
no_license
<?php session_start(); include 'connection.php'; if(isset($_post['submit'])){ $to = $_POST['to']; $amount = $_POST['balance']; $from = $_GET['id']; } $sql1 = mysqli_query($conn, " select * from userdetails where id='$to'"); if(!$sql1){ printf("Error: %s\n", mysqli_erro...
true
e0020dcc8862ba71fd32317199cffd0e49183100
PHP
franzbertazzo/PHPpiscine
/Day01/ex10/do_op.php
UTF-8
535
3.21875
3
[]
no_license
#!/usr/bin/php <?php array_shift($argv); if ($argc == 4) { $ops = array(); foreach ($argv as $param) foreach (preg_split('/\s+/', trim($param)) as $op) array_push($ops, $op); if ($ops[1] == '+') echo $ops[0] + $ops[2] . "\n"; else if ($ops[1] == '-') echo $ops[0] - $ops[2] . "\n"; else if ($op...
true
04f032f40f18ee020bc0c5df9f485321121b90c1
PHP
MrKrzYch00/Abandoned-PHP-Scripts
/Recover files from CD/recovercd2.php
UTF-8
2,688
2.734375
3
[]
no_license
<?php class getsec extends Thread { public $id2; public $done; public $offset; public $file; public $data; public function __construct($id,$offset,$file) { $this->id2 = (int)$id; $this->done = false; $this->offset = $offset; $this->file = $file; } public function run() { $input = ...
true
eebb25bb768d629cacef9bd97baf7896e0910a24
PHP
LesJudge/ekarrier
/library/uniweb/interface/UpdateableByResourceInterface.php
UTF-8
585
2.515625
3
[]
no_license
<?php /** * Interface azokhoz az ActiveRecord modellekhez, amelyek valamilyen erőforrás által (ügyfél, munkáltató) * módosíthatóak adatbázisban. * * @author Balázs Máté Petró <balazs@uniweb.hu> */ interface UpdateableByResourceInterface extends \ResourcableInterface { /** * Objektum létrehozása az UPDAT...
true
20b0104d3805e3e8b64c8552c6ae6a229120b944
PHP
kalimatas/zbook
/library/ZFExt/Controller/Helper/Acl.php
UTF-8
2,176
2.515625
3
[]
no_license
<?php /* * Acl helper */ class ZFExt_Controller_Helper_Acl extends Zend_Controller_Action_Helper_Abstract { protected $_action; protected $_acl; protected $_auth; protected $_controllerName; public function __construct(Zend_View_Interface $view = null, array $options = array()) { $t...
true
133831d3fc66284187d3d80fd458a0d855733440
PHP
dumpk/esetres
/tests/EsetresTest.php
UTF-8
2,594
2.515625
3
[ "MIT" ]
permissive
<?php /** * @author Nicolás Bistolfi <nbistolfi@gmail.com> * @license MIT * @copyright 2015, Nicolás Bistolfi * * @link http://github.com/dumpk/esetres */ use Dumpk\Esetres\EsetresAWS; use PHPUnit\Framework\TestCase; class ElastcoderTest extends TestCase { public function tearDown() ...
true
9268a4cee3c3a94c93d54488bc45d45d00d2142d
PHP
vesparny/silex-simple-rest
/src/App/RoutesLoader.php
UTF-8
925
2.640625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace App; use Silex\Application; class RoutesLoader { private $app; public function __construct(Application $app) { $this->app = $app; $this->instantiateControllers(); } private function instantiateControllers() { $this->app['notes.controller'] = function...
true
4d535c9fdc2d87aa05bc739f3aeb7bdfe1920bb7
PHP
hoaaah/simoku-renbang
/modules/laporan/views/pelaporanunit/cetaklaporan2.php
UTF-8
4,369
2.765625
3
[ "MIT" ]
permissive
<?php Use app\itbz\fpdf\src\fpdf\fpdf; use yii\db\Expression; class PDF extends \fpdf\FPDF { function Footer() { //ambil link $link = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; // $this->Image("http://api.qrserver.com/v1/create-qr-code/?size=150x150&data=$link", 280, 203 ,5,0,'PNG'); ...
true
c7d427df7b51a4618ab4e38a548bdab3655884c0
PHP
ViacheslavKurch/test_uplata
/src/Parser/Domain/Entity/ParsedEntity.php
UTF-8
1,601
3.15625
3
[]
no_license
<?php namespace App\Parser\Domain\Entity; use DateTime; use App\Parser\Domain\ValueObject\ParsedId; /** * Class ParseEntity * @package App\Parser\Domain\Entity */ class ParsedEntity { /** * @var ParsedId */ private ParsedId $id; /** * @var string */ private string $title; ...
true
755695934225f2f6ce4916e79da31f0e31a5031b
PHP
FastyPHP/fasty
/app/Core/Http/Request.php
UTF-8
2,027
2.765625
3
[ "Apache-2.0" ]
permissive
<?php namespace App\Http; class Request { public function __construct() { extract($_GET); extract($_POST); extract($_SERVER); extract($_FILES); extract($_ENV); extract($_COOKIE); extract($_SESSION); extract($_FILES); } public function get(?string $key = null, $val = null) { if($val == null){ ...
true
6489482296290a356af92a45718a464ec67e94d6
PHP
psquirrel2018/PlumbK2018
/wp-content/themes/one-confluence/templates/team-fluid.php
UTF-8
2,380
2.53125
3
[]
no_license
<?php /** *This is a template part if the admin wants to use a fluid layout for the team section */ global $post; //Team Variables //$teamLayout = get_post_meta($post->ID, 'team_layout', true); $team_id = get_post_meta($post->ID, '_one_front_team_id', true); $dataTitleTeam = get_post_meta($post->ID, '_one_front_team_...
true
6290a6a78f94d4531f7692181d23803ca9a172e0
PHP
ikool-cn/phalcon-note
/Phalcon笔记/0-Phalcon创建查询的N种方式.php
GB18030
1,790
2.875
3
[]
no_license
<?php $phql = 'SELECT id,username FROM Users WHERE username like :username:'; //1 $users = $this->modelsManager->executeQuery($phql, array('username' => '%demo%')); //2 $users = $this->modelsManager->createQuery($phql)->execute(array('username' => '%demo%')); //3 $users = $this->modelsManager->createBuilder()->from('...
true
52a7ce263632a4b10d15e8b4c304c13d0c2fc06b
PHP
lDmitriyl/My_PHP
/application/models/Orders.php
UTF-8
1,184
2.734375
3
[]
no_license
<?php namespace application\models; use application\core\Model; class Orders extends Model { function makeNewOrder($name,$phone,$address){ $userId=$_SESSION['user']['id']; $comment="id пользователя {$userId}</br> Имя:{$name}</br> Телефон:{$phone}</br> ...
true
789f01e8e7e8c9b90470ba367ef8861955fa6e9f
PHP
safra-silvania/safra-gp
/src/Policy/SketchPolicy.php
UTF-8
1,478
2.625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Policy; use App\Model\Entity\sketch; use Authorization\IdentityInterface; /** * sketch policy */ class sketchPolicy extends Base\BasePolicy { public function canAccess(IdentityInterface $user, sketch $sketch) { return true; } /** * Check if...
true
97d7066935bbfd005871cfcb44296fe43f1c0e2c
PHP
amphp/parallel
/test/Context/AbstractContextTest.php
UTF-8
5,848
2.5625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Amp\Parallel\Test\Context; use Amp\CancelledException; use Amp\Parallel\Context\Context; use Amp\Parallel\Context\ContextException; use Amp\PHPUnit\AsyncTestCase; use Amp\TimeoutCancellation; use function Amp\async; use function Amp\delay; abstract class AbstractContextTest e...
true
b4cd4901fe2e47fd8e4340bd244bccff5ad5a7fc
PHP
samhemelryk/css_theme_tool
/colourpicker_image.php
UTF-8
2,473
3.015625
3
[]
no_license
<?php /** * Generates the colour picker image in for use with the colour picker * component in module.js * * This is the coolest file in this block, it mathematically generates a PNG image * in such a way that given XY coordinates JavaScript can work out what colour was * clicked. * * @package block_css_theme_...
true
f837275a8836ce192028ac37e54a3681500bc80c
PHP
danyalSh/employeeSystem
/app/UserProjectTasks.php
UTF-8
1,083
2.59375
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class UserProjectTasks extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'user_id', 'project_id', 'task_id' ]; /** * The table associated with the mode...
true
603d9231e23762e507abad9ca28c60c4b3e18158
PHP
ahmadrivaldi-arv/php-native-
/lib/function.php
UTF-8
2,376
2.71875
3
[]
no_license
<?php session_start(); $db = new mysqli("localhost","superadmin","super","db_login"); if($db -> connect_errno){ echo("failed to connect to databse!"); exit(); } function generate_random_session(){ $random_str = rand(); $random_session = hash('sha256',$random_str); return $random_session; ...
true
aa7fa67b98eea35e105914d610f0ef9b438417df
PHP
oat-sa/jig
/Utils/ServerUtils.php
UTF-8
4,649
2.703125
3
[ "MIT" ]
permissive
<?php /** * This file is part of the Jig package. * * Copyright (c) 04-Mar-2013 Dieter Raber <me@dieterraber.net> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Jig\Utils; use Exception; /** * ServerUtils */ class ...
true
ba7faafcc744ee7676981bac487de9313626c826
PHP
genkgo/api
/src/StringStream.php
UTF-8
2,072
2.828125
3
[]
no_license
<?php declare(strict_types=1); namespace Genkgo\Api; use Psr\Http\Message\StreamInterface; final class StringStream implements StreamInterface { private int $position = 0; public function __construct(private string $content) { } public function __toString() { return $this->content;...
true
ec5f8d10fb626b000ce2aa28dbf453ff98a60546
PHP
ionutmilica/ionix-framework
/src/Validation/Rules/UrlRule.php
UTF-8
523
2.921875
3
[ "MIT" ]
permissive
<?php namespace Ionix\Validation\Rules; use Ionix\Validation\Rule; class UrlRule extends Rule { /** * Validate the rule against the value * * @return mixed */ public function validate() { return filter_var($this->getValue(), FILTER_VALIDATE_URL) !== false; } /** ...
true
4de52116602e1c7eece43aceccf68dfd04c3121d
PHP
XenosEleatikos/MusicBrainz
/src/Relation/Type/Artist/Artist/MusicalRelationships/IsComposerInResidenceAt.php
UTF-8
682
2.578125
3
[ "MIT" ]
permissive
<?php namespace MusicBrainz\Relation\Type\Artist\Artist\MusicalRelationships; use MusicBrainz\Value\Name; use MusicBrainz\Relation\Type\Artist\Artist\MusicalRelationships; /** * An "is composer-in-residence at" relation * This links a group (often an orchestra) to a composer who has a composer-in-residence positio...
true
b2051197b562bc2c14d7adff1655414444826280
PHP
cazunigag/reabastecimiento
/assets/telerik/wrappers/php/lib/Kendo/UI/UploadAsync.php
UTF-8
4,824
2.546875
3
[ "LicenseRef-scancode-free-unknown", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Kendo\UI; class UploadAsync extends \Kendo\SerializableObject { //>> Properties /** * By default, the selected files are uploaded immediately. To change this behavior, set autoUpload to false. * @param boolean $value * @return \Kendo\UI\UploadAsync */ public function autoUploa...
true
afb6c60a93c7c191997b3caaa713c7ebb59e97bb
PHP
swarnalats/php-sgt-rest-api
/api/add_grade.php
UTF-8
1,666
2.734375
3
[]
no_license
<?php //print_r($_POST); $output = [ 'message' => 'testing add record', 'record' => null ]; $course = null; $grade = null; $name = null; $errors = []; if(isset($_POST['course'])){ $course = $_POST['course']; }else { $errors[] = 'No course name received'; } if(isset($_POST['g...
true
12e592713e349fe1a6c9d141f7b9395c41808da5
PHP
olivier8573/blog
/admin/addUser.php
UTF-8
4,095
3.1875
3
[]
no_license
<?php // Le fichier config.php contient les identifiants de connexion à la base de données sous forme de variables include('../config/config.php'); // Le fichier bdd.lib.php contient la fonction connexion qui permet de générer un nouveau PDO (PHP Data Object) et se connecter en utilisant les identifiants de config.p...
true
f42a3a0b5fbe8222f805a7d41c17538500c4ed8c
PHP
eljam/cqrs-example
/src/Domain/Exception/Command/AccommodationNotFoundException.php
UTF-8
509
2.6875
3
[]
no_license
<?php declare(strict_types=1); /* * Have fun ! */ namespace App\Domain\Exception\Command; use App\Domain\Shared\Command\NotFoundException; /** * Class AccommodationNotFoundException. */ class AccommodationNotFoundException extends NotFoundException { /** * @param string $id * * @return Accom...
true
373f13dd2ef56ca4c4a9bf7d828da8d8c74a622c
PHP
AlexMaybee/first_one
/application/models/users_details.php
UTF-8
5,902
2.546875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Users_details extends CI_Model { /* public function get_user_details() { $this->load->database(); $query=$this->db->get('users_details'); return $query->result_array(); }*/ public function insert_users_details($formData1) //Уже не нужна, все сделал из users { ...
true
101eb0ad09c2b9a83be8405880ea2bd5450308f8
PHP
eridiumdev/e-shop
/src/Controller/BaseController.php
UTF-8
15,289
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Controller; use Symfony\Component\HttpFoundation\Response; use App\Model\Database\Reader; use App\Model\Data\Cart; use App\Model\Data\CartItem; const TEMPLATES_DIR = __DIR__ . '/../View/templates'; /** * Basic template for all page controllers * Loads twig, wraps all needed variables via render...
true
314567331f40518c7925ed96ddba3436a06ca89f
PHP
wilcarjose/werp
/app/Builders/Inputs/AddressInput.php
UTF-8
2,309
2.921875
3
[ "MIT" ]
permissive
<?php namespace Werp\Builders\Inputs; class AddressInput extends TextInput { protected $addressName1; protected $addressName2; protected $addressValue1; protected $addressValue2; /** * InputBuilder constructor. * @param $name * @param $type * @param $icon * @param $text ...
true
c58c7dcbd8e260df2ef2805acd498dcf14830a90
PHP
Guikingone/SchedulerBundle
/src/Task/FailedTask.php
UTF-8
730
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace SchedulerBundle\Task; use DateTimeImmutable; use function sprintf; /** * @author Guillaume Loulier <contact@guillaumeloulier.fr> */ final class FailedTask extends AbstractTask { private DateTimeImmutable $failedAt; public function __construct(private TaskInterfac...
true
bb3cbb2e43c6bbe420d1697eb5c44a062c0daed2
PHP
tvs-laravel-pkgs/gigo-pkg
/src/database/migrations/2020_05_15_122950_gate_pass_details_c.php
UTF-8
1,844
2.515625
3
[ "Unlicense" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class GatePassDetailsC extends Migration { /** * Run the migrations. * * @return void */ public function up() { if (!Schema::hasTable('gate_pass_details')) { Schema::crea...
true
c83bff0388c4c3debbd46da6e0eeed9ee4f82071
PHP
Zenat0r/hexacore
/System/Core/Model/Manager/ModelManager.php
UTF-8
3,873
2.75
3
[]
no_license
<?php /** * Created by PhpStorm. * User: christophe * Date: 17/03/19 * Time: 21:02 */ namespace Hexacore\Core\Model\Manager; use Hexacore\Core\Exception\Model\IdentificatorModelException; use Hexacore\Core\Exception\Model\MissingGetterModelException; use Hexacore\Core\Exception\Model\PopulatedModelException; use...
true
92dfbaa6d25c296416cb69b861f2d2ead2fb8c33
PHP
alexandreamormino/worksena
/wsSystem/Controller/AbstractActionController.php
UTF-8
5,482
3.09375
3
[ "MIT" ]
permissive
<?php /** * --- WorkSena - Micro Framework --- * Classe abstrata responsável por renderizar o layout * Caso o mesmo exista e seja setando no controller. Também a definição de configurações * das views da aplicação... * @license https://github.com/WalderlanSena/worksena/blob/master/LICENSE (MIT License) * * @cop...
true
54065ead941c7f786fa226d1a390fb972899da15
PHP
saeed-ghasemi/hypertext_add_sales
/sales_add.php
UTF-8
1,324
2.578125
3
[]
no_license
<?php require_once '_includes/connect.php'; //echo("sales_insert.php"); //get JSON info //$jsonData = json_decode(file_get_contents('php://input')); //echo($jsonData); $itemID = $_REQUEST["itemID"]; $customerID = $_REQUEST["customerID"]; $pricePaid = $_REQUEST["pricePaid"]; //define table //echo(...
true
4b757f702b3e562fee8d8f1a91b8138232998434
PHP
Heres-A-Hand/Heres-A-Hand-Web
/src/DBMigrationManager.class.php
UTF-8
3,183
2.90625
3
[ "Apache-2.0" ]
permissive
<?php /** * Copyright 2011-2013 Here's A Hand Limited * * 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 require...
true
ad329d707224f79e888586dee37bce8caf261a0e
PHP
abler98/php-huawei-pushkit
/src/Contracts/Sender.php
UTF-8
609
2.53125
3
[ "MIT" ]
permissive
<?php namespace MegaKit\Huawei\PushKit\Contracts; use MegaKit\Huawei\PushKit\Data\Destination\Destination; use MegaKit\Huawei\PushKit\Data\Message\Message; use MegaKit\Huawei\PushKit\Data\SendResult; use MegaKit\Huawei\PushKit\Exceptions\HuaweiException; use MegaKit\Huawei\PushKit\HuaweiConfig; interface Sender { ...
true
d06df8568f3ac04f056e1ef918ddbb1df91951a0
PHP
shin1127/todoByPHP
/csstest/index.php
UTF-8
1,224
2.609375
3
[]
no_license
<?php require_once("functions.php"); addTodo(); updateDone(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" href="hoge.css" /> <title>PHP TODO</title> </head> <body> <h1>TO D...
true
e0ac3c95e236243b34f19e2d5aa465e2568323bb
PHP
jasonbdaro/php_design_pattern_app
/app/AbstractPizzaStore/Eggplant.php
UTF-8
329
2.75
3
[]
no_license
<?php /** * Created by PhpStorm. * User: JASONBDARO * Date: 10/8/2018 * Time: 12:11 AM */ namespace AbstractPizzaStore; /** * Class Eggplant * @package AbstractPizzaStore */ class Eggplant { /** * Eggplant constructor. */ public function __construct() { echo 'Eggplant' . PHP_EOL;...
true
639a304d5a820015047eb9f30918863a60989138
PHP
ansendu/ansio
/app/socket/server/debugWS.php
UTF-8
2,236
2.734375
3
[]
no_license
<?php /** * User: ansen.du * Date: 15-12-4 */ namespace socket\server; use ANSIO\Config; use ANSIO\Debug; use ANSIO\WebSocketServer; use ANSIO\WebSocketHandle; use ANSIO\TimerEvent; class debugWS extends WebSocketServer { public $handle; public function __construct($addr = null, $port = null) { ...
true
581c5178c0309622e42e3175f45f9a117d7127b2
PHP
philippvlasov/wonde
/app/Http/Controllers/ContactController.php
UTF-8
1,205
2.65625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Validator; use Illuminate\Support\Facades\DB; class ContactController extends Controller { public function index() { return view('contacts'); } public function validateMessage(Request $request) { $rules = [ ...
true
05ca4de2814c9d95f6b159c1fe4215c926bc791d
PHP
Relihazard/vva
/recherche.php
UTF-8
1,734
2.703125
3
[]
no_license
<?php include 'modele/connexionSQL.php'; include 'modele/session.php'; //récupération des critères de recherches spécifiés par l'utilisateur $nbPlaces = filter_input(INPUT_GET, 'nbPlaces'); if (isset($nbPlaces)) { $critere1 = 'AND NBPLACEHEB=' . $nbPlaces . ''; } else { $critere1 = ' '; } $orientation = filte...
true
cc485be9bd5496835da7fddff6386ca59a24ef46
PHP
pronamic/wp-softwear
/classes/Pronamic/Softwear/WooCommerce/Product.php
UTF-8
3,772
2.875
3
[]
no_license
<?php /** * Title: Product * Description: * Copyright: Copyright (c) 2005 - 2011 * Company: Pronamic * @author Remco Tolsma * @version 1.0 */ class Pronamic_Softwear_WooCommerce_Product { /** * WordPress post ID * * @var string */ public $id; /** * WordPress post title * * @var string */...
true
1dbf08cbe213e4973f6d2d911dbeee4c05a09690
PHP
johnvandeweghe/php-api-library-core
/src/CacheControlInterface.php
UTF-8
487
2.921875
3
[ "MIT" ]
permissive
<?php namespace PHPAPILibrary\Core; /** * Interface CacheControlInterface * @package PHPAPILibrary\Core */ interface CacheControlInterface { /** * Whether to consider the cache item private (for a specific user) or public (so a shared cache can use it). * @return bool */ public function isPri...
true
2e488d919b73791e2e86fa358b30d52468bf848c
PHP
PatTelnetCmd/Entomology-Database
/admin/add_order.php
UTF-8
3,930
2.5625
3
[]
no_license
<?php session_start(); require_once '../libs/config.php'; require_once '../libs/database.php'; require 'includes/functions.php'; $db = new database(); //instantiating database object /* inserting insect order */ if(isset($_POST['submit'])) { ...
true
c375b49a9d9cbcac8dce58de793b2db4d7841f39
PHP
artemypolenko/AnimalShelter
/Entities/Owners/Person.php
UTF-8
444
3.21875
3
[]
no_license
<?php namespace App\Entities\Owners; use App\Contracts\OwnerInterface; /** * @author Artemy Polenko */ class Person implements OwnerInterface { /** * @var string Имя владельца. */ private $name; public function __construct($name) { $this->name = $name; } /** * @return...
true
8c2bc6e3124dd1805c281174380454b012d575c5
PHP
jeanray/Oblig-2-EJ
/switchFunksjon.php
UTF-8
2,331
2.625
3
[]
no_license
<?php if (isset($_GET["funksjon"])) { $valgtFunksjon = $_GET["funksjon"]; // merk ":" i stedet for curly brackets. Les mer om det i slutten av switchen // Motmerk: man blir ser svært mange flere {} og venner seg til betydningen // i motsetning til : og "endswitch". Ser argumentet, men er dog uenig da // krøl...
true
9193dc6984c0f35ac6280778d802e8f8d58cc39c
PHP
padraic/Stickler
/library/Stickler/Scanner.php
UTF-8
1,405
2.90625
3
[]
no_license
<?php namespace Stickler; class Scanner { protected $detectors = array(); protected $log = array(); public function scan(FileTokens $tokens) { foreach($tokens as $index=>$token) { $this->notify($token, $index, $tokens); // notify all (limit by config later) } } ...
true
8dcec2669b6775bab17614a156a897e221e6f1d3
PHP
moodleou/moodle-filter_embedquestion
/classes/attempt_storage.php
UTF-8
5,467
2.59375
3
[]
no_license
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle ...
true
bb191ead6a13c082deee5e17ea87519da8210ad3
PHP
Dev91100/NouPartazer
/NouPartazer_App/lib/php/BusinessRegistration.php
UTF-8
3,383
2.609375
3
[]
no_license
<?php require_once("Connection.php"); function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } $brn = test_input($_POST["brn"]); $companyName = test_input($_POST["companyName"]);...
true
b8287c118bd1d59899063309fce647a80f913d29
PHP
Arthur1/abc
/abc133/c/abc133_c.php
UTF-8
431
3.53125
4
[]
no_license
<?php /** * ABC133 * C - Remainder Minimization 2019 */ // $s = trim(fgets(STDIN)); // fscanf(STDIN, "%d %d", $a, $b); // $n = array_map('intval', explode(' ', trim(fgets(STDIN)))); fscanf(STDIN, "%d %d", $L, $R); $result = PHP_INT_MAX - 1; for ($l = $L; $l <= $R; $l++) { for ($r = $l; $r <= $R; $r++) { ...
true
1bfb349098e7d12dd88d23a783a60b7c050efe4d
PHP
YRYcom/Harmony2
/Tools/CliProgressBar.php
UTF-8
750
3.03125
3
[]
no_license
<?php namespace Harmony2\Tools; /** * Created by Yannick LALLEAU. * Date: 09/02/2017 * Time: 15:01 */ class CliProgressBar { static $oldDisplayValue; static $maxLengthDisplay=0; public static function display($done, $total, $info = "", $width = 50) { $perc = round(($done * 100) / $total); if($perc != sel...
true
0c93445a71ade69b35bda8badb23e66c24b84a67
PHP
robertux/apollouesfmo
/clases/cusuario.php
UTF-8
5,724
3.234375
3
[]
no_license
<?php //include_once("cconexion.php"); /*! * \brief Clase que representa a los registros de la tabla docentes en la base de datos de Apollo * Los usuarios son capaces de iniciar y cerrar sesion dentro del sitio para obtener privilegios administrativos y agregar/editar/eliminar elementos */ class cUsuario {...
true
d3c28ebce3af6309812337fd4666afa4f778438b
PHP
eguvenc/framework_old
/app/folders/examples/forms/Element.php
UTF-8
900
2.609375
3
[ "MIT" ]
permissive
<?php namespace Examples\Forms; use Obullo\Http\Controller; class Element extends Controller { /** * Index * * @return void */ public function index() { if ($this->request->isPost()) { $this->validator->setRules('name', 'Name', 'required'); $this->val...
true
e62e3ae381447fe2b2f18abd3f7bb09f5812b72d
PHP
Przemar5/HTML-CSS-Javascript-and-PHP-tutorial-projects
/mmtuts/AJAX/AJAX 4/suggestions.php
UTF-8
290
2.796875
3
[]
no_license
<?php $names = array('Przemek', 'Piotr', 'Jan', 'Daniel'); if(isset($_POST['suggestion'])) { $name = $_POST['suggestion']; if(!empty($name)) { foreach($names as $existingName) { if(strpos($existingName, $name) !== false) { echo $existingName; } } } } ?>
true
0c3615f2baf41a364563beed0604c67be905d6dc
PHP
dominuskernel/school-environment
/backend/getdata.php
UTF-8
262
2.828125
3
[]
no_license
<?php header('Access-Control-Allow-Origin: *'); if(isset($_POST['num1']) && isset($_POST['num2'])){ $num1 = $_POST['num1']; $num2 = $_POST['num2']; echo "numero 1: ".$num1."<br>numero 2: ".$num2; }else{ echo "Erro al recibir los datos"; } ?>
true
b23142fb65d74db5d23c6900e53d4974f8444a5b
PHP
Yukun76/Projet5-DWJ
/src/Entity/Region.php
UTF-8
1,149
2.6875
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping\OneToMany; use Doctrine\ORM\Mapping as ORM; use App\Entity\Animal; /** * @ORM\Entity(repositoryClass="App\Repository\RegionRepository") */ class Region { /** * @ORM\Id() * @ORM\GeneratedValue() ...
true
76105a3614cc2a8b68de4155bbcc9429f9d1e0aa
PHP
cympak56/loftschool
/DM-3/src/AbstractController.php
UTF-8
443
3.015625
3
[]
no_license
<?php namespace Base; use App\Model\User; abstract class AbstractController { /** @var View */ protected $view; /** @var User */ protected $user; protected function redirect(string $url) { throw new RedirectException($url); } public function setView(View $view): void { ...
true
c65f54adba34dd61995738e1d74a599f90a84f9f
PHP
johndavedecano/Hello-API
/src/Modules/Core/Seeders/DatabaseSeeder.php
UTF-8
722
2.546875
3
[ "MIT" ]
permissive
<?php namespace Hello\Modules\Core\Seeders; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Seeder; use Hello\Services\Authorization\Seeders\SeedRolesAndPermissions; /** * Class DatabaseSeeder. * * @author Mahmoud Zalt <mahmoud@zalt.me> */ class DatabaseSeeder extends Seeder { /** * The...
true
51b45c6f92d6faaed59bc9c173ffd804dd0277ac
PHP
dwilbourne/pvcInterfaces
/src/struct/range_collection/RangeElementDateTimeInterface.php
UTF-8
769
2.765625
3
[ "MIT" ]
permissive
<?php /** * @author: Doug Wilbourne (dougwilbourne@gmail.com) */ declare(strict_types=1); namespace pvc\interfaces\struct\range_collection; use DateTime; use DateTimeImmutable; /** * @interface RangeElementDateTimeInterface is the DateTime-based interface for a RangeElement. * @extends RangeElementInterface<Ra...
true
9bc7dba4d6b3d8d26a70b71177f5a95d43dc1b82
PHP
Zhuravleva08062005/Mutate
/src/AC/Mutate/Application/Application.php
UTF-8
4,844
2.6875
3
[ "MIT" ]
permissive
<?php namespace AC\Mutate\Application; use AC\Mutate\Transcoder; use AC\Mutate\TranscodeLogSubscriber; use Symfony\Component\Console\Application as BaseApplication; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Monolog\Logger; use Monolog\Handler\StreamH...
true
cf2ba5ae6a968f21c5c44d35f35c330459c8ae21
PHP
pgrimaud/cheetahmail-sdk
/src/Campaigns/Content/CorrespondanceMTODeleteResponse.php
UTF-8
942
2.578125
3
[ "MIT" ]
permissive
<?php namespace Cheetahmail\Campaigns\Content; class CorrespondanceMTODeleteResponse { /** * @var boolean $CorrespondanceMTODeleteResult */ protected $CorrespondanceMTODeleteResult = null; /** * @param boolean $CorrespondanceMTODeleteResult */ public function __construct($Correspo...
true
753b26a6032a38f4c92e3b71c2284ec70afc1a9b
PHP
hivepress/hivepress-updates
/includes/components/class-updater.php
UTF-8
5,983
2.78125
3
[]
no_license
<?php /** * Updater component. * * @package HivePress\Components */ namespace HivePress\Components; use HivePress\Helpers as hp; // Exit if accessed directly. defined( 'ABSPATH' ) || exit; /** * Updater component class. * * @class Updater */ final class Updater extends Component { /** * Class constructo...
true
f411602d001f805d88835618f345450d47b62703
PHP
SadowyKinga/WDPAI
/src/Repository/ICrudRepository.php
UTF-8
188
2.609375
3
[]
no_license
<?php interface ICrudRepository { public function findById($id); public function findAll($id); public function delete($id); public function save($entity); } ?>
true
3b32ff673cc6db9005c17929d8aa67398a0e8969
PHP
tipui/Tipui-PHP
/Builtin/Libs/Request.php
UTF-8
2,453
2.75
3
[]
no_license
<?php /** * @class Request * @file Request.php * @brief URL and CLI parameters abstraction. * @date 2013-06-22 14:50:00 * @license http://opensource.org/licenses/GPL-3.0 GNU Public License * @company: Tipui Co. Ltda. * @author: Daniel Omine <omine@tipui.com> * @updated: 2014-01-23 12:50:00 */ namespace Tipui\Bu...
true
257e125a7dca1878de364b35ae88c2917d0c8458
PHP
masitings/lavender
/app/Http/Composers/Partials/MessageComposer.php
UTF-8
408
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Composers\Partials; use App\Support\Facades\Message; class MessageComposer { public function compose($view) { $messages = []; foreach(config('store.message_types') as $type){ $message = Message::get($type); if($message->getMessages()) $messa...
true
9b5b6510b19eb13d4ad849073b4d6af0787c7b4f
PHP
laravel/telescope
/src/Watchers/EventWatcher.php
UTF-8
4,998
2.515625
3
[ "MIT" ]
permissive
<?php namespace Laravel\Telescope\Watchers; use Closure; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Support\Str; use Laravel\Telescope\ExtractProperties; use Laravel\Telescope\ExtractTags; use Laravel\Telescope\IncomingEntry; use Laravel\Telescope...
true
d27d77053b085d6d815cec38179fd62f22126877
PHP
morrizon/ToDDDoList
/src/Context/Task/Domain/Task.php
UTF-8
364
3.0625
3
[]
no_license
<?php namespace ToDDDoList\Context\Task\Domain; class Task { private $title; private $done; public function __construct($title, $done) { $this->title = $title; $this->done = $done; } public function getTitle() { return $this->title; } public function done(...
true
b8aff5027f1cf201fa52059e3f80136bc3f0d78d
PHP
kelkel17/skilltest1
/addstudent.php
UTF-8
1,949
2.875
3
[]
no_license
<?php require_once("dbconn.php"); $view = viewAllDepartments(); if(isset($_POST['submit'])){ $fname = $_POST['fname']; $lname = $_POST['lname']; $age = $_POST['age']; $gender = $_POST['gender']; $year = $_POST['year']; $dept = $_POST['department']; $data = array($fname,$lname,$age,$gender,$year,$dep...
true
f67b45991232e5f37b0d78912cd9089f874cfdf8
PHP
lamine87/Exercices2-php-poo
/liste_produits.php
UTF-8
1,737
2.78125
3
[]
no_license
<?php require 'Product.php'; $basket = new Product('Nike'); $basket->setNom('Nike AirMax'); $basket->setPrixHT(120); $basket->setQteStock(8); $basket->setPhoto('nike_airmax.png'); $sweat = new Product('Adidas'); $sweat->setNom("sweat capuche"); $sweat->setQteStock(6); $sweat->setPhoto('kangol.jpg'); $casquette = ne...
true
dc38a4d0431c3e8d0a459dfd3fdedc9085558d15
PHP
Chivan/Dirigendo
/src/Dirigendo/FrontEndBundle/MysqlSpatial/tests/CrEOF/Tests/ORM/Functions/NumPointsTest.php
UTF-8
3,124
2.734375
3
[ "MIT" ]
permissive
<?php /** * Copyright (C) 2012 Derek J. Lambert * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, me...
true
5c34d41d145ead8ce87ead91ecd0535eba0e4034
PHP
GDIBass/movie-collection-app
/src/Traits/LoggerTrait.php
UTF-8
456
2.796875
3
[]
no_license
<?php /** * @author Matt Johnson <matt@gdibass.com> */ namespace App\Traits; use Psr\Log\LoggerInterface; /** * Trait LoggerTrait * Adds auto-wired logging to a class * * @package App\Traits */ trait LoggerTrait { /** * @var LoggerInterface */ protected $logger; /** * @param Logger...
true
65d4f464c4d7ad30fe5189d918d14427985d15b4
PHP
Muqeet1/PHP-Admin-Control-Panel
/admin/adduser.php
UTF-8
1,396
3.3125
3
[]
no_license
<?php /* file: adduser.php desc: Adds the user into database with generated password if the username does not already exist */ function genRndString($length = 10, $chars = '1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ') { if($length > 0) { $len_chars = (strlen($chars) - ...
true
7bbfcea1b2521a85fb4fb8fd65828027bff56d0a
PHP
jeevitha-gv/freshgrc
/php/common/saveChat.php
UTF-8
1,369
2.640625
3
[]
no_license
<?php require_once __DIR__.'/../common/constants.php'; require_once __DIR__.'/../common/dbOperations.php'; require_once __DIR__.'/../common/metaData.php'; class ChatManager { public function saveChat($chatData){ $sql = 'INSERT INTO chat(sender_id, receiver_id, message, message_sent_time) VALUES (?, ?...
true
446f54600aef1dc41a932f3aa3cda0ad7e5af88d
PHP
redtagmobile/teste
/SDI - POO - PDO/source/Controllers/ControllerPdf.php
UTF-8
9,610
2.546875
3
[ "MIT" ]
permissive
<?php namespace Source\Controllers; use Source\Database\Connect; class ControllerPdf { public function read($id_destino_fk, $dia_passeio, $id_veiculo) { $dia_passeio = $dia_passeio; $sql = "SELECT DISTINCT(familia.codigo_familia) as codigoDasFamilia, familia.id_des...
true
d75f1c0ddc9a63624ac2e816120ae764c57318f8
PHP
harukarist/thanks
/cardList_sent.php
UTF-8
6,285
2.59375
3
[]
no_license
<?php //共通ファイル読込み・デバッグスタート require('function.php'); debugLogStart(); //ログイン認証 require('auth.php'); //------------------------------------------------- // 画面処理 //------------------------------------------------- // 一覧画面表示用データ取得 //------------------------------------------------- // GETパラメータを取得 //---------------------...
true
752d640d0f754897510b7839ef0107dd52f324fe
PHP
oligus/schema
/src/Serializers/TypeSerializers/ObjectSerializer.php
UTF-8
2,198
2.9375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace GQLSchema\Serializers\TypeSerializers; use GQLSchema\Field; use GQLSchema\Serializers\Serializer; use GQLSchema\Types\ObjectType; use GQLSchema\Types\InterfaceType; use GQLSchema\Exceptions\SchemaException; use GQLSchema\Serializers\FieldSerializer; use GQLSchema\Collections\I...
true
8c87ee4f0fc4c7e666da756224095604f36ec0c5
PHP
adamworks/laravel-movies
/app/Foundation/Validation/Form.php
UTF-8
2,373
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Foundation\Validation; use Illuminate\Support\Facades\Validator; use App\Foundation\Exceptions\NoValidationRulesFoundException; class Form { protected $data; protected $validationRules; protected $validationMarkdowns; protected $validationMessages = []; protected $validator; ...
true
29ec1d15a60634b57c0d71413cba5655156e7566
PHP
wxy000/Comment2Bark
/Plugin.php
UTF-8
5,003
2.5625
3
[]
no_license
<?php /** * 推送评论通知 * * @package Comment2Bark * @author wxy * @version 1.0.3 * @link http://118.178.241.13 */ class Comment2Bark_Plugin implements Typecho_Plugin_Interface { /** * 激活插件方法,如果激活失败,直接抛出异常 * * @access public * @return void * @throws Typecho_Plugin_Exception */ p...
true
0efbeeaa5320a93681ad93159e46d0f2ccc2368d
PHP
gurov-itstep-php/teach-assistant
/sys/core/form.php
UTF-8
2,573
2.59375
3
[]
no_license
<?php namespace sys\core; use \sys\lib\Field as Field; class Form { public $name; public $className; public $methodName; public $actionPath; public $enctype; public $fields; public function generate() { // <form echo('<form'); echo(' id="'.$this->name.'"'); ...
true
697fbd94ca9784039b5fdd4f4dcdae6f442579ed
PHP
ludovicjj/glide
/src/Helper/StringHelper.php
UTF-8
689
3.21875
3
[]
no_license
<?php namespace App\Helper; class StringHelper { /** * Replace last middle dash to dot * * @param string|null $subject * @param string $needle * @param string $replacement * @return string|null */ public static function replaceLastMiddleDashToDot( ?string $subject,...
true
252e4f61eac6e24d40422563e949d73f2be6c7ec
PHP
qi500/rapid-php
/apps/core/classier/wrapper/OrderWrapper.php
UTF-8
2,053
2.703125
3
[ "MIT" ]
permissive
<?php namespace apps\core\classier\wrapper; use apps\core\classier\config\OrderConfig; use apps\core\classier\model\AppOrderModel; use apps\core\classier\wrapper\user\AddressWrapper; class OrderWrapper extends AppOrderModel { /** * 订单状态文本 * @var string|null */ public $status_text; /** ...
true
5cb370cfe9fc42f5dd3462047142ddc37d94697d
PHP
Ganeshnadar/inventroy_management
/app/Http/Controllers/CategoryController.php
UTF-8
2,931
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Category; use App\Repositories\CategoryRepositoryInterface; class CategoryController extends Controller { /** * @var \App\Repositories\CategoryRepository. * */ private $categoryRepository; public function __constr...
true
7491c3e807586ec820d640474dfa34d379f9ed3b
PHP
netz98/n98-magerun
/src/N98/Magento/Application/Console/EventSubscriber/CheckRootUser.php
UTF-8
1,573
2.671875
3
[ "MIT" ]
permissive
<?php namespace N98\Magento\Application\Console\EventSubscriber; use N98\Magento\Application\Console\Event; use N98\Magento\Application\Console\Events; use N98\Util\OperatingSystem; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface; class CheckRootUser...
true
3affb9046b7456865a408612f8c2a4fe5cc3d1b9
PHP
MartDevelopers-Inc/Order_Processing_MIS
/vendor/ruflin/elastica/src/Connection/Strategy/Simple.php
UTF-8
779
2.625
3
[ "MIT" ]
permissive
<?php /* * This is the default license template. * * File: Simple.php * Author: root * Copyright (c) 2021 root * * To edit this license information: Press Ctrl+Shift+P and press 'Create new License Template...'. */ namespace Elastica\Connection\Strategy; use Elastica\Connection; use Elastica\Excepti...
true
87c22823c369022211bdc2a0872aeeedf0912c44
PHP
MirosTruckstop/mt_server_api
/src/api/admin/NewsGeneration.php
UTF-8
3,129
2.859375
3
[]
no_license
<?php /** * Automatically generate news entries based on new photo uploads (and newly * create galleries). * * @package api * @subpackage admin */ class MT_Admin_NewsGeneration extends MT_Admin_Common { /** * Timestamp of the last news * * @var integer */ private $timestampLatestNews; /** * *...
true
4eb1462d0169c87033c6d7207dd4b47101e1aa25
PHP
jmvedrine/moodle-qformat_imsqti21
/moodle/serializer/calculated_formula_serializer.class.php
UTF-8
11,194
2.9375
3
[]
no_license
<?php /** * Translate Moodle calculated formulas to QTI formulas. * * Tokens regex * * id = [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]* * number = [0-9]*\.?[0-9]+([eE][-+]?[0-9]+)? * varref = \{[a-zA-Z_][a-zA-Z0-9_]*\} * * Grammar * * expression = ["+"|"-"] term {("+"|"-") term} . * term = factor {("*"|"/"...
true
398ed9f1bfb2b62843200804c413af67ae1ddae9
PHP
TummanoonW/Proto-Framework
/@proto/library/api.php
UTF-8
3,369
3.15625
3
[ "MIT" ]
permissive
<?php class API{ private $apiKey = "null"; function __construct($apiKey){ if(isset($apiKey)){ $this->apiKey = $apiKey; } } //build URL with custom path and all the parameters provided public function getURL($path, $method, $query){ ...
true
aa3d1435804be04dd358741be6d838a88c888fa8
PHP
isabella232/gedcomx-php-sample-app
/src/examples/CurrentUserPerson.php
UTF-8
548
2.890625
3
[ "MIT" ]
permissive
<?php include '../header.php'; include '../includes/prettyprint.php'; // First we make a request to the API for the current user's person and save the response $response = $client->familytree()->readPersonForCurrentUser(); // Check for errors if($response->hasError()){ handleErrors($response); ...
true
46d7d7729c8ffd79fccb6e22c24e511c7c4a901d
PHP
enerl/GSB-Report
/src/GSB/Domain/VisitReport.php
UTF-8
1,663
3.046875
3
[]
no_license
<?php namespace GSB\Domain; class VisitReport { /** * Visit Report id. * * @var integer */ private $id; /** * practitioner id. * * @var integer */ private $practitionerId; /** * Visit id. * * @var integer */ pr...
true
4e2d543323e4a5ffa310a0e158418140a760ed40
PHP
haihai317/hcc
/database/migrations/2019_03_12_075047_create_role_table.php
UTF-8
1,303
2.71875
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateRoleTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { //生成角色表 Schema::create('ro...
true
bd1fc2e6486ad75332f1345223c47d2f53aa2205
PHP
epsi-rns/AlumniBook-SF
/lib/filter/doctrine/AlumniFormFilter.class.php
UTF-8
4,051
2.59375
3
[ "MIT", "CC-BY-2.5", "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
<?php /** * Alumni filter form. * * @package alumni * @subpackage filter * @author E.R. Nurwijayadi * @version 1.0 */ class AlumniFormFilter extends BaseAlumniFormFilter { static protected $order_by_choices = array( null => '', 1 => 'ID', 24 => 'Name', 11 => 'Created Time', 12 => 'Updated...
true
db274cda82f438bb82bdf2a40f986dfe11577744
PHP
ekadesign/applesTestTask
/database/migrations/2018_01_06_014508_add_foreign_key_to_apples.php
UTF-8
780
2.515625
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddForeignKeyToApples extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('apples', func...
true
dbfd32216f1e91ddaf09c1a6f01886ed138b9bed
PHP
BeautifulStack/php-back
/src/Crud/Transfer.php
UTF-8
895
2.65625
3
[]
no_license
<?php class Transfer extends CrudClass implements CrudInterface { protected $name = "transfer"; protected $key = "idTransfer"; protected $attributes = [ "idTransfer", "amount", "transferDate", "idUser", "idProject" ]; protected $foreignKey = [ "idU...
true
bf172ac4232bc59a37b422a20cd5596fa8c3f274
PHP
C4Chip/nov18
/getdata2.php
UTF-8
893
3.328125
3
[]
no_license
<?php $query = "SELECT * FROM product ORDER BY costperiteam"; $result = mysqli_query($connection,$query); if (!$result) { die("databases query failed."); } echo "How to order? </br>"; echo "Choice only one between description and price !<br>"; echo '<input type="radio" name="description" ...
true