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
8ee2035e828e887dc9c9a4cca66d64af1b625876
PHP
raahimfareed/bechpk-closed
/admin/signup.php
UTF-8
744
2.578125
3
[]
no_license
<?php include('classes/admin.class.php'); $adminId = md5(uniqid('master', true)); $first = 'Raahim'; $last = 'Fareed'; $email = 'root@localhost'; $password = 'OmegaHaxR3'; $profileImg = 'assets/img/user-uploads/profile-pics/master.png'; $permissionLevel = 1; $date = date('Y-m-d'); $hashedPassword = password_hash($passw...
true
2e84484e152eac0c6d82d36d40551553ef036601
PHP
jeffreymabazza/pesopay
/src/PesoPay.php
UTF-8
7,630
2.6875
3
[]
no_license
<?php namespace JeffMabazza\PesoPay; use Closure; use Exception; use JeffMabazza\PesoPay\Encryptor; use JeffMabazza\PesoPay\Helpers\Helper; use JeffMabazza\PesoPay\Contracts\PayGateInterface; use JeffMabazza\PesoPay\Helpers\ValidateFormParameters; use JeffMabazza\PesoPay\Exceptions\Validations\ValidationException; c...
true
9d8369e58ad449691513f7260767ff44f703e542
PHP
GavinLai/SimMatch
/incs/class.Member.php
UTF-8
9,572
2.703125
3
[]
no_license
<?php /** * 与Member相关常用方法 * * @author afar<afarliu@163.com> */ defined('IN_SIMPHP') or die('Access Denied'); class Member{ /** * 本地access token的生命周期(秒) * @var integer */ const LOCAL_ACCESS_TOKEN_LIFETIME = 604800; //60*60*24*7 /** * 检测用户名合法性 * @param string $name */ public static functio...
true
18ecb44b55f6dfbc4c958eb380e336aaa40542f6
PHP
StadGent/laravel_site_opening-hours
/app/Repositories/OpeninghoursRepository.php
UTF-8
5,993
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Models\Openinghours; use EasyRdf_Graph as Graph; use EasyRdf_Literal as Literal; use EasyRdf_Literal_Boolean as BooleanLiteral; use EasyRdf_Literal_Integer as IntegerLiteral; use EasyRdf_Literal_DateTime as DateTimeLiteral; use DB; class OpeninghoursRepository extends Eloque...
true
74bad08d3dcdf2141fd1ce28c295c2515a8d018a
PHP
binoddangal/MarkenV2.0
/Marken V2.0/web/admin/resultTable.php
UTF-8
1,716
2.515625
3
[]
no_license
<?php require '../config/call.php'; $marks = getMarksOfStudentsGPA($conn,$_POST); ?> <div class="table-responsive"> <table id="datatable-buttons" class="table table-striped table-bordered"> <thead> <tr> <th class="center">S.No</th> <th>Student Name</th> <th>Subject</th> <th>Term</th> <th>Semes...
true
987131757031ecbe534467b235aebf7a0300b602
PHP
gegeturambar/cine-fan
/src/AppBundle/Service/Basket/Basket.php
UTF-8
1,559
2.71875
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Service\Basket; use Doctrine\Bundle\DoctrineBundle\Registry; use Symfony\Component\HttpFoundation\Session\Session; /** * Created by PhpStorm. * User: wamobi10 * Date: 28/12/16 * Time: 11:48 */ class Basket { private $session; private $doctrine; public function __construct(S...
true
777d0206a0f65ecf0e0829b65d2657cf97881ee3
PHP
TeamPlanck/wow
/includes/App.class.php
UTF-8
9,611
2.9375
3
[ "MIT" ]
permissive
<?php namespace Wow; require_once 'Database.class.php'; require_once 'Link.class.php'; class App { //public static $db; //public static $con; //public static $msg; public function __construct() { $this->db = new Database(); $this->con = $this->db->connect(); } public functi...
true
8f496fceedb6b906aaeedf71954ae4a70b05b3b4
PHP
yijiangwen/gateway-swoole
/app/protocols/MessageSendProtocols.php
UTF-8
2,936
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Asus * Date: 2019/4/11 * Time: 11:44 */ namespace app\protocols; /** * 消息发送协议 * Class MessageProtocols * @package app\protocols */ class MessageSendProtocols { const CMD_SEND_MESSAGE = 1;//消息发送 const CMD_TIPS = 2;//系统提示 const CMD_MES...
true
a2b7408cc4e8ef20546470e1f5cc39cf1b45ee81
PHP
addamx/_php
/Yii/_base/frontend/components/AbcWidget.php
UTF-8
1,581
2.53125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: addams * Date: 2017/1/16 * Time: 18:02 */ namespace frontend\components; use yii\base\Widget; use yii\helpers\Html; class AbcWidget extends Widget { public $items = ['a', 'b', 'c']; public $message; public function init() { parent::init(); ...
true
6b569b4f98e41cf4270cc9205f36dea92587a3c7
PHP
mmdm95/sim-captcha
/src/Abstracts/AbstractCaptcha.php
UTF-8
2,448
2.9375
3
[ "MIT" ]
permissive
<?php namespace Sim\Captcha\Abstracts; use Sim\Captcha\Interfaces\ICaptcha; use Sim\Captcha\Utils\CaptchaUtil; abstract class AbstractCaptcha implements ICaptcha { /** * @var string $default_name */ protected $default_name = 'captcha'; /** * @var string $captcha_session_name */ p...
true
91e06fc3817eaab750104e35f442c7ae3a3a6c19
PHP
2ppaamm/apiprod
/database/seeds/RoleSeeder.php
UTF-8
6,352
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Role; use App\Permission; class RoleSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // Roles defined Role::create ([ 'role' =>'Administrator', 'descript...
true
cae0edcd948de5d1730d293821790fcff85f7994
PHP
ZPlayzMCPE/PocketVote-PocketMine
/src/ProjectInfinity/PocketVote/VoteListener.php
UTF-8
2,856
2.625
3
[]
no_license
<?php namespace ProjectInfinity\PocketVote; use pocketmine\command\ConsoleCommandSender; use pocketmine\event\Listener; use pocketmine\event\player\PlayerJoinEvent; use ProjectInfinity\PocketVote\event\VoteDispatchEvent; use ProjectInfinity\PocketVote\event\VoteEvent; class VoteListener implements Listener { ...
true
304ba75b769a9ff025660b92845465ad59f50596
PHP
miloszsedziak/zsl
/zsł/5_typy danych/string.php
UTF-8
3,682
3.140625
3
[]
no_license
<?php echo<<< FORM <form method="post"> <input type="text" name="imie" placeholder="Wpisz imie"><br><br> <input type="submit" name="button" value="zatwierdz"> </form> FORM; if(isset($_POST['imie'])){ $imie=$_POST['imie']; echo "Dane przed poprawą: ", $imie,'<br>'; } //zamiana na małe lite...
true
575718bd092ecb098c5f766f130bb2dd726eed9f
PHP
nepada/bust-cache
/src/BustCache/Manifest/AutodetectManifestFinder.php
UTF-8
1,601
2.71875
3
[ "BSD-3-Clause" ]
permissive
<?php declare(strict_types = 1); namespace Nepada\BustCache\Manifest; use Nepada\BustCache\FileSystem\FileNotFoundException; use Nepada\BustCache\FileSystem\FileSystem; use Nepada\BustCache\FileSystem\Path; final class AutodetectManifestFinder implements ManifestFinder { public const DEFAULT_MANIFEST_FILE_NAMES...
true
49d8cc9b5f16adfd6c99c9c573c58a0b061fefc1
PHP
JHBK/Book-selling-ecommerce-site
/insert.php
UTF-8
1,386
3.0625
3
[]
no_license
<?php /* Attempt MySQL server connection. Assuming you are running MySQL server with default setting (user 'root' with no password) */ $mysqli = new mysqli("localhost", "id6860794_root", "123456", "id6860794_demo"); // Check connection if($mysqli === false){ die("...
true
3bd220ec9df3cccb71f2719cd2b52f96cb6779e0
PHP
bossi4ek/oop
/libs/Communication/GmailAccount.php
UTF-8
385
2.578125
3
[]
no_license
<?php namespace Communication\CommunicationInterface; require_once __DIR__."/EmailAccount.php"; class GmailAccount extends EmailAccount { public function __construct() { $this->create(); } public function create() { echo "Create new Gmail account<br/>"; } public function...
true
8b1b79fa779fd8c1ca5dba059978a1f97ffca57b
PHP
olesya25/www_dudchuk
/app/models/TrainingDrill.php
UTF-8
1,020
2.796875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: olesya * Date: 20/11/2018 * Time: 14:12 */ class TrainingDrill extends Model{ public function __construct(){ $table = 'training_drill'; parent::__construct($table); } public function addDrill($params){ $this->assign($params); $t...
true
d38c8f98ad3e6c486fc3de6bc83bcc7f90fe11f2
PHP
newfeat/raw
/protected/Model.php
UTF-8
2,662
2.828125
3
[]
no_license
<?php namespace App; abstract class Model { use MagicTrait; protected static $table = null; public function __set($key, $val) { $method = 'validate_' . $key; if (method_exists($this, $method)) { $this->$method($val); } $this->data[$key] = $val; } ...
true
668abbd3d25386b668e28b6b4d0f2fb3c59f1585
PHP
mcagnon/covoiturage
/include/pages/ajouterParcours.inc.php
UTF-8
1,548
2.90625
3
[]
no_license
<?php $pdo=new Mypdo(); $villeManager = new VilleManager($pdo); $listeVilles=$villeManager->getAllVille(); ?> <h2>Ajouter un parcours</h2> <?php if (empty($_POST["par_km"])){ ?> <form action="index.php?page=5" id="insert" method="post"> <label for="vil_num1">Ville 1 : </label> ...
true
52ee9f4658eddb2f9ee29f98f02d2a88f86d2484
PHP
homer6/sfAltumoPlugin
/lib/Frontend/App.php
UTF-8
11,909
2.546875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the sfAltumoPlugin library. * * (c) Steve Sperandeo <steve.sperandeo@altumo.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace sfAltumoPlugin\Frontend; /** * NOTE: * * This class is ...
true
0ea88d01eb76988759bfeb20cfdbc4e870ab023d
PHP
dandelea/vthru-test
/symfony/src/Entity/Order.php
UTF-8
2,287
2.765625
3
[]
no_license
<?php namespace App\Entity; use DateTime; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=OrderRepository::class) * @ORM\Table(name="`order`") */ class Order { public function __construct() { ...
true
650486bb4864b5587e0bce04fb39e3341e2cf946
PHP
orlaandojimenez/estetica
/app/Controller/VentaProductosController.php
UTF-8
3,063
2.5625
3
[]
no_license
<?php App::uses('AppController', 'Controller'); /** * VentaProductos Controller * * @property VentaProducto $VentaProducto * @property PaginatorComponent $Paginator */ class VentaProductosController extends AppController { /** * Components * * @var array */ public $components = array('Paginator'); /** * in...
true
0c202c7bba29c27762c2f3b2508704149a2a94c7
PHP
Brunchsky/deesasrollos
/U04A2_04/process_respuesta.php
UTF-8
1,495
2.890625
3
[]
no_license
<?php $s_ant=session_name(); session_start(); if(!isset($_SESSION['contador'])){ $_SESSION['contador']=0; }else{ $_SESSION['contador']++; } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Procesando datos sesion</title> </head> <body> <?php if (!isset($_GET['boton'])) { //Añadimos lo...
true
b8a44723c22c8ef10364c5523cc2477a1bb45fac
PHP
exterminate/cite
/classes/EmailHandler.php
UTF-8
535
2.859375
3
[]
no_license
<?php class EmailHandler { private $email = "citeitnow@gmail.com"; public function sendEmail($to, $subject, $message) { //commenting this out to prevent accidental spam during development $headers = ""; $headers.= "MIME-version: 1.0\n"; $headers.= "Content-type: text/html; charset= iso-8859-1\n"; $heade...
true
6583e3db068c4a60e2a9efe46c985934feaa7600
PHP
Corollarium/modelarium
/Modelarium/Laravel/Console/Commands/ModelariumCodeCommand.php
UTF-8
7,082
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Modelarium\Laravel\Console\Commands; use Formularium\Factory\CodeGeneratorFactory; use HaydenPierce\ClassFinder\ClassFinder; use Illuminate\Console\Command; use Modelarium\Parser; use Modelarium\GeneratedCollection; use Modelarium\GeneratedItem; use Modelarium\Laravel\Processo...
true
0013616288a075b11f184b8228cc1216e6993fc4
PHP
KeeperJerry/L-Shop-remade
/app/Services/Support/Lang/Ban/BanMessage.php
UTF-8
2,122
2.78125
3
[]
no_license
<?php declare(strict_types = 1); namespace app\Services\Support\Lang\Ban; use app\Entity\Ban; use app\Services\Auth\BanManager; use app\Services\DateTime\Formatting\Formatter; /** * Class BanMessage * Forms a message stating that the user is locked. */ class BanMessage { /** * @var BanManager */ ...
true
3836f82e6db5f80c7d82112388fcb8f057afb1b5
PHP
vkasrajput/Quiz-Sysytem
/quiz System/registration.php
UTF-8
1,410
2.515625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> div{ position:relative; text-align:cen...
true
acb556d6304a4c48c1ae91a131aa59bacf397c7c
PHP
hipema/php-clase
/unidad3/bucles/actividad43.php
UTF-8
891
3.25
3
[]
no_license
<?php // Bloque de documentación /** * Ejercicio 3 * Table de multiplicar del 1 al 10 * author: manolohidalgo_ * date: 29-09-2020 */ ?> <!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href=...
true
797738bf686d594bdd93ce3c6df80b21b559d48d
PHP
Friendbot2k/wispres-master
/database/migrations/2016_09_30_073734_create_notifiable_table.php
UTF-8
1,012
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateNotifiableTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('notifiable', function (Blueprint $table) { ...
true
a59b0d094a08ac712cf03256670f04c83916dc16
PHP
pazthor/php-testing-tools
/applications/messaging/src/ManageWallet/Notifications/TransferFundsEmailNotifier.php
UTF-8
1,628
2.828125
3
[ "MIT" ]
permissive
<?php /** * PHP version 7.1 * * This source file is subject to the license that is bundled with this package in the file LICENSE. */ namespace Ewallet\ManageWallet\Notifications; use Ewallet\Memberships\{Members, TransferWasMade}; class TransferFundsEmailNotifier { /** @var Members */ private $members; ...
true
ba933ab074a7714b7ec4970aa45613dd5ec17507
PHP
tung2912/caseStudy2
/project/database/order.php
UTF-8
2,693
2.984375
3
[]
no_license
<?php require_once 'ConnectDB.php'; class Order extends Database { public function insert($customer_id) { $query = "INSERT INTO orders(customer_id) VALUES (?)"; $stmt = $this->conn->prepare($query); $stmt->bindValue(1,$customer_id); $stmt->exe...
true
cf44a2d6561d6df2ebdb80df226a41f8adbf2c13
PHP
stone-like/Lax-Ex
/app/ModelAndRepository/Prefectures/Repository/PrefectureRepository.php
UTF-8
1,087
2.765625
3
[]
no_license
<?php namespace App\ModelAndRepository\Prefectures\Repository; use Illuminate\Support\Collection; use App\Exceptions\PrefectureNotFoundException; use App\ModelAndRepository\Prefectures\Prefecture; use Illuminate\Database\Eloquent\ModelNotFoundException; use App\ModelAndRepository\Prefectures\Repository\PrefectureRepo...
true
6e8a9b4fdea4e2eebc1694e5394bf989272aa3fa
PHP
saidrkc/exchangerate
/src/Bus/CommandBus.php
UTF-8
216
2.5625
3
[]
no_license
<?php declare(strict_types = 1); namespace App\Bus; final class CommandBus { public function handle(Command $command, Handler $commandHandler) { return $commandHandler->__invoke($command); } }
true
c4cf1e3e54d83be997ae2f77e97066774722c964
PHP
itarvin/leetcode
/php/52maximum-subarray.php
UTF-8
1,432
3.828125
4
[]
no_license
<?php /** * 20. 有效的括号 * 给定一个只包括 '(',')','{','}','[',']' 的字符串 s ,判断字符串是否*有效。 *有效字符串需满足: *左括号必须用相同类型的右括号闭合。 *左括号必须以正确的顺序闭合。 *  *示例 1: *输入:s = "()" *输出:true *示例 2: *输入:s = "()[]{}" *输出:true *示例 3: *输入:s = "(]" *输出:false *示例 4: *输入:s = "([)]" *输出:false *示例 5: *输入:s = "{[]}" *输出:true *  *提示: *1 <= ...
true
4c5bbb96a29e60addecc99a0d28ea1ed03942db6
PHP
ashtonpettit/assignments
/higherlower/index.php
UTF-8
586
3.484375
3
[]
no_license
<!DOCTYPE html> <html> <?php ?> <head> </head> <body> <form> <input type="text" name="num" Method="GET" action="#"> <?php ?> <input type="submit" name="submit"> </form> <?php ...
true
d54168338d4cc9de267ef43b785f3b05bf4e1a60
PHP
sudheersuri/Blog-Bootstrap-PHP
/pagination.php
UTF-8
993
3
3
[]
no_license
<?php // define how many results you want per page $results_per_page = 3; // determine which page number visitor is currently on if (!isset($_GET['page']) && !isset($_GET['category'])) { $currentpage = 1; $page = 1; $category = "hot"; } else { $currentpage = $_GET['page']; $page = $_GET['page']; ...
true
7259889623183f69d4651cdc90f73432ea2af6be
PHP
saulhoward/haddock-cms
/plug-ins/public-html/tags/2010-02-17/public-includes/pages/error/html/body.div.content.inc.php
UTF-8
746
2.734375
3
[]
no_license
<?php /** * The content of the default error page. * * @copyright Clear Line Web Design, 2007-03-07 */ ?> <div id="content" class="error" > <?php if (isset($_SESSION['exception'])) { $div_exception = new HTMLTags_ExceptionDiv($_SESSION['exception']); echo $div_exception->get_a...
true
0ae0ed86fd6d735b8eb6f94909559fa7f46d405e
PHP
sni10/My-yii2-skeleton
/helpers/Utils.php
UTF-8
952
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\helpers; use Yii; use yii\helpers\Html; class Utils { public static function trimArray($arr) { foreach ($arr as &$item) { $item = trim($item); } return $arr; }//trimArray /** * * @return array */ public static function getAct...
true
ebf405c36dad49b37599d6e8c507c94d9c4c765f
PHP
maxim-oleinik/blade-migrations
/src/Repository/FileRepository.php
UTF-8
2,138
3.140625
3
[ "MIT" ]
permissive
<?php namespace Blade\Migrations\Repository; use Blade\Migrations\Migration; /** * Доступ к миграциям сохраненным в файлах */ class FileRepository { /** * @var string - Path to Migrations dir */ private $dir; /** * Constructor * * @param string $migrationsDir */ publi...
true
38c7581af5e26f58167fe93612aca0e336cdb790
PHP
imsidz/facebook-quiz
/application/RequirementsChecker.php
UTF-8
8,594
2.890625
3
[]
no_license
<?php /* * This file goes to 'application' folder in packaged app */ class RequirementChecker { private $errors = array(); private $checks = array(); const MIN_PHP_VERSION = '5.6.4'; public function getEnv() { $env = basename(__DIR__) == "application" ? 'production' : 'local'; re...
true
b9c757e4258455bd8f4e588b660f4607faf24252
PHP
knvrtntrm/amby
/app/Http/Controllers/WerkenController.php
UTF-8
1,774
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Kantoor; use App\Mail\ApplicationContact; class WerkenController extends Controller { /** * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function index() { $kantoren = Kantoor::all(); return view('pages....
true
44bf8ced8973c7d5d996eef9c2546be1767e09b1
PHP
l4ci/project-gamer
/app/Model/User.php
UTF-8
1,859
2.734375
3
[]
no_license
<?php App::uses('SimplePasswordHasher', 'Controller/Component/Auth'); class User extends AppModel { var $user = "User"; public function beforeSave($options = array()) { if (!empty($this->data['User']['password'])) { $passwordHasher = new SimplePasswordHasher(array('hashType' => 'sha256')); $this->da...
true
6f4084207848ad2b67822036fda20da8782ddfa6
PHP
do6po/yii2-short-url-generator
/tests/unit/models/UrlTest.php
UTF-8
5,151
2.515625
3
[]
no_license
<?php namespace tests\models; use app\fixtures\ConversionFixtures; use app\models\Conversion; use app\models\Url; use Codeception\Test\Unit; use app\fixtures\UrlFixture; use app\helpers\GeneratorHelper; use Yii; class UrlTest extends Unit { /** * @var \tests\UnitTester */ protected $tester; /...
true
c49ba3a5112377704142999997f308dafab4568e
PHP
keltanas/unicom-interview
/app.php
UTF-8
888
2.640625
3
[]
no_license
<?php /** * Silex application * @author: Nikolay Ermin <keltanas@gmail.com> */ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\JsonResponse; require_once __DIR__.'/vendor/autoload.php'; $app = new Silex\Application(); $app['debug'] ...
true
d70b1bcd0d34d7a7c6f4c8e2e7157c44cf0af828
PHP
tricksta/soccerpress
/soccer-press.php
UTF-8
1,758
2.625
3
[]
no_license
<?php /* Plugin Name: SoccerPress Description: SoccerPress ist ein Plugin für deutsche Fußballvereine um Ergebnisse der letzten Spiele anzuzeigen. Version: 1.0 Author: Bogdan Schreiber Author URI: https://devcraft.de */ /** * Exit if ABSOLUTE PATH is not defined to WordPress installation in wp-config.php file. */ if...
true
ef3bb391784f5708f3c47a43a9c38c0e2c84712a
PHP
GabrielJHR/curso-PHP
/tp3/includes/php/Persona.php
UTF-8
2,913
3.140625
3
[]
no_license
<?php include_once 'includes/php/Contacto.php'; include_once 'includes/php/Usuario.php'; include_once 'includes/php/provincia.php'; include_once 'includes/php/Sexo.php'; include_once 'includes/php/TipoDocumento.php'; class Persona { private $_apellido; private $_nombre; private $_numeroDocumento; private $_tipoDo...
true
6059a74b8f134ace9231447395e34a89793f8a86
PHP
jorisatabix/apitizer_php
/tests/Unit/Types/ApidocTest.php
UTF-8
1,424
2.53125
3
[ "MIT" ]
permissive
<?php namespace Tests\Unit\Types; use Apitizer\Types\Apidoc; use Tests\Support\Builders\EmptyBuilder; use Tests\Support\Builders\UserBuilder; use Tests\Unit\TestCase; class ApidocTest extends TestCase { // The bindings are needed for this test. protected function getPackageProviders($app) { retur...
true
af2c9341856d060b03b3a5a667fb07a43f477d96
PHP
sushil0568/rediffmail
/Thesaurus.php
UTF-8
413
3.046875
3
[]
no_license
<?php class FileOwners { public static function groupByOwners($files) { foreach($files as $file => $name) { if (isset($newArray[$name])) { echo "skm"; echo "<br/>"; }else { } } return $newArray; } } $files = array ( "Input.txt" => "Randy", "Co...
true
3464a756a3ca8f68b27ade6c949780378b33e388
PHP
kaistlili/rush_01
/game/Type.class.php
UTF-8
258
2.96875
3
[]
no_license
<?php class Type { public $_nom; public $_bouclier; public $_armes; public function getNom() { return $this->_nom; } public function getBouclier() { return $this->_bouclier; } public function setBouclier($n) { $this->_bouclier = $n; } } ?>
true
c0e6c5a4060104cd0c2895be63f12c5d2b371b5e
PHP
ShaevMV/systo
/Backend/app/Models/PasswordResets.php
UTF-8
884
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Models; use Eloquent; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Carbon; /** * App\Models\PasswordResets * * @property string $email * @property string $token * @property Carbon|null $created_at * @metho...
true
3a652b5dc77fe9e14fffec5a92f5a1868576f445
PHP
RPupaza/wivert
/app/models/Hotspot.php
UTF-8
224
2.546875
3
[ "MIT" ]
permissive
<?php class Hotspot extends Eloquent{ public static function getHotspot($name){ $hotspot = DB::table('hotspots')->where('name', $name)->first(); // return $hotspot; // var_dump($hotspot); } }
true
fc59adfb755fb5c147bbf18af4e3a1e3228f6669
PHP
RohitSharma0077/Modules
/php_git/signup.php
UTF-8
717
2.75
3
[]
no_license
<!DOCTYPE html> <?php if(isset($_POST['submit'])) { extract($_POST); $conn=mysqli_connect("localhost","root","","classdb"); $sql="insert into signup values('$fname','$lname')"; if(mysqli_query($conn,$sql)) { echo "inserted "; } else { echo "not insert"; } ...
true
87991be319fd4d519be344123729db71590af706
PHP
sebsebseb123/custom_config
/custom_config.admin.inc
UTF-8
3,063
2.546875
3
[]
no_license
<?php /** * @file * Admin pages and forms. */ /** * Menu callback. * * This page gathers and displays custom config forms. */ function custom_config_admin_page() { $output = array(); // Find all custom config forms. // Create any blocks that we need to. $forms = module_invoke_all('custom_config_forms'...
true
96cec7cb03adf2b1c2b81f00792800116b934fe4
PHP
branebrvl/laravel4-image-upload-voting
/l4-photoupload-vote/app/Evolve/Render/Repositories/User/RegistrationValidator.php
UTF-8
1,523
2.828125
3
[]
no_license
<?php namespace Evolve\Render\Repositories\User; use Illuminate\Config; use Illuminate\Config\Repository; use Illuminate\Validation\Factory; use Evolve\Common\Validation\AbstractValidator; use Evolve\Common\Validation\ValidationInterface; /** * RegistrationValidator * * @uses AbstractValidator * @uses Validatio...
true
3398f1481235ac6d84de70752ce6f3cc5cc01e2e
PHP
cultuurnet/silex-amqp
/src/Console/ConsumeCommand.php
UTF-8
3,068
2.546875
3
[]
no_license
<?php namespace CultuurNet\SilexAMQP\Console; use CultuurNet\BroadwayAMQP\ConsumerInterface; use Knp\Command\Command; use PhpAmqpLib\Channel\AMQPChannel; use PhpAmqpLib\Exception\AMQPTimeoutException; use RuntimeException; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\Output...
true
911c644315c7d91fba6525cac904d669f00f0a6b
PHP
danolawale/design-patterns-php
/CommandPattern/CommandManager.php
UTF-8
841
3.140625
3
[]
no_license
<?php namespace CommandPattern; require_once('Commands/CommandInterface.php'); class CommandManager { private $_commands = []; //LIFO data structure to help undo commands in the right order public function __invoke(Commands\CommandInterface $command) { if($command->canExecute()) { ...
true
e1c5897ef7006f8bfe474aee40a4fda14d96941a
PHP
tigredonorte/core-libraries
/Renderer.php
UTF-8
1,123
2.796875
3
[]
no_license
<?php namespace Libraries; class Renderer { public static function table($additionalTags, $rowsLinks, $model, $columns, $filter, $widgets) { /// columns format: // <type>:<caption>:<size>:<column>:<css classes>,<type>:<caption>:<size>:<column>:<css classes>|<type>:<caption>:<size>:<column>:<css classes>...
true
9eba244c0d71286b6ea376cf2c08f09236092c78
PHP
crdpacversailles/apiscol-admin
/libs/ContentDAO.class.php
UTF-8
2,970
2.578125
3
[]
no_license
<?php class ContentDAO extends AtomDAO { const VOID_RESOURCE="Contenu non disponible"; public function ContentDAO($serviceAccess) { parent :: __construct($serviceAccess); } protected function acquireXMLString() { return $this->serviceAccess->getContent($this->url); } public function build() { parent::...
true
b6d50b0c2fa51820bbcc3719628d3c49bd2ff76a
PHP
ariqfadlan/laravel-web-artisan
/src/Controllers/WebArtisanCommandController.php
UTF-8
2,624
2.84375
3
[ "MIT" ]
permissive
<?php namespace Micheledamo\LaravelWebArtisan\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Artisan; use Symfony\Component\Console\Exception\CommandNotFoundException; class WebArtisanCommandController extends WebArtisanBaseController { /** * The command string * * @var ...
true
1788c97894cd84c94d1338a054d499908f11f184
PHP
alejandromartincruz/film_api
/src/Bundle/ActorBundle/Application/Command/CreateActorCommand.php
UTF-8
1,425
2.765625
3
[ "MIT" ]
permissive
<?php namespace Bundle\ActorBundle\Application\Command; use Bundle\ActorBundle\Application\Usecase\CreateActor; use Bundle\ActorBundle\Infrastructure\Repository\ActorRepository; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputI...
true
dd514cb5b5b32fb6405281e6df064d2704e03ae0
PHP
mirrorgdit/hyperf-api-demo
/app/Service/ApiAuthClientService.php
UTF-8
673
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Service; use App\Model\ApiAuthClient; class ApiAuthClientService { /** * 登录验证 * @param string $username * @param string $password * @return bool */ public function login(string $username, string $password) { //判断帐号是否存在 ...
true
14ac5f0ab18df710a28fa61904de6817b0631c8b
PHP
rayrutjes/arya
/src/Arya.php
UTF-8
7,551
2.84375
3
[]
no_license
<?php namespace RayRutjes\Arya; use Symfony\Component\Yaml\Yaml; final class Arya { /** * @var string */ private $sourceDirectory; /** * @var string */ private $destinationDirectory; /** * @var Yaml */ private $yamlParser; /** * @var array */ ...
true
ec4231b7964da2161bc8dfd6191ba107fa720efe
PHP
rez1Pro/practice-object-oriented-php
/src/Intermediate/Type_hinting.php
UTF-8
225
2.96875
3
[]
no_license
<?php class Type_hinting { public $x ; public function method_1(array $a){ foreach($a as $value){ echo $value[0]." "; echo $value[1]." "; echo $value[2]."<br/>"; } } }
true
0dbee353ebbf2eb2bad7d296fffdbdafa599976f
PHP
yuanwei9467/mysqlHashTable
/createDBTable.php
UTF-8
2,947
3.03125
3
[]
no_license
<?php /** * Desc: mysql 创建库和表 * Created by PhpStorm. * User: <3048789891@qq.com> * Date: 2016/3/19 14:33 */ class create{ const MAXERRORNUM = 200; private $error = array(); private $dbConf; private $con; public function __construct($dbConf){ $this->dbConf = $dbCon...
true
748e0da9668db867e5364ee7e2e8295d2c211015
PHP
chlammas/library-management-system-gestion-bibliotheque
/app/models/Reservation.php
UTF-8
1,331
2.953125
3
[]
no_license
<?php class Reservation { private $db; public function __construct() { $this->db = new Database; } public function findReservationByUserCode($barcode) { $sql = 'SELECT r.ISBN, Title, Category, Author, Date FROM borrower br INNER JOIN reservation r ON br.Barcode = r.BorrowerBarcode IN...
true
b69f492f595d818e080b1e6b524eb9a5caad4b6a
PHP
lesserror-hxr/php-objects-patterns-practice
/Patterns/code_snippet/用于组织对象和类的模式/装饰器模式/实现二/StructureRequest.php
UTF-8
501
2.796875
3
[]
no_license
<?php declare(strict_types = 1); namespace popp\ch10\batch07; /** * 具体的装饰器类 * Class StructureRequest * * @package popp\ch10\batch07 */ class StructureRequest extends DecorateProcess { // 每个process()方法都会在调用那个被引用的ProcessRequest对象自身的process()方法前打印一条信息。 public function process(RequestHelper $req) { ...
true
ba0026acd42ab88a359017f988090fde91127eff
PHP
ihris-sierra-leone/qualify-oas
/application/views/panel/applicant_list.php
UTF-8
12,449
2.53125
3
[ "MIT" ]
permissive
<?php if (isset($message)) { echo $message; } else if ($this->session->flashdata('message') != '') { echo $this->session->flashdata('message'); } if (isset($_GET)) { $title1 = ''; if (isset($_GET['key']) && $_GET['key'] <> '') { $title1 .= " Searching Key :<strong> " . $_GET['key'] . '</strong>...
true
c2c64bacf7bb4d587835c9a44b10d1612688e399
PHP
nassiramin/kuliner
/service/haversine.php
UTF-8
1,294
2.59375
3
[]
no_license
<?php include "../koneksi.php"; $lat = $_POST['lat']; $lng = $_POST['lng']; // perhitungan haversine formula pada sintak SQL $query = mysql_query("SELECT * , (6371 * ACOS(SIN(RADIANS(lat)) * SIN(RADIANS($lat)) + COS(RADIANS(lng - $lng)) * COS(RADIANS(lat)) * COS(RADIANS($lat)))) AS jarak FROM tempat HAVING j...
true
eb282a5c7c5f8f3f56407a0a18b68573d9658f34
PHP
AndrewCraigie/orbits-backend
/app/Http/Controllers/SketchesController.php
UTF-8
3,367
2.703125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Http\Resources\SketchStore; use App\Sketch; use App\Http\Resources\Sketch as SketchResource; use App\Http\Resources\Sketches as SketchesResource; use App\Http\Resources\FeaturedSeries as FeaturedSeriesResource; use Illuminate\Http\Request; class SketchesController exten...
true
5c9aefa3333bb52070ddbd11d45955c509587b97
PHP
zev-deutsch/TVapp
/seldat/createLoginBlackJack.php
UTF-8
3,860
2.640625
3
[]
no_license
<?php include 'classes.php'; $ererr1=$ererr2=$ererr3=""; if (isset($_POST["submit"])) { if (isset($_POST["username"]) && isset($_POST["password"]) && ! empty(($_POST["username"])) && ! empty($_POST["password"])) { $_SESSION['username'] = $_POST["username"]; $password = $_POST["password"]; ...
true
f2653f4b6419e379975c97bf1b47fead06b0486e
PHP
shuyabin/queue
/src/CallQueuedHandler.php
UTF-8
886
2.78125
3
[]
no_license
<?php namespace easySwoole\Queue; use easySwoole\Queue\Job\Job; /** * 调用指定类的方法 * Class CallQueuedHandler * @author : evalor <master@evalor.cn> * @package easySwoole\Queue */ class CallQueuedHandler { /** * 调用任务的执行方法 * @param Job $Job * @param array $data * @author : evalor <master@evalor...
true
f5f9f7da84377133247e0c8fed49d15396be22c1
PHP
micheldesilets/lesnormandeaudesilets
/factory/factories/text/adapters/TextFactory.php
UTF-8
357
2.765625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: User * Date: 2019-02-20 * Time: 15:43 */ class TextFactory implements Factory { protected $adapter; public function __construct(AdapterFactory $adapter) { $this->adapter = $adapter; } public function make($config) { return new Text($t...
true
da2487db9c57373913eccb55f04ee395d61a8402
PHP
barrel-db/barrel-php
/tests/DatabaseTest.php
UTF-8
797
2.59375
3
[ "Apache-2.0" ]
permissive
<?php use PHPUnit\Framework\TestCase; use Barrel\Database; final class DatabaseTest extends TestCase { private $db; private $server_url = 'http://localhost:7080/dbs'; private $db_name = 'test123456'; protected function setUp() { $this->db = new Database($this->server_url, $this->db_name); } public function...
true
29927d711b0a5dd71dcb420ab82b9481fb683368
PHP
nanewengland/nernacal
/nerna-events-app.php
UTF-8
3,192
2.5625
3
[]
no_license
<?php /** \file nernacal.php \brief Gets list of upcoming events from Timely Events Plugin and outputs as PDF. Problem: - Members and trusted servants requested a way to quickly print a plain pdf list of events on nerna.org to bring to their area. Solution: - This file, gets iCal list of events and converts to objec...
true
8a499043c1a040ead4d02adebe0a79b968fb61bf
PHP
sethrachwitz/sgql
/tests/sgql/parser/OrdersTokenTest.php
UTF-8
2,250
2.703125
3
[]
no_license
<?php namespace SGQL; include_once(dirname(__FILE__).'/../../Parser_TestCase.php'); class OrdersTokenTest extends Parser_TestCase { public function testValidOrders() { require 'fixtures/validOrders1.php'; $parser = new Parser($input, Parser::TOKEN_ORDERS); $result = $parser->getParsed();...
true
41b7146de1213da15e5310eefa4a9b64b57351b0
PHP
tresegoal/InimovProject
/app/Repositories/ImageRepository.php
UTF-8
349
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Models\Image; class ImageRepository extends BaseRepository { public function __construct(Image $image) { $this->model = $image; } public function getImageWithoutCategoriesAndProduct() { return $this->model->doesntHave('category')->doesntHav...
true
3baff6241ea5cd0b6eee434aece2bfce1ab4b351
PHP
eshturdiyevumidjon/umnenie
/models/Answers.php
UTF-8
2,415
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use yii\helpers\ArrayHelper; use Yii; /** * This is the model class for table "answers". * * @property int $id * @property string $comment Комментария * @property int $poll_id Опрос * @property int $poll_item_id Пункт опроса * @property int $user_id Пользователь * * @property Poll...
true
3cd14e22dd7c071a14c32912b8b1a623597e8634
PHP
parijke/ResidenceCMS
/src/Entity/Settings.php
UTF-8
1,038
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Entity; use App\Entity\Traits\EntityIdTrait; use Doctrine\ORM\Mapping as ORM; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; /** * @ORM\Entity(repositoryClass="App\Repository\SettingsRepository") * @UniqueEntity("setting_name") */ class Settings { ...
true
85192687b46ed0789a2971eb669f2fd26d56f723
PHP
Takuma-Ikeda/other-lampLessons
/htdocs/kobayashi/table_quiz/tq7.php
UTF-8
1,631
3.40625
3
[]
no_license
<?php require "./table_quiz_07_function.php"; $students = quiz7\getStudentsByIds([1, 2, 3, 99]); ?> <!DOCTYPE html> <html lang="ja"> <head> <meta charset="utf-8"> <link rel="stylesheet" href="./styles.css"> </head> <body> <h1>問題 7</h1> <table> <thead> ...
true
8b355b75c90e41a55df6a6ef6357fb42996a3a55
PHP
hifn123p/-APP
/后台/qiandao.php
UTF-8
4,669
2.734375
3
[]
no_license
<?php if (isset($_POST['tag']) && $_POST['tag'] != '') { $tag = $_POST['tag']; //实例化对象 require_once 'include/DB_Functions.php'; $db = new DB_Functions(); //根据$tag的值调用不同的函数 if ($tag == 'login') {//*****************************************************登录 $telnumber = $_POST['telnumber']; ...
true
220f66a3ea46c7fbeb5aaebcefd705226ff33c36
PHP
PAumedes/php-ejercicios
/clase08/validar.php
UTF-8
506
2.71875
3
[]
no_license
<?php if ($_FILES["archivo"]["error"] === UPLOAD_ERR_OK) { $nombre = $_FILES['archivo']['name']; $archivo = $_FILES['archivo']['tmp_name']; $ext = pathinfo($nombre, PATHINFO_EXTENSION); $miArchivo = dirname(__FILE__); $miArchivo = $miArchivo . '/uploads/' . $_POST['userID'] . "." . $ext; if (...
true
5d265156fbd9ef0a37e3416ba0cff655318c2c62
PHP
ridz1208/loris-demo-project
/instruments/NDB_BVL_Instrument_radiology_review.class.inc
UTF-8
5,214
2.625
3
[]
no_license
<?php class NDB_BVL_Instrument_radiology_review extends NDB_BVL_Instrument { var $ValidityEnabled = false; var $ValidityRequired = false; /** * sets up basic data, such as the HTML_Quickform object, and so on. * * @param string $commentID the CommentID identifying the data to load * @param...
true
80ad48f052bd117d3ad656636f69a69a289b1e2f
PHP
diegograssato/DTUXBase
/src/DTUXBase/Document/Interfaces/DocumentManagerAwareInterface.php
UTF-8
966
2.5625
3
[]
no_license
<?php namespace DTUXBase\Document\Interfaces; use Doctrine\ODM\MongoDB\DocumentManager; /** * Interface reponsavél por obter a conectividade via SM e repassar para o controller * @todo Interface reponsavél por obter a conectividade via SM e repassar para o controller * @category DTUXBase * @package DTUXBase * @su...
true
2bd247c7fc2b0c672820c958f7e2fda498abe87d
PHP
timw4mail/ion
/tests/XMLTest.php
UTF-8
2,031
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * Ion * * Building blocks for web development * * PHP version 7.2 * * @package Ion * @author Timothy J. Warren <tim@timshomepage.net> * @copyright 2015 - 2019 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License * @ver...
true
897f621f5d8b13961243572b7434ff806bc8e3b2
PHP
fracz/refactor-extractor
/results/kakserpom--phpdaemon/32855fe77b9c2aef0849fdd2d6e6169da56d6f00/before/HTTPClient.php
UTF-8
9,258
2.9375
3
[]
no_license
<?php /** * @package NetworkClients * @subpackage HTTPClient * * @author Zorin Vasily <kak.serpom.po.yaitsam@gmail.com> */ class HTTPClient extends NetworkClient { /** * Setting default config options * Overriden from NetworkClient::getConfigDefaults * @return array|false */ protected function getConfigD...
true
84b8fd0123427f810f063e847890f6c4cbaac2a4
PHP
jcarvallo/test-boxmotions
/backend/app/Http/Services/ElevatorService.php
UTF-8
1,028
2.578125
3
[]
no_license
<?php namespace App\Http\Services; use App\Models\Elevator; use App\Models\Location; use App\Models\Sequence; class ElevatorService { static function getElevators() { return Elevator::join('locations', 'locations.elevator_id', '=', 'elevators.id') ->select('elevators.*', 'locations.floor'...
true
39f166dde5156c26d32cfba1348b695ce8d06157
PHP
krzysztof-gzocha/payu
/src/Team3/PayU/Order/Model/OrderStatusInterface.php
UTF-8
912
2.625
3
[ "MIT" ]
permissive
<?php /** * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl> */ namespace Team3\PayU\Order\Model; interface OrderStatusInterface { const NEW_ORDER = 'NEW'; const PENDING = 'PENDING'; const WAITING_FOR_CONFIRMATION = 'WAITING_FOR_CONFIRMATION'; const COMPLETED = 'COMPLETED'; const CANCELED = ...
true
4a3f216d14bb34b6e63ad0cdcacc1f7ca25ef963
PHP
cre4ture/creatureScan
/cS_engine/cS_sql.php
ISO-8859-1
17,242
2.75
3
[]
no_license
<?php /* Project: cS_engine File: mySQL-Interface Author: Ulrich Hornung E-mail: hornunguli@gmx.de Date: 05.08.2009 Type: function library (please use "require_once" instead of "include") Description: This file handles access to the database. If you like to ...
true
4c7c88e134bfb0bac5c689346ebbcc8b609204b4
PHP
juanjhair/cinema-virtual
/cliente/class/conexion/conexion.php
UTF-8
690
2.921875
3
[]
no_license
<?php class Conexion_db{ protected $conexion_db; public function Conexion(){ $con=NULL; try{ $con=new PDO('mysql:host=localhost; dbname=cinema_virtual','root','root'); $con->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION); ...
true
9d2e0fa80387a1ea19b3e7456f6cdb52ce0b5935
PHP
fintech-fab/money-transfer-emulator
/src/FintechFab/MoneyTransferEmulator/Models/Fee.php
UTF-8
718
2.671875
3
[ "MIT" ]
permissive
<?php namespace FintechFab\MoneyTransferEmulator\Models; use Eloquent; /** * @property integer $id * @property string $term_id * @property string $city_id * @property string $cur * @property string $amount_from * @property string $amount_to * @property string $value...
true
e1ad2bfa7994cb0c0483e086566d24cf509e296b
PHP
codemonkey2704/crimecity
/updates.php
UTF-8
4,076
2.5625
3
[]
no_license
<?php //Updates $updates_sql = DB::run("SELECT * FROM `updates` WHERE `name` = 'trevor'"); while ($line = $updates_sql->fetch(PDO::FETCH_ASSOC)) { $update = $line['lastdone']; } $timesinceupdate = time() - $update; if ($timesinceupdate>=300) { $num_updates = floor($timesinceupdate / 300); ...
true
fcb88009978fcb67516f2c65c911040741f8084e
PHP
KillerKing18/Aplicaciones-Web---tablonUCM
/codigo/includes/formularios/FormularioEmail.php
UTF-8
1,201
2.78125
3
[]
no_license
<?php require_once __DIR__.'/../Form.php'; require_once __DIR__.'/../config.php'; require_once __DIR__.'/../Usuario.php'; class FormularioEmail extends Form{ public function generaCamposFormulario($datosIniciales) { return '<p>Nuevo email:</p> <div class="div-validacion"><in...
true
91516d65c15e90b81b2e0605e2557ef24a756a0f
PHP
marekwil89/php-learn-mail-sand
/vendor/example/index.php
UTF-8
2,332
2.578125
3
[]
no_license
<?php error_reporting(E_ALL); ini_set("display_errors", 1); ?> <?php require_once '../autoload.php'; ?> <!doctype html> <html class="no-js" lang=""> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title></title> <meta name="description" content=""> <meta name=...
true
accc734be18f526c6e3868b72e42c94d949a5671
PHP
LutforRahman/nahid.co
/database/migrations/2015_08_24_074611_create_message_table.php
UTF-8
678
2.640625
3
[ "MIT", "CC0-1.0" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateMessageTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('messages', function($tbl){ $tbl->increment...
true
78a0f99df09bcdc2959c60462d0359b871dc2071
PHP
bird-system/zf3
/src/Traits/ServiceLocatorAwareTrait.php
UTF-8
450
2.59375
3
[]
no_license
<?php namespace BS\Traits; use Interop\Container\ContainerInterface; trait ServiceLocatorAwareTrait { /** * @var $serviceLocator ContainerInterface */ protected $serviceLocator; public function getServiceLocator() { return $this->serviceLocator; } public function setServic...
true
92975117f8958993c56ff941730c6ac9c8e3ecb3
PHP
ronytic/colegio
/listar/alumnos.php
UTF-8
627
2.546875
3
[]
no_license
<?php include_once("../login/check.php"); if(!empty($_POST) && isset($_POST)){ $CodCurso=$_POST['CodCurso']; if(isset($_POST['CodAlumno'])){ $CodAlumno=$_POST['CodAlumno']; } include_once("../class/alumno.php"); $alumno=new alumno; foreach($alumno->mostrarDatosAlumnos($CodCurso,0) as $al){ ?><option value="<?...
true
23a7c397b710043b95d988f209c22120883b6270
PHP
zhanivanov/PHP_Basics_Course_Homework
/PHP_Flow_Control/6.ModifyString/ModifyString.php
UTF-8
2,264
3.5
4
[]
no_license
<!DOCTYPE html> <html> <head> <title>Modify String</title> </head> <body> <form method="post"> <input type="text" name="string"/> <input type="radio" name="radio-group" value="palindrome" id="palindrome"/> <label for="palindrome">Check Palindrome</label> ...
true
b2f0109e234bdb3718ec6e55cb158e663507be67
PHP
Feitosa-V/Landing_Page_Perfil
/hobbies.php
UTF-8
2,193
2.640625
3
[]
no_license
<?php $requestGetH = $_GET; $requestPOSTH = $_POST; if(isset($requestGetH['request']) && $requestGetH['request'] == 'ListH') { loadHobbies(); } if(isset($requestPOSTH['request']) && $requestPOSTH['request'] == 'InsertH') { insertHobbies(); } if(isset($requestPOSTH['...
true
c90723dea7df250464bd31ef1be9c50257b369d9
PHP
JeromyLlerenaArroyo/covid-seguimiento
/app/View/Components/FileInput.php
UTF-8
739
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\View\Components; use Illuminate\View\Component; class FileInput extends Component { public $label; public $id; public $col; public $mode; public $required; /** * Create a new component instance. * * @return void */ public function __construct($labe...
true
533096f032a376e75f3351d7d0d0daf4c7e8b794
PHP
NikitaBalasahebRaut/ArrayInPHP
/Sort_Desc.php
UTF-8
144
2.875
3
[]
no_license
<?php $company = array("BMC","Avaya","Calsoft"); sort($company); $numbers = array(4,6,2,22,11); sort($numbers); ?>
true