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
3969634cfd483ce1cc0f29615b43c45581951ef8
PHP
chezzy/scan-urls-sample
/autoload.php
UTF-8
556
2.703125
3
[ "MIT" ]
permissive
<?php /** * An example of a project-specific implementation. * * After registering this autoload function with SPL, the following line * would cause the function to attempt to load the \Foo\Bar\Baz\Qux class * from /path/to/project/src/Baz/Qux.php: * * new \Foo\Bar\Baz\Qux; * * @param string $class The fu...
true
c66a93258c999fb5812235cdb126f0a1f932bd13
PHP
optikalus/tw2016
/app/Http/Controllers/Score.php
UTF-8
2,485
2.515625
3
[ "Apache-2.0", "MIT" ]
permissive
<?php namespace Tradewars\Http\Controllers; use Illuminate\Http\Request; use Tradewars\Http\Requests; use Tradewars\Http\Controllers\Controller; class Score extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() {...
true
c242144358373c1d655cc2c8923fe22bd65e8b83
PHP
rasanka/shoppingcart
/cart.class.php
UTF-8
8,800
2.59375
3
[]
no_license
<?php require_once("db_manager.class.php"); class Cart extends DB_Manager { function loadCartByUserId($user_id){ $query = " SELECT cart_id, total_price, created_datetime FROM tbl_cart WHERE user_id = '".$user_id."' and cart_status = 'INCOMPLETE'; "; $result = ""; $result = $this ...
true
48cbb0091c6343e2289a726ff258796e5b042062
PHP
vazyvite/km
/phpclass/class.ListMotCles.php
UTF-8
1,996
3.140625
3
[]
no_license
<?php class ListMotCles { private $_listeMotCles; // setters function setListMotCle($liste){ $this->_listeMotCles = $liste; } // getters function getListMotCle(){ return $this->_listeMotCles; } // Constructor function ListMotCles($liste = null){ $this->setListMotCle($liste); } // méthodes /** * Métho...
true
bb4d76e086dcd122aa33e45cab38aaf6f388be9d
PHP
lavalava/gamepub
/api/apiaccountautologin.php
UTF-8
2,521
2.546875
3
[]
no_license
<?php if (!defined('SHAISHAI')) { exit(1); } require_once INSTALLDIR . '/lib/apiauth.php'; class ApiAccountAutoLoginAction extends ApiAction//ApiAuthAction { var $token = null; var $key = null; var $action = null; var $url = null; var $profile = null; /** * Take arguments for running * ...
true
722e8ecc584e78f2e70a4d1abd2c6138c1d43f82
PHP
kminek/email-obfuscator
/src/EmailObfuscator.php
UTF-8
3,532
2.921875
3
[]
no_license
<?php namespace Kminek; /** * EmailObfuscator */ class EmailObfuscator { /** * Obfuscate email * * @param string $email * @param null|string $text * @param array $options * @return string */ public static function obfuscate($email, $text = null, $options = []) { ...
true
0d1573733de2383120e6b5839f9b900be71a5da7
PHP
marcooliveira04/Projeto
/ClubHub/public_html/model/AssinanteDao.php
UTF-8
562
2.515625
3
[]
no_license
<?php require_once 'Dao.php'; /** * */ class AssinanteDao extends Dao { function __construct() { $this->setTabela('assinantes'); // Id deve ficar por último para poder ser utilizado e _popped_ em funções como update e delete. $this->setColunas(['nome', 'cpf', 'rg', 'nascimento', 'sexo', 'cep', 'rua', 'numero'...
true
7c53e5de513fc4f0eb6d59d9624c94184aa488db
PHP
ecjia/ecjia-daojia
/vendor/royalcms/excel/Royalcms/Component/Excel/Files/File.php
UTF-8
1,959
2.921875
3
[]
no_license
<?php namespace Royalcms\Component\Excel\Files; use Royalcms\Component\Foundation\Royalcms; use Royalcms\Component\Excel\Excel; use Royalcms\Component\Excel\Exceptions\ExcelException; abstract class File { /** * @var Royalcms */ protected $royalcms; /** * Excel instance * @var Excel ...
true
4f2dc7c1cb0bb5ef5e1cb26a76ae8cdad15594ee
PHP
fademar/barmiton
/app/Model/Couleurs/CouleursModel.php
UTF-8
537
2.75
3
[]
no_license
<?php namespace Model\Couleurs; class CouleursModel extends \W\Model\Model { private $_listeCouleurs; private $_arraykey; private $_couleurrandom; /** * Récupère la liste des couleurs en BDD */ public function getCouleurs() { $_listeCouleurs = $this->findAll(); return $_listeCouleurs; } public ...
true
b2d121a23e9b1f3b6009819506ad215e31da24cc
PHP
smalex86/webframework-core
/src/packageStatic/view/Page.php
UTF-8
1,830
2.875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the smalex86 package. * * (c) Alexandr Smirnov <mail_er@mail.ru> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace smalex86\webframework\core\packageStatic\view; use smalex86\webframework\...
true
621a33d4165c6dba42bbbe018eedb8a3d52a864b
PHP
Atif-Zourgani/EGS
/src/Entity/Pathway.php
UTF-8
2,906
2.859375
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\PathwayRepository") */ class Pathway { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column...
true
c48e9e19a5c216ff20cd34ef55cbdb80941f8c19
PHP
jeremieGenet/Portfolio
/views/admin/post/delete.php
UTF-8
696
2.515625
3
[]
no_license
<?php /* SUPPRESSION D'UN POST (traitement uniquement, utilisé pour le boutton supprimer dans post/index.php) */ use App\Session; use App\Connection; use App\Table\PostTable; $session = new Session(); $pdo = Connection::getPDO(); $postTable = new PostTable($pdo); $post = $postTable->find($params['id']); // Récu...
true
673672c700ab881db1e4812598dfa8eb3b829247
PHP
Razzmoon/EXO1
/src/Repository/ArticleRepository.php
UTF-8
2,082
2.984375
3
[]
no_license
<?php namespace App\Repository; use App\Entity\Article; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method Article|null find($id, $lockMode = null, $lockVersion = null) * @method Article|null findOneBy(array $criteria, array $orderBy = nul...
true
4927aa41e47205cd1bb5b89e3d3623449c17cbd5
PHP
litzinger/ExpressionEngine
/system/ee/ExpressionEngine/Addons/channel/libraries/channel_form/Channel_form_session.php
UTF-8
2,081
2.5625
3
[ "LicenseRef-scancode-free-unknown", "Apache-2.0", "OFL-1.1", "MIT", "LicenseRef-scancode-proprietary-license", "BSD-3-Clause", "LGPL-2.1-only", "LicenseRef-scancode-unknown", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference", "Swift-exception" ]
permissive
<?php /** * This source file is part of the open source project * ExpressionEngine (https://expressionengine.com) * * @link https://expressionengine.com/ * @copyright Copyright (c) 2003-2023, Packet Tide, LLC (https://www.packettide.com) * @license https://expressionengine.com/license Licensed under Apache...
true
8a3fa38f5facf53fc21780702da2a08b655fffa4
PHP
apisearch-io/symfony-react-server
/bin/server
UTF-8
3,024
2.546875
3
[ "MIT" ]
permissive
#!/usr/bin/env php <?php /* * This file is part of the React Symfony Server package. * * Copyright (c) >=2019 Marc Morera * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * Feel free to edit as you please, and have fun. * * @auth...
true
5bcc53801157cbc76d1deddb94cf17703646d0c5
PHP
vjotov/weeklyResults
/zend_proj/application/models/ChildMapper.php
UTF-8
1,551
2.640625
3
[]
no_license
<?php class Application_Model_ChildMapper { protected $_dbTable; public function setDbTable($dbTable) { if (is_string($dbTable)) { $dbTable = new $dbTable(); } if (!$dbTable instanceof Zend_Db_Table_Abstract) { throw new Exception('Invalid table data gateway p...
true
bf5659367f2c61c0a2b221cf41bb404b63818d3e
PHP
mrbadao/greenbapi
/protected/models/Tokens.php
UTF-8
5,054
2.734375
3
[]
no_license
<?php /** * This is the model class for table "tokens". * * The followings are the available columns in table 'tokens': * * @property string $uid * @property string $token * @property string $last_access_ip * @property string $expired * @property string $last_access * @property string $created */ class Toke...
true
1ec0e6a10e55689327ae78e8d09903d5f2e61ac1
PHP
netsuso/bilekto
/pregenerate-cache.php
UTF-8
964
2.609375
3
[ "MIT" ]
permissive
<?php # Syntax: # php pregenerate-cache.php [--force] # --force Force regeneration of all cached files even if they already exist require 'gallery.php'; require 'main/ThumbHandler.php'; $cachingMode = 'rw'; if (isset($argv[1]) && $argv[1] == '--force') { $cachingMode = 'wo'; } $extraConfig = array( 'caching' =...
true
3ca76abdc2133333c1b0b4054403440c9f086e12
PHP
BSteelooper/enhanced_contactform
/enhanced_contactform.site.php
UTF-8
4,804
2.734375
3
[ "MIT" ]
permissive
<?php /* * This file is part of pluck, the easy content management system * Copyright (c) pluck team * http://www.pluck-cms.org * Pluck is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 o...
true
0e3699cb4c8f6f10956c5bfae16b130b6f261d58
PHP
devtechminds/vehicle_management
/app/Customers.php
UTF-8
911
2.640625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Customers extends Model { use SoftDeletes; protected $fillable = [ 'customer_code', 'customer_name', 'tin_no', 'vrn_np', 'mobile_number', 'email', ...
true
673492480fd17e63b73fc5decd11d25fe119ef64
PHP
wangbaike/baike
/baike/framework/tools/NetTools.php
UTF-8
5,534
2.796875
3
[ "Apache-2.0" ]
permissive
<?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. */ namespace baike\framework\tools; use baike\framework\exception\BaiException; use baike\framework\tools\InputParam; class NetT...
true
4447cc3ee1b716f7c5586d2f9b3d08b92d0ae86c
PHP
PrasannS/CRHSParkingWebsite
/controllers/EnterIDController.php
UTF-8
866
2.78125
3
[]
no_license
<?php class EnterIDController extends Controller { public function adminDisplay() { (new EnterIDView())->render(); } public function submit() { if($_POST["ID"] != "") { $id = $_POST["ID"]; lcfirst($id); trim($id," "); $goodID = TRUE; if(!ctype_alpha($id[0])) { ...
true
ab4c0d6bb9ff2c8320ba2cc8089182b3a16e5377
PHP
auraphp/Aura.Auth
/src/Adapter/AbstractAdapter.php
UTF-8
1,667
2.859375
3
[ "BSD-2-Clause" ]
permissive
<?php /** * * This file is part of Aura for PHP. * * @license http://opensource.org/licenses/bsd-license.php BSD * */ namespace Aura\Auth\Adapter; use Aura\Auth\Exception; use Aura\Auth\Status; use Aura\Auth\Auth; /** * * Authentication adapter * * @package Aura.Auth * */ abstract class AbstractAdapter im...
true
f426f0be191caf04ec1080560de584ab5689de0e
PHP
phpdevilboys/test
/application/models/Entities/Settings.php
UTF-8
2,004
2.65625
3
[]
no_license
<?php namespace Entities; use Doctrine\ORM\Mapping as ORM; /** * Entities\Settings * * @ORM\Table(name="settings") * @ORM\Entity */ class Settings { /** * @var integer $id * * @ORM\Column(name="id", type="integer", nullable=false) * @ORM\Id * @ORM\GeneratedValue(strategy="SEQUENCE")...
true
597a4d6c36bb216b428329c4b4722c1fdaad04fd
PHP
J-0-5/FoodiFriend
/app/Commerce.php
UTF-8
1,369
2.53125
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Auth; class Commerce extends Model { protected $table = 'commerce'; protected $fillable = ['nit', 'user_id', 'name', 'type', 'description', 'img', 'state']; public function getUser() { return $this->...
true
20ef68566c40c1eacc5c7c07229ff0607676dd54
PHP
Alexandr-Minsk/order_api
/app/Repositories/OrderRepository.php
UTF-8
2,017
2.796875
3
[]
no_license
<?php namespace App\Repositories; use App\Entities\Order; use App\Order as OrderModel; use App\OrderItem; use App\Product; class OrderRepository implements OrderRepositoryInterface { /** * @param int $id * @return mixed * @throws \Exception */ public function get($id) { /** @var ...
true
11e78d710ef451583edccf84db58fb9e000cbbed
PHP
AzureCloudMonk/The-Art-of-Modern-PHP-8
/src/Part3/Chapter8/ToyMVC/Model/Repository/PostRepository.php
UTF-8
932
2.78125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Book\Part3\Chapter8\ToyMVC\Model\Repository; use Book\Part3\Chapter8\ToyMVC\FakeDataForToy; use Book\Part3\Chapter8\ToyMVC\Model\Collection\PostCollection; use Book\Part3\Chapter8\ToyMVC\Model\Entity\PostEntity; use Book\Part3\Chapter8\ToyMVC\Model\Entity\Uuid; use RuntimeExc...
true
2cd3db533d511427afbcc0e2cd974dec80e04723
PHP
hxxy2003/huisa
/database/migrations/2016_03_04_143410_create_user_infos_table.php
UTF-8
809
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUserInfosTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('user_infos', function (Blueprint $table) { ...
true
8d0203e984ac2d61e4f1cab7a7a5aa49d6a6e0b9
PHP
jonathanstegall/theundergroundrailroad
/includes/adminnavlinks.php
UTF-8
596
2.640625
3
[]
no_license
<?php $i=0; for ($i = 0; $i < $navnum; $i++) { // get all the main pages $filename=mysql_result($navresult,$i,"pageName"); $navname=mysql_result($navresult,$i,"adminPageNavigationName"); // create the href for the link $url = '"/admin/?page='."$filename".'"'; // and the title $navtitle='"'.$nav...
true
3ec6b168f6d358e886104a87efee526c2975509f
PHP
loic-sharma/Anvil
/modules/page/module.php
UTF-8
583
2.78125
3
[ "BSD-2-Clause" ]
permissive
<?php class PageModule { /** * The module's full name. * * @var string */ public $name = 'Page Module'; /** * The module's description. * * @var string */ public $description = 'Manage your pages.'; /** * The module's version. * * @var string */ public $version = '1.0.0'; /** * The...
true
c80aaed9d50aef0b8c140d9db37e2cc48da1e222
PHP
anais97431/Ass_Jardins_Vivriers_Naturels
/fonctions/fonctions_articles_blog.php
UTF-8
8,893
2.8125
3
[]
no_license
<?php function add_article($title_article, $short_article, $article, $date_article, $id_category_article, $id_user, $commentaire) { // recup de la connection global $connection; // insert dans la table articles $sql_ins = "INSERT INTO blog_articles(title_article, short_article, article, create_article, ...
true
72c7ed38a0e740a5e75f9fc05843842089301d4e
PHP
peidgnad/laravel-ethereum
/src/Helpers/Utils.php
UTF-8
1,230
3.0625
3
[]
no_license
<?php namespace Peidgnad\LaravelEthereum\Helpers; use Str; class Utils { /** * Should be used to create full function/event name from json abi. * * @param array $interface * @return string */ public function jsonInterfaceMethodToString(array $interface): string { $name = ...
true
71813dcb1eff2fbd63f297a21c7d419f000ccab2
PHP
MirkoGarin/MasterEnPHP
/aprendiendo-php/04-tipos/index.php
UTF-8
463
3.21875
3
[]
no_license
<?php /* TIPOS DE DATOS: Entero (int / integer) = 99 Coma flotante / decimales (float / double) = 3.45 Cadenas (string) = "Hola yo soy un string" Boleano (bool) = true false null Array (Coleccion de datos) Objetos */ $numero_hola = 100; $decimal = 27.9; $texto = "Soy un texto $numero_hola"; $verdadero = fals...
true
ecad3cce4af9c0816e8fb1a63174ae1cc5478332
PHP
techneo1/leaseweb-assignment-symfony
/src/Controller/ServerController.php
UTF-8
1,106
2.59375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Controller; use App\Service\ServerServiceInterface; use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\JsonResponse...
true
6411f97f1cdf85c492a0d085eb374d35e52943f7
PHP
rbosilva/PraticAR
/application/views/generic/results.php
UTF-8
709
2.796875
3
[]
no_license
<?php if (empty($results)) { echo 'A consulta não retornou resultados.'; } else { ?> <table class="table table-striped table-bordered table-hover no-datatables" style="width: 100%"> <thead> <tr> <?php echo '<th>' . implode('</th><th>', array_keys($results[0])) . '</th>'; ...
true
32a4eb1bdb9b643d46b0683d8429fa54cae236a4
PHP
ilufang/KancolleTerminal-Web
/ban/ban.php
UTF-8
543
2.703125
3
[ "MIT", "Apache-2.0" ]
permissive
<?php if (!isset($_REQUEST['user'])) { header("Location: index.php"); die(); } $user = $_REQUEST['user']; require_once 'KCBan.class.php'; $ban = new KCBan("../ban.json"); $iphash = $ban->vote($user); header("Location: index.php"); die(); ?> <!DOCTYPE html> <html> <head> <title>Vote Succeeded</title> </head> <b...
true
e95e72846109adaf4045f3495beccb13962d7743
PHP
remialvado/PhpSaxExample
/parser.php
UTF-8
1,452
3.125
3
[]
no_license
<?php class Job { public $title; public $id; public $url; public $tags = []; public function __toString() { return join(",", [$this->id, $this->title, $this->url, join("|", $this->tags)]) . "\n"; } } class Importer { protected $currentJob; protected $currentText; public function imports($url) { $pars...
true
e65d31779cae38590247f2d575b852aebd8fce40
PHP
FinchPowers/ATiM
/app/Plugin/InventoryManagement/Model/SpecimenReviewControl.php
UTF-8
1,526
2.515625
3
[]
no_license
<?php class SpecimenReviewControl extends InventoryManagementAppModel { var $master_form_alias = 'specimen_review_masters'; var $belongsTo = array( 'AliquotReviewControl' => array( 'className' => 'InventoryManagement.AliquotReviewControl', 'foreignKey' => 'ali...
true
8703b8197df3cd73520d3899dd955d6d05224cbb
PHP
ashokdangol/Basic-CURD
/useredit.php
UTF-8
1,970
2.71875
3
[]
no_license
<?php include 'parts/header.php'; $id = $_GET['id']; if ($_SERVER["REQUEST_METHOD"]=="POST") { $fullname = $_POST['fname']; $addr = $_POST['address']; $contact = $_POST['contact']; $stmt = $con->prepare("UPDATE users set name=?,address=?,phone=? where uid=?"); $stmt->execute([$fullname...
true
5464fd86b61b5449a8a1ecaedaca711704692ec2
PHP
noikiy/xofer-phalcon
/apps/activity/repositories/AcList.php
UTF-8
1,231
2.640625
3
[]
no_license
<?php /** * * @description :活动存储库 * @author :游川江<youcj@duocai.cn> * @copyright :Copyright © 2016-2017 多彩饰家 www.duocai.cn * @datetime :2016/5/12 0012 14:24 * */ namespace App\Activity\Repositories; use Dc\Lib\Repositories\Eloquent\Repository; use Dc\Lib\Repositories\Criteria\Criteria; use Dc\Lib\Trait...
true
60e963be2f439beb6c05b3ce2eef9213873e1417
PHP
maximusnikulin/estateGuru
/protected/modules/realty/RealtyModule.php
UTF-8
11,529
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * RealtyModule основной класс модуля realty * * @author yupe team <team@yupe.ru> * @link http://yupe.ru * @copyright 2009-2016 amyLabs && Yupe! team * @package yupe.modules.realty * @since 0.1 */ class RealtyModule extends yupe\components\WebModule { const VERSION = '0.9.8'; /** * @va...
true
d5d041ab58f6776236a9dd5b4cc6e18393a149a6
PHP
SadatJubayer/smart-event-manager
/controllers/authController.php
UTF-8
1,633
2.84375
3
[]
no_license
<?php include '../models/database.php'; if (isset($_POST["login"])) { loginUser(); } function loginUser() { $email = htmlspecialchars($_POST['email']); $password = htmlspecialchars($_POST['password']); $db = new Database(); $sql = "SELECT * FROM users WHERE email='$email' and password='$pass...
true
98dc12191ed1d9f2d7eadfe41d46092e70a13537
PHP
CodingWorker/enhancingProgram
/PHP/course-xiangjun/83_list.php
UTF-8
531
2.515625
3
[]
no_license
<?php session_start(); if (!empty($_SESSION['uname'])){ $mysqli=new mysqli('localhost','root','','file'); $sql="SELECT * FROM uploads"; echo "<pre>"; $result=$mysqli->query($sql); echo "<table border=1> <tr><td>文件ID</td><td>文件名</td><td>文件大小</td></tr>"; while($rows=$result->fetch_assoc()){ // print_r($rows); echo "...
true
cfcb7fb4959282558402869dcf0d1db9e38f1d38
PHP
sergiosv97/Reportes-PDF
/reporte.php
UTF-8
647
2.546875
3
[]
no_license
<?php require('fpdf/fpdf.php'); $pdf = new FPDF(); //instanciamos la clase fpdf/horizontal o vertical, medida cm, in, mm, tamaño 'P','mm','A4' $pdf->AddPage();//añade una nueva pagina al documento, tambien puede recibir parametros(orientacion,tamaño, rotacion) 'L','letter',0 $pdf->SetFont('Arial','B',18);//establece l...
true
ea0438896c82eba85003968c7f4bd3634fce4496
PHP
bouchat-marieange/PHP
/conditions/traitement.php
UTF-8
4,409
3.65625
4
[]
no_license
<?php // On récupère la valeur entrée par l'utilisateur dans la page conditions.php grâce à son nom (name="age_utilisateur") // On la stocke dans une variable appelée "age" pour pouvoir manipuler cette information et l'utiliser dans une condition if ... elseif // $age = $_GET['age_utilisateur']; // $genre = $_G...
true
da8f768a0838df75f90f2edec6351d487f8585ce
PHP
ParkerH96/movie-db
/functions/delete_genre.php
UTF-8
666
2.65625
3
[]
no_license
<!-- Delete Genre Author: Evan Heaton --> <?php include 'connection.php'; include 'session.php'; if(isset($_GET['genre_id']) && !empty($_GET['genre_id'])) { $genre_id = $_GET['genre_id']; $delete_is_genres = $mysqli->query("DELETE FROM is_genres WHERE genre_id = $genre_id"); $delete_genre = $mysql...
true
56acc9e7958fafbb2e88715b7fc05b80f6e13869
PHP
RanDing80s/ddd-laravel-sample
/app/Http/Controllers/Frontend/User/WishlistController.php
UTF-8
2,627
2.53125
3
[]
no_license
<?php namespace App\Http\Controllers\Frontend\User; use App\Http\Controllers\Controller; use App\Services\Wishlist\WishlistService; use Illuminate\Http\Request; use JildertMiedema\LaravelTactician\DispatchesCommands; use Mfa\Application\Command\AddApplianceToWishlistCommand; use Mfa\Application\Command\RemoveApplianc...
true
e961ed535b09aa7b555e892b1f88566ee35cdbe4
PHP
account931/spreadsheet
/workingphp.php
UTF-8
2,744
2.625
3
[]
no_license
<!DOCTYPE html> <!-- Working Ajax Json --> <!--http://json.parser.online.fr/--> <html> <head> <title>Php Json</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script> </script> </head> <body> <img src='https://d2x5ku95bkycr3.cloudfront.net/img/loading.gif' style=...
true
4902ee4696971ab9e937c331ebb1b8f24a60896c
PHP
yesmt09/bjjjjj
/bjjjjjj.php
UTF-8
4,334
2.53125
3
[]
no_license
<?php header('Content-Type:text/html;charset=utf-8'); require_once 'Enter.php'; require_once 'helper.php'; require_once './vendor/autoload.php'; class Bjjj { private $token = null; private $sign = null; private $timestamp = null; private $userId = null; public $message = []; private $setp = 1...
true
c720ac23feb4a9892430fc846a27125a78982fa8
PHP
Blue-Single-Leaf/WEB_DaChuang
/admin/readAppFile.php
UTF-8
1,819
2.96875
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>得到文件信息</title> </head> <body> <?php /*初始化连接数据库*/ header(...
true
12cec7523299fa7ebfa014021723ca91d4ab0966
PHP
RAzaALy/PHP
/php/dataTypes.php
UTF-8
940
3.6875
4
[]
no_license
<?php //var_dump tell us datatype of variable: /* Data types in php: 1. Integer 2. Float 3. String 4. Blooean 5. Object 6. Array 7. Null */ //String -sequence of character: $name="Ali Raza Jutt"; $friend='jutt007'; echo "$name ka friend $friend"; echo "<br>"; //Integer - non-decimal number: $...
true
da72754e8e1aaaaa9fb72f9f781933257402475c
PHP
WPPlugins/pay-with-a-facebook-post
/paywithafacebookpost.php
UTF-8
2,480
2.828125
3
[]
no_license
<?php /* Plugin Name: Pay With A Facebook Post Plugin URI: http://www.paywithafacebookpost.com Description: This plugin enables the system from www.paywithafacebookpost.com to work with Wordpress. Pay With a Facebook Post provides an easy to use and free system to pay with a facebook post for digital goods, for example...
true
5620ceec213dc486c69cc191c35fa9b6afc22902
PHP
mszoltysek-tsh/design-patterns-criteria-pattern
/Model/Human/Human.php
UTF-8
2,646
3.21875
3
[]
no_license
<?php namespace Model\Human; use DateTime; use Model\Address\Address; class Human { /** * @var string */ protected $firstName; /** * @var string */ protected $lastName; /** * @var Address */ protected $address; /** * @var \DateTime */ protect...
true
ad731ffff7b4c30f3afdd42d6f0a1b1c19ff957a
PHP
Crindigo/Maroon
/src/Maroon/RPGBundle/Controller/Admin/RaceController.php
UTF-8
4,195
2.578125
3
[]
no_license
<?php namespace Maroon\RPGBundle\Controller\Admin; use Maroon\RPGBundle\Controller\MaroonController; use Symfony\Component\HttpFoundation\Request; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configurati...
true
b018933ee291d7037af7ef5ebc1159c1f22aa4be
PHP
gtb233/yii2-admin-demo
/common/models/TagManage.php
UTF-8
1,451
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "{{%tag_manage}}". * * @property integer $t_id * @property string $t_name * @property string $t_en_name * @property string $t_icon * @property integer $parent_id * @property integer $t_type * @property integer $t_status * @prop...
true
73d5f8cc745fc36451b4b0f7b2c8339ae090b308
PHP
VKevinxz/Tabarrotes
/Tabarrotes/clases/Producto.php
UTF-8
877
2.828125
3
[]
no_license
<?php namespace clases; use config\ConexionDB; include_once "../config/autoload.php"; class Producto{ private $idtp; private $id; private $descripcion; private $precio; public function setId(int $id) { $this->id = $id; } public function getId() { return $this->...
true
70395b68431c91f9c674dec32f00e4a03fe62db1
PHP
nbinkunwar/url-shortner
/app/Console/Commands/ExpireLinks.php
UTF-8
850
2.84375
3
[]
no_license
<?php namespace App\Console\Commands; use App\Repositories\Contracts\LinkInterface; use Illuminate\Console\Command; use Illuminate\Support\Carbon; class ExpireLinks extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'links:expi...
true
47d10458367b9180c41a00c06e1e2611191e7419
PHP
Whyounes/whyounes.me
/app/controllers/PostsController.php
UTF-8
917
2.6875
3
[]
no_license
<?php use AdamWathan\Blog\PostRepositoryInterface; class PostsController extends BaseController { private $posts; public function __construct(PostRepositoryInterface $posts) { $this->posts = $posts; } public function showIndex() { $view = View::make('index'); $view->posts = $this->posts->all(); $view-...
true
2a6b9d62c2b083e36f2731a7a64ba47bc3d5eff2
PHP
NguyenQuiDuong/Funix
/module/Address/src/Address/View/Helper/City.php
UTF-8
1,900
2.578125
3
[]
no_license
<?php /** * @Address Shop99 library * @copyright http://funix.nhanh.vn * @license http://funix.nhanh.vn/license */ namespace Address\View\Helper; use Zend\View\Helper\AbstractHelper; use Zend\ServiceManager\ServiceLocatorInterface; /** * Class City * @package Address\View\Helper */ class City extends...
true
83e162eb26b0a53bc77bb84147ac01828a072871
PHP
PHPOffice/PhpSpreadsheet
/tests/PhpSpreadsheetTests/Reader/Xml/XmlOddTest.php
UTF-8
2,952
2.703125
3
[ "MIT" ]
permissive
<?php namespace PhpOffice\PhpSpreadsheetTests\Reader\Xml; use PhpOffice\PhpSpreadsheet\Reader\Xml; use PhpOffice\PhpSpreadsheet\Shared\File; use PHPUnit\Framework\TestCase; class XmlOddTest extends TestCase { /** * @var string */ private $filename = ''; protected function teardown(): void ...
true
1eed975cce79769298df79990f8f20fce695a01e
PHP
Dev-Jabin/DesignPatterns
/Proxy/Client.php
UTF-8
471
2.78125
3
[]
no_license
<?php /** * @Author: Jabin * @Date: 2019-06-17 * @Email: jpyan2906@gmail.com */ include_once "TrainStationProxy.php"; include_once "TrainStation.php"; class Client { private $proxy; public function setProxy($trainStation) { $this->proxy = new TrainStationProxy($trainStation); } public function buyTic...
true
2a3298fd269a0967a741073f8e74d628ee341b71
PHP
robinNcode/CI4_mail
/app/Controllers/TestMail.php
UTF-8
861
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Controllers; use CodeIgniter\Controller; class TestMail extends BaseController { public function mailView(){ return view('MailForm.php'); } /** * Sends mail to posted email. * @author B001 */ public function mailProccess(){ //dd($this->request->getPost()); ...
true
3b35173865b566a8b43aadf7c8f3c4944abd5c5e
PHP
MomoDev1/mock
/src/Autoloader.php
UTF-8
326
2.671875
3
[]
no_license
<?php class Autoloader { static function register() { spl_autoload_register([__CLASS__, 'autoload']); } static function autoload(string $class) { $class = str_replace('App\\', 'src/', $class); $class = str_replace('\\', '/', $class); require_once $class . '.php'; ...
true
11bd5699225e6f8283c97e3095fca2e3ebf74543
PHP
matt-daneshvar/laravel-survey
/tests/SurveyEntryTest.php
UTF-8
2,364
2.5625
3
[ "MIT" ]
permissive
<?php namespace MattDaneshvar\Survey\Tests; use MattDaneshvar\Survey\Exceptions\GuestEntriesNotAllowedException; use MattDaneshvar\Survey\Exceptions\MaxEntriesPerUserLimitExceeded; use MattDaneshvar\Survey\Models\Entry; use MattDaneshvar\Survey\Models\Survey; class SurveyEntryTest extends TestCase { /** @test */...
true
b784743e718d75e4f9b9b8647ffcc09b7e074b63
PHP
nutama/mattermost-webhook
/tests/MessageTest.php
UTF-8
1,473
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Nutama\MattermostWebhook; use PHPUnit\Framework\TestCase; /** * @covers \Nutama\MattermostWebhook\Message */ final class MessageTest extends TestCase { /** * @dataProvider getPayloadProvider * * @param array $expected_payload * @param MessageInterface...
true
0936b23ae082823d99896dd6fdda6602c75d503e
PHP
Luminee/migrations
/src/Console/Commands/MakeModuleModel.php
UTF-8
6,230
2.671875
3
[ "MIT" ]
permissive
<?php namespace Luminee\Migrations\Console\Commands; use DB; use Illuminate\Console\Command; use Illuminate\Filesystem\Filesystem; use Luminee\Migrations\Foundations\PdoBuilder; /** * @author LuminEe */ class MakeModuleModel extends Command { use PdoBuilder; /** * @var Filesystem $files */ p...
true
96aaeaafd4ead7925e1a7f666947210c622247db
PHP
tmazeika/ttempire
/app/Contracts/CurrencyServiceContract.php
UTF-8
541
2.96875
3
[]
no_license
<?php namespace TTEmpire\Contracts; use TTEmpire\SubQuantity; interface CurrencyServiceContract { public function getPrice(SubQuantity $subQuantity): int; public function getFloatPrice(int $price): float; public function formatPrice(float $price, int $decimals = 0): string; public function getAndF...
true
e3249fd35feaa7d055bc7600ed351b3ef892745d
PHP
MousaNageh/guestbook
/helps/validations.php
UTF-8
751
3.203125
3
[]
no_license
<?php //check if the input field is empty function empty_field($field) { return empty($field); } //check if the input filed is email function is_email($email) { return filter_var($email, FILTER_VALIDATE_EMAIL); } function string_maxLen($string, $len) { return strlen($string) > $len; } function string_minLen($st...
true
e50584b64e1a7befe0313a09c180bf6e5ee2f72f
PHP
tmdk/composer-workspaces-plugin
/src/Plugin.php
UTF-8
3,916
2.546875
3
[ "MIT" ]
permissive
<?php namespace ComposerWorkspacesPlugin; use Composer\Composer; use Composer\IO\IOInterface; use Composer\Plugin\Capable; use Composer\Plugin\PluginInterface; use ComposerWorkspacesPlugin\Commands\CommandProvider; use RuntimeException; class Plugin implements PluginInterface, Capable { const VERSION = '2.0.1'...
true
ca956227d89e274c4b988af68814804cd05b40bc
PHP
paulohbirro/sas
/app/Contracts/Repositories/RegiaoRepository.php
UTF-8
306
2.609375
3
[]
no_license
<?php namespace App\Contracts\Repositories; use App\Contracts\BaseRepository; interface RegiaoRepository extends BaseRepository { /** * Aplica condição $like no repositório * * @param null $like * @return RegiaoRepository */ public function whereLike($like = null); }
true
0850cb04049213d3efab4f72fc03452a8e33aad9
PHP
xpcom-bsd/domain-bestellsystem-api-client
/src/Client/Domain/DnsSecDSData.php
UTF-8
968
2.703125
3
[ "MIT" ]
permissive
<?php /** * @author Timo Förster <tfoerster@webfoersterei.de> * @date 19.07.18 */ namespace Webfoersterei\DomainBestellSystemApiClient\Client\Domain; class DnsSecDSData { use DnsSecTrait; /** * @var string|null */ private $keyTag; /** * @var string|null */ private $digest...
true
3c00bfffc971a1a0ffb87d5461d2f86b4b7f85c1
PHP
woonkeekim1/uscpraise1
/app/DailySermon.php
UTF-8
495
2.578125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class DailySermon extends Model { // protected $table ='DailySermon'; protected $dates = ['created_at', 'updated_at']; protected $fillable = ['title', 'body', 'createdBy']; public function author() { return $this->belongsTo('\A...
true
e99c4cc278c22b4915186ba87d869105968f4319
PHP
ElPepe101/iFramework
/src/Router.php
UTF-8
6,224
2.796875
3
[]
no_license
<?php namespace iframework; /** * PPMFWK * * @package iframework * @author Antonio "ElPepe" Segoviano aunsoyjoven {at} hotmail.com */ class Router { public static $APP = 'app'; public static $SITEROOT = 'http://localhost/TEMPLATE'; public static $SRVRROOT = NULL; /** * Use only if login is outside the...
true
79b10dc3cbd3c5f27184988aa669acb24de56c9a
PHP
GamingMad101/AGORA
/html/utilities/rankManagement.php
UTF-8
2,927
2.8125
3
[]
no_license
<?php function getRanks(){ // This function is used to retrieve a list of all members of the group with a specific groupID. include("dbConfig.php"); $sql = $db_conn->prepare("SELECT `RankID`, `Name`, `Abbreviation`, `ImageURL` FROM `Ranks` ORDER BY `RankID` ASC"); $sql->execute...
true
d15aba316f627b6b2da199f30c922d0969716ebb
PHP
yeyupl/zb_api
/library/ZBApi.php
UTF-8
5,637
2.921875
3
[]
no_license
<?php /** * zb.com API接口封装 * @author: 夜雨 yeyupl@qq.com */ namespace ZB; class ZBApi { private $accessKey = ''; private $secretKey = ''; private $hqUrl = 'http://api.zb.com/data/v1/'; private $tradeUrl = 'https://trade.zb.com/api/'; private $http; public function __construct($accessKey, $...
true
0799bc5ab0289e264e29b40de92f8fccb82245a7
PHP
biohazard999/HazAClass
/HazAClass/System/Reflection/Attributes/AttributeInterpreter.php
UTF-8
8,639
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * *******************************************************************************************************$ * $Id:: AttributeInterpreter.php 44 2010-11-26 16:22:21Z manuelgrundner $ * @author Manuel Grundner <biohazard999@gmx.at>, Ren� Grundner <hazard999@gmx.de> ...
true
1dd0944799dbbe4f6dedbaeb3cfb66f385796f85
PHP
tremontui/tremontui-api
/lib/Select_Prepare.class.php
UTF-8
1,419
2.6875
3
[]
no_license
<?php class Select_Prepare{ /** * PROPERTIES */ private $default_select; private $query_params; /** * METHODS */ public function __construct( $default_select, $query_params ){ $this->default_select = $default_select; $this->query_params = $query_params; } public function Protect_Password...
true
87f2edef867a6fa77a180ae4cadcbd2fce5a877b
PHP
ZiegerJheng/MasterMiaoChan-Fellow-Guidance
/libraries/db/SingleRecordOperator.class.inc.php
UTF-8
9,368
2.921875
3
[]
no_license
<?php abstract class SingleRecordOperator { protected $table = null; protected $priKeys = array(); protected $autoIncColumn = null; protected $columns = array(); protected $initType = null; protected $dbErrorInfo ...
true
7bec7c129b6acad9cba6274522bb329994e77093
PHP
spatterson1551/OurTrack
/classes/Track.php
UTF-8
3,284
2.59375
3
[]
no_license
<?php class Track { public $id; public $owner_id; public $picture; public $source; public $title; public $description; public $genre; public $withcollaborators; public $likes; public $created_at; private $db; public function __construct($id = null) { $this->db = Database::getInstance(); if ($id) ...
true
c13222ad2ce43cfa4fffeb25c1a4f19e36d5c452
PHP
crisu83/yii-caviar
/src/generators/Generator.php
UTF-8
6,272
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php /* * This file is part of Caviar. * * (c) 2014 Christoffer Niska * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace crisu83\yii_caviar\generators; use crisu83\yii_caviar\components\Config; use crisu83\yii_caviar\Exce...
true
7dcf074beb4ac074500af1bca97e4dd5c3a0f9e6
PHP
andiaqsha99/ceria
/app/Services/ChildService.php
UTF-8
1,214
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Repositories\Child\ChildRepositoryInterface; use Illuminate\Http\Request; class ChildService { protected $childRepository; public function __construct(ChildRepositoryInterface $childRepository) { $this->childRepository = $childRepository; } public fu...
true
ec1d50e2a5b46f3731ef1e209e5a6f8e04281b97
PHP
marein/php-nchan-client
/tests/Unit/Http/ThrowExceptionIfRequestRequiresAuthenticationClientTest.php
UTF-8
2,657
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Marein\Nchan\Tests\Unit\Http; use Marein\Nchan\Exception\AuthenticationRequiredException; use Marein\Nchan\Http\Client; use Marein\Nchan\Http\Request; use Marein\Nchan\Http\Response; use Marein\Nchan\Http\ThrowExceptionIfRequestRequiresAuthenticationClient; use Marein\Nchan\H...
true
4f0db62987e047af73eba10c884b2df2aa4848cf
PHP
arbnor99/MyProjectsGit
/Projekti OOP PDO/admin/lib/Request.php
UTF-8
1,370
3.125
3
[]
no_license
<?php include_once ("Database.php"); class Request extends Database{ public function addRequest($firstname, $lastname, $cid, $phone, $email, $password){ try{ $sql="INSERT INTO requests(firstname, lastname, cid, phone, email, password) VALUES(?,?,?,?,?,?)"; $stmt=$this->conn...
true
b96f0452e9bf09549f6159f576c12b1b4d6277c5
PHP
gabsdocompiuter/mercadoEstrela
/back-end/database/mysql.class.php
UTF-8
442
2.703125
3
[]
no_license
<?php class MySQL{ protected $conn; public function connect() { if($this->conn) return true; $configMySQL = json_decode(file_get_contents(__DIR__ . '/config.json'), true); $this->conn = new mysqli( $configMySQL['serv'], $conf...
true
ae831610d3d82ce4ba68d3dd6aaeaf1d9fc0a89e
PHP
MsvLzn0/proiect
/classes/Services.php
UTF-8
10,509
3.109375
3
[]
no_license
<?php include_once 'lib/Database.php'; include_once 'lib/Session.php'; class Services{ // Db Property private $db; // Db __construct Method public function __construct() { $this->db = new Database(); } // Date formate Method public function formatDate($date) { ...
true
102d18ef293330f983708359c449c310666b05f9
PHP
fequilumba/APPWEBHOSPITALNUESTRAFAMILIA
/ajax/medicamento.php
UTF-8
3,263
2.6875
3
[]
no_license
<?php require_once "../modelos/Medicamento.php"; $medicamento = new Medicamento(); $idmedicamento = isset($_POST["idmedicamento"])? limpiarCadena($_POST["idmedicamento"]):""; $nombre= isset($_POST["nombre"])? limpiarCadena($_POST["nombre"]):""; $descripcion= isset($_POST["descripcion"])? limpiarCad...
true
f616ef55ade0fd177b7e9b24101dddfe79de3200
PHP
Weblab-nl/moneybird
/src/Models/AbstractInvoice.php
UTF-8
1,710
3.015625
3
[ "Apache-2.0" ]
permissive
<?php namespace Weblab\MoneyBird\Models; /** * Class AbstractInvoice * @author Weblab.nl - Eelco Verbeek */ abstract class AbstractInvoice extends AbstractModel { /** * @var array The products / services the billed company will receive */ protected $products = []; /** * Add a product...
true
9197c83ee3eb2d97e7152c08a47823a79765d89d
PHP
BabcockSuporteTi/SisDF
/rascunhos/metodos_descartados.php
UTF-8
1,151
2.6875
3
[]
no_license
<?php /* * Checa nível de acesso do usuário e seta estado de conexão * * Esse método será melhorado ao longo das versões do software * * Usado no controller Login.php */ private function _grant_user_rights($user_level) { switch ($user_level): case 1; $_SESSION['logged_in'] = 'gestor'; ...
true
03d30641b62ff7001b515b675d0e4f87e9ff2d86
PHP
debaluk/excursionstours-pro
/globtour/application/helpers/calculate_days_helper.php
UTF-8
404
3.265625
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); function calculateDays($datefrom, $dateto, $type=TRUE) { if($type == TRUE) { $days = ceil((strtotime($dateto) - strtotime($datefrom)) / 86400); // 60 * 60 * 24 = day }else { $days = ceil(($dateto - $...
true
df93c3fa1557129fa2bff7f43db6e8583b6e9e2a
PHP
popisfizzy/MyPointlessReviews
/php/Classes/crypt.php
UTF-8
2,453
3.53125
4
[]
no_license
<? /* * The crypt class, used for handling registration and logins. */ // This uses the database class to access the MySQL database on the server. include_once("database.php"); class Crypt { /* Variables */ // bcrypt uses a base-64 charset for the salt. private $_CHARSET = "./0123456789ABCDEFGHIJKLMNOPQ...
true
3e1b2235ace995a6c09bb80091cbd978b942fdd9
PHP
aoxiang594/jd-jos
/src/Request/ScfInvoiceApplySubmitApplyRequest.php
UTF-8
3,114
2.515625
3
[]
no_license
<?php namespace Aoxiang\JdJos\Request; class ScfInvoiceApplySubmitApplyRequest { private $apiParas = array(); public function getApiMethodName(){ return "jingdong.scf.invoice.apply.submitApply"; } public function getApiParas(){ if(empty($this->apiParas)){ return "{}"; } ret...
true
1638ed0b528f17bf356d3c35caa10e062e54ce4c
PHP
Juanan7676/phrase-r
/search_results.php
UTF-8
2,880
2.5625
3
[]
no_license
<?php require 'core/SQL.php'; require 'core/util.php'; require 'core/parser.php'; function parseCorpusCode($str) { $res = ""; for ($k=0; $str[$k]!=']'; $k++) $res .= $str[$k]; return $res; } function echoTable($title,$rows) { if (sizeof($rows)==0) return; echo '<div style="font-size:24px; font-weight:bold" ali...
true
f9859c7720442fd9290a2741707d85213da733ce
PHP
MemoVil/massivo
/classes/HelperMassivo.php
UTF-8
15,438
2.53125
3
[]
no_license
<?php if (!defined('_PS_VERSION_')) exit; class HelperMassivo { public $massivo; public function __construct() { $this->bootstrap = true; $this->colorOnBackground = true; $this->row_hover = true; $this->context = Context::getContext(); $thi...
true
2800127e5aa49f4a506fb68791a2fdecade447c6
PHP
angelidito/Desarrollo-Web-en-Entorno-Servidor
/Temas/UT3/UT3-arrays/ejercicio2.php
UTF-8
494
3.375
3
[]
no_license
<!DOCTYPE html> <head> <meta charset="utf-8"> <title> arrays ejercicio 2 </title> </Head> <body> <h1> Array asociativo </h1> <br> <br> <br> <?php $lectivos=array("otoño"=>60, "invierno"=>51, "primavera"=>57, "verano"=>7); $menosdias=300; foreach ($lectivos as $clave=>$valor) if ($valor < $menosdias...
true
f131bb64a1f7157f20f042c596a0ffdf59ce9a3f
PHP
PembaTshiring/laravel
/manytomany/routes/web.php
UTF-8
1,334
2.5625
3
[]
no_license
<?php use App\User; use APp\Role; Route::get('/', function () { return view('welcome'); }); Route::get('/create', function () { $user=User::find(1); //$role=new Role(['name'=>'admin']); //$user->roles()->save($role); $user->roles()->save(new Role(['name'=>'author'])); }); Route::get('/read'...
true
640674d17da0907917b33523f94df76d75320bc0
PHP
Stanisap/solid-tree
/application/models/Tree.php
UTF-8
1,930
3.203125
3
[]
no_license
<?php namespace application\models; use application\core\Model; /** * Class Tree * @package application\models */ class Tree extends Model { /** * Required fields in the model * @var array that contains a field's name in the table */ protected $fields = ['title', 'parent_id']; /** ...
true
75750fb3dcc8ae841d2a2028634bccbf5798a910
PHP
absingh927/CS250-CarProject
/Car/control.php
UTF-8
4,893
2.890625
3
[]
no_license
<?php // Always print JSON. header('Content-Type: text/javascript'); // No caching. header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0'); header('Cache-Control: post-check=0, pre-check=0', false); header('Pragma: no-cache'); // Constants. const LEFT_PIN = 25; const RIGHT_PIN = 24; const FORWARD_PIN ...
true
ba07b73b535976de460bf6e55b3de8fde2fb93d1
PHP
ribafs/postgresql
/Ferramentas/popula_table_pg.php
ISO-8859-1
3,879
2.75
3
[ "MIT" ]
permissive
<?php /** Rotina para popular tabela do PostgreSQL com massa de testes * Colaborao de Ribamar FS - http://ribafs.net - 14/03/2007 * Requer remoo da chave primria antes da execuo. */ ?> <html><head><title>Inserir Registros de Teste</title></head> <body bgcolor=''> <h2 align=center>Cadastrar Tabela do PostgreSQL ...
true
01c2baa392547ce49b8ec0d5c3d0805be6fc088e
PHP
wp-plugins/insert-callout
/plugin.php
UTF-8
5,013
2.625
3
[]
no_license
<?php /* Plugin Name: Insert Callout Plugin URI: http://componentoriented.com/wordpress/insert-callout Description: Add a callout box in a post. Version: 1.0.4 Author: D. Lambert Author URI: http://blog.componentoriented.com Disclaimer: Use at your own risk. No warranty expressed or implied is provided. */ ...
true
cf4f2d9ff8003538c81797bc492328e4f0239ae7
PHP
veraguido/gv-response-types
/src/Helpers/http/PrintErrorResponse.php
UTF-8
738
2.859375
3
[]
no_license
<?php namespace Gvera\Helpers\http; class PrintErrorResponse extends JSONResponse { /** * @var string */ private $errorCode; /** * @var string */ private $errorMessage; /** * @var string */ private $httpCode; /** * PrintErrorResponse constructor. *...
true