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
3dc4d0f0be4ef6029749f4ead4371c6a4d17edbf
PHP
john-crossley/simple-user-manager
/_partials/permission_reminder.php
UTF-8
873
2.5625
3
[]
no_license
<?php require_once '../loader.php'; if (isset($_GET['role_id'])) { $roleId = (int)$_GET['role_id']; $permissions = Role::getRolePermissionData($roleId) ?> <table class="table table-condensed"> <thead> <tr> <th>Permission Data</th> </tr> </thead> <tbo...
true
da95787ac35d6587cdd712765ce109923d7a0c97
PHP
neeppy/catalog-api
/src/AppBundle/Service/RoleHierarchy.php
UTF-8
1,671
2.8125
3
[]
no_license
<?php namespace AppBundle\Service; use AppBundle\Entity\Role; use AppBundle\Entity\User; class RoleHierarchy { private $administrator; private $laborant; private $student; private $user_auth; public function __construct() { $this->user_auth = $this->role() ...
true
17a133d82b37eb395a2fce6b7a9db33948eeec34
PHP
mattiabasone/lumen-api-test
/app/Http/Controllers/Api/V1/Wishlist/ListProductsOnWishlistController.php
UTF-8
1,137
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers\Api\V1\Wishlist; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Laravel\Lumen\Http\ResponseFactory; use Domain\Wishlist\Repository\WishlistRepository; class ListProductsOnWishlistController extends Controller { /** @var WishlistRepository */ private...
true
3328504109dd785fd87a509f5d1ecc3a881a6879
PHP
joemort/cs313php
/insertScripture.php
UTF-8
2,569
2.984375
3
[]
no_license
<?php if (isset($_POST['book'])) { $book = $_POST['book']; $chapter = $_POST['chapter']; $verse = $_POST['verse']; $content = $_POST['content']; $topicIds = $_POST['topics']; $dbName = 'scriptureActivity'; $dbHost = getenv('OPENSHIFT_MYSQL_DB_HOST'); $dbPort = getenv('OPENSHIFT_MYSQL_DB...
true
2529044253e1fac0d32389cc8c25f1ad4594098e
PHP
Nessworthy/business-gateway
/src/Isg/BusinessGateway/Client.php
UTF-8
4,551
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Isg\BusinessGateway; use Isg\BusinessGateway\Responders\ResponderFactory; use Isg\BusinessGateway\Responders\Soap\SoapResponse; use Isg\BusinessGateway\System\Cert; use Isg\BusinessGateway\System\Credentials; use Isg\BusinessGateway\System\EncryptedCert; use Isg\BusinessGatew...
true
f2e189ff618e04949eed8e41cbca0abdf358c89a
PHP
ronashdkl/siemseverest
/models/form/RegistrationFormWithEmployee.php
UTF-8
1,890
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: rnsdk * Date: 11/1/2017 * Time: 10:01 AM */ namespace app\models\form; use app\models\Employee; use webvimark\modules\UserManagement\models\forms\RegistrationForm; use webvimark\modules\UserManagement\models\User; use webvimark\modules\UserManagement\UserManagementModul...
true
6f254adce16b80a735867e25959ade4ebcedc289
PHP
lidyahaning/indostate.cook
/resep.php
UTF-8
4,013
2.640625
3
[]
no_license
<?php include "conn.php"; if (isset($_GET['id'])) { $id_a=$_GET['id']; $_SESSION['id_a']= $id_a; }else{ $id_a = $_SESSION['id_a'];} $sql1=mysql_query("select * from anggota WHERE id_anggota = '$id_a'"); $z = mysql_fetch_array($sql1); ?> <div class="container"> <div class="content"> ...
true
68539026f3505e2f53bdf7a0f39c1cf49ca357f7
PHP
sjbavier/webmane
/cs75src/src7/src/quote4.php
UTF-8
756
2.796875
3
[]
no_license
<? /** * quote3.php * * Outputs price, low, and high of given symbol as text/html, after * inserting an artificial delay. * * David J. Malan * Computer Science S-75 * Harvard Summer School */ // pretend server is slow sleep(5); // try to get quote $han...
true
54ea1ed03c96980b6c321d1d3a3a1d30106f3cff
PHP
rafael2ll/ppi_trabalho
/clinica/backend/model/Medico.php
UTF-8
1,021
2.890625
3
[]
no_license
<?php require 'Funcionario.php'; class Medico extends Funcionario { public ?string $especialidade; public ?string $crm; public function __construct(?Funcionario $funcionario, ?string $especialidade, ?string $crm) { parent::__construct($funcionario, $funcionario->data_contrato, $funcionario->sa...
true
aa279a785c5b51412ce3a3170a932784b18f2a4d
PHP
Gal-anton/Gosuchet
/controllers/Coordinate.php
UTF-8
296
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\controllers; class Coordinate { public $x = 0; public $y = 0; // public $z = 0; function __construct($x = 0, $y = 0/*, $z = 0*/) { $this->x = $x; $this->y = $y; //$this->z = $z; return $this; } }
true
addd92c184645f56479c30d8af3aed17faca8180
PHP
yangqing870410/design_pattern
/比萨店(工厂模式)/抽象工厂/NYPizzaIngredientFactory.php
UTF-8
836
2.609375
3
[]
no_license
<?php include_once 'ThinCrustDough.php'; include_once 'MarinaraSauce.php'; include_once 'ReggianoCheese.php'; include_once 'Garlic.php'; include_once 'SlicedPepperoni.php'; include_once 'FreshClams.php'; /** * Created by PhpStorm. * User: Administrator * Date: 2020/5/17 * Time: 20:07 */ class NYPizzaIngredientFac...
true
7f1fa05d809755db8bd7e8235a4e48412615c5de
PHP
jaydson/json-image-pagination
/json_sample.php
UTF-8
285
2.515625
3
[]
no_license
<?php $json = "{\"images\" :["; for($i=0;$i<1351;$i++){ $comma = $i == 1350 ? "" : ","; $json .= "{\"thumbName\":\"1 (".$i.").jpg\",\"imageName\":\"1 (".$i.").jpg\",\"alt\":\"Imagem 1\",\"width\":\"90px\",\"height\":\"90px\"}".$comma; } $json.="]}"; echo $json; ?>
true
5865c6ebed87c0cff57605f4880f437be7776506
PHP
MaelCormier/REST-Service
/src/OC/SearchBundle/Gitrepo.php
UTF-8
957
2.578125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Miles * Date: 27/11/2017 * Time: 22:10 */ namespace OC\SearchBundle; use GuzzleHttp\Client; use JMS\Serializer\Serializer; class Gitrepo { private $gitrepoClient; private $serializer; // For security reasons, not displaying my own key :-) private $token =...
true
4f7f573118eaadffd59e9992de369008ab57fdde
PHP
kzap/OpenStreetMap-Advocacy-Website
/public_html/viewall.php
WINDOWS-1252
2,595
2.546875
3
[]
no_license
<?PHP ob_start(); $x_IN_FILE = 1; include('functions.php'); include('locations.array.php'); htmlheader('Maps of Philippine Provinces, Cities & Municipalities','Maps of Philippine Provinces, Cities & Municipalities'); $i = 0; echo '<table width="100%"><tr>'; foreach($locations[0]['regions'] as $region) { if ($region...
true
c404a2dc41254e9623315b4798ae802d8319fcbf
PHP
xxScurvyScarabxx/AdvancedKits
/src/AdvancedKits/Kit.php
UTF-8
13,892
2.859375
3
[]
no_license
<?php namespace AdvancedKits; use pocketmine\command\ConsoleCommandSender; use pocketmine\entity\Effect; use pocketmine\entity\EffectInstance; use pocketmine\item\enchantment\Enchantment; use pocketmine\item\enchantment\EnchantmentInstance; use pocketmine\item\Item; use pocketmine\Player; class Kit{ private $ak...
true
d7a3014aedffc4b2025f2c3b8fbd0ee3b73af53e
PHP
lyysun/WeekExam12
/port/server.php
UTF-8
1,500
2.6875
3
[]
no_license
<?php header("Content-type:text/html;charset=utf-8"); class Server{ private $name; private $s_token="api"; private $c_token; private $time; private $mathes; private $random; function __construct(){ $this->name=$_GET['name']; // var_dump($this->name);die; ...
true
6210ec0251eea8aca6e484c3194fd5c927ce717c
PHP
luis-luciano/receipts
/packages/slc/capturelinegenerator/src/ReferenceLineGenerator/Generator.php
UTF-8
465
2.671875
3
[ "MIT" ]
permissive
<?php namespace CaptureLineGenerator\ReferenceLineGenerator; use CaptureLineGenerator\ReferenceLineGenerator\ReferenceLines\ReferenceLine; class Generator { /** * Generate a reference line. * * @param \CaptureLineGenerator\ReferenceLineGenerator\ReferenceLines\ReferenceLine $referenceLine * @...
true
8458f86cdc7b4a431e7ad51b9e960ca7405a0498
PHP
ezegyfa2/laravel-helper-methods
/src/HttpMethods.php
UTF-8
8,462
2.515625
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php namespace Ezegyfa\LaravelHelperMethods; use Ezegyfa\LaravelHelperMethods\Database\FormGenerating\DatabaseInfos; use Exception; use Ezegyfa\LaravelHelperMethods\Database\FormGenerating\SimpleColumnInfos; use Illuminate\Http\Request; use Illuminate\Validation\ValidationException; class HttpMethods { public s...
true
d73a172cde9a2c1549918300e31631437b46d7ae
PHP
AdrianEstevezExposito/Agenda
/cod_insertar.php
ISO-8859-3
2,763
2.59375
3
[]
no_license
<?php session_start(); include("conectar.php"); $nombre =utf8_decode($_REQUEST['nombre']); $apellido1 =utf8_decode($_REQUEST['apellido1']); $apellido2 =utf8_decode($_REQUEST['apellido2']); $telefono =utf8_decode($_REQUEST['telefono']); $direccion =utf8_decode($_REQUEST['direccion']); $id_vecino =...
true
2aa342d56aa8d01be680bf293136beb5bbff59d1
PHP
Faaizz/laravel_api
/database/factories/CustomerFactory.php
UTF-8
1,807
2.71875
3
[]
no_license
<?php /** @var \Illuminate\Database\Eloquent\Factory $factory */ use App\Customer; use App\Product; use Faker\Generator as Faker; //The source php file is required from "DatabaseSeede.php" use Storage\Misc\Functions as MiscFunctions; $factory->define(Customer::class, function (Faker $faker) { $gender= MiscFunc...
true
3ff7c302662c1cb370fd709a8ad160793f6fb8d5
PHP
ellenmichellen/cherpp
/functions.php
UTF-8
12,015
2.515625
3
[]
no_license
<?php /** * Load resources to initialize the html2wp theme functionalities * */ // The Composer autoload includes require_once get_stylesheet_directory() . '/html2wp/vendor/autoload.php'; // Theme setup require_once get_stylesheet_directory() . '/html2wp/setup.php'; // The menu walker require_once get_stylesheet_...
true
d815a232d9de0e5cad7a09c8b778134666cd8e55
PHP
a12791602/yh
/Lib/Model/PostModel.class.php
UTF-8
3,326
2.6875
3
[]
no_license
<?php class PostModel extends Model{ const TABLE_NAME = 'user_posts'; const PRIMARY_KEY = 'id'; public function PostModel() { $this->db(0); $this->tableName= C('DB_PREFIX').self::TABLE_NAME; //设置表名称 } //数据插入 public function addPoat($data) { $data['creattime'] = time(); $points_id = ...
true
3bf53cb662db3114f96173a37ef24183cc6b32d7
PHP
tectronics/thelastride
/ext/core/tables/metadatatype/MetadataTypeTable.php
UTF-8
406
2.65625
3
[]
no_license
<?php class MetadataTypeTable extends NoMetadataTable{ function __construct($n){ parent::__construct($n); $entityType=new String('Entity Type', 30); $entityType->isNotNull(true); $metadataName=new String('Metadata name', 30); $metadataName->isNotNull(true); $this->addPrimaryKey('enti...
true
f51b620fa667e2bda6652d57cb0c8d317a3cd392
PHP
pechatnov/bitrix-skeleton-fork
/app/autoload/Models/Auxiliary/Sale/BitrixBasketItemProperty.php
UTF-8
1,516
2.765625
3
[]
no_license
<?php namespace App\Models\Auxiliary\Sale; use Arrilot\BitrixModels\Models\D7Model; use Arrilot\BitrixModels\Queries\BaseQuery; use Bitrix\Sale\Internals\BasketPropertyTable; /** * Класс-модель для значения свойства позиции заказа. * Class BitrixBasketItemProperty * @package App\Models\Auxiliary\Sale * * @method...
true
4dc0df4477bf7f90ac7695614d941737b09c8ca2
PHP
tejo17/Curriculum
/app/Http/Controllers/LanguagesController.php
UTF-8
4,506
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Language; use App\Http\Requests\LanguageRequest; use Illuminate\Http\Request; use Response; use Session; class LanguagesController extends Controller { /** * Create a new controller instance. * * @return void */ public function index(){ ...
true
ff96a92a5ab9dcad4797a1d1666b9ce61e688b07
PHP
jh-ism-online-webmaster/stomp-php
/src/FuseSource/Stomp/Exception/ErrorFrameException.php
UTF-8
1,313
2.53125
3
[]
no_license
<?php namespace FuseSource\Stomp\Exception; use FuseSource\Stomp\Frame; /** * * Copyright 2005-2006 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
true
829fe9e701f608f636a7a458284232f1619aba65
PHP
H3l3na/php-search
/search.php
UTF-8
852
2.765625
3
[]
no_license
<?php $servername="localhost"; $username="root"; $password=""; $database="project1"; $output=""; $conn=mysqli_connect($servername, $username, $password, $database); if ($conn==TRUE){ echo 'Konekcija na bazu je uspjesna. '; }else { echo 'Greska. Konekcija na bazu nije uspjela. '; } if (isset($_POST['s...
true
ac24b2b3083976bc3a4c030ae6c93abceadfff1c
PHP
roeku/UCPMv4_finalVersion
/core/functions/general.php
UTF-8
933
2.75
3
[]
no_license
<?php function timestampToHours($mysqltime){ return date('H:i',strtotime($mysqltime)); } function timestampToDates($mysqltime){ return date('d-m',strtotime($mysqltime)); } // now function amIInAnAppointment($moment, $date, $userID){ $command="SELECT * FROM `UCPM_appointments` WHERE (TIME(starttime) < '$moment') AN...
true
3763e3adc9aa2ae8a7a4ddcb5eb9b278faee799e
PHP
Jessyfq90/ejerciciosPHP
/ejerciciosPHP/ejerciciosPHP/ejercicio4/ejercicio4.php
UTF-8
703
3.75
4
[]
no_license
<?php include "ejercicio0.php"; echo cabecera("ejercicio 4_4"); function sumaN($n,$array){ if($n<count($array)){ $suma=0; for($i=0;$i<$n;$i++){ $suma+=$array[$i]; } return $suma; } //si devuelve 0 es que n es mayor que la longitud del array return 0; } $n=5...
true
c59b7edd78866acba139b51e1f0d8dcd250aac70
PHP
Hubsine/WPSILEX
/wp-content/themes/sellegance/functions/woo.php
UTF-8
14,768
2.546875
3
[]
no_license
<?php /*-------------------------------------------------------- Adds custom classes to the array of body classes. --------------------------------------------------------*/ function sellegance_body_classes( $classes ) { // add boxed layout class if selected if ( in_array( 'woocommerce/woocommerce.php', apply_fi...
true
9313d04d9b22dc39133be4cb527d1b86c87e551e
PHP
nickurt/laravel-postcodeapi
/tests/Providers/de_DE/GeonamesDETest.php
UTF-8
4,004
2.546875
3
[ "MIT" ]
permissive
<?php namespace nickurt\PostcodeApi\tests\Providers\de_DE; use GuzzleHttp\Client; use GuzzleHttp\Handler\MockHandler; use GuzzleHttp\Psr7\Response; use nickurt\PostcodeApi\Entity\Address; use nickurt\PostcodeApi\Providers\de_DE\GeonamesDE; use nickurt\PostcodeApi\tests\Providers\BaseProviderTest; class GeonamesDETes...
true
9aab0156240f2b0d47d27a46b4c1075278bd3a73
PHP
janephp/janephp
/src/Component/OpenApi2/Tests/fixtures/docker-api/expected/Endpoint/NetworkList.php
UTF-8
3,401
2.515625
3
[ "MIT" ]
permissive
<?php namespace Docker\Api\Endpoint; class NetworkList extends \Docker\Api\Runtime\Client\BaseEndpoint implements \Docker\Api\Runtime\Client\Endpoint { /** * Returns a list of networks. For details on the format, see the [network inspect endpoint](#operation/NetworkInspect). Note that it uses a d...
true
2fc72846a7ff23c157a2677704c2196bc025ddde
PHP
webcreation-sk/stella-search
/src/Search/SearchIndex.php
UTF-8
821
2.671875
3
[ "MIT" ]
permissive
<?php namespace Webcreation\StellaSearch\Search; use GuzzleHttp\Client; use Webcreation\StellaSearch\Config\SearchConfig; final class SearchIndex { /** @var string $indexId */ protected $indexId; /** * @var Client */ protected $guzzleClient; /** * @var SearchConfig */ p...
true
5914e8f9c284968b54e879ba1f6beb28f97def9f
PHP
syhbt/forecasting-codeigniter
/application/libraries/Upload.php
UTF-8
32,543
2.515625
3
[]
no_license
<?php class CI_Upload { private $_private_log = '/data/devel/applications/admin_men/logs/send_to_server_failed.log'; private $_imageType = array('jpeg', 'jpg', 'gif', 'png'); private $_fileType = array('doc', 'xls', 'docx', 'xlsx', 'pdf', 'zip', 'rar', 'ppt', 'pptx'); private $_error_code =...
true
7b310e4286e2956b25835ae2bf01a50ffc1673fd
PHP
akmoore/skinnydope_v1
/app/SkinnyDope/Repositories/BlurbRepo.php
UTF-8
1,196
2.828125
3
[ "MIT" ]
permissive
<?php namespace App\SkinnyDope\Repositories; use App\Blurb; use App\SkinnyDope\Interfaces\BlurbInterface; class BlurbRepo implements BlurbInterface{ protected $blurb; public function __construct(Blurb $blurb){ $this->blurb = $blurb; } public function getRecords(){ $blurbs = $this->blurb->latest()->get();...
true
06b363546b2d9a27a90bdb8114a41b7c546b3348
PHP
roquet07/admini-inm
/database/seeders/MetodoTableSeeder.php
UTF-8
637
2.640625
3
[]
no_license
<?php namespace Database\Seeders; use App\Models\Metedo; use Illuminate\Database\Seeder; class MetodoTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $metodos = [ "NINGUNO", "CONTADO", "INFONAVIT", ...
true
2f436c4d14f14da1a1ad190cfae0193ba64a5712
PHP
godfreygan/CodeIgniter
/app/helpers/common_helper.php
UTF-8
7,493
3.390625
3
[]
no_license
<?php /** * @title: 无限递归 * @author: godfrey.gan <g854787652@gmail.com> * @param $data array 需要递归的数组 * @param $pid int 父级ID * @param $level int 级别 * @return array array 排好层级的数组 */ function reclass($data = array(), $pid = 0, $level = 0) { $level++; foreach ((array)$data as $k =>...
true
9c6ed99d2c56eac230cf5d94fe4e7a41f6e9c5a0
PHP
josephvibal/vera
/app/Jobs/UserCreateMailJob.php
UTF-8
1,242
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Jobs; use App\Jobs\Job; use Illuminate\Queue\SerializesModels; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Contracts\Queue\ShouldQueue; use Mail; class UserCreateMailJob extends Job implements ShouldQueue { use InteractsWithQueue, SerializesModels; public $companyname; pub...
true
76c08425222738c101102e55aa7e3a606c02a902
PHP
Clement-Cauet/TD_Php_Mysql
/PHP/Partie1/PHP_Partie1_Exo3.php
UTF-8
1,939
3.0625
3
[]
no_license
<!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" type="text/css" href="../../src/css/menu.css"> <link rel="stylesheet" type="text/css" href="../../src/css/page.css"> <title>PHP_Partie1_Exo3</t...
true
12489c9cf5f11ffee78e0f69a10c0a46a3490896
PHP
willGabrielPereira/autoBusca
/list_marca.php
UTF-8
2,254
2.515625
3
[]
no_license
<!DOCTYPE html> <?php include 'connect/connect.php'; $title = "Lista de Marcas"; $procurar = ''; if (isset($_POST["procurar"])) $procurar = $_POST["procurar"]; ?> <html> <head> <meta charset="UTF-8"> <title> <?php echo $title; ?> </title> <script> function excluirRegi...
true
4423b22ce501f0cad9a76f9c36f436d883f45d4e
PHP
nhattruong1/Information-Technology-Project-1
/application/controllers/api/address/API_A_3.php
UTF-8
893
2.578125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class API_A_3 extends CI_Controller { public function getList($id_province){ $data = $this->districts($id_province); $this->printJson($data,null); } private function districts($id_province){ $data_district = $this->getDataDistricts($id_pr...
true
d1f40c84a5946aaf75ee79687564015d5c6d890c
PHP
luksi1/yii-tetra
/protected/components/Accordion.php
UTF-8
2,696
2.75
3
[]
no_license
<?php class Accordion extends CWidget { public $model; public $parameters; public $cssClass; public $panels; public function init() { $parameters = (isset($this->parameters)) ? $this->parameters : ''; $cssClass = (isset($this->cssClass)) ? $this->cssClass : '#accordion'; # Set attributes if ($paramete...
true
31e32886f4f9cc980f022e872446312bd98a04d3
PHP
wwlapaki310/database-practice
/detail.php
UTF-8
622
2.65625
3
[]
no_license
<?php require_once("blog.php"); $blog=new Blog(); $result=$blog->getById($_GET["id"]); ?> <!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>Blog Detail</ti...
true
8656246fe06c5e690f6f16fb139f1ce09d1f1b75
PHP
jocl/AMFBundle
/Zend/Log/Formatter/ExceptionHandler.php
UTF-8
2,502
2.6875
3
[]
no_license
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
true
522d60367d16cfdcc477f5627505d978fce0299c
PHP
VasileiosPant/Html-BookStore
/update2.php
UTF-8
618
2.59375
3
[]
no_license
<?php $status=$_GET["status"];// we get the status if($status=="disp") { $au=$_GET["au"]; $link=mysqli_connect("127.0.0.1:50634","azure","6#vWHD_$","mysql"); // connect to db. mysqli_select_db($link,"mysql"); $res=mysqli_query($link,"select * from books where title like '%$au%'"); // select from books th...
true
8209472843faffa18ce92c0244257e69567949ed
PHP
osavchenko/cs-compare
/src/TestClass.php
UTF-8
919
2.859375
3
[]
no_license
<?php declare(strict_types=1); namespace App; use Symfony\Component\Console\Command\Command; class TestClass extends Command { /** * @var string * * @phpcs:disable SlevomatCodingStandard.TypeHints.PropertyTypeHint */ protected static $defaultName = 'name'; /** * @param int $fir...
true
98728e2fd7fa79609cb1861c39c268c3fdfc24f4
PHP
alexbertolla/testesAutomatizados
/testesAutomatizados/src/testesAutomatizados/elements/input/AbstractInput.php
UTF-8
1,263
2.84375
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace testesAutomatizados\elements\input; use testesAutomatizados\interfaces\InterfaceElement; use testesAutomatizados\int...
true
3ec64058b0e70920ae73936a7cfe124c847fff7d
PHP
FreeUKGen/FreeUKGenealogy
/craft/app/models/FieldLayoutModel.php
UTF-8
2,999
2.828125
3
[ "Apache-2.0" ]
permissive
<?php namespace Craft; /** * Field layout model class. * * @author Pixel & Tonic, Inc. <support@pixelandtonic.com> * @copyright Copyright (c) 2014, Pixel & Tonic, Inc. * @license http://craftcms.com/license Craft License Agreement * @see http://craftcms.com * @package craft.app.models * @since ...
true
1e229c60b43cdac0aa0e3f2644177bfe982a579f
PHP
RosenKrumov/Software-University
/Level #1/PHP-Basics-Course/PHP-Basics/PHP-Flow-Control-Homework/_5_SumOfDigits.php
UTF-8
810
3.375
3
[]
no_license
<html> <head> <title>Sum of digits</title> </head> <body> <form action="" method="post"> <label for="input">Input string:</label> <input type="text" name="input" id="input"/> <input type="submit" value="Submit"/> </form> </body> </ht...
true
d2411f91901b36794957add075fcb69668258b32
PHP
Melodious-nub/php_basic
/forloop.php
UTF-8
611
3.984375
4
[]
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 For Loop</title> </head> <body> <h2>For Loops</h2> <?php // var, condition and Increment o...
true
bc786e7008cede8b4266f1e1cb75c6d65b6b1636
PHP
liessinoudjal/Lototor
/src/Lototo/Lottery/Simulator/LotoSimulator.php
UTF-8
5,612
2.5625
3
[]
no_license
<?php namespace App\Lototo\Lottery\Simulator; use App\Lototo\Event\LotterySimulatedEvent; use App\Lototo\Lottery\Grille\Grille; use App\Lototo\Lottery\Loto; use App\Lototo\Lottery\Simulator\SimulatorAbstract; use App\Repository\LotoCombinaisonRepository; use Symfony\Component\EventDispatcher\EventDispatcherInterface; ...
true
20d637bcc329ff31a383834d354ac8f9bb754a7a
PHP
webclinic017/StockMarketApi
/src/StockMarketApi/BitBay/PublicApi.php
UTF-8
622
2.734375
3
[]
no_license
<?php namespace StockMarketApi\BitBay; class PublicApi { private $baseCurrency = 'PLN'; private $comodityCurrency = 'BTC'; public function setBaseCurrency($baseCurrency) { $this->baseCurrency = $baseCurrency; } public function setComodityCurrency($comodityCurrency) { $this->comod...
true
6846754497ef617c84e392fafd46eff06b041ab8
PHP
cedricduffournet/symfony-api-rest-starter
/app/src/Command/CustomCreateClientCommand.php
UTF-8
2,808
2.671875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the FOSOAuthServerBundle package. * * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace App\Command; use FOS\OAuthServerBundle\Mo...
true
e5ae9dd70d4edc5266560d1cfdd8f35eac1660b0
PHP
andrewdevelop/simple-pubsub
/src/Consumer.php
UTF-8
8,701
2.625
3
[]
no_license
<?php namespace Core\Messaging; use Core\Messaging\Contracts\Consumer as Contract; use PhpAmqpLib\Channel\AMQPChannel; use PhpAmqpLib\Connection\AbstractConnection; use PhpAmqpLib\Connection\AMQPStreamConnection; use PhpAmqpLib\Exception\AMQPRuntimeException; use PhpAmqpLib\Message\AMQPMessage; class Consumer implem...
true
f0f7ef0bb096782e4186b2cc3742b26ed185b608
PHP
geomagilles/flowmanager
/src/Geomagilles/FlowManager/Tasks/TaskInterface.php
UTF-8
914
2.53125
3
[]
no_license
<?php /** * This file is part of the Flow framework. * * (c) Gilles Barbier <geomagilles@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Geomagilles\FlowManager\Tasks; use Symfony\Component\Console\Output\Con...
true
7408d86a8c5374c16a46ec6fe4a0dbdf0479c7ff
PHP
thiagodigital/menufood
/database/factories/DishFactory.php
UTF-8
808
2.59375
3
[ "MIT" ]
permissive
<?php namespace Database\Factories; use App\Models\Dish; use Illuminate\Database\Eloquent\Factories\Factory; class DishFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Dish::class; /** * Define the model's defau...
true
b69e8388360a338883d6fa629bf0591f07eae26c
PHP
sakkka/alcool_web_site
/alcool_minimvc/code_metier/DAL/DAL.class.php
UTF-8
2,363
2.9375
3
[]
no_license
<?php require_once 'code_metier/configuration/config.class.php'; //////////////////////////////////////// // DAL // //////////////////////////////////////// // Data Access Layer // //////////////////////////////////////// abstract class DAL { // Accès à la base ...
true
23b5c31b958ff2fae7c07442b7c53d12c2b057f1
PHP
userfrosting/assets
/src/AssetsTemplatePlugin.php
UTF-8
4,390
3.03125
3
[ "MIT" ]
permissive
<?php /* * UserFrosting Assets (http://www.userfrosting.com) * * @link https://github.com/userfrosting/assets * @copyright Copyright (c) 2013-2019 Alexander Weissman, Jordan Mele * @license https://github.com/userfrosting/assets/blob/master/LICENSE.md (MIT License) */ namespace UserFrosting\Assets; /** ...
true
fef2745f99eb03b9e80a8afc582a4afc06e8f3b9
PHP
HsiehMF/IoT-sport_training_platform
/server/login.php
UTF-8
386
2.578125
3
[]
no_license
<?php require "init.php"; $user_name = $_POST["ID"]; $user_pass = $_POST["PWD"]; $sql_query = "select UID,NAME from User where ID like '$user_name' and PWD like '$user_pass'"; $result = mysqli_query($con,$sql_query); if(mysqli_num_rows($result) >0 ) { $row = mysqli_fetch_assoc($result); $UID =$row["UID"]; e...
true
6a32f670c8170707489876cba32a85f0270529b6
PHP
xeops/iikoExchangeBundle
/src/library/base/Exchange/Engine/Event/ExchangeEngineSendRequestEvent.php
UTF-8
886
2.84375
3
[]
no_license
<?php namespace iikoExchangeBundle\Library\base\Exchange\Engine\Event; use iikoExchangeBundle\Contract\DataRequest\DataRequestInterface; use iikoExchangeBundle\Contract\Engine\ExchangeEngineInterface; use Symfony\Component\EventDispatcher\Event; class ExchangeEngineSendRequestEvent extends Event { /** * @var Ex...
true
500b37d119e9e04770b60ed2085205f0e833e2f2
PHP
DesarrolloWebIcesi/gesteven
/admin/src/consultar_inscrito_correo.php
UTF-8
1,440
2.8125
3
[]
no_license
<?php /** * Consulta la información de un usuario inscrito a un evento * * 2014-12-13 damanzano * Se agregaron algunas líneas de documentación a este controlador, explicando * lo que hace exactamente para facilitar su mantenimiento. * * @author Alejandro Orozco - aorozco * @since 25/02/11 * @packag...
true
617e60818db8888f880638bd0c05cd6412bbcdee
PHP
paullandre/Resume
/src/MainBundle/Entity/Menu.php
UTF-8
2,895
2.515625
3
[]
no_license
<?php namespace MainBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Menu * * @ORM\Table() * @ORM\Entity(repositoryClass="MainBundle\Entity\MenuRepository") */ class Menu { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="A...
true
397191bef62f21285aac0890a082071f6095276f
PHP
yuricoco/devups
/dclass/devups/EntityCore.php
UTF-8
880
2.640625
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of EntityCore * * @author azankang */ class EntityCore { //put your code here public function __c...
true
3cd82859e55a4dfc2e0ef4883abe2687170099f3
PHP
teamtnt/tntsearch
/tests/TNTFuzzyMatchTest.php
UTF-8
3,194
2.828125
3
[ "MIT" ]
permissive
<?php use TeamTNT\TNTSearch\TNTFuzzyMatch; class TNTFuzzyMatchTest extends PHPUnit\Framework\TestCase { protected $fm; public function setUp(): void { $this->fm = new TNTFuzzyMatch(); } public function testNorm() { $vector = [3, 4]; $normalized = $this->fm->norm($...
true
1de0a996e9c5549c1f378a513b6c9ebb96382331
PHP
arifulislamrana/OOP-PHP
/autoloadRegister/autoloader.php
UTF-8
353
2.703125
3
[]
no_license
<?php // spl_autoload_register('myAutoloader'); // function myAutoloader($className) // { // $path = '/path/to/class/'; // include $path.$className.'.php'; // } spl_autoload_register(function ($class_name) { include $class_name . '.php'; }); $c = new A(); echo '<br>'; $c = new B();...
true
395eb12b7cb0baaa70c9555b3ca15a07dfb5ec56
PHP
jkhsjdhjs/screencapture
/upload.php
UTF-8
1,168
2.71875
3
[]
no_license
<?php /* * A script to place on your server. * It acts as a backend for screens-uploader.bash */ function exit_response($code, $text) { http_response_code($code); exit($text); } // allowed mime types const EXTENSIONS = [ "image/png" => "png", "video/webm" => "webm", "video/mp4" => "mp4" ]; //...
true
49cc47aac2b49e1fdf33965ecad2c75e189d977c
PHP
googlemarketer/contact-pakcage
/src/Models/Admin/Subservice.php
UTF-8
908
2.515625
3
[]
no_license
<?php namespace Googlemarketer\Contact\Models\Admin; use Illuminate\Database\Eloquent\Model; use Illuminate\Notifications\Notifiable; use Illuminate\Database\Eloquent\Factories\HasFactory; use Googlemarketer\Contact\Models\Admin\Service; use Googlemarketer\Contact\Models\Member\Order; class Subservice extends Model...
true
0bb6d53c27823b5343ee8f3f2133b32fdcf68661
PHP
Vanch20/framework
/Db/table.php
UTF-8
15,284
2.875
3
[]
no_license
<?php /** * ORM数据表对象类 * * @author linln * @created 2009-03-05 18:06 */ class Table extends Orm { /** * 数据表名 * * @var string */ private $_name = ''; /** * 数据表的主键名称 * * @var string */ private $_pk = ''; /** * 数据表中的字段 * * @var array */ protected $_fields = a...
true
25b14f67b2551fcf4eb5692df8a958c5a882d4f0
PHP
AlexKhram/viber-poker-stat-bot
/src/ViberPokerBot/Lib/Storage/Storage.php
UTF-8
655
2.84375
3
[]
no_license
<?php namespace ViberPokerBot\Lib\Storage; use ViberPokerBot\Lib\Trait\Singleton; require_once __DIR__ . '/../Trait/Singleton.php'; abstract class Storage { use Singleton; protected function __construct() { } protected const STORAGE_PATH = __DIR__ . '/../../../../data/'; abstract protected func...
true
cc04d3eb3fd09c8cf4ad90438571ff0e2ac2df4b
PHP
mmp4k/proophgen
/src/Pilsniak/GossiCodeGenerator/ValueObjectGenerator.php
UTF-8
886
2.546875
3
[]
no_license
<?php namespace Pilsniak\GossiCodeGenerator; use gossi\codegen\generator\CodeFileGenerator; use gossi\codegen\model\PhpClass; use gossi\codegen\model\PhpMethod; use gossi\codegen\model\PhpParameter; use gossi\codegen\model\PhpProperty; use Pilsniak\ProophGen\Model\ValueObject; use Pilsniak\ProophGen\ValueObject\Varia...
true
db41d7408da49c4ffcb0b6bf27daec47951d04e0
PHP
BuendiaBhelle/mnwd_
/unit_test/meter_reading_data/mrdgenerator.php
UTF-8
3,059
2.609375
3
[]
no_license
<?php include '..\connect.php'; $account_total = "SELECT COUNT(*) FROM `account`"; $result = mysqli_query($dbconn, $account_total); $row = mysqli_fetch_array($result); $account_total = $row[0]; $billdate = '2012-01-18'; //array_fill(start_index, number of elements to update, value) $previous = array_fill(0, $...
true
dd2e3eb858936e1ad89463d5714999117c49135e
PHP
HGONeV/hgon_payment
/Classes/Domain/Model/ArticleInterface.php
UTF-8
2,683
2.671875
3
[]
no_license
<?php namespace HGON\HgonPayment\Domain\Model; /* * This file is part of the FluidTYPO3/Vhs project under GPLv2 or later. * * For the full copyright and license information, please read the * LICENSE.md file that was distributed with this source code. */ /** * Basic interface which must ...
true
5531ca3212816fa2b193a87992097b3a99a28f75
PHP
hackingangle/php
/demo.interfaces.php
UTF-8
1,112
3.5
4
[ "Apache-2.0" ]
permissive
<?php /** * 面向对象-接口 */ /** * 接口 */ interface Loggable { /** * 约定了通用接口 */ public function log(); } /** * 实现1 */ class FileLog implements Loggable { /** * 约定实现 * @return null */ public function log() { var_dump("Logging to a file."); } } /** * 实现2 */ cla...
true
9e0c1accd84a6c4f87b0f8663dbfcdbb83d06e80
PHP
duytc/tagcade-api
/src/Tagcade/Model/Report/PerformanceReport/Display/ReportType/Hierarchy/Segment/RonAdSlot.php
UTF-8
2,043
2.59375
3
[ "MIT" ]
permissive
<?php namespace Tagcade\Model\Report\PerformanceReport\Display\ReportType\Hierarchy\Segment; use Tagcade\Model\Core\RonAdSlotInterface; use Tagcade\Model\Core\SegmentInterface; use Tagcade\Model\Report\PerformanceReport\Display\Hierarchy\Segment\RonAdSlotReportInterface; use Tagcade\Model\Report\PerformanceReport\Dis...
true
ec9c73b5c4d6b3290f670f5d4a437b480ba56d3d
PHP
Gorgorot38/Vietnamese-French-Dictionary
/Sitev1/profil.php
UTF-8
2,297
2.59375
3
[]
no_license
<html> <head> <!-- 1er test --> <meta charset="utf-8" /> <title>Dictionnaire Francais/tiếng Việt</title> <link rel="stylesheet" href="includes/style.css" /> </head> <body> <?php $current = "profil"; session_start(); include("includes/menu.php"); ?> <?php ...
true
4d768b6f1e0fd86dfd5c4a2d8f29fe47718b63ed
PHP
CoderCrewHu/laravel-szamlazzhu
/src/Client/Models/ReceiptCancellationResponse.php
UTF-8
1,764
2.6875
3
[ "MIT" ]
permissive
<?php namespace SzuniSoft\SzamlazzHu\Client\Models; use Psr\Http\Message\ResponseInterface; use SzuniSoft\SzamlazzHu\Client\Client; use SzuniSoft\SzamlazzHu\Receipt; /** * Class ReceiptCancellationResponse * @package SzuniSoft\SzamlazzHu\Client\Models * * @property-read int $id * @property-read string $newRecei...
true
bf8953692209b04a0aed4f2c63308f6129ca16dc
PHP
adridev/service-bus
/tests/MessageBusTest.php
UTF-8
1,911
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * This file is part of the prooph/service-bus. * (c) 2014-2017 prooph software GmbH <contact@prooph.de> * (c) 2015-2017 Sascha-Oliver Prolic <saschaprolic@googlemail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ d...
true
7101846f8374375efbd9cfc4ec9be23e8efff901
PHP
OliverZott/symfonycasts-symfony5
/src/Controller/QuestionController.php
UTF-8
1,832
2.671875
3
[]
no_license
<?php namespace App\Controller; use App\Service\MarkdownHelper; use Psr\Cache\InvalidArgumentException; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; class QuestionController extends AbstractControlle...
true
52e8d6a9661b4abfdbfb44e782cc767a97357166
PHP
gitmanfel/php
/echec.php
UTF-8
729
3.015625
3
[]
no_license
<html> <head> <title>salutation</title> </head> <body> <h2>Retour à l'école de l'échec et du jugement ?</h2> <form action="echec.php" method="get"> <p>quel est votre note? <input type="nummber"name="note"></p> <input type="submit" value="ok"/> </form> <?php $note=$_GET[note]; if( $note >= 1 AND $...
true
e390684983da7d133c29b83ba9b6dbbf1aea9502
PHP
SnusnumrConceit/lab
/php/phpunit/autoload.php
UTF-8
773
2.78125
3
[]
no_license
<?php spl_autoload_register(function($class_name) { $prefix = "Luci\\Src\\"; $base_dir = __DIR__ . '/src/'; // if class have prefix $len = strlen($prefix); if (strncmp($prefix, $class_name, $len) !== 0) { return; } // get the relative class name...
true
aae5a2e9448f055d268a057531264376b48ffe04
PHP
tharkun/autodeploy
/classes/php/adapter.php
UTF-8
521
2.71875
3
[]
no_license
<?php namespace autodeploy\php; class adapter { /** * @param $method * @param array $args * @return mixed */ public function __call($method, array $args = array()) { return call_user_func_array($method, $args); } /** * @param $function * @...
true
2d3c7d23a093a312372ffdfd91ad561cba6a3a57
PHP
GymControlHN/GC_Webservices
/database/migrations/2019_08_18_162041_create_diagnostico_ruffier_table.php
UTF-8
745
2.625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateDiagnosticoRuffierTable extends Migration { /** * Run the migrations. * * @return void */ // Metodo para agregar nuevas tablas public functi...
true
7aa373358160e992a7d2c8591220ead626673f34
PHP
VinzSfr/Hackathon
/public/index.php
UTF-8
1,040
2.578125
3
[]
no_license
<?php define ('ROOT', dirname(__DIR__) . '/'); require ROOT . 'app/App.php'; App::load(); // autoloader if(isset($_GET['p']) && !(App::getInstance()->alert()->alertPresent())) // si une page est demandée $page = $_GET['p']; else // sinon on affiche la page d'accueil $page = 'home.index'; $page = explode('.', $page...
true
f0c55f931ee0a7475b3f4aec8804722999105eaf
PHP
Trintusly/Falsa
/falsa/src/Component.php
UTF-8
349
2.75
3
[]
no_license
<?php class Component { public static function load( $path, $params = [] ) { $path = $_SERVER['DOCUMENT_ROOT'] . "/app/components/" .$path. ".php"; if (!file_exists($path)) { throw new Exception('Component does not exist!'); return; } $_component = (object) [ 'params' => (object) $params ];...
true
ae48a7ba897203486649cb7ca17325112ed09632
PHP
lanost/test
/day3/set4/library.php
UTF-8
298
3.453125
3
[]
no_license
<?php function lp(int $yr) { if ($yr==" ") { echo "Script Usage: php Script1.php {date} date - Year you want to check"; } elseif ((0 == $yr % 4) and (0 != $yr % 100) or (0 == $yr % 400)) { echo "leap year"; } else { echo "not leap year"; } }
true
234852f0f3db0c7214fff365ce1b718284f29fc0
PHP
allendhy/tizhi_new.cc
/Application/Home/Model/TownModel.class.php
UTF-8
555
2.5625
3
[]
no_license
<?php namespace Home\Model; use Think\Model; class TownModel extends Model { public function get_all($town_id = 0){ if($town_id == 0) return $this->select(); else{ $where['town_id'] = $town_id; return $this->where($where)->select(); } } //根据学校代码获取区县信息 public function get_list_by_schoolcode($school_co...
true
8b30fe749a593b4ff8ebd9b00d142c87944c48ab
PHP
carolinacabril/logica
/fibonacci.php
UTF-8
187
3.90625
4
[]
no_license
<?php function fibonacci($n) { if($n < 2){ return $n; } else { return fibonacci($n-1) + fibonacci($n - 2); } } for($i=1; $i <= 10; $i++) { echo fibonacci($i)." ".PHP_EOL; } ?>
true
776a3c6a5c49666d9fe2ab2084c325c952eaba5a
PHP
aurel282/TopFlop
/app/Service/VoterService.php
UTF-8
683
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Service; use App\Models\Database\Voter; use App\Repository\VoterRepository; use Illuminate\Database\Eloquent\Collection; class VoterService extends AbstractService { /** * @var VoterRepository */ protected $_voterRepository; public function __construct( VoterRepos...
true
3343244a015189cb5fd4e6d030eb4ed72d26e62b
PHP
ricardocastilloisc/learningDev
/app/UserSocialAccount.php
UTF-8
606
2.515625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class UserSocialAccount extends Model { //lo que hace es ver o seleccionar lo que vamos a manpular} //esto es requerido para poder insertar o modificar protected $fillable = ['user_id', 'provider', 'provider_uid']; //obviamente nos fata pero p...
true
505acdadd071179093426e38462cce4f2f21e1d3
PHP
kevinkin01/twig02
/index.php
UTF-8
872
2.53125
3
[]
no_license
<?php /*AUTOLOAD*/ //autoload require_once "./vendor/autoload.php"; //controlelr require_once "controller/publicController.php"; // models require_once "model/nosModels.php"; //use publicController use Controller\publicController as PC; // route content twig's files $loader = new Twig_Loader_Filesystem('./views'...
true
dfbc4f6ec1724791eebafc29839a6d329e6c8570
PHP
zsyzlyj/hr_seven
/application/models/Model_wage_notice.php
UTF-8
1,170
2.53125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Model_wage_notice extends CI_Model{ public function __construct(){ parent::__construct(); } /* get the brand data */ public function getWageNoticeData(){ $sql = "SELECT * FROM wage_notice"; $query = $this->db->query($sql); return $query->result_array(); } public function create($data){ if...
true
349c5be13e2b0ffdf1df7ceeaa9b4374bb47d6d2
PHP
sdebacker/TypiCMS
/app/TypiCMS/Modules/Events/Services/Form/EventFormLaravelValidator.php
UTF-8
709
2.546875
3
[ "MIT" ]
permissive
<?php namespace TypiCMS\Modules\Events\Services\Form; use TypiCMS\Services\Validation\AbstractLaravelValidator; class EventFormLaravelValidator extends AbstractLaravelValidator { /** * Validation rules * * @var Array */ protected $rules = array( 'start_date' => 'required|date', ...
true
0d0dd697c8b05cf47b4c35fab41f65ab52503bd2
PHP
pgraham/php-rest-server
/test/HttpMessageTest.php
UTF-8
4,890
2.53125
3
[]
no_license
<?php /* * Copyright (c) 2014, Philip Graham * All rights reserved. * * This file is part of php-rest-server. For the full copyright and license * information please view the LICENSE file that was distributed with this * source code. */ namespace zpt\rest\test; require_once __DIR__ . '/test-setup.php'; use PHP...
true
ab2b8847dbfb90c150a1e6de0ef428cfc18ef7bc
PHP
nvbach91/4IZ278-2020-2021-LS
/www/feda07/sp-feda07/app/Dto/OpeningHoursDto.php
UTF-8
228
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Dto; use Illuminate\Support\Carbon; class OpeningHoursDto { /** * @var string Name of day */ public string $name; /** * @var FromTo[] */ public array $openingHours; }
true
4879c951a0829488a6d8e44f1c96c95d5e54f0f0
PHP
mgoalves/Estudando-PHP
/PHP-WorkSeries/modulos/02-iniciandoComPHP/04-tipos.php
UTF-8
406
3.03125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Alves * Date: 02/05/2017 * Time: 10:05 */ header('Content-Type: text/html; carset=utf-8'); //String $str = "Olá Mundo"; var_dump($str); echo "<hr/>"; //ARR = array $arr = array( ); $arr ['nome'] = "Marcello"; $arr ['idade'] = 20; var_dump($arr); echo "<hr/>"; $arr [...
true
84c263d0e2f4db3b9e0b9bbf0150b311f9a722df
PHP
standardebooks/web
/www/ebooks/index.php
UTF-8
5,857
2.625
3
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
<? use function Safe\preg_replace; try{ $page = HttpInput::Int(GET, 'page') ?? 1; $perPage = HttpInput::Int(GET, 'per-page') ?? EBOOKS_PER_PAGE; $query = HttpInput::Str(GET, 'query', false) ?? ''; $tags = HttpInput::GetArray('tags') ?? []; $collection = HttpInput::Str(GET, 'collection', false); $view = HttpInput...
true
b8dc6cd6066baef1666ffaead3e7a118e7deb34b
PHP
dimaninc/starter
/src/NewProject/Helper/MailTemplate.php
UTF-8
851
2.53125
3
[]
no_license
<?php /** * Created by [%CREATOR%]. * User: [%USER%] * Date: [%DATE%] * Time: [%TIME%] */ namespace NewProject\Helper; use diCore\Data\Environment; class MailTemplate { public static function getBaseTemplateName($template) { $baseTemplate = true //$template == 'customer' ? 'emails/_parts/html_base' // lo...
true
6541a9a79aafc9121a12fd3ef190fa426ec5c8d2
PHP
mhgolkar/FlatFire
/Functions/Structured/insert_row.php
UTF-8
2,685
2.65625
3
[ "MIT" ]
permissive
<?php namespace FFDB; /* _______________ // | | // | M.H.GOLKAR | // | FlatFire | // | 01.00[2012] | // |_______________| */ // ::: Insert Row ::: // ____________________________________________ // // function: // insert_row(table,input); returns row id number on success // input: // table i...
true
5f214b05995b67e0b845c6e4ecdf54a2933c0a64
PHP
isahlabbo/aters
/app/Services/PollingUnit/Gudu/KarfenChana.php
UTF-8
332
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Services\PollingUnit\Gudu; class KarfenChana { function __construct() { # code... $this->pollingUnits = $this->pollingUnits(); } public function pollingUnits(){ return [ 'DANFILI, KARFEN CHINA', 'MALLAMAWA, KARFEN CHINA', 'BUNGUEL DANFILI', 'TUNGAR NAMAIWA' ...
true
9f751cde973918874e58dffd23d2507a760848fc
PHP
cchoo1227/moonlight
/customerparticulars.php
UTF-8
3,220
2.53125
3
[]
no_license
<?php session_start(); include 'php/getMovies.php';?> <!DOCTYPE html> <head> <link rel="stylesheet" href="styles.css"> <title>Moonlight Cinemas</title> </head> <body> <!--start of navbar--> <?php include 'navbar.php' ?> <!--end of navbar--> <?php $query = explode('&', $_SERVER['QUERY_STRING']); $params =...
true