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
dc42dc849581f7d54c8a9e1569864df41795cc2f
PHP
q798641076/Laravel-shop
/app/Http/Controllers/Api/AuthorizationsController.php
UTF-8
3,301
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use App\Http\Requests\Api\AuthorizationRequest; use App\Http\Requests\Api\SocialAuthorizationRequest; use App\Models\User; use Illuminate\Auth\Access\AuthorizationException; use Illuminate\Http\Request; class AuthorizationsController exte...
true
1b2149153115e49cb9478fda4aabcd7ffe0ff02a
PHP
Cheera/cheera_API
/config/utils.php
UTF-8
6,268
2.78125
3
[]
no_license
<?php //require '../vendor/autoload.php'; require_once 'Config.php'; require_once 'Slim/Http/Util.php'; /* if(PHP_DEBUG_MODE){ error_reporting(-1); ini_set('display_errors', 'On'); } */ // authorized user id from db - global var $user_id = NULL; /** * Verifying required params posted or not */ function...
true
7aa539bc9dec57fe08d622547d4b56a6dfcd9c93
PHP
Etenil/assegai
/src/assegai/modules/acl/AclCore.php
UTF-8
4,891
3
3
[ "MIT" ]
permissive
<?php namespace assegai\modules\acl { /** * Core ACL validation framework. * * Configuration example: * * $app['modules'] = array('acl'); * * $app['acl'] = array( * 'roles' => array( * 'guest' => null, * 'user' => array('guest'), * 'ed...
true
a7be6a5dfb3889f14e8a0c9a2eb93edd3cde22bd
PHP
felipom/Pinduriko
/app/Http/Controllers/ProdutosController.php
UTF-8
6,465
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Produtos; use Illuminate\Http\Request; use \Illuminate\Support\Facades\Validator; use Illuminate\Support\Facades\Auth; class ProdutosController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ ...
true
e78e7a9458b158907b56ceb4b9f05c888c5b18bf
PHP
rzaba/hr
/src/Hr/EmployeeBundle/Controller/EmployeeController.php
UTF-8
1,507
2.515625
3
[]
no_license
<?php namespace Hr\EmployeeBundle\Controller; use Hr\EmployeeBundle\Entity\Employee; use Hr\EmployeeBundle\Form\Type\EmployeeType; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; /** * Class EmployeeController * * @package Hr\EmployeeBundle\Controller */ cl...
true
b063cbf7f75ceb379c02d97afe536685caa49da9
PHP
gonzaloruizalonso/ProyectoDAW
/models/procesar_carrito.php
UTF-8
2,047
2.640625
3
[]
no_license
<?php //Funcion que procesa un carrito y devuelve el repartidor encargado function procesarCarrito($conn,$fechaentrega,$dni) { //$fechaActual = date("Y-m-d H:m:s"); date_default_timezone_set ('Europe/Madrid'); $fechaActual = strftime("%Y-%m-%d %H:%M:%S"); $sql = "SELECT IFNULL(MAX(cod_pedido),0) as cod_p...
true
5cc06dd969011eb2a2a1f47967620ba2eab2d4cd
PHP
dineshy56/roar2
/application/models/Rider_Model.php
UTF-8
3,561
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Rider_Model extends CI_Model { function __construct() { // Call the Model constructor parent::__construct(); // date_default_timezone_set('Asia/Calcutta'); // $this->load->helper('url'); $this->load->...
true
3344eba5fd84a2fdec85d519817d1526cb7af264
PHP
N7Aakash/coreveillance
/PHP/visitor_registration.php
UTF-8
728
2.515625
3
[ "MIT" ]
permissive
<?php include 'Database.php'; $db=new Database(); $con=$db->getConnection(); $json = file_get_contents('php://input'); $obj = json_decode($json, true); $f_name = $obj['f_name']; $l_name = $obj['l_name']; $phone_no = $obj['phone_no']; $email_id = $obj['email_id']; $image=$obj['image']; $visitor_type_id =$obj['visi...
true
029c5d60392b39895c4c09e1400de14b446e1a84
PHP
hieuxuanta/full-quiz-web-app-v2
/app/Http/Controllers/QuestionController.php
UTF-8
1,674
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Question; use Illuminate\Http\Request; class QuestionController extends Controller { public function __construct() { $this->middleware('auth'); } /** * Store a newly created question in storage. * * @param \Illuminate\Http\...
true
c7074b5e07c9e99d0f43bfd412ba8a30da49b55f
PHP
melt/eventapp
/core/core/api.php
UTF-8
22,882
2.765625
3
[]
no_license
<?php namespace melt\core; const melt_CORE_FORK_TIMEOUT = 10; /** * Forks a function call, allowing parallell execution. * Note that forking has a relativly high overhead in terms of * both CPU and memory so it should be avoided unless neccessary. * Also note that fork only works in environments with a webserver ...
true
ff97b9df05114f74f999ddde164b8d90d39d4153
PHP
ctapvk/symfony_elevators
/src/Command/MoveToFirstCommand.php
UTF-8
2,732
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Command; use App\Controller\CallsController; use App\Entity\Houses; use Doctrine\ORM\EntityManager; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Inpu...
true
5f2dfc604a977b6dbca70d33dce9a8d5642fb6ed
PHP
Tavovizard/stom
/STOM_Project/modelo/modelo.php
UTF-8
4,347
2.59375
3
[]
no_license
<?php require_once("../controlador/conexion.php"); require_once("../controlador/controlador.php"); class Modelo{ private $conn; function __construct( $conexion ){ $this->conn = $conexion; } function select( $consulta ){ $this->total_consultas++; $resultado = mysqli...
true
a359b502b530478713fe56f2c9fe5826bacffc31
PHP
cosnics/cosnics
/src/Chamilo/Core/Repository/Table/ContentObject/Gallery/GalleryTableCellRenderer.php
UTF-8
1,737
2.53125
3
[ "MIT" ]
permissive
<?php namespace Chamilo\Core\Repository\Table\ContentObject\Gallery; use Chamilo\Core\Repository\Common\Rendition\ContentObjectRendition; use Chamilo\Core\Repository\Common\Rendition\ContentObjectRenditionImplementation; use Chamilo\Libraries\Format\Structure\Toolbar; use Chamilo\Libraries\Format\Table\Extension\Galle...
true
e58a51a0a3301e84297bf332f1e0d4bd7872fa36
PHP
jjpaya/jjpaya-cars
/middlewares/MwControllerAuthenticator.class.php
UTF-8
1,507
2.765625
3
[ "ISC" ]
permissive
<?php class MwControllerAuthenticator extends Middleware { public function __construct(MvcModuleLoader $loader) { parent::__construct($loader); } private function get_controller_attrmap(string $ctrl) : array { $rc = new ReflectionClass($ctrl); $attrs = $rc->getAttributes(); $attrmap = []; f...
true
493a8e5bcf5687469443ba976504c03ecb19c9cf
PHP
MakiJagodic/php-template-151
/website/src/Service/Login/LoginPdoService.php
UTF-8
1,177
2.71875
3
[]
no_license
<?php namespace MakiJagodic\Service\Login; use MakiJagodic\Service\Login\LoginService; class LoginPdoService implements LoginService { private $pdo; public function __construct(\Pdo $pdo) { $this->pdo = $pdo; } public function edituser($email, $password) { $stmt = $this->pdo->prepare("Update user Set pas...
true
f1b9a79998d481d2c16d05a0499a65d12bdcdb04
PHP
MartinLoeper/KVV-PHP-unofficial-
/src/Type/TripLocationSuggestion.php
UTF-8
1,973
3
3
[]
no_license
<?php namespace KVV\Type; class TripLocationSuggestion { private $sessionID; private $requestID; private $origin_stations; private $destination_stations; private $requestInfo; private $efa; public function __construct($requestInfo, $sessionID, $requestID, $origin_stations, $destination_stations, &$efa) { $t...
true
1d3cb9317c57952b45a5094e29bbe13f0facfaec
PHP
alipsth/PHP.OOP
/OOPdestructor.php
UTF-8
269
3.59375
4
[]
no_license
<?php class siswa{ public function __destruct() { echo "<br> Ini adalah Destructor"; } public function halo() { return "<br> Hello PHP"; } public function __construct() { echo "Ini adalah Construct"; } } $hallo = new siswa(); echo $hallo->halo(); ?>
true
16e1f861caac88126ed96a1972f4a136543eb939
PHP
peck94/linode
/models/MasterPassForm.php
UTF-8
643
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; use yii\base\Model; class MasterPassForm extends Model { public $master; public $name; /** * @return array customized attribute labels */ public function attributeLabels() { return [ 'master' => 'Master key', 'name' =...
true
bd7b8eba65c14330f75b22cb7fa32e5647a2211b
PHP
Taolinxs/indigo
/app/Indigo/Tools/Counter.php
UTF-8
4,237
3
3
[ "MIT" ]
permissive
<?php namespace Indigo\Tools; use Indigo\Contracts\Counter as CounterContract; use Indigo\Contracts\Viewable; /** * Class Counter * @package App\Indigo\Tools */ class Counter implements CounterContract { /** * @var \Illuminate\Foundation\Application */ protected $app; /** * @var */...
true
607cd2ebd4ce692b16edc5c8ea618beeed9ab8f2
PHP
franzbiely/DloGnE
/theprofpgapi/public/app/Sale.php
UTF-8
484
2.65625
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; use App\Property; class Sale extends Model { protected $fillable = [ 'date', 'source', 'price', 'purchaser', 'vendor', 'est_land_value', 'est_improvement_value', 'area', 'est_land_rate', 'description', 'property_id', 'property_c...
true
6b54fd03783441e6205708be4e4aba671f4b1a0f
PHP
Abhishek940/laravel-approved-user
/public/css/app/Http/Controllers/Auth/Api/UserController.php
UTF-8
2,368
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Auth\Api; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Http\Controllers\Auth\Api\BaseController as BaseController; use App\User; use Illuminate\Support\Facades\Auth; use Validator; class UserController extends Controller { public function login(Re...
true
71e412fdf377358b84ff8cb1fc09aa523e91d607
PHP
imdadulhaque1/Learning-PHP_Basics
/first.php
UTF-8
495
3.203125
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>PHP first Code</title> </head> <body> <?php $name ="Imd...
true
be65bb43050937cfa31b03b78f33cb04ce870cd3
PHP
muhdmishal/QTRKP-REC
/login.php
UTF-8
890
2.671875
3
[]
no_license
<?php if (isset($_POST['username']) && isset($_POST['password']) ) { $username = $_POST['username']; $password = $_POST['password']; $jsonArray = array( ); include 'DB.php'; $con = mysqli_connect(HOST,USERNAME,PASSWORD,DBNAME); // Check connection if ($con->connect_error) { die("...
true
61cb4fa9a1ded8ba7394e16809b5affd97aa8078
PHP
tomtuner/gar
/module/Search/src/Search/Solr/BaseDocument.php
UTF-8
927
2.75
3
[]
no_license
<?php /** * Description of BaseDocument * * @author Nikesh Hajari */ namespace Solr; class BaseDocument { /** * Solrium Result Document * * @var \Solarium\QueryType\Select\Result\Document */ protected $document; /** * Class Default Constructor * * @param \Solar...
true
c79897f8815b22064838b0528f417453c66e6bd2
PHP
jdreesen/phln
/src/math/median.php
UTF-8
702
3.34375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace phln\math; const median = '\\phln\\math\\median'; const 𝑓median = '\\phln\\math\\𝑓median'; /** * Returns the median of the given list of numbers. * * @phlnSignature Number a => [a] -> a * @phlnCategory math * @param string|array $numbers * @return mixed * @example *...
true
935c593b753743bec034d5bb76fb4f6a145960b3
PHP
PHPOffice/PhpSpreadsheet
/tests/PhpSpreadsheetTests/Calculation/NullEqualsZeroTest.php
UTF-8
1,268
2.734375
3
[ "MIT" ]
permissive
<?php namespace PhpOffice\PhpSpreadsheetTests\Calculation; use PhpOffice\PhpSpreadsheet\Spreadsheet; use PHPUnit\Framework\TestCase; class NullEqualsZeroTest extends TestCase { public function testNullEqualsZero(): void { // Confirm that NULL<>0 returns false $spreadsheet = new Spreadsheet();...
true
6980c58c9744551e7ef4d25d512ef04bd8e77632
PHP
TakNePoidet/VkApiSDK
/src/ApiTypes/Messages/Message.php
UTF-8
5,842
2.796875
3
[]
no_license
<?php namespace VkApiSDK\ApiTypes\Messages; use VkApiSDK\BaseType; use VkApiSDK\ApiTypes; class Message extends BaseType { protected static $requiredParams = []; protected static $map = [ 'id' => true, 'date' => true, 'out' => ApiTypes\Base\BoolInt::class, 'user_id' => true, 'from...
true
ed33ccbc1c083e9556a0c13530db3ff088931ccd
PHP
schmittjoh/PHP-Parser
/lib/PhpParser/NodeVisitor/Matcher.php
UTF-8
694
2.984375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace PhpParser\NodeVisitor; use PhpParser\Node; use PhpParser\NodeVisitorAbstract; class Matcher extends NodeVisitorAbstract { private $class; private $attributes; private $matches = array(); public function __construct($class, array $attributes = array()) { $this->class = $class; $this->attribut...
true
580a0483d18e44d182de7ed4030f377969eeaa6a
PHP
niahoo/micromachine
/src/micromachine/ControllerHandler.php
UTF-8
2,986
2.90625
3
[]
no_license
<?php namespace micromachine; class ControllerHandler { private $controller; private $action; // le context est public pour les cas où on aurait besoin d'y // jetter un coup d'oeil dans un cadre de développement/débug public $_context; public function __construct($controller, $action=null) ...
true
a2a693c03be4311ecbd2256ce66b518612846c45
PHP
ingparedes/homesimex
/inject/grupos.php
UTF-8
1,866
2.71875
3
[]
no_license
<?php session_start(); ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); $server = "localhost"; $user = "root"; $pass = ""; $bd = "simexamerica"; $idescenario = $_GET['idescenario']; //Creamos la conexión $conexion = mysqli_connect($server, $user, $pass,$bd) or die("Ha su...
true
2d0b473070e0d305d4fc892cbf9a8b8f2ff3fe28
PHP
beverloo/peter.sh
/services/services/auto-deploy/AutoDeploy.php
UTF-8
2,819
2.671875
3
[ "MIT" ]
permissive
<?php // Copyright 2016 Peter Beverloo. All rights reserved. // Use of this source code is governed by the MIT license, a copy of which can // be found in the LICENSE file. class AutoDeploy extends Service { // Registers the task that will be used for auto-deploying peter.sh. public static function RegisterTas...
true
9d81ef45330b5dd8b1320f8f93e94ddac9f4e048
PHP
BackupTheBerlios/limb-svn
/packages/php4/common/branches/trunk/ImageObject.class.php
UTF-8
1,224
2.578125
3
[]
no_license
<?php /********************************************************************************** * Copyright 2004 BIT, Ltd. http://limb-project.com, mailto: support@limb-project.com * * Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html) **************************************************************...
true
61a4e9715baa1c0ee23fde2df5d0bb986643693e
PHP
titankronos/userman
/application/controllers/welcome.php
UTF-8
2,450
2.71875
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Welcome extends CI_Controller { public function index() { // Load Helpers $this->load->helper('panel'); // Check to see if user already logged in and redirect to correct panel if so if ($this->session->userdata('acces...
true
5a4bff7af3141f40e4f436ac5c2833f43ad4017a
PHP
Drake9/GDG_MVC
/App/Controllers/Account.php
UTF-8
702
2.6875
3
[]
no_license
<?php namespace App\Controllers; use App\Models\User; /** * Account controller * */ class Account extends \Core\Controller{ /** * Validate if login is available (AJAX) for a new signup * * @return void */ public function validateLoginAction(){ $isValid = ! User::loginExists($_GET['login']); ...
true
0ba8347b584c0a5d8884ae82a7120aa8515616c4
PHP
jerryyan/szwts
/site/Modules/Backend/Action/AreaAction.class.php
UTF-8
1,931
2.703125
3
[]
no_license
<?php class AreaAction extends MainAction{ //获取选择的地区菜单 public function getAreaHtml($obj){ $area = M("Area"); if(intval($obj->id)){ $area_one = $area->find($obj->id); $area_list = $area->where(array('pid'=>$area_one['pid']))->select(); $city_one = $area->find($area_one['pid']); $city_list = $area->whe...
true
6b10301abf637735c03972c7227e6bffc3f062df
PHP
godlyfast/php-redis-demo
/src/report.php
UTF-8
1,001
3.0625
3
[]
no_license
<?php class Report { private $redis; public function __construct($redis) { $this->redis = $redis; $this->process(); } private function getLastNDays($days, $format = 'Y-m-d'){ $m = date("m"); $de= date("d"); $y= date("Y"); $dateArray = array(); for($i=0; $i<=$days-1; $i++){ ...
true
7b67db95c1b49a5b254511cd3dcdfaafec457ad1
PHP
Sonoda-a/uploader
/Uploder/php/List/ListView.php
UTF-8
586
2.9375
3
[ "MIT" ]
permissive
<?php class ViewData { Private $PageTitle; private $AlbumData; function __construct() { $this->PageTitle = null; $this->AlbumData = null; } // ページのタイトルを決定(アルバム名) public function setTitle($AlbumName) { $this->PageTitle = $AlbumName; } public function getTitle() { ...
true
805226f61599f3f093af97b7c7a0e20d6d0eb80a
PHP
ikartunin/test-inn-status
/app/Services/InnService.php
UTF-8
2,089
2.765625
3
[]
no_license
<?php namespace App\Services; use App\Services\RequestService; class InnService { public static function checkInn($inn) { $endpoint = 'https://statusnpd.nalog.ru:443/api/v1/tracker/taxpayer_status'; $data = [ 'inn' => $inn, 'requestDate' => date('Y-m-d'), ]; ...
true
496067e5ab44bce9a9470daeeade9192a6e593b0
PHP
ir-regular/hopper
/tests/GetInTest.php
UTF-8
949
2.578125
3
[]
no_license
<?php declare(strict_types=1); namespace IrRegular\Tests\Hopper; use function IrRegular\Hopper\get_in; use function IrRegular\Hopper\map; use function IrRegular\Hopper\partial_first; use PHPUnit\Framework\TestCase; class GetInTest extends TestCase { use CollectionSetUpTrait; public function testCanGetInUsin...
true
cf661c4fdb253207b54c013c9de30dbd0f8ecbb7
PHP
igstan/php-utils
/src/CurrencyConverter.php
UTF-8
6,611
3
3
[ "BSD-2-Clause" ]
permissive
<?php class CurrencyConverter { /** * ISO 4217 codes for currencies supplied by BNR */ const CURRENCY_AED = 'AED'; const CURRENCY_AUD = 'AUD'; const CURRENCY_BGN = 'BGN'; const CURRENCY_BRL = 'BRL'; const CURRENCY_CAD = 'CAD'; const CURRENCY_CHF = 'CHF'; const CURRENCY_CNY = '...
true
04dd1f59cf01a5df76064209111a9b2ee87c3d1a
PHP
guinso/hx-core
/src/Soap/Client/Param.php
UTF-8
533
2.90625
3
[ "MIT" ]
permissive
<?php namespace Hx\Soap\Client; /** * SOAP parameter definition * @author chingchetsiang * */ class Param implements ParamInterface { private $name; private $value; private $configure; public function __construct($name, $value, $config = null) { $this->name = $name; $this->value = $value; $...
true
edde3af798f2f468669f86ed1107428160b4dd1d
PHP
lu26976/luca
/template/header.php
UTF-8
567
2.546875
3
[]
no_license
<div class="header"> <div id="logo"> <?php echo'<a href="/">'.$logo['first_name'].' '. $logo['last_name'].'</a>'?> </div> <ul> <?php foreach ($menu as $si => $c) { ?> <li class="menu"> <?php echo'<a href="/' . $c['href'] . '">' . $c['label'] . '</a>' ?> ...
true
d7a753c9d377440d835a33a0e7a8625a05e9cf32
PHP
draxis-environmental/google-hashcode-2017
/src/Helpers.php
UTF-8
377
2.625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Ap * Date: 26/02/17 * Time: 22:10 */ function sort_requests_by_total($a, $b) { if($a->total == $b->total) return 0; return ($a->total > $b->total) ? -1 : 1; } function sort_videos_by_requests($a, $b) { if($a->numberOfRequests == $b->numberOfRequests) return 0; return ...
true
a2007af5887c27a333abd71639154f7645fe2054
PHP
s-voitenko/20160309
/index.php
UTF-8
1,281
2.9375
3
[]
no_license
<?php $name = array('Nikita', 'Dima', 'Alex', 'Sergey', 'Vlad', 'Andrey', 'Artem', 'Ivan', 'Anton', 'Maxim', 'Oleg', 'Roman'); $surname = array('Melnyk', 'Shevchenko', 'Boyko', 'Kovalenko', 'Bondarenko', 'Tkachenko', 'Kovalchuk', 'Kravchenko', 'Oliynyk', 'Shevchuk', 'Polishchuk', 'Lysenko'); for($i=1; $i <= 30; $...
true
0821ff83e2cfb7b10a03b3151754ca0953194283
PHP
VitaAin/VitaHomeBackend_Laravel
/app/Article.php
UTF-8
1,740
2.578125
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Nicolaslopezj\Searchable\SearchableTrait; class Article extends Model { use SearchableTrait; /** * 可以被批量赋值的属性 * @var array */ protected $fillable = [ 'title', 'body', 'user_id', 'cover_url', 'category_id' ]; ...
true
ee14a78b6b91f49b1d0a97e40f6ff5cc3180aaae
PHP
faisalhussainbaber/Php-App
/curd database php APP/add.php
UTF-8
1,440
2.890625
3
[]
no_license
<html> <head> <title>Add Data</title> </head> <body> <?php include_once("config.php"); if(isset($_POST['Submit'])) { $name = mysqli_real_escape_string($mysqli, $_POST['name']); $lname = mysqli_real_escape_string($mysqli, $_POST['lastname']); $email = mysqli_real_escape_string($mysqli, $_POST['email...
true
621a461fc0041b42acef4c69681c85bbfb2ca2bb
PHP
oleksiikhr/uRepairPC-server
/app/Http/Controllers/EquipmentController.php
UTF-8
5,425
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Enums\Perm; use App\Equipment; use App\Events\Equipments\ECreate; use App\Events\Equipments\EJoin; use App\Events\Equipments\EUpdate; use App\Http\Helpers\FilesHelper; use App\Http\Requests\EquipmentRequest; use App\User; use Illuminate\Http\Request; use Illuminate\Suppor...
true
32b79f00a897f6a5ef3912dbbaee8a1ee2012d08
PHP
CNballoon/etcdv3-php
/src/Command/EtcdUpdateDirCommand.php
UTF-8
1,543
2.6875
3
[ "MIT" ]
permissive
<?php namespace Balloon\Component\Etcd\Command; use Balloon\Component\Etcd\Client as EtcdClient; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\...
true
1f98f1dfff15a6e9dbe65ff4104105992eefa71d
PHP
arvydas02/GildedRose-Refactoring-Kata
/src/Products/SulfurasProduct.php
UTF-8
366
2.765625
3
[]
no_license
<?php namespace App\Products; /** * Class SulfurasProduct * @package App\Products */ class SulfurasProduct extends AbstractProduct { protected const QUALITY_MAX = 80; /** * Update Item quality and sell in values */ public function update(): void { // Update quality $thi...
true
dd90566f6df3fd61c397ff8d5ddb2e2e4b009990
PHP
signifly/laravel-travy
/src/Schema/Definition.php
UTF-8
696
2.625
3
[ "MIT" ]
permissive
<?php namespace Signifly\Travy\Schema; use JsonSerializable; use Illuminate\Http\Request; use Illuminate\Http\JsonResponse; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Contracts\Support\Responsable; abstract class Definition implements Arrayable, JsonSerializable, Responsable { /** @var \Illuminat...
true
219843e51f76ae1609e56415e9314ba671b9f8ac
PHP
Kmolina009/PHP_Basics
/www/IteratorsAndcontrolFlow/forLoop.php
UTF-8
877
3.578125
4
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <nav> <a href="/ifStatements.php">IF Statements</a> <a href="/ifElseStatements.php">IfElse Statements</a> <a href="/whileLo...
true
10737a544dbb9a7a7d13dfb1be202ad21dfbe728
PHP
javila3090/Proyecto-SGP
/vistas/reporteCursoExcel.php
UTF-8
2,726
2.765625
3
[]
no_license
<?php /** * Sistema de gestión de personal * Version 1.0 * @author Ing. Julio Avila */ require "../controlador/MainController.php"; require "../modelo/Persona.php"; require "../modelo/Curso.php"; //Exportar datos de php a Excel header('Content-Encoding: UTF-8'); header(...
true
e416424094eb4e9ab647a7e9c1aceac87747177c
PHP
sanaaftab/TryItOut
/website/Register.php
UTF-8
2,683
2.828125
3
[ "MIT" ]
permissive
<?php session_start(); //this script will take user inputs and store in the user entity creating a new user for the website //database connection information ini_set('display_errors', 1); require_once('config.inc.php'); //declaring vars being passed from client $Username = $_POST["UsernamePost"]; $Email = $_...
true
4fa7f2b5257ef9b167838f2c48711a691f787cdb
PHP
TeamRocket-COSC425/MathCSClubWebsite-Old
/processors/adminUserTable.php
UTF-8
2,690
2.515625
3
[]
no_license
<?php //adminUserTable.php //Programmer: Rob Close //Date: January 16, 2015 //Desc: This script is called by the controls.js to process the adminUserTable functions on the admin page session_start(); require_once("../includes/database.Class.php"); $db = Database::getInstance(); $mysqli = $db->getConnection()...
true
1f16bb955bb4faca9b53378a676f4f6bff129efc
PHP
chasememeda/POI
/tree-class.php
UTF-8
7,797
3.03125
3
[]
no_license
<?php class KDT{ /** * * the category of facilities of the kdtree **/ var $category = 0; /** * * the root node **/ var $root = NULL; /** * * the retrival result of the nodes of the tree in the format of sql result **/ var $arr = array(); function __construct( $cat, $con = 0 ) { if( ! ($cat ...
true
04d1ccc0c027aafc96880126ee8faf58f9b77d5e
PHP
TacoNoBurrito/ZPrisons-S3
/src/Taco/ZP/npc/NPCEntity.php
UTF-8
3,245
2.75
3
[]
no_license
<?php namespace Taco\ZP\npc; use pocketmine\command\ConsoleCommandSender; use pocketmine\entity\Entity; use pocketmine\entity\Villager; use pocketmine\event\entity\EntityDamageByEntityEvent; use pocketmine\event\entity\EntityDamageEvent; use pocketmine\level\Level; use pocketmine\nbt\tag\CompoundTag; use pocketmine\Pl...
true
186a50a576fde18a743fb2c47a4de72a4027345e
PHP
umesh26662/piplapis-php
/src/piplapis/thumbnail.php
UTF-8
5,841
2.828125
3
[ "Apache-2.0" ]
permissive
<?php // PHP wrapper for Pipl's Thumbnail API. // // Pipl's thumbnail API provides a thumbnailing service for presenting images in // your application. The images can be from the results you got from our Search // API but it can also be any web URI of an image. // // The thumbnails returned by the API are in ...
true
1a790b227805354fdb920c033c4c278c422052a9
PHP
kanoemon/sandbox-refactoring-to-patterns
/src/Loan/UnusedRiskFactor.php
UTF-8
142
2.640625
3
[]
no_license
<?php namespace App\Loan; class UnusedRiskFactor { public function forRating(float $riskRating): float { return 6.0; } }
true
6ee9bd00f4a10e566ae65fdd6270ac00f4459d55
PHP
RTippin/messenger
/src/Actions/Bots/StoreBotAvatar.php
UTF-8
1,810
2.59375
3
[ "MIT" ]
permissive
<?php namespace RTippin\Messenger\Actions\Bots; use Illuminate\Http\UploadedFile; use RTippin\Messenger\Exceptions\FeatureDisabledException; use RTippin\Messenger\Exceptions\FileServiceException; use RTippin\Messenger\Models\Bot; use Throwable; class StoreBotAvatar extends BotAvatarAction { /** * @param Bo...
true
96f963065694ecf5214a2e7ffe6f7b6fe8c18b1e
PHP
VirtSyntaxError/BTI7054q-DaBi
/Assignment 2/objects/OrderGrid.php
UTF-8
714
3.125
3
[]
no_license
<?php class OrderGrid { private $orders = []; private $count; private $lang; public function __construct($lang, Purchase ...$orders){ $this->orders = $orders; $this->count = count($orders); $this->lang = $lang; } public function addOrder(Purchase $order) { $this->orders[] = $order; $this->count += 1; ...
true
ca76ae48e9ee6d6d82ae67c6ceb662e4603f51c4
PHP
robban118/Ride-Along
/app/funksjoner.php
UTF-8
2,922
2.5625
3
[]
no_license
<?php session_start(); include("db.php"); //valider bilnummer function valReg($bilnr){ $valreg = false; $bilnr = str_replace(" ", "", $bilnr); @$page = file_get_contents('http://www.vegvesen.no/kjoretoy/Kjop+og+salg/Kjøretøyopplysninger?registreringsnummer='.$bilnr); ...
true
a18fecdb781bfb790b373c7a484d70364d01f91e
PHP
andrims21/eBri
/ebri/src/Andriynto/Ebri/Templates/User.php
UTF-8
653
2.53125
3
[]
no_license
<?php namespace Andriynto\Ebri\Templates; use Illuminate\Database\Eloquent\Model; class User extends Template { /** * Create a new instance. * * @param Model $data * @return void */ public function __construct(Model $data) { parent::__construct($data); $metas = ...
true
ac22c7ad96576996a67636eff80be2793e0d8fb2
PHP
andreassolberg/uwap
/common/lib/Sets/Set.php
UTF-8
1,452
3.375
3
[]
no_license
<?php abstract class Set { protected $items = array(); protected $startsWith = 0; protected $count = null; protected $limit = null; function __construct($datalist = null) { if ($datalist !== null) { $this->addDataList($datalist); } } function add(Model $entry) { $this->items[] = $entry; } pu...
true
c311af1e2657fa9e6fda3058160433e774c13f6c
PHP
towergit/delivery
/protected/admin/modules/language/components/LangUrlManager.php
UTF-8
6,259
2.8125
3
[]
no_license
<?php /** * Альтернативный менеджер урлов с поддержкой языков * * @category Component * @package Module.Language * @author Timkovsky Alexandr <timkovsky.alexandr@gmail.com> */ class LangUrlManager extends CUrlManager { /** * @var array список языков */ public $languages; /** * @v...
true
008ad0e8bf878096a96d3d1568c3ccf296078778
PHP
maxkuchumov/movavi-test
/src/Exceptions/UnknownResourceClassException.php
UTF-8
293
2.59375
3
[]
no_license
<?php namespace Movavi\Exceptions; /** * Class UnknownResourceClassException * * Throws when we can not create the resource class object * * @package Movavi\Exceptions */ class UnknownResourceClassException extends MovaviException { protected $message = 'Unknown resource class'; }
true
488c2ea45b73b1c0d469f45179ae547147055a33
PHP
sundbry/go-cab
/html/inc/cls/VRule.php
UTF-8
1,304
3.1875
3
[]
no_license
<? /** A Validation rule */ class VRule { private $test, $message; /** Construct a rule from a boolean function and an error message */ function __construct($func, $msg) { $this->test = $func; $this->msg = $msg; } public function test($val) { return call_user_func($this->test, $val); } public function...
true
84347a0a2ec37387584e7a2fd270755f1bf02af3
PHP
florinsemenu/mvc
/app/controllers/UserController.php
UTF-8
917
2.90625
3
[]
no_license
<?php namespace App\Controllers; require_once('../app/models/User.php'); use \App\Models\User; class UserController { public function __construct() { // echo "en UserController<br>"; } public function index() { // echo "En método index<br>"; //buscar la lista de usuario...
true
22ccdda21b3274df6f468dbf58083748c2a2e40f
PHP
jinnguyen1200/MentalHealth
/app/Repositories/Implementations/UserCompanyRepository.php
UTF-8
1,455
2.703125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: thienpg * Date: 10/27/17 * Time: 10:32 AM */ namespace MentalHealthAI\Repositories\Implementations; use MentalHealthAI\Models\UserCompany; use MentalHealthAI\Models\UserOffice; use MentalHealthAI\Repositories\Interfaces\IUserCompanyRepository; class UserCompanyRepositor...
true
6bd29b9ff7032d91acd10d548b0dbfb25e309f24
PHP
akaunting/laravel-money
/src/helpers.php
UTF-8
845
2.765625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php use Akaunting\Money\Currency; use Akaunting\Money\Money; if (! function_exists('money')) { function money(mixed $amount, string $currency = null, bool $convert = null): Money { if (is_null($currency)) { /** @var string $currency */ $currency = config('money.defaults.curre...
true
deaecebc8adcc0a1f2ab943d05883a3fe04721a6
PHP
thifranc/PHP-piscine
/d01/ex06/ssap.php
UTF-8
467
2.890625
3
[]
no_license
#!/usr/bin/php <?PHP $i = 1; if ($argc == 1) exit(); while ($i < $argc) { $argv[$i] = trim($argv[$i]); while (strpos($argv[$i], " ")) $argv[$i] = str_replace(" ", " ", $argv[$i]); if ($argv[$i]) $tab[$i - 1] = explode(" ", $argv[$i]); $i++; } $i = 2; $max_tab = array_merge($tab[0], $tab[1]);...
true
53c3ae80902e8ff6d9aae7775a774eb3a411b6ae
PHP
puiutucutu/geophp
/tests/functions/kilometresToMetresTest.php
UTF-8
246
2.765625
3
[]
no_license
<?php declare(strict_types=1); use PHPUnit\Framework\TestCase; final class kilometresToMetresTest extends TestCase { public function testReturnsExpectedValue() : void { $this->assertEquals(kilometresToMetres(1), 1000); } }
true
0e78ac6ca408ae4a64bc76c5cb4a6ddc3519cf77
PHP
OskarKlintrotSkolarbeteWP14/1dv608-Project
/model/DatabaseConnection.php
UTF-8
1,396
3.0625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Oskar * Date: 2015-10-07 * Time: 12:52 */ class DatabaseConnection { private $connection; private $statement; public function __construct() { try { $settings = parse_ini_file('Database.Settings'); $this->connection = new PDO('m...
true
1efa1a095870d2a563ec8f4072dfa7ac8070e97c
PHP
Bipul2046/php_Tutorials
/18_Associative_array.php
UTF-8
536
3.734375
4
[]
no_license
<?php echo "Associative Array<br>"; $arr = array('this','that','what'); /* echo $arr[0]; echo "<br>"; echo $arr[1]; echo "<br>"; echo $arr[2]; echo "<br>";*/ $favCol = array( 'vipul' => 'Red', 'Umar' => 'Blue', 'Kiran ' => 'Green', 'Snehal' => 'Yellow'...
true
6ceb21a76d1bd7578b3902938c85d968e857642e
PHP
Lakshmi-Alwin/DBMSproject
/viewcomplaints.php
UTF-8
2,371
2.5625
3
[ "MIT" ]
permissive
<?php require 'connection.php';?> <!DOCTYPE html> <html lang="en"> <head> <title>Student</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <link rel="s...
true
a81e8e941145cb6b0857b1719fb91e93798be331
PHP
yka8247/RIT_EventHub
/app/Phone_number.php
UTF-8
591
2.703125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class phone_number extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'name', 'number', 'user_id', ]; /** * Entire phone number in string format */...
true
7187311117bbd94302ec4ea1b632df8e63167670
PHP
quartzy/php-email
/src/Content/SimpleContent/Message.php
UTF-8
658
2.984375
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace PhpEmail\Content\SimpleContent; class Message { public const DEFAULT_CHARSET = 'utf-8'; /** * @var string */ private $body; /** * @var string */ private $charset; public function __construct(string $body, string $charset = self::...
true
f5e1283e092bf9b42bc0e3724efeb882d6830ca5
PHP
paulpil/Php
/exo3.php
UTF-8
1,196
3.5625
4
[]
no_license
<?php /** * Ordonner les valeurs du tableau par ordre croissant sans * fonction PHP (https://www.youtube.com/watch?v=lyZQPjUT5B4) */ $notes = array( 10, 12, 13, 18, 20, 2, 5 ); //$start = true; // //while($start) { // $start = false; // // for($i = 0; $i < count($notes) - 1; $i++) { // if($notes[$...
true
b68e866aa8336ca76b8f96129d75f291e1a42de4
PHP
jeyroik/extas-api
/src/components/THasMethod.php
UTF-8
464
2.8125
3
[ "MIT" ]
permissive
<?php namespace extas\components; use extas\interfaces\IHaveMethod; trait THasMethod { /** * @description HTTP method * * @return string [3,6] */ public function getMethod(): string { return $this->config[IHaveMethod::FIELD__METHOD] ?? ''; } public fu...
true
c6ac15f30e955ea702bc3a6d29478a577d394ab8
PHP
mgldev/cli-hangman
/src/Hangman/Hangman.php
UTF-8
2,101
3.328125
3
[]
no_license
<?php namespace Hangman; class Hangman implements \Iterator { /** * @var int */ protected $position = 0; /** * @var array */ protected $map; /** * @var string */ protected $canvas; public function __construct() { $this->reset(); $this->ini...
true
067d42b70c13893e4fbd230dba7eccf6c56c150e
PHP
manimanis/BACTIC
/TIC2020/commande.php
UTF-8
1,213
2.65625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Commande de pizza</title> </head> <body> <h1>Commande de pizza</h1> <?php if (!isset($_POST['idpizza']) || !isset($_POST['tel']) || !isset($_POST['qtecmd']) || ...
true
a8ab6c314b0f75c4f0e6c7e8de865ddf8a468bff
PHP
Ramiro98t/Basic-Web-Project
/admin/actualiza_cli.php
UTF-8
1,135
2.578125
3
[]
no_license
<?php require_once('./conecta.php'); // Conecta a la Base de datos //Recibe Variables $id = $_POST['id']; $nombre = $_POST['nombre']; $apellidos = $_POST['apellidos']; $correo = $_POST['correo']; $contra = $_POST['pw']; $bandC = $_POST['bandC']; if ($bandC == '') { // Bandera N...
true
4ced6973a0b74419b4e02d3448bef33ef5d47c12
PHP
abdullahalshubaili/CS295
/in-class/day 29-2/script_12_03.php
UTF-8
1,033
3.125
3
[ "Apache-2.0" ]
permissive
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Create the Database</title> </head> <body> <?php // Script 12.3 - create_db.php if ($dbc = @mysql_connect('localhost', 'abdul', 'abdul')) { print '<p>Successfully...
true
6fbcc3d83774e90dd55191e62f4e0a3652ebd969
PHP
jenasnic/bodu
/src/Bodu/ContactLinkBundle/Entity/ContactLink.php
UTF-8
3,430
2.515625
3
[]
no_license
<?php namespace Bodu\ContactLinkBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * ContactLink * * @ORM\Table(name="contactLink") * @ORM\Entity(repositoryClass="Bodu\ContactLinkBundle\Entity\ContactLinkRepository") */ class ContactLink { /** * @var integer * * @ORM\Column(name="id", type="...
true
ea2c777e9d95a836af440c9fa65fdfc97c06c055
PHP
kramlivingstone/thebacon
/official/bacon-view.php
UTF-8
1,847
2.546875
3
[]
no_license
<?php require_once '../bacon-connection.php'; $product_id = $_POST['product_id']; if(isset($product_id)) { $select_sql = "SELECT * FROM bacon_products WHERE product_id = '$product_id'"; $result = mysqli_query($conn, $select_sql); while ($row = mysqli_fetch_assoc($result)) { extract($row); } ?> <div class=...
true
f6985c67ec55aa0b5649465d10e5a589b75633f7
PHP
jochum-mediaservices/contentinum5.5
/module/Mcwork/src/Mcwork/Model/FileGroups/DeleteCombineCategory.php
UTF-8
870
2.546875
3
[ "Apache-2.0" ]
permissive
<?php namespace Mcwork\Model\FileGroups; use ContentinumComponents\Mapper\Sequence; use Mcwork\Model\Medias\InUse; class DeleteCombineCategory extends InUse { public function execute($id) { try { $entity = $this->find($id); $groupId = $entity->webGroupsId->id; ...
true
414c0b809d1224551316e132498a2646b08e6b4b
PHP
JoseLourenc0/SIProject
/scripts/php/insertdata.php
UTF-8
754
2.59375
3
[ "MIT" ]
permissive
<?php $text = addslashes($_POST['text']); $dhtemperature = addslashes($_POST['dhtemperature']); $dhumidity = addslashes($_POST['dhumidity']); $shumidity = addslashes($_POST['shumidity']); require_once 'conn.php'; $stm= $pdo->prepare('INSERT INTO tb_history (shumidity,dhumidity,dtemperature,description,nowf) ...
true
67ae28cd4e79cbb35da87298b430a1d7fe5843df
PHP
prescottbreeden/slotify
/includes/handlers/ajax/checkSongSaved.php
UTF-8
450
2.546875
3
[]
no_license
<?php include("../../config.php"); include("../../classes/User.php"); if(isset($_POST['song']) && isset($_POST['username'])) { $user = new User($con, $_POST['username']); $user_id = $user->getId(); $song_id = $_POST['song']; $query = mysqli_query($con, "SELECT * FROM saved_songs WHERE song_id = '$son...
true
c0c4c21fab691be30cf37c684164a4ff816d06d5
PHP
RunOpenCode/GeneratorBundle
/Filesystem/RelativePathComputer.php
UTF-8
1,255
3.0625
3
[ "MIT" ]
permissive
<?php namespace Admingenerator\GeneratorBundle\Filesystem; /** * Class RelativePathComputer * @package Admingenerator\GeneratorBundle\Filesystem * @author Stéphane Escandell */ class RelativePathComputer { /** * @var string */ private $referencePath; /** * @param $path The path referenc...
true
ca22acbabcd5597bd6b0e525ef6cae52c16f86e8
PHP
wellmatt/druckplan
/libs/basic/model.php
UTF-8
7,643
2.921875
3
[]
no_license
<?php /** * Copyright (c) 2016 Klein Druck + Medien GmbH - All Rights Reserved * * Unauthorized modification or copying of this file, via any medium is strictly prohibited * * Proprietary and confidential * * Written by Alexander Scherer <ascherer@ipactor.de>, 2016 * */ class Model { public $id = 0; ...
true
c11837a4ccc3c625191df01c75091e0aba630b72
PHP
irinapurzal/Intervolga
/php/create.php
UTF-8
1,801
2.859375
3
[]
no_license
<?php require_once 'connection.php'; // подключаемся к серверу $pattern_str = '#[^а-яА-Яa-zA-Z- ]#iu'; // $pattern_num = '#[^0-9]#iu'; //функция очистки полей от спец символов function check_field($field, $pattern){ $field = $_POST[$field]; if(preg_match($pattern, $field)) { $field = preg_replace($...
true
6d23355ba5d4a8a6e8ff268825e97dcb4881c670
PHP
Daimyo7/magento2-plugin
/Console/Command/ResetCategoryImportFlags.php
UTF-8
1,518
2.515625
3
[]
no_license
<?php namespace Omnisend\Omnisend\Console\Command; use Omnisend\Omnisend\Model\ResourceModel\Category as CategoryResource; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; /** * Class ResetCategoryImportFlags * ...
true
be3a12c1a1638d0f59c97c62821b9ff2599c0e23
PHP
galathil/coolwow2
/profil.php
UTF-8
10,955
2.5625
3
[]
no_license
<?php if(empty($securite) or !isset($securite) or $securite != "ok") { header("location: erreur.php?err=access_denied"); } mysql_connect($coolwow['host'], $coolwow['user'], $coolwow['password']) or die(mysql_error()); mysql_select_db($coolwow['db']) or die(mysql_error()); $membre_id = Securite::bdd($_SESSION['id']);...
true
854b61e171b0f4c0d985dd43b3112650eaac1f0e
PHP
marcos1951/tareaclave
/prueba1.php
ISO-8859-10
373
2.6875
3
[]
no_license
<?php $usuario = $_POST["usuario"]; $password = $_POST["password"]; if ($usuario=="marcos" && $password=="12345") { $valido=true; } else { $valido=false; } ?> <html> <head> <title>Pagina privada</title> </head> <body> <?php if ($valido) { ?> <p>BIENVENIDO A LA WEB</p> <?php } else { ?> <p>USU...
true
5c2c84074479da442e03ff13b0ad87a46ad98b34
PHP
mahbub500/idbPhp
/10jun2021/while.php
UTF-8
538
3.75
4
[]
no_license
<?php $x= 0; while ($x <= 10) { echo "$x <br> "; $x++; } echo "Outside of loop the value of X is : " .$x; ?> <br> <?php $fruits = ["Mango","Bana","JackFruit","licu"," SugerCan"]; $x =0; ?> <ol> <?php while ($x <count($fruits) ) { ?> <li> <?php echo $fruits[$x]; $x++ ?> </li> <?php } ?> </o...
true
52cce741911c51ff5fe974be24c392a38f9983a0
PHP
jwyuen/dotslash
/tests/BaseCommand.Test.php
UTF-8
8,780
2.703125
3
[ "MIT" ]
permissive
<?php namespace Dotslash; use Symfony\Component\Console\Application; use Symfony\Component\Console\Tester\CommandTester; /* To properly test the BaseCommand class, we need to create test classes that * extend it to check for certain behavior. */ class TestBaseCommand extends BaseCommand { protected function ch...
true
da858186473befdb7a6e05a597798a724fcb78bd
PHP
rayqiri/laravel-rest-api
/app/Http/Controllers/SiswaController.php
UTF-8
2,597
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Siswa; use Illuminate\Http\Request; use App\Http\Requests\SiswaRequest; class SiswaController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $siswa =...
true
674ce05b6eedb032405852f5c674363f64735e32
PHP
labsletemps/zombie
/src/ZombieBundle/Entity/Word/StopWord.php
UTF-8
1,764
2.515625
3
[]
no_license
<?php namespace ZombieBundle\Entity\Word; use Doctrine\ORM\Mapping as ORM; use Seriel\AppliToolboxBundle\Entity\Listable; use Seriel\AppliToolboxBundle\Entity\RootObject; /** * StopWord * * @ORM\Entity * @ORM\Table(name="stop_word",options={"engine"="MyISAM"}) */ class StopWord extends RootObject implements Lis...
true
6d41ddd353a584b17bbaa8768e9412d9afe6de5e
PHP
krivbass3D/myshop.local
/models/CategoriesModel.php
UTF-8
2,994
3
3
[]
no_license
<?php function getChildrenForCat($catid){ include '../config/db.php'; // инициализация БД $sql = "SELECT * FROM categories WHERE parent_id = '{$catid}'"; $rs = $mysqli->query($sql); return createSmartyRsArray($rs); } /** * * Модель для таблицы категорий * * @return ar...
true
23224e18cb9f805b26757b89f9582135d0847489
PHP
Mayank-Khurmai/PHP-Random-Comics-Mailer
/users/php/send_otp.php
UTF-8
3,689
2.734375
3
[]
no_license
<?php require_once __DIR__.'/database-connection.php'; require_once '../config/config.php'; class send_otp { private $db; private $query; private $user_mail; private $otp; private $new_otp; private $header; private $message; private $config; public function send_mail_fun($user...
true
635c4ab3fec1a90922dd7ff57e17573adcbea042
PHP
Ahmad-Zaky/CMS-system
/admin/includes/admin_addPost.php
UTF-8
3,669
2.71875
3
[]
no_license
<?php if(isset($_POST['add_post'])){ $post_category_id = $_POST['post_category']; $post_title = $_POST['post_title']; $post_author = $_POST['post_author']; $post_date = date('d-m-y'); $post_image = $_FILES['post_image']['name']; $post_image_tmp = $...
true