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
f1472b3081bab011aec185cb3ccd787cde02054b
PHP
miguelsaddress/pesy
/src/Pesy/EventHandler.php
UTF-8
1,641
3.015625
3
[ "MIT" ]
permissive
<?php namespace Mamoreno\Pesy; abstract class EventHandler { protected $handledPaths = array("*"); public function __construct(array $handledPaths = array("*")) { $this->handledPaths = $handledPaths; } public function canHandle($eventPath) { return $this->isHandled($eventPath); }...
true
38dc39bd5eca1ed1186cec0151917b2b567bbac0
PHP
shogo23/yougerv
/app/Models/SubscriptionsModel.php
UTF-8
2,472
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Models; use CodeIgniter\Model; class SubscriptionsModel extends Model { protected $table = 'subscriptions'; protected $primaryKey = 'id'; protected $useTimestamps = true; protected $allowedFields = [ 'user_id', 'subscriber_id', ]; public function is_subscribed($channel_id, $s...
true
89fa7f567bd806dcad0b949be07cfd3049e8fab6
PHP
ekojs/sppt-console
/tests/Command/UpdateCommandTest.php
UTF-8
1,690
2.515625
3
[ "MIT" ]
permissive
<?php namespace Tests\Command; use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Application; use Symfony\Component\Console\Tester\CommandTester; use EkoJunaidiSalam\App\Command\UpdateCommand; class UpdateCommandTest extends TestCase { protected static $app; public static function setUpBeforeClas...
true
034f8b1a5ba7d58cbf4735e278ef5762076a0fa3
PHP
EcjtuNet/wechat
/packages/ecjtunet/schoolservice/src/SchoolServiceHelper.php
UTF-8
2,884
2.8125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: skycheung * Date: 2017/1/14 * Time: 14:11 */ namespace ecjtunet\schoolservice; class SchoolServiceHelper { public function getYearAndTermForScore() { date_default_timezone_set("Asia/Shanghai"); $month = date("m"); $year = date("Y"); ...
true
415c867ccd6c6087f729608a81a172b9e1de63d2
PHP
JulienDaCosta-GitHub/creation-api
/models/Compte.php
UTF-8
3,916
3.328125
3
[]
no_license
<?php class Compte{ // Connexion private $connexion; private $table = "compte"; // Table dans la base de données // Compte public $id; public $user_id; public $fonds; public $type; public $actif; /** * Constructeur avec $db pour la connexion à la base de données * ...
true
dece5b3df965599156e49dc88c067d81052a4220
PHP
VikramAditya10/e-commerce
/magari/database/migrations/2017_11_26_062627_product_image_table.php
UTF-8
760
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class ProductImageTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('product_image_ta...
true
7959ce1c740c2d55e06606a2ec452ffd1e1ed352
PHP
brandon-okert-hs/psched-main
/build/components/feedGrabber.php
UTF-8
1,010
3
3
[]
no_license
<?php class feedGrabber { private static $mysqli; public static function refreshFeed() { if (!self::$mysqli) { self::$mysqli = new mysqli("localhost", "psched-feed", "psched4brandon", "psched"); } if (self::$mysqli->connect_errno) { echo "Failed to collect feed....
true
3dcbc2616fa0932a225f60dd69f63905b72cdd98
PHP
kubaceg/KataRomanNumerals
/tests/RomanNumeralsTest.php
UTF-8
933
2.984375
3
[]
no_license
<?php class RomanNumeralsTest extends PHPUnit_Framework_TestCase { /** * @var RomanNumerals */ private $romanNumerals; public function setUp() { $this->romanNumerals = new RomanNumerals(); } /** * @dataProvider romanNumeralsProvider */ public function testArabicToRoman($arabic, $roman) { $...
true
71fbddc09ee8209608b7c5d0eb0063f4ab55eb5e
PHP
OZON-SIBERIA/super-chat
/src/Service/Twig_Initiator.php
UTF-8
292
2.703125
3
[]
no_license
<?php namespace App; class Twig_Initiator { protected static $data; protected function __construct() { } public static function twig_init($twig) { self::$data['twig'] = $twig; } public static function twig() { return self::$data['twig']; } }
true
b816b7f8fd5eadd278362f7ec4cdfd1305abefd1
PHP
ofure-omo/Screw-It-Blog
/controllers/login_controller.php
UTF-8
1,761
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. */ /** * Description of login_controller * * @author linzicarlin */ class LoginController { /* function loginUser(...
true
108ecf88dfa5fd36175f7c308609fd96564a490d
PHP
LxiaoGirl/jxq
/application/core/MY_Loader.php
UTF-8
2,259
2.625
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * 自定义加载类 * * 让CI可以支持自定义主题,在控制器调用$this->load->set_theme('default'); * 即可设置视图模板目录根目录为:application/view/default/ * * @author Longjianghu Email:215241062@qq.com * @copyright Copyright © 2013 - 2018 www.sohocn.net All rights reser...
true
ab0f94ccdf745a8333b7dc29cae0c33a275209ae
PHP
kareemaly/amer
/app/controllers/AuctionController.php
UTF-8
1,632
2.546875
3
[ "MIT" ]
permissive
<?php use Auction\Auction; use Auction\AuctionOffer; class AuctionController extends BaseController { /** * @var Auction */ protected $auctions; /** * @var AuctionOffer */ protected $auctionOffers; /** * @param Auction $auctions * @param AuctionOffer $auctionOffers...
true
d0fef139ad456c383262aee0303082ecd7b66e14
PHP
gillix/framework
/src/HTTP/Query.php
UTF-8
698
2.828125
3
[ "MIT" ]
permissive
<?php namespace glx\HTTP; use glx\Common; class Query extends Common\Collection implements I\Query { protected array $params; public function __construct($params) { $array = []; if (is_string($params)) { parse_str($...
true
fad3ac3dc3b053473fd763a274d1ca82db7842fe
PHP
4kstore/FinderHotels
/app/controllers/login.php
UTF-8
1,805
2.546875
3
[]
no_license
<?php use \GuzzleHttp\Client; use models\Login as loginModel; class Login extends Controller { const REDIRECT_AFTER_LOGIN = 'hotel'; public function index() { $login_status = true; $model = new loginModel(); $airlines = []; if (!empty($_POST)) { $model->user = !empty($_POST['user']) ? $_POST['user'] ...
true
655a708a60d717d7d47ce9c9dad98d8494c7d59b
PHP
Mediashare/Toaster
/src/Entity/Comment.php
UTF-8
3,246
2.59375
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\CommentRepository") */ class Comment { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column...
true
ad3d98841bb464853e2a85d78591f52d4d46dac8
PHP
geygey/marvel-universe
/lib/php/pdf.php
UTF-8
3,826
3.046875
3
[]
no_license
<?php function calcul_saut($url){ //On récupère hauteur, largeur de l'image concernée list($width, $height, $type, $attr) = getimagesize($url); //On calcule son ratio (hauteur/largeur) $ratio=$height/$width; //on fait le ratio * 540 (taille de la largeur de l'image codée en dur) $y=$...
true
45a2fd662f6d8e96bbaf2bfee14fb9fc14fb50ed
PHP
smetanka13/auto
/model/productModel.php
UTF-8
5,931
2.59375
3
[]
no_license
<?php require_once 'model/categoryModel.php'; class Product { public static function add($articule, $title, $price, $category, $spec = []) { $quantity = Main::select(" SELECT `quantity` FROM `category_params` WHERE `category` = '$category' LIMIT 1 ")['quantity'...
true
f28996b4bd2be821bbb0fbdd27cd18457a31941e
PHP
KavaStrophe/roleplay-organisation-manager
/src/Controller/LawsController.php
UTF-8
3,599
2.640625
3
[]
no_license
<?php namespace App\Controller; use App\Controller\AppController; /** * Laws Controller * * @property \App\Model\Table\LawsTable $Laws * * @method \App\Model\Entity\Law[]|\Cake\Datasource\ResultSetInterface paginate($object = null, array $settings = []) */ class LawsController extends AppController { /** ...
true
652808ea71111b7c54d32f8f0d2751c53899a2cc
PHP
bonndan/release-manager
/src/Liip/RMT/Helpers/ServiceBuilder.php
UTF-8
4,097
2.875
3
[ "MIT" ]
permissive
<?php namespace Liip\RMT\Helpers; use Liip\RMT\Context; use Liip\RMT\ContextAwareInterface; /** * Helps finding the implementations for abbreviated service names in the configuration. * */ class ServiceBuilder { /** * @var Context */ private $context; /** * Constructor. * ...
true
dfe1eca36f9c4bba96f533ab2fc5a349e60e59b9
PHP
francoisbdr/Modal_WEB_Resome
/utilities/Utilisateur_en_Attente.php
UTF-8
2,927
2.9375
3
[]
no_license
<?php class Utilisateur_en_Attente { public $id; public $email; public $password; public $inscriptiondate; public $clef; public function __toString() { return "[" . $this->email . "] "; } public static function getUtilisateur_en_Attente($email) { $dbh =...
true
4e4625ad970c9d91544c977466c0a37306edf017
PHP
valerijakoncar/diplomski
/app/Http/Requests/MembershipRequest.php
UTF-8
1,132
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class MembershipRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get...
true
cf0222b6bcbba9db2af4d820f81f964dc1397601
PHP
mashtree/sewubuku
/database/seeds/ReadersSeeder.php
UTF-8
638
2.578125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Reader; class ReadersSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { Reader::truncate(); $faker = \Faker\Factory::create(); $reg_number = Hash::make("triyono"); ...
true
ac23c5d6230da513e936a26190a0371c678d1d39
PHP
parable-php/orm
/src/PropertyTypes/PropertyTypeDeterminer.php
UTF-8
1,318
2.515625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Parable\Orm\PropertyTypes; use Parable\Orm\AbstractEntity; use Parable\Orm\Features\HasTypedProperties; class PropertyTypeDeterminer { public static function typeProperty(AbstractEntity $entity, string $property, $value) { if ($value === null) { re...
true
fb6a6fa8c389237f4c76904f19ebd2905cf7f7a2
PHP
nguyenthanhtuanIT/example_unittest
/app/Http/Controllers/UserController.php
UTF-8
3,054
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Http\Requests\UserCreateRequest; use App\Http\Requests\UserUpdateRequest; use App\Models\User; use App\Repositories\Contracts\UserRepository; use Illuminate\Http\Request; use Illuminate\Http\Response; use Illuminate\Support\Facades\Auth; /** * Class UsersController. * ...
true
a9c87b80041d07fa644d9ed2b75a3758f306cb0c
PHP
kailIII/inventario-1
/application/libraries/APP_Sanitize.php
UTF-8
9,302
3.1875
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class APP_Sanitize{ private $CI; public $total_replaced = 0; public $current_replaced = 0; // Define some common string types to be used. public $ALPHA; public $ALPHA_NUM; public $ALPHA_SPACE; public $A...
true
112a5d289be100043197d42f05ea47d95e5e0ee5
PHP
milo5634/sf5
/src/Controller/RechercheController.php
UTF-8
1,048
2.734375
3
[]
no_license
<?php namespace App\Controller; use App\Repository\LivreRepository; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Annotation\Route; class RechercheController extends Abstract...
true
5fb8ca77e06d58031bdd59c9b2ca84ec939721af
PHP
biqarar/ftp_sync
/ftp_sync.php
UTF-8
2,975
2.96875
3
[ "MIT" ]
permissive
<?php require_once('ftp.php'); /** * sync local directory to ftp remote directory */ class ftp_sync { public static $ftp_host = null; public static $ftp_user = null; public static $ftp_pass = null; public static $ftp_port = null; public static $ftp_path = null; public static $directory = null; public stat...
true
83cff4845b4cce672f7861f9da76d09e49bb46f0
PHP
JCoded/atoc-data-parser
/src/File/Fare/RailcardMinimumFare.php
UTF-8
759
2.71875
3
[ "MIT" ]
permissive
<?php namespace JCoded\AtocDataParser\File\Fare; use JCoded\AtocDataParser\File\AbstractFileParser; /** * RailcardMinimumFare Class */ class RailcardMinimumFare extends AbstractFileParser { /** * Get the data map for the file * * @param string $line * * @return array */ prote...
true
58be5a6df7553ef7c8bf4ce93def9e03f78d8309
PHP
nelsonsaus/Proyecto
/model/Trabajador.php
UTF-8
17,823
2.546875
3
[]
no_license
<?php class Trabajador extends EntidadBase{ private $table; private $model; // public $nif; public $id; public $nif; public $nombre; public $apellidos; public $sexo; public $email; public $fecha_nacimiento; public $activo; public $productividad; public $categoria; p...
true
8a5003947fcad9c20117f8527d09e6be31d1025c
PHP
realtimedespatch/magento2-orderflow
/Api/ImporterTypeInterface.php
UTF-8
638
2.703125
3
[]
no_license
<?php namespace RealtimeDespatch\OrderFlow\Api; /** * Importer Type Interface. * * @api */ interface ImporterTypeInterface { /** * Checks whether the import type is enabled * * @api * @return boolean */ public function isEnabled(); /** * Returns the import type * ...
true
b6876688dabf29b08f1225a08b7ad52cf76b77a6
PHP
PMaynard/hackthis.co.uk
/html/alerts.php
UTF-8
2,198
2.515625
3
[ "MIT" ]
permissive
<?php $custom_css = array('alerts.scss'); require_once('header.php'); $event_limit = 25; if (isset($_GET['page']) && is_numeric($_GET['page'])) $event_page = (int)$_GET['page']; else $event_page = 0; $event_offset = $event_page * $event_limit; $events = $app->notifications-...
true
ca011b43eee329e5f63136927ec5678dd23ef6e7
PHP
eng-OmarAdel/Exams-Cloud
/app/User.php
UTF-8
1,073
2.546875
3
[]
no_license
<?php namespace App; use Illuminate\Notifications\Notifiable; use Jenssegers\Mongodb\Auth\User as Authenticatable; use App\Notifications\PasswordReset; class User extends Authenticatable { use Notifiable; /** * The attributes that are mass assignable. * * @var array */ protected $fil...
true
b06b42b201eb1faab9f0d86c8301745d9434a979
PHP
ogata-ry/Training
/lib/inputData.php
UTF-8
1,173
3.734375
4
[]
no_license
<?php /* * inputData.php * データを入力する */ /* * データを入力するクラス */ Class Inputter { /* * データを入力し、返す * * @return inputValue 入力値 */ function inputValue() { // 数値を入力する $inputValue = trim(fgets(STDIN)); return $inputValue; } /* * 入力値を判定し、数字のみを返す * @r...
true
963acdbb2e22f5c6ecf2fdbcd4e326c7a5924b49
PHP
dratto/portabilis-test
/modules/Students/Repositories/Contracts/IStudentsRepository.php
UTF-8
278
2.59375
3
[ "MIT" ]
permissive
<?php namespace Modules\Students\Repositories\Contracts; interface IStudentsRepository { public function fetch($config = []); public function fetchById($id); public function store($data); public function update($data, $id); public function delete($id); }
true
72f645ef01e7a683bc4823a245b9e410b67725db
PHP
Diiego1500/Matemagicas
/src/Entity/BlogArticle.php
UTF-8
3,350
2.671875
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\BlogArticleRepository") */ class BlogArticle { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string") ...
true
c0c208b9cb9428719a1907cd431bdea4e4b8e0dc
PHP
karansosa/ResultManagementSystem
/register.php
UTF-8
4,226
3.140625
3
[]
no_license
<?php // Initialize the session session_start(); // Include config file require_once "config.php"; // Define variables and initialize with empty values $name = $department = $username = $password = $repassword = ""; // $repassword_err = $username = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { $name = "'" . s...
true
7d794555fbf7ad5116f13d8ebf190c2655b6ffb2
PHP
freytefaby/finanzasP
/app/Http/Requests/TipoU.php
UTF-8
1,411
2.65625
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class TipoU extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validat...
true
e6918d2aa9139be7f4da9c7099266a6c7a5c025d
PHP
benjaminspi/public_unittesting
/tests/test-sample.php
UTF-8
703
2.671875
3
[]
no_license
<?php /** * Class SampleTest * * @package Testplugin */ /** * Sample test case. */ class SampleTest extends WP_UnitTestCase { /** * A single example test. */ function test_sample() { $this->assertTrue( true ); } function test_get_columns() { require( "./class-ben.php" ); $ra_table = new RaBe...
true
2994f1abbc1200590fcf4e3406e68089593a22fe
PHP
BrownBox/euclid
/fx/time.php
UTF-8
2,074
2.953125
3
[]
no_license
<?php /** * Returns the timezone string for a site, even if it's set to a UTC offset * * Taken from https://www.skyverge.com/blog/down-the-rabbit-hole-wordpress-and-timezones/ * * Adapted from http://www.php.net/manual/en/function.timezone-name-from-abbr.php#89155 * * @return string valid PHP timezone string */...
true
dca7f11896a8c10ccd373074345fc5e854c2ca04
PHP
Kursalz/AmazonMaturita2018
/BETA 23.05/aggiungiAlCarrello.php
UTF-8
1,478
2.5625
3
[]
no_license
<?php session_start(); if ($_SESSION["login"] == true) { if ($_SESSION["aggiuntoCarrello"] == false) { $_SESSION["aggiuntoCarrello"] = true; $db = new PDO("sqlite:ecommerce.sqlite"); if (!$db) { die("Errore nell'apertura del database"); } $codice = $_GE...
true
0e645598c767b7c251c03947a690b7babb7de6f5
PHP
Niirrty/Niirrty.IO.VFS
/tests/Niirrty/IO/Vfs/Tests/VfsManagerTest.php
UTF-8
2,529
2.53125
3
[ "MIT" ]
permissive
<?php /** * @author Ni Irrty <niirrty+code@gmail.com> * @copyright (c) 2017, Ni Irrty * @license MIT * @since 2018-04-03 * @version 0.1.0 */ namespace Niirrty\IO\Vfs\Tests; use Niirrty\IO\Vfs\VfsHandler; use Niirrty\IO\Vfs\IVfsManager; use Niirrty\IO\Vfs\VfsManager; use PHPUnit...
true
b79a992e6579f2594ac1657153d24acc153ef923
PHP
sglee487/webprogramming
/silsup0524/dataFind.php
UTF-8
1,747
3.390625
3
[]
no_license
<?php $myfile = fopen("./data.txt","r"); $given_name = $_POST["name"]; $given_word = $_POST["word"]; $infoArray = array(); while(!feof($myfile)) { $temp_str = fgets($myfile); if ($temp_str != NULL) { $infoArray[$temp_str] = fgets($myfile); } } if ($give...
true
809ea439fade1826cd2d9469ce136cf5cbe25742
PHP
Charlotte-Viktorsson/oophpvt18
/src/route/gissa.php
UTF-8
4,131
2.96875
3
[]
no_license
<?php /** * Specific route class for Guess my number. */ //var_dump(array_keys(get_defined_vars())); /** * Guess my number with GET. */ $app->router->get("gissa/get", function () use ($app) { // For the view $data = [ "title" => "Gissa mitt nummer med GET | oophp", "method" => "GET", ]...
true
28bb44fd3bede2b9160bcbfc7739e755d9d9f335
PHP
JessPinkman/BSPure
/src/Components/Card.php
UTF-8
1,328
2.75
3
[ "MIT" ]
permissive
<?php namespace BSPure\Components; class Card extends BSBaseComponent { public ?BSBaseComponent $header = null; public ?BSBaseComponent $body = null; public ?BSBaseComponent $title = null; public function __construct(?string $card_subclass = null, string $tag = 'div') { parent::__construc...
true
8e90977a2fa1f5ae1df3557c489f61d477d85b46
PHP
luckymushroom/pixie-dust
/application/controllers/admin/products.php
UTF-8
3,982
2.53125
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * Copyright (c) 2012 MFarm LTD. * All rights reserved. * * @package Orders HTTP POST Controller * @author isaak mogetutu <imogetutu@gmail.com> * @copyright 2012 MFarm LTD. * @package Products Module * @link http...
true
e7c90ebea49c9e302bafc5c15fe9d6ff4a7c13c1
PHP
mreeves1/i_heart_stats_notes
/chi_examples.php
UTF-8
3,270
2.59375
3
[]
no_license
<?php $page = 'chi_ex'; require __DIR__ . '/vendor/autoload.php'; include_once __DIR__ . '/includes/header.php'; ?> <div class="row"> <div class="col-sm-6"> <?php // Problem 1: $problem_label1 = "Halloween Rent vs. Own"; $data1 = Chi::inputFile('chi_halloween.txt'); $chi1 = new Chi($data1); $...
true
d1863e167fe07d9da244c15b760316ca3a1a5507
PHP
SanAndresCholula/declaracionsach
/admin/generarPass.php
UTF-8
784
3.296875
3
[]
no_license
//generar contraseña <?php //Si se quiere generar una contraseña if (isset($_POST['generar'])) { //Carácteres para la contraseña $str = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890"; $password = ""; //Reconstruimos la contraseña segun la longitud que se quiera for($i=0;$i<$_POST['longi...
true
0b6b65388fa294699ad38e4308003d2ff2833ac7
PHP
peareye/ppfr-bs4-twig
/app/Recipe/Storage/Recipe.php
UTF-8
789
3
3
[]
no_license
<?php namespace Recipe\Storage; /** * Recipe Domain Object */ class Recipe extends DomainObjectAbstract { /** * Get Nice Recipe URL */ public function niceUrl() { return '/' . $this->recipe_id . '/' . $this->url; } /** * Merge Data * * Merge an array of values in...
true
bf494e8745158f0adec639507ff9b74afb37c389
PHP
Smatix/pai_backend
/src/Shared/Infrastructure/Repository/ParkingSpaceTypeRepositoryInterface.php
UTF-8
182
2.5625
3
[]
no_license
<?php namespace App\Shared\Infrastructure\Repository; interface ParkingSpaceTypeRepositoryInterface { public function getAll(); public function getByName(string $name); }
true
b363930aea404a3eaf530a4937759cd2bc5f51c5
PHP
Jerry58321/initial_project.laravel
/app/Jobs/SlackReport.php
UTF-8
1,058
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Jobs; use Illuminate\Bus\Queueable; use Illuminate\Queue\SerializesModels; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Contracts\Queue\ShouldQueue; class SlackReport implements ShouldQueue { use InteractsWithQueue, Queueable, SerializesModels; private $title; private $tit...
true
f31c0d9a599553a912c3e6db1d97591ecbd47f06
PHP
bossonchan/jjl
/application/libraries/REST.php
UTF-8
1,348
2.609375
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); abstract class REST extends CI_Controller { public function __construct() { parent::__construct(); $this->load->library('session'); } public function login_conflict_check() { if ($this->session->has_userdata('user')) { $t...
true
bd0bcb6a140db0dca30550b7495b67c136f5e67b
PHP
koji1218ai/contact
/check.php
UTF-8
2,560
3.140625
3
[]
no_license
<?php // エスケープ ファイルの読み込み require(獲得) require_once('function.php'); // 確認のため // echo "<pre>"; // var_dump($_SERVER); // exit; // echo "<pre>"; // var_dump($_SERVER["HTTP_UPGRADE_INSECURE_REQUESTS"]); // exit; // POST送信ではなかったらindex.phpにリダイレクトする if($_SERVER["REQUEST_METHOD"] != "POST"){ header('Location: index.php')...
true
4309cf78bc0e0819f4b5dea9151be0f7959667ef
PHP
zhaoganghao/base
/common/models/User.php
UTF-8
1,043
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "user". * * @property int $id * @property string $username * @property string $password 密码 * @property string $create_time 创建时间 * @property string $modified_time 修改时间 */ class User extends \yii\db\ActiveRecord { /** * @i...
true
ff1c7aa31b1fe6de9a8fc46b52eaa7e72798ece2
PHP
primerpop/php-piMind
/controller/handlers/state_watcher.php
UTF-8
2,204
2.765625
3
[]
no_license
<?php /** * state_watcher - piMind Controller extension * This handler watches and records the current state of each sensor or vardata event * * @author Paul * */ class state_watcher extends controller_handler { protected $_controller = null; private $_states = array(); private $_state_file = ""; p...
true
61a2c47d7ae936c12ce3d7bec34364ea0baf42cd
PHP
Asti-Dev/Lagrupetta
/app/Exports/PedidosExport.php
UTF-8
5,853
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Exports; use App\Models\Pedido; use Maatwebsite\Excel\Concerns\FromCollection; use Maatwebsite\Excel\Concerns\WithHeadings; use Maatwebsite\Excel\Concerns\WithMapping; use Maatwebsite\Excel\Concerns\WithStyles; use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet; class PedidosExport implements FromC...
true
698d8a46990fea869ca699157b3656e79ae4eeed
PHP
ElliottLandsborough/tfl-charge-scanner
/app/Http/Controllers/MonzoController.php
UTF-8
2,405
2.6875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Services\AuthService; use App\Services\MonzoAuth; use Illuminate\Http\Request; class MonzoController extends MainController { protected $authorizer; /** * Constructor. * * @param AuthService $authService The AuthService object. * @param Monzo...
true
afc850979c266ad47250b907514a8cd631b50e94
PHP
idmega2000/telemedicine
/install/install.php
UTF-8
2,817
2.75
3
[]
no_license
<?php /* attemp mysql server connection, assuming you are running mysqli server */ $link = mysqli_connect("localhost", "root", ""); //check connection if($link === false){ die("ERROR: could not connect. " . mysqli_connect_error()); } //Attemp create database query execution $sql = "CREATE DATABASE telemedicine"...
true
abbb84ae24ef6680890b0bca6651bcae4599ff52
PHP
Moonbase59/kplaylist
/lyrics.php
UTF-8
1,715
2.515625
3
[]
no_license
<?php // lyrics.php by Moonbase 2019-04-05 (for kPlaylist) // lyric-api: https://github.com/rhnvrm/lyric-api // mini.css: https://minicss.org/ $artist = $_GET['artist']; $title = $_GET['title']; $album = $_GET['album']; if (empty($artist) or empty($title)) { exit(1); } $url = 'http://lyric-api.herokuapp.com/api/f...
true
d424eac833d69813f98c850e4ee8b1eb8eb4bcbf
PHP
danhogue/twitterdata
/getData.php
UTF-8
4,944
2.828125
3
[]
no_license
<?php require_once('./TwitterAPIWrapper.php'); // You will need to create a tokens.php file locally with the following lines in it // // $settings = array( // 'oauth_access_token' => "YOURTOKEN", // 'oauth_access_token_secret' => "YOURSECRET", // 'consume...
true
aa5aba7419826efc547deb73330169b169aff38e
PHP
alailsonko/php-studies
/beginner/phpbasics/loops.php
UTF-8
1,068
4
4
[]
no_license
<?php // <!-- // while loop // --> $x = 1; while($x <= 5) { echo "The number is: $x <be>"; $x++; } $x = 0; while($x <= 100) { echo "The number is: $x <br>"; $x += 10; } // <!-- // do while loop // --> $x = 1; do { echo "...
true
21ed9410caf331320c4f5a73a51199b36142fa56
PHP
sopiana/aranea
/database/seeds/ProjectViewSeeder.php
UTF-8
2,780
2.609375
3
[]
no_license
<?php use Illuminate\Database\Seeder; use App\Model\ProjectManagement\ProjectView; use App\Model\ProjectManagement\Project; use App\Model\UserManagement\User; class ProjectViewSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $ass...
true
19f4b3d1ccd9cf1e7d14df22881558b12ec7d36b
PHP
marrano92/hbelv
/includes/Hbelv/Cpt/CustomPostType.php
UTF-8
807
2.640625
3
[]
no_license
<?php namespace Hbelv\Cpt; use Hbelv\QueryVars; class CustomPostType { /** * @return static */ public static function init() { $obj = new static(); if ( $obj instanceof CptInterface ) { $obj->register_post_type(); } if ( $obj instanceof MetaBoxInterface ) { add_action( 'admin_menu', [ $obj, 's...
true
e6525c9bd5d65d1a4eb766959f2785f567358d74
PHP
ProjectTangelo/manual
/src/Easybook/Publishers/PdfPublisher.php
UTF-8
4,257
2.625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the easybook application. * * (c) Javier Eguiluz <javier.eguiluz@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Easybook\Publishers; use Easybook\Events\EasybookEvents as Eve...
true
b8d122bc14b20960f3a40229569564bfc82330e7
PHP
bhaviniih/test-pro
/app/Http/Requests/Admin/LoginCheckRequest.php
UTF-8
1,020
2.6875
3
[]
no_license
<?php namespace App\Http\Requests\Admin; use Illuminate\Foundation\Http\FormRequest; class LoginCheckRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** ...
true
93ac7c08b815bf76fccf7e43569e56502011be4a
PHP
myphpframework/mpf-core
/classes/MPF/Email.php
UTF-8
851
3.21875
3
[]
no_license
<?php namespace MPF; class Email { /** * @static * @param $string * @return \MPF\Email */ public static function byString($string) { return new Email($string); } protected $email = ''; private function __construct($string) { $this->email = $string; ...
true
6211d242b9546af2757a2aa0728ff79277a0fb2e
PHP
agampradhana/j3l4s
/application/core/MY_Controller.php
UTF-8
596
2.75
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
<?PHP class MY_Controller extends CI_Controller{ public $data = array(); function __construct(){ parent::__construct(); $this->data['error']=array(); $this->data['site_name']=config_item('site_name'); } function array_to_obj($array, &$obj) { foreach ($array as $key => $value) { if (is_array($val...
true
19be6f75a11b7fee0a691983419149dca1910618
PHP
Shafayatul/claimnwin
/app/Passenger.php
UTF-8
852
2.515625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Spatie\Activitylog\Traits\LogsActivity; class Passenger extends Model { use LogsActivity; /** * The database table used by the model. * * @var string */ protected $table = 'passengers'; /** * The database primar...
true
6fed6b800d043a3d000a48d573ae554367e9c8fc
PHP
pixelsnob/pet
/application/forms/DigitalSubscriptionSelect.php
UTF-8
1,235
2.640625
3
[]
no_license
<?php /** * Digital subscription select form * */ class Form_DigitalSubscriptionSelect extends Pet_Form { /** * @var int * */ protected $_is_gift; /** * @param int * @return void */ public function setIsGift($is_gift) { $this->_is_gift = $is_gift; ...
true
2bf90d318462faa442c7ab74eff8cfa3a7ac220e
PHP
TencentAd/marketing-api-php-sdk
/examples/BasicOperations/AdsManagement/AddBatchRequests.php
UTF-8
3,873
2.671875
3
[ "Apache-2.0" ]
permissive
<?php require_once __DIR__ . '/../../../vendor/autoload.php'; // change path as needed use TencentAds\TencentAds; use TencentAds\Exception\TencentAdsResponseException; use TencentAds\Exception\TencentAdsSDKException; /***** * 本文件提供了一个批量操作(Batch requests)的简单示例 */ class AddBatchRequests { public static $tads; ...
true
68717bccd7f9bb8f0b9342f199b07995d5398960
PHP
progressmen/phppiece
/test.php
UTF-8
1,167
2.953125
3
[]
no_license
<?php namespace Index; class Index{ public function __construct() { // 注册自动加载函数 spl_autoload_register(array($this, 'loader')); } private function loader($className) { $filename = __DIR__ . "/" . str_replace('\\', '/', $className) . ".php"; include($filename); } ...
true
249e77731f70b39086647d08df89fbf4997e38c8
PHP
Poulpi59/Gestion_stock_epsi
/pages/login.php
UTF-8
1,681
2.703125
3
[]
no_license
<?php session_start(); $_SESSION["user"] = false; ?> <!DOCTYPE html> <html> <head> <title>EPSI Stock - Connexion</title> <?php include_once("../includes/head.php"); ?> </head> <body> <?php include_once("../includes/header.php"); ?> <div class="panel-body" style="border: 1px solid black; margin: 5% 25% 5% 25%...
true
db78307be7b323c8227b17a1ae04324040740de4
PHP
sacky3105/words
/src/views/index.php
UTF-8
913
2.625
3
[]
no_license
<h1 class="h2 text-dark mt-4 mb-4">My英単語一覧</h1> <a href="new.php" class="btn btn-primary mb-4">英単語を登録する</a> <main> <?php if (count($words) > 0) : ?> <?php foreach ($words as $word) : ?> <section class="card shadow-sm mb-4"> <div class="card-body"> <h2 class="c...
true
b830e66fc5ac0297b599aaa96eb1893e983a1848
PHP
zolotov-av/LightEngine
/engine/modules/mod_rpc.php
UTF-8
4,104
2.859375
3
[]
no_license
<?php /** * Экспериментальная реализация XML-RPC для WScore/LightEngine * * (c) Zolotov Alex, 2008,2011 * zolotov-alex@shamangrad.net * http://shamangrad.net/ */ class mod_rpc extends LightModule { /** * Текущий пользователь */ private $user; public function __construct(LightEngine $engine) { parent:...
true
8967913a619a6c98e4d9063d7be82b6c7e883d26
PHP
BeautyStack/php-value-object-contracts
/src/Money/MoneyInterface.php
UTF-8
783
2.625
3
[ "MIT" ]
permissive
<?php /* * Copyright © 2017-present The Stack World. All rights reserved. */ declare(strict_types=1); namespace Beautystack\Value\Contracts\Money; use Beautystack\Value\Contracts\ValueObjectInterface; use Doctrine\Common\Collections\Collection; interface MoneyInterface extends ValueObjectInterface { public f...
true
01225ea56ceec7f7e7d7dfd40ae416663a05c0a2
PHP
HIDETO-NDTB/paiza_past_question
/map_jadgment.php
UTF-8
1,720
3.875
4
[]
no_license
<?php // 縦・横の取得 [$h, $w] = explode(" ", trim(fgets(STDIN))); // 盤面を取得し、横を文字列から配列に for ($i = 0; $i < $h; $i++) { $str = trim(fgets(STDIN)); $data[] = str_split($str); } // var_dump($data); // 横並びチェック $w_ans = []; for ($i = 0; $i < $h; $i++) { for ($j = 0; $j < $w; $j++) { if ( isset($dat...
true
de296d733d4f8be5e840140e88f0c6a30d9db674
PHP
Gimcrack/laravel-store
/src/Contracts/StoreEngine.php
UTF-8
229
2.578125
3
[]
no_license
<?php namespace Ingenious\Store\Contracts; use StdClass; interface StoreEngine { public function products() : StdClass; public function product(int $id) : StdClass; public function price(int $id) : StdClass; }
true
db6fc617dd4d71367c6a6e8250ff27830af35464
PHP
the0day/websocket-chat
/src/App/Response/Error.php
UTF-8
309
2.59375
3
[]
no_license
<?php namespace App\Response; /** * Class Error * Класс для ответа в случае ошибки * @package App\Response */ class Error extends Response { protected int $code = 400; public function __construct($message) { parent::__construct("error", $message); } }
true
e250211ef675efd6cd6f4f01ddc219be086aed7b
PHP
acelot/search-schema
/src/Rule/Like.php
UTF-8
667
2.75
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Acelot\SearchSchema\Rule; final class Like extends AbstractSimpleRule { /** * @var bool */ private $caseSensitive = false; /** * @return Like */ public function caseInsensitive(): Like { $clone = clone $this; $clone->cas...
true
98f7a4b13c558d441a3f9dec9fb1178f10a4b029
PHP
williamespindola/refactoring-source-making
/design-patterns/abstract-factory/php/BookFactory.php
UTF-8
4,441
3.296875
3
[]
no_license
<?php declare(strict_types=1); /** * BookFactory classes */ abstract class AbstractBookFactory { abstract public function makePHPBook(): AbstractPHPBook; abstract public function makeMySQLBook(): AbstractMySQLBook; } class OReillyBookFactory extends AbstractBookFactory { private string $context = 'ORei...
true
cea3304a6658b42fef34f0271cb048588cfc08ec
PHP
Jefferson-bd/masters_games
/games_download.php
UTF-8
2,811
2.59375
3
[]
no_license
<?php // Incluir Arquivo para Fazer a Conexão include("Connections/conn_games.php"); // Consulta pra Trazer os Dados e se Necessário Filtrar $tabela = "tbdownload"; $ordenar_por = "nome_download ASC"; $consulta = "SELECT * FROM ".$tabela." ORDER BY ".$ordenar_por.""; $list...
true
2f6f9811face964e6cac833890d311f72a1eb7e6
PHP
dugajean/dockr-cli
/src/Events/ProjectPathHandler.php
UTF-8
987
2.734375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Dockr\Events; use Dockr\Config; use Symfony\Component\Console\ConsoleEvents; use Symfony\Component\Console\Event\ConsoleCommandEvent; class ProjectPathHandler implements EventHandlerInterface { /** * @var Config */ protected $config; /** * SetProj...
true
2265ec20ef7a5c8308a603175a119d1d57285cc7
PHP
XxRAZpienxX/Practice
/core/src/jkorn/practice/commands/ManageArenasCommand.php
UTF-8
1,577
2.9375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: jkorn2324 * Date: 2020-08-03 * Time: 19:00 */ declare(strict_types=1); namespace jkorn\practice\commands; use jkorn\practice\forms\internal\InternalForm; use pocketmine\command\CommandSender; use pocketmine\Player; class ManageArenasCommand extends PracticeCommand impl...
true
419e59b73db5d59bfd5973059b13ea5539500c1a
PHP
rohit04saluja/qwerty1234
/controller/updateMessageStatus.php
UTF-8
1,275
2.796875
3
[]
no_license
<?php # initialize all variables $pass = true; $id = ""; $table = ""; # perform validations and obtain data # id if(!isset($_GET['id']) || empty($_GET['id'])) $pass = false; else { $id = $_GET['id']; # check if id is numeric if(!preg_match("/^[0-9]{0,5}$/", $table)) $pass = false; else $pass &...
true
880be2feb492f915fccd7dc7ee4c318738482998
PHP
saritagl/metodo-hungaro-foc
/pasoC.php
UTF-8
2,688
2.859375
3
[]
no_license
<?php $tamanoMatriz = (isset($_SESSION['tamanoMatriz']) ? (int)$_SESSION['tamanoMatriz'] : 3); $matriz = (isset($_SESSION['matriz']) ? $_SESSION['matriz'] : array(array(1, 4, 6), array(9, 7, 10), array(4, 5, 11))); // matriz para guardar los valores resultantes del pasoA $matrizPasoB = (isset($_S...
true
a799e6a1a3029e246ff15d76c11ef10851a0b7fb
PHP
kwdeveloper/crie-app-web
/php-autoload/index.php
UTF-8
492
2.671875
3
[]
no_license
<!doctype html> <!-- O conteúdo deste arquivo é parte integrante do livro "Crie aplicativos web com HTML, CSS, JavaScript, PHP, PostgreSQL, Bootstrap, AngularJS e Laravel" Wilson Kawano --> <html lang="en"> <head> <meta charset="UTF-8"> <title>PHP - Teste função __autoload()</title> </head> <body> <?php ...
true
2362c6a3c68878a1a31232c39c4796e3b39f0aeb
PHP
wonbhh009/ScanProcess
/order_limiketang_com/common/models/DiscountHistory.php
UTF-8
2,606
2.53125
3
[]
no_license
<?php namespace order_limiketang_com\common\models; use Yii; /** * This is the model class for table "discount_history". * * @property integer $id * @property integer $admin_id * @property string $admin_name * @property integer $module_id * @property string $remark * @property integer $ctime * @property str...
true
30b27f419142d06d93eb5af4ebb922a9eb1dff94
PHP
oxyden27/room_saveur_hetic_2017
/src/HETIC/UserBundle/Entity/User.php
UTF-8
2,863
2.546875
3
[]
no_license
<?php // src/AppBundle/Entity/User.php namespace HETIC\UserBundle\Entity; use FOS\UserBundle\Model\User as BaseUser; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name="fos_user") */ class User extends BaseUser { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValu...
true
03f39b427ac9023cc2120cabe8210a3b3c6e983d
PHP
wizardchao/demo
/articles/swoole/app/controller/Base.php
UTF-8
419
2.640625
3
[ "MIT" ]
permissive
<?php namespace controller; /** * Class Base * @property \swoole_http_request $request * @property \swoole_http_response $response * @property \PDO $db * @property \lib\Session $session */ class Base { protected $appServer; public function __construct($appServer) { $this->appServer = $appSer...
true
b3515581f137632110543ac8b21410436a6c000b
PHP
charlotte45/Quete_upload
/public/upload.php
UTF-8
1,351
2.75
3
[]
no_license
<?php /** * Created by PhpStorm. * User: wilder4 * Date: 19/10/17 * Time: 08:15 */ //var_dump($_FILES); $uploadDir = 'uploadedFiles/'; $sizeLimit = '1000000'; if (!empty($_GET['delete'])) { if (file_exists($uploadDir.$_GET['delete'])) { unlink ($uploadDir.$_GET['delete']); } } if (!empty($_FILE...
true
62ab7c63c30da9dc76019e30b902e7d788857681
PHP
marcelsanting/captainprox
/app/Http/Middleware/hasRole.php
UTF-8
777
2.859375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; class hasRole { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request Handles the request * @param \Closure $next Handles anonymous functions * @param string[] ...$roles Allowe...
true
b60a3ad4352f842ff89591a1b65d6e9e4bc8cdfc
PHP
greatschism/quizzy
/models/Folder.php
UTF-8
10,695
2.84375
3
[]
no_license
<?php namespace app\models; use Yii; /** * This is the model class for table "folder". * * @property string $id * @property string $name * @property string $description * @property string $keyword * @property integer $subscription_id * @property string $user_id */ class Folder extends \yii\db\ActiveRecord {...
true
4e272af3cc1c23d3996c926ee64dd6a27c9e0987
PHP
chosendev1/monitor
/app/Http/Controllers/Students/StudentController.php
UTF-8
700
2.609375
3
[]
no_license
<?php namespace App\Http\Controllers\Students; use App\Models\Students\Student; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Http\Requests\StoreStudentRequest; class StudentController extends Controller { public function create() { return view('forms.student_form'); } ...
true
c20413b289537fa338f5a0822866517f64c72998
PHP
lexmosolov/enterprise
/app/Http/Requests/OrganizationRequest.php
UTF-8
621
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use App\Http\Requests\Request; use Auth; class OrganizationRequest extends Request { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return Auth::user()->hasRole('admin'); } /** * Get the validation...
true
46964a9e0dec2df3df81f6bb51e945433215c2ba
PHP
Luigian/Php_Piscine
/day01/ex03/ft_split.php
UTF-8
188
2.6875
3
[]
no_license
<?php function ft_split($str) { $biarray = explode(" ", $str); $filtered = array_filter($biarray); $indexed = array_values($filtered); sort($indexed); return ($indexed); } ?>
true
c0a08458c2b4b9cfc8a14115a5edd8bd0d66c230
PHP
HikaruYasuda/config-repository-php
/example.php
UTF-8
1,433
2.734375
3
[ "MIT" ]
permissive
<?php require_once 'config-repository.php'; echo '<pre>'; $conf = new ConfigRepository(); // set/get $conf->set('email', 'info@example.com'); var_export($conf->get('email'));// 'info@example.com' echo PHP_EOL; // get deep item $conf->set('db', [ 'host' => '127.0.0.1', 'username' => 'admin', 'password' => '...
true
5703edb84f6ff1d87b3f551fb453e051d6004d74
PHP
kitsutoNT/Assignment-1-RyaNoBohan
/code/lib/model/CountryTableGateway.class.php
UTF-8
1,373
2.984375
3
[]
no_license
<?php /* Table Data Gateway for the countries table. */ class CountryTableGateway extends TableDataGateway { public function __construct($dbAdapter) { parent::__construct($dbAdapter); } protected function getDomainObjectClassName() { return "Country"; } protected function ...
true
e9d5e3d9be57c708d2478cf0a2f22fc83b4aa340
PHP
gghhh456/autowrire
/src/AppBundle/Twig/AppBundleExtension.php
UTF-8
742
2.53125
3
[]
no_license
<?php namespace AppBundle\Twig; use AppBundle\Service\MyAppServiceInterface; /** * The AppBundleExtension class */ class AppBundleExtension extends \Twig_Extension { /** * @var MyAppServiceInterface */ private $appService; public function __construct(MyAppServiceInterface $appService){ ...
true
73577fa392a409d7943e39f5e89e4689cb09348c
PHP
nicklos17/littlemall
/source/apps/mall/controllers/AddressController.php
UTF-8
3,236
2.515625
3
[]
no_license
<?php namespace Mall\Mall\Controllers; use Mall\Mdu\AddressModule as Address; class AddressController extends ControllerBase { private $address; public function initialize() { $this->address = new Address(); } public function indexAction() { $this->view->setVars( ...
true
b5c1681077c61fd69e3b51fb1fde61fe478d97d4
PHP
maxemiliang/Rout-php
/rout/controller.class.php
UTF-8
1,961
2.984375
3
[ "MIT" ]
permissive
<?php /* This is the main router which handles the get requests on main and gives the correct file/response @DEPENDENCIES: ------ -NONE- ------ */ class Rout { public $pReq; public $baseurl = ''; // has to be set manually if using on a subdir public $db; // TODO: Fix to private public function __constr...
true
d270843dcc9783c8f488fce7df0e93a31f4495ff
PHP
jobeditions/Training_Paris
/database/migrations/2017_03_19_235048_create_assignments_table.php
UTF-8
965
2.546875
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateAssignmentsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('assignments', function(Blueprint $table) { $table->increments('id'); ...
true