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
2a4022ee8d3212b8ec87e093875fd810d8d3797e
PHP
WilliamAlmeida/Supremus-ACC-Naruto
/app/database/migrations/2016_03_26_163057_create_server_record_table.php
UTF-8
602
2.53125
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateServerRecordTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('server_record', function(Blueprint $table) { $table->integer('record')...
true
5113b10429a684951c7bed1e4fe4d20729d97586
PHP
Jhon-Dante/g-nobo
/app/Models/ProductColor.php
UTF-8
415
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class ProductColor extends Model { protected $table = "product_colors"; protected $fillable = [ 'name', 'name_english' ]; public function product() { return $this->belongsTo(Product::class,'product_id'); } public fun...
true
b049945d3fddf29163f63fbaff267a2ee39c55a4
PHP
MarcoFaul/SwagGraphQL
/Schema/Mutation.php
UTF-8
1,540
2.859375
3
[]
no_license
<?php declare(strict_types=1); namespace SwagGraphQL\Schema; use Doctrine\Common\Inflector\Inflector; class Mutation { const ACTION_DELETE = 'delete'; const ACTION_CREATE = 'create'; const ACTION_UPDATE = 'update'; const ACTION_UPSERT = 'upsert'; /** @var string */ private $action; /**...
true
fd0f5714e148d3ca05b94e61450191f694bd5799
PHP
Skorzhyk/db.medel
/Model/Drone.php
UTF-8
1,194
2.765625
3
[]
no_license
<?php require_once 'Model/Model.php'; class Drone extends Model { const TABLE_NAME = 'drone'; public function __construct($data = []) { $this->tableName = self::TABLE_NAME; parent::__construct($data); } protected function create() { return $this->db->query( ...
true
336f7b7c1deb3c130cc0d7b06fbfccd1ca8c06cb
PHP
svengiegerich/kitamatch
/app/Matching.php
UTF-8
1,842
2.625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the KitaMatch app. * * (c) Sven Giegerich <sven.giegerich@mailbox.org> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ /* |-------------------------------------------------------------------------- | Matching Mo...
true
062ab7ce2d2b644ee244acfe5830820563ed295b
PHP
Qafoo/changetrack
/src/main/Qafoo/ChangeTrack/FISCalculator/MethodItem.php
UTF-8
1,161
3.0625
3
[ "MIT" ]
permissive
<?php namespace Qafoo\ChangeTrack\FISCalculator; class MethodItem extends RegularItem { /** * @var string */ private $package; /** * @var string */ private $class; /** * @var string */ private $method; /** * @param string $package * @param string ...
true
14e41bc928f8354a9d53dfd7203e6f9ec6d66546
PHP
wufei0/PMIS
/lib/classes/Functions.php
UTF-8
10,963
2.625
3
[]
no_license
<?php require_once $_SESSION['path'].'/lib/classes/MySQLClass.php'; class PersonnelFunctions{ var $MySQLi; function PersonnelFunctions(){$this->MySQLi = new MySQLClass();} public function getEmpPosition($eid){ $Position=$this->MySQLi->GetArray("SELECT `tblpositions`.`PosDesc` FROM (`tblempservicerecords` J...
true
63aaa423624fbcde04f280c81390f9141a24ebae
PHP
elecode/expressionParsing
/spec/Elecode/ExpressionParsing/PostfixEvaluatorSpec.php
UTF-8
1,874
2.765625
3
[]
no_license
<?php namespace spec\Elecode\ExpressionParsing; use Elecode\ExpressionParsing\Expression; use Elecode\ExpressionParsing\Expression\Symbol\Operand; use Elecode\ExpressionParsing\Expression\Symbol\Operator; use PhpSpec\ObjectBehavior; use Prophecy\Argument; class PostfixEvaluatorSpec extends ObjectBehavior { funct...
true
0b37789eb1fb6a1362953e88930fb6c6cee604de
PHP
ilmawansoy/PPW-LibraryTugas2
/services/borrow.php
UTF-8
1,800
2.671875
3
[]
no_license
<?php session_start(); function connectDB() { $servername = "localhost"; $username = "root"; $password = ""; $dbname = "personal_library"; // Create connection $conn = mysqli_connect($servername, $username, $password, $dbname); if (!$conn) { die("Connection failed: " + mysqli_connect_error()); ...
true
0ff14c675374a1550f2dae0c7e9ee296b8bef404
PHP
Danack/AurynWorkshop
/lib/AurynWorkshop/CliController/UserAccount.php
UTF-8
1,443
2.734375
3
[]
no_license
<?php namespace AurynWorkshop\CliController; use AurynWorkshop\Exception\ValidationException; use AurynWorkshop\Model\User; use AurynWorkshop\Repo\UserChangePasswordRepo; use AurynWorkshop\VariableMap; use AurynWorkshop\Repo\UserAddRepo; use AurynWorkshop\Params\CreateUserWithCredentialsParams; use AurynWorkshop\Par...
true
dc4da30b0825a14b6098a2c92be04261ed9e043d
PHP
zksilverman/Database_Design_Final_Project
/admin/updatepetform.php
UTF-8
7,673
3.0625
3
[]
no_license
<?php include 'top.php'; ?> <main> <h2>Administrators only: Presidential Data</h2> <h2>Update Pets</h2> <?php $petId = (isset($_GET['pid'])) ? (string) htmlspecialchars($_GET['pid']) : 0; $sql = 'SELECT pmkNumber, fldPresidentId, fldMainImage, '; $sql .= 'fldImageDescription, fldA...
true
a4d943f7ea79e5be4d0d47e45697ad272c68a9cf
PHP
vossavant/phoenix
/wp-content/themes/quoteboard/includes/gather-quote-fields.php
UTF-8
8,579
2.625
3
[]
no_license
<?php /* * QUOTEBOARD * Gather Form Fields * * Gathers form fields and performs operations common to both * adding and editing a quote. Better than having code in two places. * Called from add-quote.php and edit-quote.php. */ // gather and sanitize form fields //$quote_text_hashed = wp_unslash( sani...
true
e58944e246a4679e6923f6c8c692fc0fcfc74e03
PHP
rudra-06/PHP-project-1
/depts/superuser/home.php
UTF-8
4,047
2.546875
3
[]
no_license
<?php session_start(); if($_SESSION['user'] == ''){ $_SESSION['user'] = ''; header('location:index.php'); } else { include 'connection.php'; $user = $_SESSION['user']; //echo "<h4>Session started for : <h1>".$user."</h1></h4>"; // check if session exist. // if(empty($_SESSION['user'])){ // echo "not ...
true
b8f13424372a3a9bfa3cd373decf08ac604ec09c
PHP
mjm15n/lis4381
/p2/edit_petstore_process.php
UTF-8
4,367
2.609375
3
[]
no_license
<?php //show errors: at least 1 and 4... ini_set('display_errors', 1); //ini_set('log_errors', 1); //ini_set('error_log', dirname(__FILE__) . '/error_log.txt'); error_reporting(E_ALL); //use for inital test of form inputs //exit(print_r($_POST)); $pst_id_v = $_POST['pst_id']; $pst_name_v = $_POST['pst_name']; $pst_st...
true
f06ae21c57a9353016da0dd27d313ce01b1cec46
PHP
nemac95pn/Mini_social_network
/members.php
UTF-8
2,692
2.578125
3
[]
no_license
<?php session_start(); include("includes/connection.php"); include("includes/user_class.php"); User::autoLogin($con); if (isset($_GET['logout'])) User::logout(); if (!User::isLoggedIn()) header('Location: index.php'); ?> <!DOCTYPE html> <html> <head> <title>Welcome user!</title> <link rel="stylesheet" href="...
true
6b36351e0ca665414fb8145501e51f6c8fc7dc00
PHP
muglug/collection
/src/Contract/Operation/Containsable.php
UTF-8
263
2.515625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace loophp\collection\Contract\Operation; /** * @psalm-template T */ interface Containsable { /** * @param mixed ...$value * @psalm-param T ...$value */ public function contains(...$value): bool; }
true
59262695408c449c73627ef6e2a0f862f52f38fe
PHP
EMNayon/ProblemSolvingFor_PHP
/StringToInt.php
UTF-8
86
2.921875
3
[]
no_license
<?php function string_int($str){ echo $str; } $str = "5"; string_int($str); ?>
true
a743d923faba927642e9fb2258874e9253d2db92
PHP
devtrw/DevtrwParseBundle
/Exception/InvalidParseObjectException.php
UTF-8
814
2.703125
3
[ "MIT" ]
permissive
<?php /** * Copyright (c) Steven Nance <steven@devtrw.com> * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author Steven Nance <steven@devtrw.com> */ namespace Devtrw\ParseBundle\Exception; /** * Class InvalidParseObjectException ...
true
165b6f7f465d1383d6ce2ed51179d9d7483c11fe
PHP
rodrigohetic/symfony-01
/src/Services/QuoteService.php
UTF-8
1,272
3.0625
3
[]
no_license
<?php namespace App\Services; use App\Repository\QuoteRepository; use cebe\markdown\Markdown; class QuoteService { private $parser; private $quoteRepo; public function __construct(QuoteRepository $quoteRepo, Markdown $parser) { $this->quoteRepo = $quoteRepo; $this->parser = $parser;...
true
3df5c29018d9d2694ac0f05f77f7ac6b89489a60
PHP
Ludosopher/Algorithmic_problems_on_PHP
/Repeatable_search.php
UTF-8
3,250
3.6875
4
[]
no_license
<?php /* Найти количество повторений в массиве. Сложность O(logn) не должна измениться. Учтите, что массив длиной n может состоять из одного значения [4, 4, 4, 4, ...(n)..., 4] * */ $array = [1,2,3,4,4,4,4,4,4,4,4,4,4,5,6,7,8,6,10]; $num = 4; echo "<pre>"; print_r($array); echo "</pre><br>"; echo repeatableSearch...
true
5b73563bb6ad3ccd2733522a54be61708aa4cdaa
PHP
NetworkNigel/networknigel.github.io
/phpmyfaq/inc/PMF/Network.php
UTF-8
4,927
3.09375
3
[ "MIT" ]
permissive
<?php /** * The network class for IPv4 and IPv6 handling. * * PHP Version 5.5 * * This Source Code Form is subject to the terms of the Mozilla Public License, * v. 2.0. If a copy of the MPL was not distributed with this file, You can * obtain one at http://mozilla.org/MPL/2.0/. * * @category phpMyFAQ * * @...
true
4bff3e232b76a941aacb12fc10d774d0174a1264
PHP
mehenry83/222
/homework/homework5/MyBaseObject.php
UTF-8
700
2.59375
3
[]
no_license
<?php class MyBaseObject { private $content; function set_content($new_content) { $this->content = $new_content; } function get_content() { return $this->content; } private $client; function set_client($new_c...
true
142751231f143b7e18f02ba4a4c88f61ca88fb24
PHP
rishabh-kochar/EcommerceAPI
/Product/DiscountProduct.php
UTF-8
863
2.546875
3
[]
no_license
<?php include_once '../config/database.php'; include_once './Product.php'; $database = new Database(); $db = $database->getConnection(); $Product = new Product($db); //$data = json_decode(file_get_contents("php://input")); $id = $_GET['id']; //$id = 2; $stmt = $Product->DiscountProduct($id); $num = $stmt->rowCoun...
true
b7bdd5cf471db25e70495d48fd6b1f302b6389c9
PHP
misaeboca/ecomerce
/app/Payments/Cielo/Cielo.php
UTF-8
6,500
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Payments\Cielo; use App\Payments\Interfaces\IPaymentMethod; use App\Payments\MainPaymentMethod; use GuzzleHttp\Client; use Exception; class Cielo implements IPaymentMethod { //APIOOC URL https://developercielo.github.io/manual/cielo-ecommerce private $environment; private $sale; ...
true
3a990209f24ebb13bb27b3791ad1f108abf8d40c
PHP
iexbase/tron-api
/src/Support/BigInteger.php
UTF-8
7,003
3.46875
3
[ "MIT" ]
permissive
<?php namespace IEXBase\TronAPI\Support; use GMP; use InvalidArgumentException; use RuntimeException; class BigInteger { /** * The value represented as a string. * * @var string */ private $value; /** * A flag that indicates whether or not the state of this object can be changed....
true
f5c0b0a2692fc0fab1f4ba9a223e7c86a48ed781
PHP
ppofiant/ReadandWariteStationary
/database/seeds/UserSeeder.php
UTF-8
697
2.890625
3
[]
no_license
<?php use Illuminate\Database\Seeder; use App\User; class UserSeeder extends Seeder { /** * method dibawah merupakan seeding dimana kita membuat template insert data ke DB */ public function run() { $userNames = [ "admin", "member" ]; $userEmails = [ ...
true
4a0d702570c940de66dff726d65258f0f2d267d8
PHP
cedar1991/subtitle-tools
/app/Jobs/FileJobs/CleanSrtJob.php
UTF-8
680
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Jobs\FileJobs; use App\Subtitles\TextFile; use App\Subtitles\Tools\Options\SrtCleanerOptions; use App\Subtitles\Tools\SrtCleaner; use App\Subtitles\PlainText\Srt; class CleanSrtJob extends FileJob { protected $newExtension = 'srt'; protected $options = SrtCleanerOptions::class; publ...
true
18219188ffd447e55488464c6f69f5e6f112d8ec
PHP
MWWST/dojo_public_html
/demos/arrays.php
UTF-8
1,523
3.59375
4
[]
no_license
<?php // $students =array(); // $students[] = "Michael"; // $students[] = "Casey"; // $students[] = "Jimmy"; // $students[] = "Paul"; // echo "Thisis student 0:" . $students[0] . '<br>'; // echo "Thisis student 1:" . $students[1] . '<br>'; // echo "Thisis student 2:" . $students[2] . '<br>'; // echo "Thisis studen...
true
6978eab796f51abec5eebe189f37819ec7bd166b
PHP
biblioonline/nutgram
/src/Telegram/Types/Inline/InlineQueryResultGame.php
UTF-8
974
2.59375
3
[ "MIT" ]
permissive
<?php namespace SergiX44\Nutgram\Telegram\Types\Inline; use SergiX44\Nutgram\Telegram\Types\BaseType; use SergiX44\Nutgram\Telegram\Types\Keyboard\InlineKeyboardMarkup; /** * Represents a Game. * * Note: This will only work in Telegram versions released after October 1, 2016. * Older clients will not display any...
true
7fea6a10577f0f37f34b31e9bc60d0f1b6c72b82
PHP
gopalvirat/head-first-design-pattern
/src/Observer/Example1/Display/StatisticDisplay.php
UTF-8
1,483
3.359375
3
[]
no_license
<?php declare(strict_types = 1); namespace Maksi\HeadFirstDesignPattern\Observer\Example1\Display; use Maksi\HeadFirstDesignPattern\Observer\Example1\DisplayElement; use Maksi\HeadFirstDesignPattern\Observer\Example1\Observer; use Maksi\HeadFirstDesignPattern\Observer\Example1\WeatherData; /** * Class StatisticDisp...
true
32ad7090b24d3b7209b7ccbaf0c83ef124f039e3
PHP
morganjweaver/Team3DB
/MS3/check_variables_Personal_Information.php
UTF-8
3,084
2.578125
3
[]
no_license
<?php // set a boolean to track if Personal_Information fields are completed $personalInfoIsComplete = True; if (strlen($_POST['student_fname']) > 0) { $student_fname = $_POST['student_fname']; } else { echo "<p> <font color='red'>* First name not entered. </font> <p>"; $personalInfoIsComplete = False; } if(strle...
true
9ed94d87cd780fbc20dbd17c4c4cfe1b77fac22d
PHP
tyagibhai/wesite
/app/Http/Livewire/Common/Seo.php
UTF-8
2,194
2.640625
3
[]
no_license
<?php namespace App\Http\Livewire\Common; use Illuminate\Http\Request; use App\Models\Article; use Livewire\Component; class Seo extends Component { public $pagePath = null; public $pageSlug = null; public $seoDetails = []; public $pageUrl = null; public function mount(Request $request){ ...
true
cb91db0ff02e972d9498daef2f323207f16cba80
PHP
ARDINStephane/seriezzz
/src/Application/Doctrine/Repository/DoctrineBaseRepository.php
UTF-8
2,305
2.6875
3
[]
no_license
<?php namespace App\Application\Doctrine\Repository; use App\Application\Common\Repository\BaseRepository; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\ORM\QueryBuilder; use Doctrine\Common\Persistence\ManagerRegistry; /** * Class DoctrineBaseRepository * @package App\Applica...
true
e04577bb55c35d3d405ae35599592aa0e1f5a4ac
PHP
suxur/conquer-the-self
/application/libraries/user_auth.php
UTF-8
5,467
3.21875
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class User_auth { public function __construct() { $this->CI =& get_instance(); } // Log In // -------------------------------------------------------------------------- /** * This method checks to see if user exists. * If user ...
true
34641301b785a4fc3e5dc64417ecb33322a74196
PHP
tonylds1/simpletablereport
/src/simpletablereport/renderer/xlsx/helper/XlsxBaseHelper.php
UTF-8
1,678
2.71875
3
[ "Apache-2.0" ]
permissive
<?php /* * Copyright 2014 kelsoncm <falecom@kelsoncm.com>. * * 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...
true
c184eec3d601db1ee7484ab4ce1cefcba7788b1d
PHP
myanmarlinks/wpa30
/ooframe/wpa30/helpers.php
UTF-8
151
2.546875
3
[]
no_license
<?php function dump($data, $die = false) { var_dump($data); if($die == true) { die(); } } function dd($data) { var_dump($data); die(); } ?>
true
5cea7d26e6f98668bb69c08dd39f1f9bdd5a941f
PHP
Azikar/Timetable
/app/Repositories/SubordinatesRepository.php
UTF-8
414
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Interfaces\SubordinatesInterface; use App\User; class SubordinatesRepository implements SubordinatesInterface{ public function __construct(){ $this->user=new User(); } // could use redis to save list for further calls public function UserSubordin...
true
d935843c81d7f68a8f5100335a00b5cf11717d17
PHP
wanxiang-blockchain/hackathon2020-T11-Benefitom
/web/app/Http/Middleware/Broadcast.php
UTF-8
709
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: johnShaw * Date: 17/10/26 * Time: 上午10:35 */ namespace App\Http\Middleware; use App\Model\Member; use App\Model\Tender\TenderBroadcast; use App\Model\Tender\TenderBroadcastRead; use Closure; class Broadcast { /** * Handle an incoming request. * * @param \Illumina...
true
54c4e12f8041e7e4e1ef2ef6a7de3b06debec66d
PHP
jbogota/blog-king
/blog-king/wp-content/plugins/king-widgets/plugins/content_widgets.php
UTF-8
26,678
2.515625
3
[ "MIT" ]
permissive
<?php /* Plugin Name: Content Widgets Plugin URI: http://www.blog.mediaprojekte.de/ Description: Adds "Content Widgets" panel under Presentation menu. Author: Georg Leciejewski Version: 0.1 Author URI: http://www.blog.mediaprojekte.de/ */ //////////////////////////////////////////////////////////// Global Variables ...
true
55eafae35a7041f30fd0a89edd1c21d9b8c887f0
PHP
phpfarmers/ysw_wap
/application/models/sn_model.php
UTF-8
461
2.625
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Sn_model extends CI_Model { public function __construct() { parent::__construct(); $this->load->database(); } //查询指定数据库中编号最大值 public function sn($db) { $this->db->select('max(sn) as sn'); $query = $this->db->get_where($db...
true
3a0b9377224edcfb1e05ec297ab1506be7e4371b
PHP
Mario-Fernando24/desarrollowebunicor
/clase/ClaseBanco.php
UTF-8
2,394
2.546875
3
[]
no_license
<?php class Banco extends Conectar{ // declaro mi programa //***** FUNCION PARA MOSTRAR LOS PROGRAMAS public function get_Banco(){ $conectar=parent::conexion(); parent::set_names(); $sql="select * from banco;"; $sql=$conectar->prepare($sql); $sql->exec...
true
e2edb485bb11c90642a5f904e1e4511c4152f95f
PHP
rpetrano/ekade
/code/dsl/generated/php/platform/bootstrap/Connector.php
UTF-8
2,628
2.53125
3
[ "BSD-2-Clause" ]
permissive
<?php namespace NGS; abstract class Connector { const URL = 'https://api.dsl-platform.com/alpha/'; private static function curlSend($data, $action, $params = '') { $curl = curl_init(self::URL.$action.'/'.Project::$ID.$params); $body = json_encode($data, JSON_FORCE_OBJECT); if (Co...
true
b304ebd0a795362bb7ac13a45b02e9d957be6c10
PHP
jmaiiomar/CTL
/entities/panier.php
UTF-8
1,216
3.09375
3
[]
no_license
<?php class Panier { private $ID_Produit; private $Nom_Produit; private $Qty_Produit; private $Prix_Produit; public function __construct($ID_Produit,$Nom_Produit,$Qty_Produit,$Prix_Produit){ $this->ID_Produit=$ID_Produit; $this->Nom_Produit...
true
9a5a289473ac79f3c19208efa2bdd5202fdd5ced
PHP
vicent-dev/cron-php
/src/Domain/Validate/CronRunValidateInteraface.php
UTF-8
220
2.515625
3
[]
no_license
<?php declare(strict_types=1); namespace Cron\Domain\Validate; use Cron\Domain\Cron; use DateTime; interface CronRunValidateInteraface { function isValid(Cron $cron, DateTime $time, bool $previous = true): bool; }
true
9088fb557b06a24330b972d474747cc8c4b31998
PHP
noahkim/kowop
/protected/models/UserToExperienceStatus.php
UTF-8
302
2.734375
3
[]
no_license
<?php final class UserToExperienceStatus { private function __construct() { } const Active = 1; const Inactive = 2; public static $Lookup = array(UserToExperienceStatus::Active => 'Active', UserToExperienceStatus::Inactive => 'Inactive'); }
true
ebedc5b8b31de352edf55a9f3ae3628f0d6156b2
PHP
Inmersa/inmersa.ERP
/vhost/escritorio/scripts/cfg_periodificacion.php
UTF-8
2,416
2.515625
3
[]
no_license
<?php function pre_anyos(&$Sesion) { $accion = $Sesion->fetchVar('accion_ejecutar','POST'); $aNuevo = $Sesion->fetchVar('nuevo_anyo','POST'); $aDelList = $Sesion->fetchVar('registro_borrar','POST'); $aAnyos = $Sesion->fetchVar('anyos','POST'); $aAnyosOld = $Sesion->fetchVar('old_anyos','POST'); $oDb = $Sesion->...
true
074dfe6096f7944b40c9c23fa4c828dd2ee31f0c
PHP
pawelkudzia/WebFrameworks
/laravel/webservice/app/Http/Controllers/TestsController.php
UTF-8
1,399
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Dtos\Base64Dto; use App\Dtos\ErrorMessageDto; use App\Dtos\JsonTestDto; use Carbon\Carbon; use Illuminate\Http\Request; use Illuminate\Support\Str; class TestsController extends Controller { public function getJson(Request $request) { $jsonTestDto = new J...
true
53737a9f4cb1d9b0642048c89c23c584ccfc2dcb
PHP
minibasty/protocol_gps
/protocol9000.php
UTF-8
11,545
2.578125
3
[]
no_license
<?php error_reporting(E_ALL); /* Include function convert data */ require('convert9000.php'); // Include function insert to database require('insert.php'); // Include connect Database require('config_protocol.php'); /* Set timezone */ date_default_timezone_set("Asia/Bangkok"); /* Allow the script to hang around wa...
true
68a4e4b25219a23573811a15ae5ea52744d73add
PHP
elisabetros/fakeID
/lamp/src/entity/UserEmployee.php
UTF-8
266
2.921875
3
[ "MIT" ]
permissive
<?php require_once(__DIR__ . '/User.php'); class UserEmployee extends User { public $CVR; public $companyName; function __construct(string $CVR, string $companyName) { $this->CVR = $CVR; $this->companyName = $companyName; } }
true
f8a62440ca96e6643ce3711f0176ae5f5bfb1baa
PHP
mattmarillac/zen-migrate-mage
/functions.php
UTF-8
151
2.53125
3
[]
no_license
<?php function seoUrl($string) { $search = ["&amp;", " "]; $replace = ["&", "-"]; return str_replace($search, $replace, $string); } ?>
true
6276e355a33da9f01438a7eee3b512efe7ea2d64
PHP
paragkavar/halotask
/halotask/kohana/application/classes/model/role.php
UTF-8
3,482
2.890625
3
[ "BSD-3-Clause" ]
permissive
<?php class Model_Role extends ORM{ protected $_table_name = 'roles'; protected $_primary_key = 'id'; protected $_has_many = array('users' => array('model' => 'user', 'through' => 'roles_users')); /* Rules of 'role' table */ protected $_rules = array( 'name' => array( 'not_empty' => NULL ...
true
5dd80d2ef0130b129ad9acdd781f0868b87dbe33
PHP
RodneyZanoria/ER-MIS
/ER/er/application/views/v_part_fruits.php
UTF-8
1,583
2.5625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: jezrielbajan * Date: 4/3/15 * Time: 10:29 PM */ $arrcategory = array(); foreach($membercategory as $cat) { $arrcategory += array( $cat->ndex => $cat->classification ); } ?> <!-- Appear only when there is a match child --> <?php if(count($members)>0) { ?>...
true
39903e59c7e7ea9319c88d8d2c0046b19308cc72
PHP
infinum/eightshift-libs
/src/Helpers/ObjectHelperTrait.php
UTF-8
5,503
3.1875
3
[ "MIT" ]
permissive
<?php /** * The object helper specific functionality inside classes. * Used in admin or theme side but only inside a class. * * @package EightshiftLibs\Helpers */ declare(strict_types=1); namespace EightshiftLibs\Helpers; use DOMDocument; use EightshiftLibs\Exception\InvalidManifest; /** * Class Object Helpe...
true
5c51fe14c0dfbe2237283db6962da92c43c0ed9e
PHP
lackone/laravel-admin
/app/Http/Middleware/LoginCheck.php
UTF-8
619
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; use Symfony\Component\HttpFoundation\Response; class LoginCheck { /** * Handle an incoming request. * * @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next */ public fu...
true
ff60f0d8aa52de939f2d2f864c045685a899224d
PHP
Desilva/ecommercejb
/protected/modules/jbAdmin/models/Article.php
UTF-8
3,517
2.734375
3
[]
no_license
<?php /** * This is the model class for table "article". * * The followings are the available columns in table 'article': * @property integer $id * @property integer $id_article_category * @property integer $id_article_category_pembaca * @property string $created_by * @property string $post_date * @property s...
true
44c2c3c87296208c3b53bb83392fcad57f1fbc85
PHP
andreafrancia/trivia-php-2019-10-18
/GameRunner.php
UTF-8
389
3.078125
3
[]
no_license
<?php require_once __DIR__ . '/Game.php'; $notAWinner = false; $aGame = new Game(); $playersName = ['Chet', 'Pat', 'Sue']; foreach ($playersName as $playerName) { $aGame->add($playerName); } do { $aGame->roll(rand(0, 5) + 1); $notAWinner = rand(0, 9) == 7 ? $aGame->wrongAnswer()...
true
710a01c720c89f5f7228c214747a8c2350ee61b1
PHP
RichardTrujilloTorres/almendra-psr7
/src/Helpers/URI.php
UTF-8
3,756
3.171875
3
[ "MIT" ]
permissive
<?php namespace Almendra\Http\Helpers; use Psr\Http\Message\UriInterface as PsrUri; class URI { /** * Retrieve the parameters from the URI * * @param string $uri The URI * @param boolean $serialized It's to be serialized? * @return mixed */ public static function getQuer...
true
b15fdda62e5568220fc71b27d01c849fc1afff7e
PHP
cx-kyle/c2c
/backend/behaviors/AfterLogin.php
UTF-8
840
2.65625
3
[ "Apache-2.0" ]
permissive
<?php namespace backend\behaviors; use Yii; use yii\web\User; use yii\base\Behavior; /** * 登陆后的行为 * * Class AfterLogin * @package backend\behaviors * @author cx */ class AfterLogin extends Behavior { /** * @var int */ public $attribute = 'logged_at'; /** * {@inheritdoc} */ p...
true
32a56a06abdca306ebdfec4d56ca420c9c21b07c
PHP
countless-integers/elastic-apm-laravel
/src/Middleware/RecordTransaction.php
UTF-8
3,314
2.625
3
[ "MIT" ]
permissive
<?php namespace AG\ElasticApmLaravel\Middleware; use Closure; use Throwable; use PhilKra\Events\Transaction; use Illuminate\Http\Request; use Illuminate\Http\Response; use Illuminate\Routing\Route; use Illuminate\Support\Facades\Log; use AG\ElasticApmLaravel\Agent; /** * This middleware will record a transaction fr...
true
135ec6affb82e8e04eff3a2e67585db385355e1a
PHP
Shashankgupta198/Gadgets-Mart
/admin/insertproduct.php
UTF-8
2,706
2.578125
3
[]
no_license
<?php session_start(); $message = ""; $iserror = true; if (isset($_POST["productname"]) && isset($_POST["subcategoryid"]) && isset($_POST["companyid"]) && isset($_POST["price"]) && isset($_POST["description"]) && isset($_POST["discount"])) { $productname = trim($_POST["productname"]); $subcategoryid = trim($_P...
true
7da7d8e709726c631b586d9f63b9bb9099e8a502
PHP
zagovorichev/laravel-languages
/src/Manager/PathManager.php
UTF-8
2,025
2.625
3
[ "MIT" ]
permissive
<?php /** * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MIT Public License for more details. * * Copyright (c) 2016. (original work) Blog-Tree.com; * * @author A...
true
20d43ceb756ec065e22f140b1baf48d43f83658c
PHP
malbin/peers
/app/models/network.php
UTF-8
2,782
2.5625
3
[]
no_license
<?php class Network extends AppModel { var $name = 'Network'; var $displayField = 'name'; var $belongsTo = array( 'Owner' => array( 'className' => 'User', 'foreignKey' => 'user_id', 'conditions' => '', 'fields' => '', 'order' => '' ) ); var $hasAndBelongsToMany = array( 'User' => array( '...
true
a96fa0de3dbf9fb339aefaf8b13fec9e4bd28cb1
PHP
tomasko126/bachelor-thesis
/src/app/View/Components/AnimalOverview.php
UTF-8
5,427
2.8125
3
[]
no_license
<?php namespace App\View\Components; use DateTime; use Exception; use Illuminate\View\Component; use Illuminate\View\View; class AnimalOverview extends Component { public $animal; public $litter; public $orientation; /** * Create a new component instance. * * @param $animal * @pa...
true
2312979aa46cb6ceb305acf302ea291cb5645e61
PHP
jtl-software/connector-core
/src/Authentication/TokenValidatorInterface.php
UTF-8
239
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Jtl\Connector\Core\Authentication; interface TokenValidatorInterface { /** * @param string $token * * @return bool */ public function validate(string $token): bool; }
true
5eeabbf0c5e702cbf5726501a7ffee93a7989f32
PHP
ShemaAxel/QuizGame
/app/Http/Controllers/StudentsController.php
UTF-8
11,036
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Students; use App\Quizes; use App\Levels; use App\Http\Resources\Helper; use Illuminate\Http\Request; use Illuminate\Support\Facades\Log; class StudentsController extends Controller { /** * @var $helpers an instance of the helpers class */ private $he...
true
89ef3fc4a7d3a959e1c451afcd6ffb80f26d5826
PHP
ChrisIbitinga/social-sebo
/app/classes/Session.php
UTF-8
562
2.953125
3
[]
no_license
<?php namespace app\classes; class Session { private static function initialize() { if (session_status() == PHP_SESSION_NONE) session_start(); } public static function setValue(string $key, string $value) { self::initialize(); $_SESSION[$key] = $value; } ...
true
baae631c8440f6f13f43332ec72aed1e4dd201dd
PHP
saltybeagle/jackalope
/src/Jackalope/NodeType/NodeTypeDefinition.php
UTF-8
11,814
2.84375
3
[ "Apache-2.0" ]
permissive
<?php namespace Jackalope\NodeType; use Jackalope\Helper; use \DOMElement, \DOMXPath, \ArrayObject; /** * The NodeTypeDefinition interface provides methods for discovering the * static definition of a node type. These are accessible both before and * after the node type is registered. Its subclass NodeType adds me...
true
08e171272c4defb4688631a349932e37778cd2c9
PHP
thereference/drupal-security-audit
/coder_sniffer/Security/Sniffs/BadFunctions/PregReplaceSniff.php
UTF-8
2,191
2.859375
3
[]
no_license
<?php class PregReplaceSniff implements PHP_CodeSniffer_Sniff { /** * Returns the token types that this sniff is interested in. * * @return array(int) */ public function register() { return array(T_STRING); } /** * Processes the tokens that this sniff is interested in. * * @param PHP_CodeSniffer_File $...
true
c224857de018953a3ba538c8b90cfa057a521ce8
PHP
ciaranmcnulty/training-demo
/src/Cjm/Training/Infrastructure/Fake/TrainerDirectory.php
UTF-8
440
2.65625
3
[]
no_license
<?php namespace Cjm\Training\Infrastructure\Fake; use Cjm\Training\Core\Trainer; use Cjm\Training\Core\TrainerDirectory as TrainerDirectoryInterface; final class TrainerDirectory implements TrainerDirectoryInterface { private array $trainers = []; public function create(Trainer $trainer): void { ...
true
ceac395734823f87b24577d37dc50e4ba9e74e6f
PHP
RyGoCRGT/PersonalUAB
/controller/DepartamentoContactoControlador.php
UTF-8
1,682
2.75
3
[]
no_license
<?php class DepartamentoContactoControlador { private $Conexion; function __construct($conexion) { $this->Conexion=$conexion; } public function listar() { $consulta=new DepartamentoContactoConsulta($this->Conexion); $listaDepContacto=$consulta->listaDepartamentoContacto(); $listaArrayDepC...
true
a24a0d30aa5288467660299cd62faeadc911f675
PHP
Vandise/GameRoom
/GameShelfProject/includes/dbconnect.inc.php
UTF-8
544
2.828125
3
[]
no_license
<?php // Database credentials. $host = 'localhost'; $user = 'root'; $password = ''; $dbname = 'gameshelf'; // Setting dsn here rather than while making new PDO, allowing easier inclusion of variables with concatenation. $dsn = 'mysql: host=' . $host . ';dbname=' . $dbname; // Establishing database c...
true
d2264433f60e1a19b9becb11ff4cf62da0228693
PHP
AkashKrDutta/cs727a
/ass2/html/StudentPersonal.php
UTF-8
833
2.796875
3
[]
no_license
<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="./style.css"> </head> <body> <?php $servername = "localhost"; $username = "root"; $password = "akash333!!!"; $dbname = "schoolDB"; $conn = new mysqli($servername, $username, $password, $dbname); if ($_SERVER["REQUEST_METHOD"] == "POST")...
true
b04185975bdf157cc971ad3fa68c007934302cc1
PHP
manpakhong/rabbitforever
/models/eos/SystemConfigEo.php
UTF-8
1,525
2.6875
3
[]
no_license
<?php class SystemConfigEo{ public static $LANG_TCHI = 'LANG_TC'; public static $LANG_EN = 'LANG_EN'; private $isProduction; private $defaultLanguage; private $backgroundsPath; private $defaultBlogRecordsPerPage; private $cookieExpiryHr; private $defaultRecentUpdateRecords; public function getIsProdu...
true
b8964976bd5fe7ed5d1af220e326d9570dd16e7d
PHP
powerbase/powerbase-xq
/src/main/php/PowerBase.php
UTF-8
567
2.640625
3
[ "Apache-2.0" ]
permissive
<?php require_once("PowerBase/User.php"); require_once("PowerBase/EndPoint.php"); require_once("PowerBase/Connector.php"); class PowerBase extends Connector { const COMMAND_GET_INDEX = "GetIndex"; const COMMAND_GET = "Get"; const COMMAND_GET_LIST = "GetList"; const COMMAND_GET_BY_ID = "GetById"; private $connect...
true
80c992aa0506d19e5d3ba975ba246a32e9a28e58
PHP
wangshouli-sd/bbs
/helpers/func.php
UTF-8
4,517
2.796875
3
[]
no_license
<?php /** * -------------------------------------------------------------------------------------------------+ * 公共函数库 | * -------------------------------------------------------------------------------------------------+ */ /** * 魔术转译 * @param String $data * @return String ...
true
b332f679068ed13ef56c8ac9ccdce33952832754
PHP
chenshun-master/project
/application/api/domain/RhirdPartyUserDomain.php
UTF-8
2,194
2.53125
3
[ "Apache-2.0" ]
permissive
<?php namespace app\api\domain; use think\Db; class RhirdPartyUserDomain { /** * 返回第三方登录手机号 * @param array $params 授权参数 * @param $type 授权类型 1:微信授权 2: * @return array|bool * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\ModelNotFoundE...
true
3f8ac1026c792136ac30dabe004488d615fb952c
PHP
Pingumask/Exercices-php
/exos/pays.php
UTF-8
3,549
3.21875
3
[]
no_license
<p> Créer une fonction où vous déclarez un tableau contenant plusieurs pays, puis : <ul> <li> Pour chaque pays entrer lui les informations suivantes : <ul> <li>Le nombre d'habitants</li> <li>La capitale</li> <li>Le nombre d'habitant d...
true
506ba454729f9059ec3a157a716dff94e5965e77
PHP
Omegatcu/brutalforce
/src/BrutalForce/FileManager/File.php
UTF-8
1,157
3.171875
3
[]
no_license
<?php namespace BrutalForce\FileManager; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Filesystem\Exception\IOExceptionInterface; /** * Description of File * * @author Rodrigo Manara <me@rodrigomanara.co.uk> */ class File { /** * * @var Filesystem */ public $fs; ...
true
279748f079d7098b73aefb082beef80601367eb0
PHP
ruhulaminshaon/secendproject
/2nd_project/user_edit.php
UTF-8
5,449
2.53125
3
[]
no_license
<?php error_reporting(E_ALL); //echo"<pre>"; //print_r($_POST); //echo"</pre>"; //exit(); include('config.php'); if($_SERVER['REQUEST_METHOD']=="POST"){ if(isset($_POST['user_update_save'])){ if(isset($_FILES['user_image']['name']) && $_FILES['user_image']['name'] != ''){ if(file_exists("image/".$_FIL...
true
a45b6ad52dbb61eeb9a12fc742c1c003a06636fb
PHP
durjoy383/learning-web-technologies-spring-2020-2021-sec-d
/MID_LAB_TASK_PHP_04/vat.php
UTF-8
413
3.453125
3
[]
no_license
<?php //The VAT rate / percentage. $vat = 21.5; //The price, excluding VAT. $priceExcludingVat = 10; //Calculate how much VAT needs to be paid. $vatToPay = ($priceExcludingVat / 100) * $vat; //The total price, including VAT. $totalPrice = $priceExcludingVat + $vatToPay; //Print out the final price, with VAT added....
true
77c56d3061bcc16dfb63411127517ce8acaee994
PHP
sonthanhng/WeatherData-Observer-Pattern
/WeatherStation.php
UTF-8
501
2.734375
3
[]
no_license
<?php require('ISubject.php'); require('WeatherData.php'); require('CurrentConditionsDisplay.php'); /** * */ class WeatherStation { function __construct() { $weatherData = new WeatherData(); $currentDisplay = new CurrentConditionsDisplay($weatherData); $weatherData->setMeasu...
true
4f8541afeef6bb381be2c956ea3bccac00e323d2
PHP
vl-lapikov/gallery
/src/GalleryBundle/Service/GalleryService.php
UTF-8
995
2.78125
3
[]
no_license
<?php namespace GalleryBundle\Service; use Doctrine\ORM\EntityManager; use GalleryBundle\Entity\Album; use GalleryBundle\Repository\AlbumRepository; class GalleryService { const DEFAULT_IMAGE_LIMIT = 10; private $em; /** * @var AlbumRepository */ private $albumRepository; public func...
true
c2735ed291e7a7f2bf1dafbd218a595e55a3bd4b
PHP
saulhoward/haddock-cms
/core/tags/2009-01-17/formatting/classes/Formatting_ListOfWords.inc.php
UTF-8
2,326
3.390625
3
[]
no_license
<?php /** * Formatting_ListOfWords * * @copyright 2006-11-13, RFI */ #require_once PROJECT_ROOT # . '/haddock/formatting/classes/' # . 'Formatting_Word.inc.php'; /** * Represents a list of words that can be formatted * in various ways. */ class Formatting_ListOfWords { private $words; public function _...
true
b9b20ceaf3a21f606de175052bfb9749f125b80a
PHP
adjie1258/say-and-do
/src/SayAndDo/TaskBundle/Entity/Task.php
UTF-8
2,607
2.515625
3
[ "MIT" ]
permissive
<?php namespace SayAndDo\TaskBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Task */ class Task { /** * @var integer */ private $id; /** * @var string */ private $title; /** * @var string */ private $description; /** * @var string */ ...
true
41dfdee905b76369006e7ddb94a723a66cfaafdf
PHP
ludovicjj/kdweb
/src/HandlerFactory/HandlerFactory.php
UTF-8
526
3
3
[]
no_license
<?php namespace App\HandlerFactory; use Psr\Container\ContainerInterface; class HandlerFactory implements HandlerFactoryInterface { /** @var ContainerInterface $container */ private $container; public function __construct(ContainerInterface $container) { $this->container = $container; } ...
true
4b6cd79a1f556b68904031b81d46d3c3fe12df72
PHP
JosoePadilha/PainelADM
/app/Http/Requests/storeUpdateDocument.php
UTF-8
1,009
2.5625
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Support\Facades\Route; class StoreUpdateDocument extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { ...
true
a46fba42c83daeb0743b91f967895172258202d4
PHP
basarkar/fourcraps
/fetch_lat_lon.php
UTF-8
2,218
2.734375
3
[]
no_license
<?php $link = mysql_connect('127.0.0.1', 'root', ''); if (!$link) { die('Could not connect: ' . mysql_error()); } echo "Mysql connected successfully\n"; $db_selected = mysql_select_db('fourcraps', $link); echo "*****FETCHING LAT LON NOW*******\n"; // Statewise geocode fetching fetch_lat_lon_by_state(); //fetch_lat_...
true
3e8d7f0a8e064e65153d1d006b38170eaf44af08
PHP
hanaazzah/TooNesia
/app/Services/Comics/Comic.php
UTF-8
607
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Services\Comics; use Illuminate\Database\Eloquent\Model; class Comic extends Model { protected $table = "comics"; /** * fillable berfungsi untuk set attribute di database, colom mana saja yang akan di masukan ke dalam field */ protected $fillable = [ 'title', 'descrip...
true
a73b71d0a91a34f709bc78ed4da3e191d824e070
PHP
codememory1/console
/Exceptions/NoCommandIndexSpecifiedException.php
UTF-8
536
2.609375
3
[ "MIT" ]
permissive
<?php namespace Codememory\Components\Console\Exceptions; use ErrorException; use JetBrains\PhpStorm\Pure; /** * Class NoCommandIndexSpecifiedException * @package Codememory\Components\Console\Exceptions * * @author Codememory */ class NoCommandIndexSpecifiedException extends ErrorException { /** * N...
true
e1071246334d09290873a7a37fa9756b969fda93
PHP
diego-baiao/pdoPostgres
/checkdata.php
UTF-8
521
2.640625
3
[]
no_license
<?php header("Content-type: text/html; charset=utf-8"); require_once ("vendor\autoload.php"); use Config\Connection; use App\Model\ModelUsers; if(isset($_POST['user_name'])) { $name = $_POST['user_name']; // connect to the PostgreSQL database $pdo = Connection::get()->connect(); $modUsers = new Mo...
true
400c1f91f725211ddf44ea34d71cefb6c44cbe95
PHP
marcosaleL/VentaDeComidaRapida
/model/ModelUser.php
UTF-8
1,461
2.6875
3
[]
no_license
<?php class ModelUser{ private $db; function __construct(){ $this->db = new PDO('mysql:host=localhost;'.'dbname=VentaComidaRapida;charset=utf8', 'root', ''); } function getUser($user){ $sentencia = $this->db->prepare("SELECT * FROM Usuario WHERE direccion=?"); $sentencia...
true
b35a468563c68fa6b64a0600b69c0bd559921892
PHP
buzzert/hackers.gg-CTF
/temporary_note/serialize_trick.php
UTF-8
2,237
3.1875
3
[]
no_license
<?php /* * serialize_trick.php * * This script helped me to compute and verify a string that I could put into a note * to inject some modified fields into the serialized data of the user objects. * * Author: buzzert <buzzert@buzzert.net> */ include("src/user.php"); $me = new User("two", "two"); // From dumped...
true
c35cb3b256a6f397b0e9428d21eabac40b092043
PHP
rnachbar/backend-php-api
/api/helpers/response.php
UTF-8
846
3.21875
3
[]
no_license
<?php /** * File response.php - Mounts API return in JSON * @author Raphael Nachbar */ class Response { /** * Returns JSON data * @param int $code * @param string $message * @param array $return * @return json */ public function returnJson(int $code, string $message, array $r...
true
d161fdc8fea618f6d93d92e904c3e78bd69226e8
PHP
Adalynn/webpush
/web_server/test_push.php
UTF-8
1,985
2.609375
3
[]
no_license
<?php //echo "TEST"; require __DIR__ . '/vendor/autoload.php'; use Minishlink\WebPush\WebPush; // array of notifications $notifications = array( array( 'endpoint' => 'https://updates.push.services.mozilla.com/push/abc...', // Firefox 43+ 'payload' => 'hello !', 'userPublicKey' => 'BPcMbnWQ...
true
5b4ca071bcf3ef584d38742e233666b0a480b78b
PHP
vgmdb/common
/src/VGMdb/Component/Queue/QueueFactory.php
UTF-8
990
2.75
3
[ "MIT" ]
permissive
<?php namespace VGMdb\Component\Queue; use Psr\Log\LoggerInterface; /** * Factory that creates job queues. * * @author Gigablah <gigablah@vgmdb.net> */ class QueueFactory { protected $configs; protected $logger; protected $queues; public function __construct(array $configs = array(), LoggerInter...
true
06ed15cc6244f7a14fd68b577ecd41bd0b2b5b1a
PHP
Antidot-be/bpost-api-library
/src/Bpost/Order/Box/National/Unregistered.php
UTF-8
4,942
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Bpost\BpostApiClient\Bpost\Order\Box\National; use Bpost\BpostApiClient\Common\BasicAttribute\EmailAddressCharacteristic; use Bpost\BpostApiClient\Common\BasicAttribute\Language; use Bpost\BpostApiClient\Common\BasicAttribute\PhoneNumber; use Bpost\BpostApiClient\Common\ComplexAttribute; use Bpost\Bpo...
true
7973000e4d77a5b3aa2031e113d76f3aa2f39c6f
PHP
binary-cube/elastic-tool
/src/DataMapper.php
UTF-8
10,501
2.90625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace BinaryCube\ElasticTool; /** * Class DataMapper * * A simple tool that takes as input an array and output an array following the given Mapping(@see Mapping) structure. * * WARNING: Properties that are not found in Mapping they will be dropped. */ class DataMapper { ...
true
6812968a0282f2e6702b8dcdd1b4dcd352123dc4
PHP
lucasdumer/poc-symfony-doctrine
/src/Controller/CategoryController.php
UTF-8
2,251
2.546875
3
[]
no_license
<?php namespace App\Controller; use App\Command\CategoryCreateCommand; use App\Command\CategoryUpdateCommand; use App\Service\CategoryService; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; class CategoryController extends ...
true
a2d133793d970bce049f58eb74605ab1f416f0b9
PHP
abbasskaouk/file-manager
/src/Helpers/Interfaces/ValidatorInterface.php
UTF-8
287
2.53125
3
[]
no_license
<?php namespace App\Helpers\Interfaces; interface ValidatorInterface { function getErrors(); function unsetErrors(); function validate($type, $var1, $var2); function validateExisting($table, $column, $var, $name); function validateRequired($var, $varName); }
true
ce7e2ad6a45bac8663821e975ecea0b638896cd7
PHP
pletfix/core
/tests/_data/migrations/20170204121103_UpdateBuuTable.php
UTF-8
489
2.6875
3
[ "MIT" ]
permissive
<?php use Core\Services\Contracts\Database; use Core\Services\Contracts\Migration as MigrationContract; class UpdateBuuTable implements MigrationContract { public function up(Database $db) { /** @noinspection SqlDialectInspection */ $db->exec('INSERT INTO foo ("name") VALUES (?)', ['buu']); ...
true