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
8c02c110bfc8918061bd6d8999c65eb2e8fe7d6d
PHP
miapecloud/GameFrame
/Applications/YourApp/Game/Server/MaJongRequestProcess.php
UTF-8
3,500
2.703125
3
[]
no_license
<?php /** * 专门用于处理麻将房间客户端请求的类 * User: LiBing * Date: 2017/10/7 * Time: 17:41 */ require_once __DIR__.'/../Context/ConnectAPI.php'; require_once __DIR__.'/../Context/GameType.php'; class MaJongRequestProcess{ /** * 处理麻将响应分发的函数 * @param $connectionID 连接生成的唯一ID * @param $clientRequest \Protocols...
true
83e2fbf1513680940d57a8284438d7771bf27f55
PHP
calicosoft/CalicoBB
/classes/admin.class.php
UTF-8
77,777
2.5625
3
[]
no_license
<?php class forumAdmin{ public function adminLogin(){ // Connect to database $sql = new mysqli(db::$config['host'], db::$config['user'], db::$config['pass'], db::$config['db']); // What are we doing? if(isset($_POST['username']) AND isset($_POST['password'])){ // Convert password to md5 hash $pa...
true
5bc20be8652dadf00ab148a79ccf56276178ff98
PHP
Camelia7v/Proiect-TW
/MVC-schelet/app/core/Controller.php
UTF-8
802
2.984375
3
[]
no_license
<?php class Controller{ protected $view=null; protected $model=null; /** * @param $viewName * @param array $data * se seteaza numele view-ului * @return View */ protected function view($viewName, $data=[]){ $this->view= new View($viewName,$data); return $this->vi...
true
d74769027ebf49bc19a3d636ecd919e2b3c59e89
PHP
epicformbuilder/wixhive-php-api
/src/epicformbuilder/Wix/Models/Page.php
UTF-8
582
2.75
3
[]
no_license
<?php /** * User: EpicFormBuilder * Email: support@epicformbuilder.com * Date: 3/29/15 * Time: 4:21 PM */ namespace epicformbuilder\Wix\Models; class Page extends Model { /** @var string */ public $path; /** @var string */ public $wixPageId; /** @var string */ public $appPageId; ...
true
76fd6f1cb136d6989e877ede5dc6d203c8969bf3
PHP
itsayoubb01/pronto
/pronto/core/sql.php
UTF-8
9,211
2.9375
3
[]
no_license
<?php /** * PRONTO WEB FRAMEWORK * @copyright Copyright (C) 2006, Judd Vinet * @author Judd Vinet <jvinet at zeroflux dot org> * * Description: SQL Generator Methods. Intended to be used by page controllers only. * **/ class SQL_Generator { var $db; var $page; /** * Constructor * * @param object $pa...
true
c70f36caba8b08a72c045a4b661ecf24f54010d7
PHP
David-Crty/php-orm-benchmarker
/src/TestSQL/Model/Article.php
UTF-8
2,249
2.953125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: David-Laptop * Date: 25/02/2015 * Time: 21:18 */ namespace TestSQL\Model; use Doctrine\Common\Collections\ArrayCollection; class Article { protected $id; private $titre; private $contenu; private $image; private $auteur; private $commentaires...
true
b11c8633a7dd4ebad50a9fc3d7a556f7a34b2dae
PHP
navjot789/PHP-project-of-National-cadet-corps
/Ncc/sql/enroll_btn_process.php
UTF-8
758
2.53125
3
[]
no_license
<?php session_start(); include "connect.php"; //getting current indin time zone date_default_timezone_set('Asia/Kolkata'); $currentTime = date( 'd-m-Y h:i:s A', time () ); if(isset($_POST['event_id'])) { $eid=$_POST['event_id']; $query=mysqli_query($con,"INSERT INTO assign_events(eid,cid,cdate) VALUES('".$eid."...
true
3f57db10e254264aa2aa8af9a171dbb175a4da9a
PHP
rrazvanrraducanu/symfony3
/src/Controller/FormaController.php
UTF-8
1,268
2.546875
3
[]
no_license
<?php namespace App\Controller; use Symfony\Component\Routing\Annotation\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Form; use Symfony\Component\Form\Extension\Core\Type\TextType; u...
true
0593e856dd0d1dcc9abee38c40eda3f8e0ca1862
PHP
scottie0713/nicomato2
/app/Console/Command/IchibaShell.php
UTF-8
2,017
2.8125
3
[]
no_license
<?php class IchibaShell extends AppShell { public $uses = array('DataIchiba'); /** * ニコニコ市場Dailyランキング取得 * */ public function main() { try { $ichiba = $this->getRss(); $this->DataIchiba->deleteAll(array('1'=>'1')); $this->DataIchiba->saveAll($ichiba); } catch( Exept...
true
b1eb4229932fc12f9265fda512b928d17045868c
PHP
noikiy/Bunxious-Website
/application/modules/Store/Model/PinQuantityRow.php
UTF-8
905
2.84375
3
[]
no_license
<?php namespace Store; class PinQuantityRow extends \Core\Db\Table\Row { /** * Allows pre-insert logic to be applied to row. * Subclasses may override this method. * * @return void */ protected function _insert() { } /** * Allows pre-update logic to be appl...
true
784bfd81c8e8c6d3ef94a6f1d33b4ec4706c8325
PHP
BassemYagoub/Zombilluminati
/enregistrer_scores.php
UTF-8
1,566
2.9375
3
[]
no_license
<?php session_start(); //pour ne pas avoir de problèmes quand on actualise la page de scores on crée cette page intermédiaire où on mets les données dans la bdd $pdo = new PDO("mysql:host=localhost; dbname=zombilluminati", "root", "root"); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION)...
true
6b847b31343c7f42abb2987ac290bbd7b1689317
PHP
jmocon/voting
/App_Code/EventModel.php
UTF-8
3,107
2.90625
3
[]
no_license
<?php $mdlEvent = new EventModel(); class EventModel{ private $Id = ""; private $Type = ""; private $StartDateTime = ""; private $StartTrigger = ""; private $EndDateTime = ""; private $EndTrigger = ""; private $Election_Id = ""; private $DateCreated = ""; public function EventModel(){} public function ge...
true
5deef6ea9d1aaea804517607e7801fac3304958b
PHP
Novactive/NovaeZMailingBundle
/bundle/Core/Import/User.php
UTF-8
4,021
2.625
3
[ "MIT" ]
permissive
<?php /** * NovaeZMailingBundle Bundle. * * @package Novactive\Bundle\eZMailingBundle * * @author Novactive <j.canat@novactive.com> * @copyright 2018 Novactive * @license https://github.com/Novactive/NovaeZMailingBundle/blob/master/LICENSE MIT Licence */ declare(strict_types=1); namespace Novactive\Bu...
true
2df65a83a27fb4c209cf86a8143b243b99029eda
PHP
boryashkin/obsession
/modules/lrm/migrations/m170713_174938_contact.php
UTF-8
811
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; class m170713_174938_contact extends Migration { const TABLE = 'contact'; public function up() { $this->createTable(self::TABLE, [ 'id' => $this->primaryKey(), 'personId' => $this->integer(), 'contact' => $this->string(), ...
true
d568da0dfeef233b36da4430c3ff52fa6a215b3a
PHP
bresam/ivory-google-map
/tests/Service/Elevation/Request/PositionalElevationRequestTest.php
UTF-8
3,604
2.5625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Ivory Google Map package. * * (c) Eric GELOEN <geloen.eric@gmail.com> * * For the full copyright and license information, please read the LICENSE * file that was distributed with this source code. */ namespace Ivory\Tests\GoogleMap\Service\Elevation\Request; use Ivory\Googl...
true
c16ab2788289050882ea74900e05f7ff1c1fb877
PHP
anze-gn/Pivomat
/php/controller/NarocilaController.php
UTF-8
7,202
2.515625
3
[]
no_license
<?php require_once("model/NarociloDB.php"); require_once("model/PostavkaDB.php"); require_once("model/StrankaDB.php"); require_once("forms/NarociloForm.php"); class NarocilaController { public static $stanja = ['potrjeno', 'preklicano', 'stornirano', 'zakljuceno']; public static function index($filter) { ...
true
1b7ed0873d154b558446c6e42c31504927e92509
PHP
helver/Alliances
/PHP/GeoNet/htdocs/History/FacilityHistory.inc
UTF-8
2,910
2.765625
3
[]
no_license
<? include_once ("History/FacilityHistoryBase.inc"); # # Class: FacilityHistory # # FacilityHistory is a concrete class that provides a HistoryBase # implementation. This particular class provides history for Alcatel 1640 # elements. # # Author: eric # Create Date: 11/7/2002 # # Revision: $Revision: 1.2 $ # Last Cha...
true
be4a2f64b35ac4cfa4f60828ef4893056c0d2e2f
PHP
baudu69/GSB2
/app/metier/Mangas.php
UTF-8
2,268
2.640625
3
[]
no_license
<?php namespace App\metier; use Illuminate\Database\Eloquent\Model; use DB; class Mangas extends Model { //On déclare la table manga protected $table = 'manga'; protected $primaryKey = 'id_manga'; private $id_genre; private $couverture; private $id_dessinateur; private $id_scenariste; ...
true
be0d1e30cd36928b06c0a4d7e19f20b6b06cca4d
PHP
sanjibsinha/seven-applications-in-php
/OOP/reflection-function.php
UTF-8
2,092
2.546875
3
[]
no_license
<?php require '../header.php'; ?> <body> <!-- Image Showcases --> <section class="showcase"> <div class="container-fluid p-0"> <h1>Object Oriented Programming</h1> </div> <div class="row no-gutters"> <div class="col-lg-11 orde...
true
0ab2ae38b9a0c5a8071ca1c0d28f13b77c4c5b83
PHP
ffff5912/antena
/app/Repository/ArticleRepository.php
UTF-8
3,349
2.65625
3
[]
no_license
<?php namespace App\Repository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\Tools\Pagination\Paginator; use App\Entity\Article; class ArticleRepository implements RepositoryInterface { /** * @var EntityManagerInterface */ private $em; ...
true
849adfa4c4f7fac7610cc716acbe6396fa279126
PHP
KienMIC/PTUDWEB_ENDTERM
/signin.php
UTF-8
1,825
2.515625
3
[]
no_license
<?php session_start(); date_default_timezone_set('Asia/Ho_Chi_Minh'); include('connect.php'); if(!empty($_POST['submit'])){ if(isset($_POST['username'])&&isset($_POST['password'])){ $username = $_POST['username']; $password = $_POST['password']; $sql = "SELECT * FROM user WHERE username = '$username' AND...
true
44e16400c36eb0123a5ec9731061d4da78a08d50
PHP
bschewe/Code-Examples
/PHP/test/view.php
UTF-8
1,243
2.90625
3
[]
no_license
<?php require_once 'pdo.php'; $error = false; //$success = false; $record = "Record inserted"; $stmt = $pdo->query("SELECT * FROM autos"); $autos = array(); while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { $autos[] = $row; } ?> <!DOCTYPE html> <html> <head> <title> Blake Schewe's Autos Page</title> </head> <body s...
true
7a1c9d909fc2dce6513b73c752c2b89477e4613b
PHP
kelsoncsm/geproj
/www/ext/index.php
UTF-8
6,035
2.515625
3
[]
no_license
<?php // Configurando a descrição do erro at runtime error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); // Required files - - - - - - - - - - - - - - - - - - - require('vendor/autoload.php'); require('constantes.php'); require('db.php'); require('definicoes_de_acoes.php'); require('response.php'); re...
true
027a7fa600641a2cd7e150e3198d36ac8494ce5d
PHP
PivotDev/pivot_custom_upstream
/core/tests/Drupal/Tests/Core/Datetime/DrupalDateTimeTest.php
UTF-8
5,402
2.703125
3
[ "GPL-2.0-or-later", "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-other-copyleft", "GPL-2.0-only", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace Drupal\Tests\Core\Datetime; use Drupal\Core\Datetime\DrupalDateTime; use Drupal\Tests\UnitTestCase; /** * @coversDefaultClass \Drupal\Core\Datetime\DrupalDateTime * @group Datetime */ class DrupalDateTimeTest extends UnitTestCase { /** * Test date diffs. * * @param mixed $input1 * ...
true
e68408c695f313f705bec541d48733a46cd5304d
PHP
YaSlavar/rtu_timetable
/functions.php
UTF-8
6,076
2.921875
3
[]
no_license
<?php include_once('config.php'); function get_group_postfix($group) { return mb_substr($group, 2, 2); } function get_group_type($postfix) { global $group_postfix; $group_type = NAN; foreach ($group_postfix as $gr_postfix_array_key => $gr_postfix_array) { if (in_array($postfix, $gr_postfix_ar...
true
dc88a52d8b90d99397d839ff124a4c3811c1485b
PHP
vikbert/composer-package-starter
/src/HelloWorld.php
UTF-8
157
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Chapterphp; final class HelloWorld { public function hello(): string { return 'World'; } }
true
a8140f92529ccf25e52e434988389ef140bceae0
PHP
jobhub/backendPhalcon
/app/models/Tokens.php
UTF-8
2,679
2.78125
3
[]
no_license
<?php class Tokens extends \Phalcon\Mvc\Model { /** * * @var integer * @Primary * @Identity * @Column(type="integer", length=11, nullable=false) */ protected $idtokens; /** * * @var string * @Column(type="string", length=250, nullable=true) */ protect...
true
fab8d760344362f2e7ad64608a8de61444c6fd7a
PHP
guansen123/WebProject
/Kobe/phphw2.php
UTF-8
140
3.734375
4
[]
no_license
?php $pi = 3.141592; echo "\$pi 轉成整數 : ".(int)$pi; $input = "3.141592pi"; echo "pi 轉成浮點數 : ".(float)$input; ?>
true
2ebbd5a7affd9262d7c80b59ccc6b50fcafea43d
PHP
tiaswidiatmika/imm-daily-report
/app/Http/Livewire/ShiftSchedule.php
UTF-8
1,994
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Livewire; use Livewire\Component; class ShiftSchedule extends Component { public $numbering; public $users; public $spv; public $opises; public $availableShift = ['Off Kedua', 'Pagi Pertama', 'Pagi Kedua', 'Siang Pertama', 'Siang Kedua', 'Malam Pertama', 'Malam Kedua', '...
true
b0825ac5571d4fab12328ff6f10f47d2324f8634
PHP
alex-green-day/test-laravel
/app/Models/Messages.php
UTF-8
984
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use App\Helpers\SpellingHelper; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Messages extends Model { use HasFactory; public const ClientAuthor = 'client'; public const ManagerAuthor = 'manager'; /** * The attr...
true
1a9bd5a198a3b0fdf85e1df8498c6fa7f7967be0
PHP
MrDHat/stubs
/classes/mageekguy/atoum/stubs/asserters/boolean.php
UTF-8
2,415
3.375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace mageekguy\atoum\stubs\asserters; /** * This is the assertion dedicated to the booleans. * * If you try to test a variable that is not a boolean with this * assertion, this will fail. * * Note: "null" is not a boolean. Report the the PHP manual to know * what is_bool considers or not to be a b...
true
6cfab37792124cff7bdedf55f549d7070d8d1153
PHP
MuhammadAryaSeptaKovitra/Website_Kelas
/admin/php/updateEvent.php
UTF-8
2,750
2.75
3
[]
no_license
<?php session_start(); if(!isset($_SESSION["login"])){ header("Location: login.php"); exit; } require "functionsEvent.php"; // ambil data di URL $id = $_GET["id"]; // query data mahasiswa berdasarkan ID nya $event = query("SELECT * FROM `event` WHERE id =$id")[0]; // cek apakah tombol submit sudah ditekan apa...
true
cd171bc24ac688b18682ee7e2f345bed61b269fc
PHP
nknguyengl/api
/app/Bootstrap/Structures.php
UTF-8
1,037
2.578125
3
[]
no_license
<?php declare(strict_types=1); namespace App\Bootstrap; use App\Enumerators\ProductTypes; use App\Helpers\Structure as StructureHelper; use App\Models\Attribute; use App\Models\Person; use App\Models\Project; use App\Models\Structure; class Structures { protected array $classes = [ Project::class, ...
true
ad2fb2c31349d5172874ce314c0ec5276261bfbf
PHP
ThreeDX/php2
/dz3/app/classes/ControllerIndex.php
UTF-8
704
2.578125
3
[]
no_license
<?php class ControllerIndex extends Controller { public function Show($action = 'index', array $params = array()) { //В зависимости от $action, выполняем нужные действия switch($action) { case 'index': $data = $this->Index($params); break; defa...
true
aab6efe0d82f0f8f040b96a9a24d4914019f7b3e
PHP
florindoasir/IAW
/clases/florindo/2020-12-17/cs-sesiones-1-plantillas/sesiones-1-11-1.php
UTF-8
1,053
2.8125
3
[]
no_license
<?php /** * Sesiones (1) 11 - sesiones-1-11-1.php * * @author Escriba aquí su nombre * */ print "<!-- Ejercicio incompleto -->\n"; ?> <!DOCTYPE html> <html lang="es"> <head> <meta charset="utf-8"> <title> Subir y bajar número. Sesiones (1). Sesiones. Escriba aquí su nombre </title> <meta name...
true
bced20b51c45ae57f22520ddf4a409abd703af5d
PHP
vuxuancuong1998/mywebsite
/watch/Core/Database.php
UTF-8
990
2.796875
3
[]
no_license
<?php class Database { protected $db; private $hostname = "localhost"; private $username = "root"; private $password = ""; private $dbname = "watchstore"; public function __construct() { $this->connect(); } public function connect(...
true
f601e4751c388605fd76b57fd4738cd066e9d607
PHP
rairlie/postage-calculator
/src/Defaults/ParcelForce48.php
UTF-8
1,814
2.59375
3
[ "MIT" ]
permissive
<?php /** * Array of price bands used for a Parcelforce service * * For each price band we have: * 'minWeight': minimum weight for this price band * 'maxWeight': maximum weight for this price band * 'prices': array of: * - price for ParcelForce::METHOD_COLLECT * - price for ParcelForce::METHOD_DROP_POST...
true
3b8a29719b882b207bf72461ae3b39919257fb66
PHP
skiphog/shortlife.ru
/app/Http/Requests/QuestionRequest.php
UTF-8
1,021
2.640625
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class QuestionRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize(): bool { return true; } /** *...
true
39b0c48ea181ae80fabf6fd72dfe64adc10d004e
PHP
paulac6/Proyecto
/app/Models/Obra.php
UTF-8
1,203
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * Class Obra * * @property $id * @property $nombre * @property $fechaInicio * @property $fechaEntrega * @property $estado * @property $cantidadMaterial * @property $tipoMaterial * @property $idClienteFK * @property $idCategoriaFK * @...
true
f06284d3044d5b7527223b651cd35e4d703e07e7
PHP
tz-7/scraper
/src/Factory/WebDriverFactory.php
UTF-8
3,909
2.546875
3
[]
no_license
<?php namespace Tz7\WebScraper\Factory; use Facebook\WebDriver\Remote\RemoteWebDriver; use Facebook\WebDriver\Remote\WebDriverCapabilityType; use Facebook\WebDriver\WebDriverDimension; use Tz7\WebScraper\Browser\Buzz\Factory\BrowserFactory; use Tz7\WebScraper\Browser\Buzz\Util\CookieJar; use Tz7\WebScraper\Request\W...
true
47dca0fce98baa290d2e1ca125d8dec2aa8333c4
PHP
artur99/romanesti.ro
/app/Controllers/OraseAjaxController.php
UTF-8
2,036
2.5625
3
[]
no_license
<?php namespace Controllers; use Silex\Application; use Silex\Api\ControllerProviderInterface; use Symfony\Component\HttpFoundation\JsonResponse; use Models\CityModel; class OraseAjaxController implements ControllerProviderInterface{ public function connect(Application $app){ $indexController = $app['co...
true
51affbec8bd615ced10ccc6dc5bada971a29666a
PHP
aronnZ/StudentRegistrationSystem
/code/changepass.php
UTF-8
1,072
2.671875
3
[]
no_license
<?php session_start(); $user = $_SESSION["user"]; $old = $_POST["old"]; $new = $_POST["new"]; if($old==null||$new==null) { echo "密码不能为空!"; } elseif($old==$new) { echo "新密码与旧密码不能相同!"; } else { $con=mysqli_connect("localhost","root","123456","systemdb"); $sql="select password fro...
true
d1647eed2594f0055737fe538840cf89b1701100
PHP
jeandev84/framework-1
/app/Entity/User.php
UTF-8
1,453
3.109375
3
[]
no_license
<?php namespace App\Entity; /** * Class User * @package App\Entity */ class User { /** * @var int */ private $id; /** * @var string */ private $email; /** * @var string */ private $password; /** * @var array */ private $roles = []; ...
true
46d5a36aec1f1093275ad642690f7f9efbbc1c4a
PHP
jrussel1/LibTechConference
/phpdao/generated/class/dao/SessionTargetDAO.class.php
UTF-8
940
2.78125
3
[]
no_license
<?php /** * Intreface DAO * * @author: http://phpdao.com * @date: 2014-03-22 17:50 */ interface SessionTargetDAO{ /** * Get Domain object by primry key * * @param String $id primary key * @Return SessionTarget */ public function load($sessionID, $audience); /** * Get all records from table */ ...
true
07d0ce96c4864a8ffef1fff7ac51f60ea0ab3de5
PHP
ylabio/ylab.ddata
/lib/data/randompassword.php
UTF-8
4,510
2.8125
3
[ "MIT" ]
permissive
<?php namespace Ylab\Ddata\Data; use Bitrix\Main\Localization\Loc; use Bitrix\Main\HttpRequest; use Ylab\Ddata\Interfaces\DataUnitClass; use Ylab\Ddata\Helpers; Loc::loadMessages(__FILE__); /** * Генерация случайного пароля * * Class RandomPassword * @package Ylab\Ddata\Data */ class RandomPassword extends Dat...
true
428732aafe37dc882b447ef31d8bdb8bc4f0a3ca
PHP
kunglaw/day2-week1
/todo/models/Product.php
UTF-8
317
3.078125
3
[]
no_license
<?php class Product { private $id; private $name; static function getAll() { $mysqli = new mysqli(); $result = $mysqli->query("SELECT * FROM products "); return $result->fetch_assoc(); // array } function insert() { } }
true
fac91dd29703948921c23ece420c0741ccbe630c
PHP
lewnelson/namecheap-interface
/src/Client.php
UTF-8
2,824
3.015625
3
[ "MIT" ]
permissive
<?php /** * This file is part of the lewnelson/namecheap-interface package. * * (c) Lewis Nelson <lewis@lewnelson.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace LewNelson\Namecheap; use LewNelson\Nam...
true
2ac63e93e8eaad8d8c3fe5b1962ae29b15d95121
PHP
DekodeInteraktiv/nelhydrogen
/content/plugins/ac-addon-acf/classes/Filtering/File.php
UTF-8
397
2.546875
3
[]
no_license
<?php namespace ACA\ACF\Filtering; use ACA\ACF\Filtering; class File extends Filtering { public function get_filtering_data() { $options = array(); if ( $ids = $this->get_meta_values() ) { foreach ( $ids as $post_id ) { $options[ $post_id ] = basename( get_attached_file( $post_id ) ); } } retur...
true
6e8d92db8e9eaf68f6b517ee7c2510783e7feb85
PHP
Alice-lxy/lara_api
/app/Http/Middleware/ExampleMiddleware.php
UTF-8
1,120
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Support\Facades\Redis; class ExampleMiddleware { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closur...
true
b52ffe19f6f0011f868d9f6fc67f8634c647d827
PHP
LordRegginald/TpFinal2017
/src/Boleto.php
UTF-8
1,239
2.953125
3
[]
no_license
<?php /* //require 'Viaje.php'; namespace TpFinal; class Boleto { protected $tipos_boleto = [ 'Normal', 'Plus', 'Medio', 'Bicicleta', ]; protected $tipo_boleto, $saldo, $id, $linea; public function __construct($tipo_boleto, $saldo, $id, $linea) ...
true
2608f2858cea5f45f5d22d66be4358a515f89db1
PHP
x2team/inventory
/database/seeders/EmployeeSeeder.php
UTF-8
1,486
2.703125
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; use Illuminate\Support\Carbon; use Illuminate\Support\Str; use Faker\Factory; class EmployeeSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() ...
true
302d3ebb446a2d14b3239b1a6f5beceff25c08c5
PHP
David-Coderfield/FSWD80-CodeReview11-David-Riediger
/actions/insert_a.php
UTF-8
2,123
2.78125
3
[]
no_license
<?php session_start(); if (isset($_SESSION['role'])) { if ($_SESSION['role']==='admin' && isset($_POST['tablename'])) { require_once('dbconnect.php'); $error = false; $table = $_POST['tablename']; //LOCATIONS QUERY $sql1 = "INSERT INTO `locations`(`title`, `address`, `image`, `www`, `description`) VALUES (...
true
b38ccc6273c21346b43d4b9018187db9768875bc
PHP
chifum/salvation
/Admin/ministries.php
UTF-8
11,822
2.5625
3
[]
no_license
<?php session_start(); require_once'../config/conn.php'; if(!isset($_SESSION['username'])) { header("location:login.php"); } $conn = mysqli_connect(servername, username, password, dbname); $errors = array(); $successes = array(); $sql = "SELECT * FROM categories ORDER BY cat_id DESC"; $result = mysqli_query($con...
true
bca9d399ccdcfdfca262600d72ca64a5584f8ae8
PHP
mgecodev/plaive
/database/migrations/2014_10_12_100000_create_password_resets_table.php
UTF-8
1,748
2.515625
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePasswordResetsTable extends Migration { /** * Run the migrations. * * @return void */ public $tableName = 'password_resets'; public $connecti...
true
d85b3944b78ba09bd2442aac81d9f91c2af12f77
PHP
bitserikacosta/entrenamiento-en-php
/php/php_f1.php
UTF-8
4,339
2.625
3
[]
no_license
<?php $strings = array ( " Lorem ipsum dolor sit amet, consectetur EnTrenamiento elit, sed do eiusmod tempor incididunt ut", "Sed ut ENTRENAMIENTO unde omnis iste natus error sit voluptatem accusantium doloremque entrenamiento, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto b...
true
6a047c84cff7d2794bb11efb06df10826f5732b9
PHP
kreisingerova/maturitni-prace
/administrace/classes/Model.php
UTF-8
8,337
3
3
[]
no_license
<?php class Model { //vytvoření soly, která se následně používá na zahešování hesla const SALT = "fafakwnfkangeajekgna"; //vyváří funkci, která vypíše údaje o programu z databáze public static function getProgram() { $query5 = "SELECT p.id_programu, p.datumcas, f.nazev_filmu, sa.jmeno_salu, p....
true
d049d85fc164f1367fc0b7685df73640e1a6c215
PHP
juliohdzrj/testapp
/api_cmp/model/class.ListPromotions.php
UTF-8
3,449
2.578125
3
[]
no_license
<?php /** * User: julio.ramos * Date: 01/11/2017 * Time: 10:23 AM */ class ListPromotions{ private $table_name="categoria"; private $table_name1="cp_pdf_ficha"; public $tipoRed=""; public $idCategoria=""; public $idSubCategoria=""; public $startRange=""; public $idPromotion=""; public ...
true
1b53c688a9aabec5504e164bc74d01cde95b8901
PHP
CarolinePaixao/SCI
/admin/class/Calebe.php
UTF-8
5,534
2.8125
3
[]
no_license
<?php include_once 'Database.php'; include_once 'Person.php'; /** * Created by PhpStorm. * User: Caroline * Date: 24/08/2015 * Time: 21:02 */ class Calebe extends Person { private $timeStudy, $leader, $baptism, $status; /** * @return mixed */ public function getTimeStudy() { ret...
true
f515b6f66e28893615886bb14748d32029af0f59
PHP
agarwalaman786/HacktoberFest2018
/sanskriti php/array.php
UTF-8
5,213
3.671875
4
[]
no_license
<?php $x = array(1 => "Sarthak" , 2 => "Prajapati"); var_dump($x); //We cannot directly show array like echo($x); it results into conversion type echo("<br><br>".$x[1]); $y= ["Sarthak","Prajapati","Panjab","University"]; echo("<br><br>".$y[0]."<br><br>"); //Array Functions //array_change_key_case function change...
true
061bfb7896b0e7ad368455ce806ed59eaabf0a6c
PHP
shahajalalweb/LearnPHP
/RAW_PHP_Project/app/login-confirm.php
UTF-8
1,573
2.59375
3
[]
no_license
<?php require_once 'config.php'; //check authenticate user auth(); if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['login'])) { if (empty($_POST['email']) || empty($_POST['password'])) { $_SESSION['message'] = "Email or password empty!"; header("Location: ". APP_URL ."/login.php"...
true
a2d06a2cd4f14e26c5c6d7f8f7b3ac6db3abd6ca
PHP
ninx80/php_app
/app/admin/common/class/omni.class.php
GB18030
3,139
2.984375
3
[]
no_license
<?php class omni { private $plat; private $obj; public function __construct() { $this->plat = PLATFORM; if($this->plat) { $this->obj = new COM(OMNI_COM_CLASS); } } public function __destruct() { unset($this->obj); } ...
true
957810c7901dae5593b88bd0fb52c0e2304663db
PHP
andksha/Newsio
/app/Http/Middleware/EmailIsVerified.php
UTF-8
994
2.578125
3
[]
no_license
<?php namespace App\Http\Middleware; use App\Http\API\APIResponse; use Closure; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Http\JsonResponse; use Illuminate\Http\Response; final class EmailIsVerified { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $requ...
true
0e229942e57c9e2a60d65eec62d4404d11e53d2a
PHP
ZarinPal-Lab/Resello
/getresult.php
UTF-8
4,727
2.53125
3
[]
no_license
<?php /** * @package Resello custom payment gateway * @author Ahmad Rajabi & Armin Zahedi * @copyright 2016 Ahmad Rajabi */ require_once ("conf.php"); //check Get Data function test_data($data){ $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data...
true
02fd8c7d8be37449b79bad38f40c040013c2754d
PHP
IlyaNekhlyudov/PHP-first-course
/sixLesson/engine/orders.php
UTF-8
416
2.734375
3
[]
no_license
<?php function getAllOrders() { return queryAll("SELECT * FROM orders WHERE status = 'processed'"); } function parseProducts($orders) { foreach ($orders as $order) { $products = explode('|', $order['products']); array_pop($products); foreach($products as $product) { $produ...
true
ade0851704c807962f0b37bcccbea88e480bf3f0
PHP
bjamey/libuseless
/PHP/MySQL/Erase.php
UTF-8
867
2.578125
3
[]
no_license
<?php /* ---------------------------------------------------------------------- DTT 1.1.5.0 (c)2006 FSL - FreeSoftLand Title: MySQL Erase script Date : 09.8.2006 By : Dimitar Minchev <mitko@bfu.bg> ---------------------------------------------------------------...
true
ac1f5fa10ebd34936eed6bb15a2c696423b10c07
PHP
ChazalFlorian/Transversal
/model/User.php
UTF-8
3,283
2.921875
3
[]
no_license
<?php namespace model; class User { private $bdd; public function __construct($pdo) { $this->bdd = $pdo; } /** * fonction d'ajout d'user dans la base */ public function addUser($data) { $request = $this->bdd->prepare('INSERT INTO users(Name, FirstName, Mail, Pas...
true
f6ff503ebe6442bf5a995ad148e59abae67f3b98
PHP
sebastienheyd/boilerplate
/src/Datatables/Column.php
UTF-8
7,809
2.921875
3
[ "MIT" ]
permissive
<?php namespace Sebastienheyd\Boilerplate\Datatables; use Closure; class Column { protected $actions = []; protected $attributes = []; protected $filter = null; protected $filterOptions = []; protected $filterType = 'input'; protected $order = null; protected $raw = null; protected $t...
true
8adbe8bd0a9a3f1c93e0dc909fb7fc5b8cee5afc
PHP
bfarmstrong/mensio
/app/Services/Impl/GroupService.php
UTF-8
1,645
2.75
3
[]
no_license
<?php namespace App\Services\Impl; use App\Enums\Roles; use App\Services\BaseService; use Illuminate\Support\Collection; /** * Implementation of the Group service. */ class GroupService extends BaseService implements IGroupService { /** * Returns the model that the service will use. * * @return ...
true
89bf3e3898d4c66e0f6f990b11a592a06feec0ae
PHP
dapras2000/rsbb
/keuangan/setup/m_tarif2012.php
UTF-8
1,919
2.640625
3
[]
no_license
<?php class m_tarif2012 { var $db_host; var $db_user; var $db_pass; var $allFields = array(); var $strDBError = ""; var $intRow = 0; public function getAllFields(){ $sql="select kode_tindakan,kode_gruptindakan,nama_tindakan,tarif,jasa_sarana,jasa_pelayanan from m_tarif2012 order by kode_...
true
860ecd00a5aa0b16955f24788694f947d33ddb19
PHP
RobinTheHood/PhpFrameworkApp
/app/Models/Base/UserBase.php
UTF-8
909
2.6875
3
[]
no_license
<?php namespace App\Models\Base; use RobinTheHood\PhpFramework\Database\DatabaseObject\DatabaseObject; use RobinTheHood\DateTime\DateTime; class UserBase extends DatabaseObject { protected $mail; protected $password; /************ * SET * *************/ public function setMail($value)...
true
9ce6a8ee27cfabda6aa0b8b29e66dc5fcaec9885
PHP
pinoyprogleague/phpops
/system/cache/classes.cache.php
UTF-8
2,198
2.90625
3
[ "MIT" ]
permissive
<?php /** * [ SYSTEM USE ONLY ] */ function cache_classes_Initialize() { if ( !core_cache_Has(CACHE_CLASSES_KEY) ) { core_cache_Set(CACHE_CLASSES_KEY, array(), CACHE_CLASSES_TTL); } } /** * Add class to cache * * @param type $classname * @param type $path */ function cache_classes_Add($classn...
true
0b1a82abb66c4e6a6698c6bd047d620a68faed54
PHP
JayPHP/Jeeves
/src/Chat/Room/RoomFactory.php
UTF-8
783
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Room11\Jeeves\Chat\Room; use Room11\Jeeves\Chat\Auth\Session; use Room11\Jeeves\Chat\WebSocket\Handler; use Room11\Jeeves\Storage\KeyValueFactory as KeyValueStorageFactory; class RoomFactory { private $keyValueStorageFactory; public function __construct(KeyValueStora...
true
65f640e64ee0f96b2347bebfd7b6b5316f388790
PHP
oversimplifyd/sportluv
/app/models/Post.php
UTF-8
1,277
2.921875
3
[]
no_license
<?php class Post extends Eloquent { /** * The database table used by the model. * * @var string */ protected $table = 'posts'; /** * The attributes excluded from the model's JSON form.v * * * @var array */ protected $fillable = array('description', 'title', 'tag', 'post_image', 'user_id'); ...
true
241103f902d40023a3197a9b699d2f0ecf112726
PHP
Takajo-Soft22/bazacon
/public_html/vote.php
UTF-8
5,281
2.578125
3
[]
no_license
<?php if(isset($_GET['bazzar'])): # validation $bazzar = $_GET['bazzar']; if(!preg_match('/^[-0-9a-z]+$/', $bazzar)) { die('Malformed bazzar name'); } include '../config.php'; try { $pdo = new PDO("mysql:dbname=$DB_NAME;host=$DB_HOST;charset=utf8", $DB_USER, $DB_PASS); $sql = 'SELECT * FROM bazzar WHERE name=?';...
true
f0e2fe5edfff9d70ef9f80f9374163d866b3afe0
PHP
summerflowers/PHP
/svgToImage.php
UTF-8
935
2.90625
3
[ "Apache-2.0" ]
permissive
<?php $usmap = 'US_MAP.svg'; $im = new Imagick(); $svg = file_get_contents($usmap); /*loop to color each state as needed, something like*/ $idColorArray = array( "AL" => "339966" ,"AK" => "0099FF" ,"WI" => "FF4B00" ,"WY" => "A3609B" ); foreach($idColorArray as $state => $color){ //Where $color is a ...
true
2a78c355c5f06bc95354b410fce5b6586dbdf43d
PHP
kristianindra1412/cne
/_model/model_drestaurant.php
UTF-8
1,917
2.5625
3
[]
no_license
<?php class model_drestaurant extends basicModel { public $p_code = ""; public $prefix = "menu"; protected $pk = "menu_code"; protected $p_pk = "restaurant_code"; protected $tb_name = "restaurant_menu"; private $id = ""; public $dataParent = ""; protected $data; public function __construct($parent...
true
d8d512c7926f7d97d6ccd5719dc2f29a1a781812
PHP
LaboratoryGA/orm
/classes/Type/TimestampType.php
UTF-8
786
2.65625
3
[ "WTFPL" ]
permissive
<?php namespace Claromentis\Orm\Type; use DateTime; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Types\Type; /** * This mapping type represents a Unix timestamp (seconds since epoch) * * @author Nathan Crause */ class TimestampType extends Type { public function getName()...
true
407177341cc2013ac12078039aab29bb599564a5
PHP
ephp/blog
/Entity/Traits/BasePost.php
UTF-8
4,137
2.5625
3
[]
no_license
<?php namespace Ephp\BlogBundle\Entity\Traits; trait BasePost { /** * @var string * * @ORM\Column(name="title", type="string", length=128) */ private $title; /** * @var string * * @ORM\Column(name="media", type="string", length=255, nullable=true) */ private $...
true
eee3fa45cf66d49669746e2d1f5d320e046fea2d
PHP
TeaPress/TeaPress
/module/TeaBlog/src/TeaBlog/Model/Category/Relational.php
UTF-8
619
2.515625
3
[]
no_license
<?php namespace TeaBlog\Model\Category; use TeaBlog\Model\Category; class Relational extends Category { protected $parent; public function getParent() { return $this->parent; } public function setParent($parent) { $this->parent = $parent; return $this; } pub...
true
317398b94fb9dbc27840b4678163a9f8bf68402e
PHP
dindigital/din
/library/Din/Mvc/Controller/FrontController.php
UTF-8
1,116
2.609375
3
[]
no_license
<?php namespace Din\Mvc\Controller; use Din\Router\iRouter; /** * * @package MVC.Controller */ class FrontController { private $_router; public function __construct ( iRouter $_router ) { $this->_router = $_router; } public function dispatch () { $controller_name = $this->_router->getContr...
true
bb34d794979e355aba5eff076560074e69c976fb
PHP
Kazay/capybara
/app/Http/Middleware/AuthorizeRole.php
UTF-8
783
2.84375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Auth\AuthenticationException; use App\Models\User; /** * Validate a role before allowing API request * Only works for authenticated users */ class AuthorizeRole { /** * Handle an incoming request. * * @param \Illuminate\Http\Requ...
true
94a78a26d1138ef918ef89c82a87a61e33680115
PHP
JohannesBeranek/steroid
/clihandler/interface.ICLIHandler.php
UTF-8
808
2.71875
3
[]
no_license
<?php /** * Interface for CLIHandler * * @package steroid\cli */ require_once STROOT . '/storage/interface.IRBStorage.php'; require_once STROOT . '/cli/clidefines.php'; /** * Interface for CLIHandler * * @package steroid\cli */ interface ICLIHandler { public function __construct( IRBStorage $storage ); /** ...
true
10bf375fae7dc6ff62cb323618b09243616b9b39
PHP
robertpassaro/fq-custom-post-types
/templates/meta_box/checkbox.php
UTF-8
933
2.859375
3
[]
no_license
<?php /** * @File * Template for rendering radio or checkbox elements in the meta box * * @param array $custom_field * @param string $name */ ?> <label><b><?php print $custom_field['label'];?></b></label><br/><br/> <?php $count = 0;?> <?php foreach($custom_field['options'] as $val => $label): ?> <?php $coun...
true
51b37557a133509ce8079c5b76e09403f33db604
PHP
techweber/php-mysql
/phpmysql.php
UTF-8
457
2.875
3
[]
no_license
<?php $server = "localhost"; $username = "neo"; $password = "myneopassword"; $database = "catalog"; $con = mysqli_connect( $server, $username, $password, $database ); if(!$con){ echo "Connection Failed : " . mysqli_connect_error(); exit; } $sql = "SELECT * FROM products"; $result = $con->query($sql); echo "<t...
true
7b942ef5ab3cc1cb65f2133804f6ff40d4d2ab8e
PHP
gaptree/gap-php-db
/src/MySql/SqlBuilder/Tool/SetTool.php
UTF-8
1,393
2.71875
3
[ "MIT" ]
permissive
<?php namespace Gap\Db\MySql\SqlBuilder\Tool; use Gap\Db\MySql\SqlBuilder\UpdateSqlBuilder; use Gap\Db\MySql\Sql\UpdateSql; use Gap\Db\MySql\Cnn; use Gap\Db\Pdo\Param\ParamBase; class SetTool extends CondTool { protected $usb; protected $cnn; protected $updateSql; protected $field; public functio...
true
bea5d01024e07e9d170ee9901f42517bf41a1da2
PHP
phpcmx/ORM
/src/OrmApp.php
UTF-8
1,916
2.671875
3
[ "MIT" ]
permissive
<?php /** * OrmApp.php * * 作者: 不二进制·Number * 创建日期: 2017/7/25 下午4:11 * 修改记录: * * $Id$ */ namespace phpcmx\ORM; use phpcmx\ORM\inc\traits\FinalSingleEngine; use phpcmx\ORM\Tool\OrmTool; /** * Class OrmApp * 整个orm系统的初始化app * @package phpcmx\ORM */ final class OrmApp { use FinalS...
true
629537f10710a44874ca08f87740ae18748bb661
PHP
Rene-Roscher/nicapi-client
/src/Manager/Handler/Handler.php
UTF-8
3,083
2.53125
3
[ "MIT" ]
permissive
<?php namespace NicAPI\Manager\Handler; use NicAPI\Manager\Objects\ResponseObject; use NicAPI\Manager\Query\Query; use NicAPI\Manager\Traits\Helper; use NicAPI\Manager\Transformers\Domain\Domain; use NicAPI\Manager\Transformers\ResponseTransformer; use NicAPI\NicAPI; class Handler { use Helper; protected...
true
17e6618818ffde9bec7738f53d83dc257b39b4a3
PHP
cheeaun/kohana-core
/classes/kohana/form.php
UTF-8
7,870
3
3
[]
no_license
<?php defined('SYSPATH') OR die('No direct access allowed.'); /** * Form helper class. * * @package Core * @author Kohana Team * @copyright (c) 2007-2008 Kohana Team * @license http://kohanaphp.com/license.html */ class Kohana_Form { /** * Generates an opening HTML form tag. * * @param strin...
true
bafbb3807defb4b4e1f7b2fb201c7fb47375848d
PHP
annamichelle/LightboxGallery
/LightboxGalleryPlugin.php
UTF-8
1,418
2.515625
3
[]
no_license
<?php /** * Lightbox Gallery Plugin * * @author Anna Michelle Martinez-Montavon * @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 or any later version */ class LightboxGalleryPlugin extends Omeka_Plugin_AbstractPlugin { protected $_hooks = array('exhibit_builder_page_head'); protected $_filters = array...
true
d7a1b560e00312d0bc28844486f02670386ac393
PHP
leonardofr97/twitter-clone
/seguir.php
UTF-8
811
2.65625
3
[]
no_license
<?php // para que possamos recuperar os dados de session session_start(); // verificação de controle if (!isset($_SESSION['usuario'])) { header('Location: index.php?erro=1'); } require_once 'db.class.php'; // recuperando o id do usuário da sessão (logado) $id_usuario = $_SESSION['id_usuario']; // recuperando o...
true
3fa6de75a071adf4d7071a3914e2a4d41d65c8ec
PHP
DaPigGuy/PiggyCustomEnchants
/src/DaPigGuy/PiggyCustomEnchants/enchants/armor/ArmoredEnchant.php
UTF-8
1,371
2.640625
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace DaPigGuy\PiggyCustomEnchants\enchants\armor; use DaPigGuy\PiggyCustomEnchants\enchants\CustomEnchant; use DaPigGuy\PiggyCustomEnchants\enchants\CustomEnchantIds; use DaPigGuy\PiggyCustomEnchants\enchants\ReactiveEnchantment; use pocketmine\event\entity\EntityDamageByEntityEve...
true
c7bd8b10eeccc8a5d6579cf2e4a49f8382e9165b
PHP
Ankita-Palekar/agency-project-
/application/controllers/moviescontroller.php
UTF-8
1,468
2.71875
3
[]
no_license
<?php class moviesController extends Controller { function filter($params){ $opts = $this->process_params($params); $result = Movie::filter($opts); $this->_template->render_json($result); } function movies_list(){ $this->get_movies_list(); $this->_template->render(); } function add_mov...
true
58c43c67d8d66d8479ac61876a4bf1ae8f68424a
PHP
boyhagemann/taskreward_legacy
/app/models/Token.php
UTF-8
678
2.953125
3
[]
no_license
<?php class Token { /** * @param User $user * @param Task $task * @return string */ public static function build(User $user, Task $task) { return $user->key . $task->key; } /** * @param string $token * @return User */ public static function getUser($token) { $key = substr($token, 0, 5); ret...
true
fa151dfc05c16d80dfd0f3939e24852002025fd9
PHP
Ne-Lexa/google-play-scraper
/src/Scraper/SuggestScraper.php
UTF-8
1,129
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * Copyright (c) Ne-Lexa * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * * @see https://github.com/Ne-Lexa/google-play-scraper */ namespace Nelexa\GPlay\Scraper; use Nelexa\GPlay\HttpClient\Parse...
true
43ac76b9feba7298f461187d97fe8566a0ab6050
PHP
amacabr2/gfk_frameworkmaison
/src/Framework/Middleware/RouterMiddleware.php
UTF-8
1,153
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * UserInterface: amacabr2 * Date: 10/10/17 * Time: 10:30 */ namespace Framework\Middleware; use Framework\Router; use GuzzleHttp\Psr7\Response; use Psr\Http\Message\ServerRequestInterface; class RouterMiddleware { /** * @var Router */ private $router; /*...
true
fcfa7f42648ac61c1d701e950ae1acbb2dc442de
PHP
h3d-tuannq/mystore.com
/common/models/Card.php
UTF-8
3,151
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use common\models\base\CardService; use Yii; use yii\behaviors\BlameableBehavior; use yii\behaviors\SluggableBehavior; use yii\behaviors\TimestampBehavior; /** * This is the model class for table "card". * * @property int $id * @property int $card_type Kiểu thẻ * @property string $...
true
ed469d894447960519d5e37a628671274495c77a
PHP
webvimark/module-slider
/models/SliderImage.php
UTF-8
2,535
2.53125
3
[]
no_license
<?php namespace webvimark\modules\slider\models; use webvimark\image\Image; use Yii; use yii\helpers\Inflector; use yii\behaviors\TimestampBehavior; use yii\web\UploadedFile; /** * This is the model class for table "slider_image". * * @property integer $id * @property integer $active * @property integer $sorter...
true
73219f57057d80fef3064f9fad2fc5cfc9ae4e1d
PHP
logvinoleg89/auxyn.dev
/common/modules/user/models/Favorite.php
UTF-8
1,311
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace modules\user\models; use Yii; use yii\db\ActiveRecord; use modules\user\models\User; /** * This is the model class for table "favorite". * * @property integer $id * @property integer $idUserFollower * @property integer $idUserFollowing * * @property User $userFollowing * @property User $userF...
true
38ab86794d789e7bcc7978c641e47da906734293
PHP
MySaasPackage/QueryBuilder
/src/QueryPart/CommonTableExpression/CommonTableExpressionModule.php
UTF-8
941
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace MySaasPackage\QueryPart\CommonTableExpression; use Stringable; trait CommonTableExpressionModule { protected CommonTableExpressionPartCollection|null $commonTableExpressionPartCollection = null; protected function addCommonTableExpressionToCollection(CommonTableExpr...
true
8f00e38cdc4ba43a88d1bbe903cc826cd9a19e19
PHP
romankr-dv/image-filters
/index.php
UTF-8
576
2.5625
3
[ "MIT" ]
permissive
<?php require_once __DIR__ . '/vendor/autoload.php'; use yamadote\Image\Reader\PngReader; use yamadote\Image\Transformer; use yamadote\Image\Writer\PngWriter; use yamadote\Image\Effect\{Opacity, Brightness, Contrast, Colorize}; $url = './image.png'; $reader = new PngReader(); $source = $reader->load($url); $trans...
true