Dataset Viewer
Auto-converted to Parquet Duplicate
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
e23749a6ec2558f2694d851ab8a82ea55d81ee8c
PHP
ulisescruzescamilla/finicity-sdk
/src/Models/ReportSummary.php
UTF-8
4,071
2.84375
3
[ "MIT" ]
permissive
<?php namespace FinicityAPILib\Models; use JsonSerializable; /** * @todo Write general description for this model */ class ReportSummary implements JsonSerializable { /** * The Finicity report ID * @required * @var string $id public property */ public $id; /** * Finicity ID fo...
true
7071313c1a3cbecf79354e25904f0eb97bcf4356
PHP
alexismolineau/OpenClassrooms
/PHP/POO/TP_2/index.php
UTF-8
4,423
3.1875
3
[]
no_license
<?php //------------------------------ // Charchement des Classes //------------------------------ function loadClass($class){ require $class . '.php'; } spl_autoload_register('loadClass'); //------------------------------ // Session Gestion //------------------------------ session_start(); if (isset($_GET['log...
true
e47b73fe4b910d3beaab00a746cb3a94340bd147
PHP
jhonharoldpizarro2021/agricolaApp
/querys/q_informe_costos.php
UTF-8
3,328
2.515625
3
[]
no_license
<?php session_start(); ob_start(); $retorno = array(); if( $_POST ){ include "../functions.php"; $con = start_connect(); if( $con ){ switch ( $_POST["opcion"]){ case 1: //Consultar todos $query = " SELECT * FROM qryInformeCostos WHERE id_finca=".$_POST["finca"]." "; $re...
true
ae81f87dfe291586fe18e2cb1ef8530080064749
PHP
RenLiZhou/laravel_admin
/app/Http/Controllers/Controller.php
UTF-8
982
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Routing\Controller as BaseController; use Illuminate\Support\Facades\Validator; class Controller extends...
true
f8b576e114554e94365232a843ca549b298cc800
PHP
netgen-layouts/layouts-contentful
/lib/Routing/EntrySluggerInterface.php
UTF-8
305
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Netgen\Layouts\Contentful\Routing; use Netgen\Layouts\Contentful\Entity\ContentfulEntry; interface EntrySluggerInterface { /** * Returns the slug for the provided entry. */ public function getSlug(ContentfulEntry $contentfulEntry): string; }
true
b0d7c95069f8126848257dbca6f08b9480baf463
PHP
hemanthcmbadoor/laravellogin
/app/Http/Controllers/RegisterController.php
UTF-8
2,253
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Member; use Illuminate\Http\Request; class RegisterController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return view('layouts.register'); ...
true
42e089ec4638894bed82e40ad2bbde973a0fadab
PHP
Edwin-En/Accedo
/3. API con PHP/PokemonAPI/login.php
UTF-8
1,504
2.921875
3
[]
no_license
<?php // Inicio de sesion, requiere una cuenta ya registrada en la base de datos // Se ingresa con email y contraseña session_start(); if (isset($_SESSION['user_id'])) { header('Location: /PokemonAPI/listapokemones.html'); } require 'database.php'; if (!empty($_POST['email']) && !empty($_POST['password...
true
4d2dfaa51b0edabb9fecb4217f28af34635c2a55
PHP
eskguptha/php
/read_csv.php
UTF-8
824
2.921875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <h1>Read data from csv using php</h1> <table class="table table-striped table-hover journal_table"> <thead> <th>SKU</th> <th>Name</th> <th>Category</th> <th>Price</th> <th>Qty</th> </thead> <tbody> <?php $file = "p...
true
19ddef5195ac36e49aef493cb42e45529ac43e66
PHP
zikezhang/LaravelAdmin
/src/Verecom/Admin/User/Form/PasswordForm.php
UTF-8
2,222
2.8125
3
[ "MIT" ]
permissive
<?php namespace Verecom\Admin\User\Form; use Event; use Verecom\Admin\User\Repo\AdminUserInterface; use Verecom\Admin\Services\Validation\ValidableInterface; use Verecom\Admin\User\Repo\UserNotFoundException; use Verecom\Admin\User\UserMailerInterface; class PasswordForm implements PasswordFormInterface { /** ...
true
28f42776206c068a3fb1a5e3479eca82fefbbf6c
PHP
aheadWorks/module-langshop
/Api/Data/TranslatableResource/PaginationInterface.php
UTF-8
1,107
2.71875
3
[]
no_license
<?php namespace Aheadworks\Langshop\Api\Data\TranslatableResource; interface PaginationInterface { /** * Set page * * @param int $page * @return $this */ public function setPage(int $page); /** * Get page * * @return int|null */ public function getPage(): ?...
true
353404a5c1f02f03e98f03719301826d3078e4db
PHP
nyachomofred/SAICA_GROUP_WELFARE_MANAGEMENT_SYSTEM
/app/Paymenthistory.php
UTF-8
1,142
2.578125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Paymenthistory extends Model { // protected $fillable=[ 'student_id', 'amount_paid', 'payment_mode', 'reference_no', 'date_paid', 'receipt_no' ]; public function setStudentIdAtt...
true
e363598aa8ad134e038d964173d661c38573641d
PHP
moahmedmish/code_repository
/app/Http/Controllers/RepositoryController.php
UTF-8
1,377
2.65625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Http\Requests\FilterDataRequest; use App\Services\RepositoryIntegrationServices; use Illuminate\Http\Request; use Illuminate\Http\Response; class RepositoryController extends Controller { /* * @var OBJECT repositoryIntegrationServices * */ private $repo...
true
955f0a07895735b60f4327c756169bc827da9f9d
PHP
koftikes/symfony-adminlte-bundle
/src/Model/NotificationInterface.php
UTF-8
736
2.765625
3
[ "MIT" ]
permissive
<?php namespace SbS\AdminLTEBundle\Model; /** * Interface NotificationInterface. */ interface NotificationInterface { /** * Types of notice. */ const TYPE_SUCCESS = 'success'; const TYPE_INFO = 'info'; const TYPE_WARNING = 'warning'; const TYPE_DANGER = 'danger'; /** ...
true
d1e83656b94591d78e33d940af98b649c65c3f1a
PHP
junaidzx90/subs-activations
/inc/activated_users_table.php
UTF-8
10,472
2.671875
3
[]
no_license
<?php class Activated_Users extends WP_List_Table { /** * Prepare the items for the table to process * * @return Void */ public function prepare_items(){ $columns = $this->get_columns(); $hidden = $this->get_hidden_columns(); $sortable = $this->get_sortable_columns()...
true
a010d320967cb31a4cd28b20f2eb45c8b8a536e5
PHP
xiebruce/PicUploader
/vendor/cloudinary/cloudinary_php/tests/TagTest.php
UTF-8
45,334
2.546875
3
[ "MIT" ]
permissive
<?php namespace Cloudinary\Test; use Cloudinary; use Cloudinary\Cache\Adapter\KeyValueCacheAdapter; use Cloudinary\Cache\ResponsiveBreakpointsCache; use Cloudinary\Curl; use Cloudinary\Test\Cache\Storage\DummyCacheStorage; use DOMDocument; use PHPUnit\Framework\TestCase; /** * Class TagTest */ class TagTest extends...
true
98b05ed17c6b2767ad5c61a6fa19ce374ab51cf7
PHP
geertvangent/ects
/Application/Discovery/Module/TrainingInfo/Implementation/Bamaflex/SubTrajectory.php
UTF-8
2,032
2.796875
3
[]
no_license
<?php namespace Ehb\Application\Discovery\Module\TrainingInfo\Implementation\Bamaflex; use Ehb\Application\Discovery\DiscoveryItem; class SubTrajectory extends DiscoveryItem { const PROPERTY_SOURCE = 'source'; const PROPERTY_TRAJECTORY_ID = 'trajectory_id'; const PROPERTY_NAME = 'name'; private $cour...
true
dca0c6f61110f1915cc1f6da78b2e7d755eb7eed
PHP
codingmetta/webshop-plenty-planty.github.io
/scripts/registration-submit.php
UTF-8
1,466
3.203125
3
[]
no_license
<?php /**@file registration-submit.php * @brief Script connects to database and registers a * new user with submitted data. * * @author Talia Deckardt */ require'login.php'; $conn = new mysqli($servername, $username, $password, $dbname); $salt1 = "qm&h*"; $salt2 = "pg!@"; ...
true
2551d4cd6a250f478909d7a972051a86d892c64f
PHP
bZez/SF5-GRC
/src/Entity/Partner.php
UTF-8
1,907
2.75
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\PartnerRepository") */ class Partner { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column...
true
0bfe953c03db6e83aa9c8b79ff1b592349296d95
PHP
mildphp/framework
/src/Mild/Support/Events/LocaleUpdated.php
UTF-8
320
2.640625
3
[]
no_license
<?php namespace Mild\Support\Events; use Mild\Event\Event; class LocaleUpdated extends Event { /** * @var string */ public $locale; /** * LocaleUpdated constructor. * * @param $locale */ public function __construct($locale) { $this->locale = $locale; } }
true
60cff38b1dc0ce25f5af042eab05ce7e87843af1
PHP
impact-pt/impact-ios
/PhP/createApmt.php
UTF-8
882
2.703125
3
[]
no_license
<?php //Creates appointment in database $con=mysqli_connect("db.sice.indiana.edu","i494f18_team13","my+sql=i494f18_team13","i494f18_team13"); if (!$con) { die("Failed to connect to MySQL: ".mysqli_connect_error. "\n"); } else { echo "Connected to the database"; } $userid = $_GET['userid'...
true
c4994521d8f9788f619f7a2e43097b1d4e9ef1e4
PHP
kolholga/oop
/app/lib/User.php
UTF-8
2,109
3.671875
4
[]
no_license
<?php namespace Ddd\fff; //private - свойства и методы доступные только в этом/текущем классе class User { private $name; //свойство/ по умолчанию null private $age; //свойство/ по умолчанию null //private const LOGIN = 'admin'; // константа принадлежит классу /* public function __construct($n, $a) //...
true
ed7403019c0b50ada63c9d649535c3fd06ce9a74
PHP
pimpmypixel/confirmit-authoring
/src/StructType/QuestionFormBase.php
UTF-8
9,704
2.65625
3
[]
no_license
<?php namespace Confirmit\Authoring\StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for QuestionFormBase StructType * @subpackage Structs */ abstract class QuestionFormBase extends FormBase { /** * The StartPosition * Meta informations extracted from the WSDL ...
true
a8c1eecbc7f0ebc4290620f66ae3b1e7e88ecff3
PHP
MorisPae/PHPTraining
/20170508/test1.php
UTF-8
139
3.328125
3
[]
no_license
<?php $var_str = "Hello world"; $var_int = 8; $var_float = 10.5; echo $var_str . "<br>" . $var_int ."<br>". $var_float; ?>
true
b0b69ee2b1dcb7587636235c70dd5abfa6536d29
PHP
orangeShadow/pastebin-api
/src/Repositories/PastebinRepository.php
UTF-8
2,570
2.859375
3
[]
no_license
<?php declare(strict_types = 1); namespace OrangeShadow\PastebinApi\Repositories; use OrangeShadow\PastebinApi\Exceptions; use GuzzleHttp\Client; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Exception\ClientException; class PastebinRepository { private $pastebin_host = "https://pastebin.com/"; private $api...
true
9fc9c4355f07c88fe5e04a7839b35a84a69bfdf9
PHP
HaruItari/target_21
/common/components/WebUser.php
UTF-8
4,234
2.796875
3
[]
no_license
<?php /** * Базовый класс, представляющий пользователя. */ class WebUser extends CWebUser { /** * @see CWebUser::getRole() */ public function getRole() { if ($user = $this->getModel()) { return Yii::app()->db->createCommand(" SELECT ...
true
043b5fbce711fc4a876aba984ccdac3894bcf3ae
PHP
jfoxworth/makstudio
/database/migrations/2019_09_03_082133_create_builds_table.php
UTF-8
982
2.921875
3
[]
no_license
<?php /* The designs table holds the overall data for each type of design. The instance represents a given instantiation of a model or design. A build is an iteration of a given instance. There can be multiple builds for each */ use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; ...
true
c0db680a174e29ef21182cb0578569f8a3cee0d0
PHP
JuanRobles2164/CustomLaravelVersion
/app/Console/Commands/Helpers/MakeViewHelper.php
UTF-8
663
2.78125
3
[]
no_license
<?php namespace App\Console\Commands\Helpers; class MakeViewHelper{ /** * @param string Cadena que representa la plantilla maestra a utilizar. Ej: Master_Layout * @param array Array que representa las secciones de las que comprenderá la vista. Ej: content,custom_scripts * @return string Cadena que r...
true
a7f83a270a0a9909bc5da4f133bb044f4c090aa1
PHP
divyaramanan/Server-Side-Processing---PHP
/authorize.php
UTF-8
885
2.8125
3
[]
no_license
<?php $values = array(); foreach($_POST as $item) { $item = trim($item); $values [] = $item; } $user = $values[0]; $pass = $values[1]; $rep = $values[2]; $valid = false; if(strlen($user)==0) { echo "*User Name is Required"; exit; } if(strlen($pass)==0) { echo "*Password is Required"; exit; } $raw_...
true
52be89f86457ce0223d902d6f455a526a1406a5e
PHP
StereoFlo/Example-Laravel
/engine/app/Models/RoleUser.php
UTF-8
1,840
2.84375
3
[]
no_license
<?php namespace RecycleArt\Models; /** * Class RoleUser * @package RecycleArt\Models */ class RoleUser extends Model { /** * @var string */ protected $table = 'role_user'; /** * @var array */ protected $fillable = [ 'role_id', 'user_id', ]; /** * @param in...
true
76737d51eeedea01987cccb61efca92af5478956
PHP
gaoxiangbo9527/php-manual
/Examples/Language Reference/Constants/Syntax/Example #1 Defining Constants.php
UTF-8
141
2.578125
3
[]
no_license
<?php define("CONSTANT", "Hello world."); echo CONSTANT; // outputs "Hello world." echo Constant; // outputs "Constant" and issues a notice.
true
26593dacc938a077d2d31d457ec392d924d72ad6
PHP
pickupgame/pickupgame
/profilepage.php
UTF-8
1,937
2.578125
3
[ "Apache-2.0" ]
permissive
<?php session_start(); include_once('db/sql_functions.php'); if(isset($_GET['UserID']) && checkifUserExists($_GET['UserID'])) { $userID=$_GET['UserID']; $result=getUserInfo($userID); $name=$result["Name"]; $age=$result["Age"]; $username=$result["UserName"]; $imageLocation=$result["ImageLocation"]; ?> <table cla...
true
d98eb5ea9d92dbc065cb468b1b09f1893d52d0aa
PHP
mctech4/mvc-php
/lib/app/util/hash.php
UTF-8
593
2.78125
3
[]
no_license
<?php namespace app\util; class hash { private static $password_algo = "whirlpool"; private static $password_salt = "passwordsalty"; private static $data_algo = "md5"; private static $data_salt = "datasalty"; public static function load($algo, $data, $salt) { $ctx = hash_init($algo, HASH_HMAC, $salt); hash_...
true
c870b9fec403d5748348a56e9a65e0d0142cfbd6
PHP
pengshizhong/code_repository
/php/testConstruct.php
UTF-8
117
2.875
3
[]
no_license
<?php class father{ function __construct(){ echo "father"; } } class son extends father{ } $a=new son();
true
bcbc412bb57d4e6ac9819b9d7afd249e83a2c661
PHP
echoHolaSarabia/CRM-PHP
/admin/modulos/mod_noticiasORIGINAL/ajax/recargar_planillas.php
ISO-8859-3
2,638
2.640625
3
[]
no_license
<?php include_once("../../../../configuracion.php"); include_once("../../../includes/conexion.inc.php"); if ($_POST['id_seccion'] != "nada") { if ($_POST['id_seccion'] < 0) $_POST['id_seccion'] = -$_POST['id_seccion']; if (isset($_POST['id_seccion']) && ($_POST['id_seccion'] != "")) { $c = "SELECT id_pad...
true
c38a73e00956fa69f795112d70218a1a411e8558
PHP
andrasq/quicklib
/test/lib/Quick/Rest/AppRunnerTest.php
UTF-8
9,073
2.640625
3
[ "Apache-2.0" ]
permissive
<? /** * Copyright (C) 2013 Andras Radics * Licensed under the Apache License, Version 2.0 */ class Quick_Rest_AppRunnerTest_EchoController implements Quick_Rest_Controller { public function echoAction( Quick_Rest_Request $request, Quick_Rest_Response $response ) { foreach ($request->getParams() as...
true
44e7c93fa4d1df486888989c30b2c93c15b8108b
PHP
netzmacht/tapatalk-client-api
/src/Netzmacht/Tapatalk/Api/Users/User.php
UTF-8
1,274
2.96875
3
[]
no_license
<?php /** * @package tapatalk-client-api * @author David Molineus <david.molineus@netzmacht.de> * @copyright 2014 netzmacht creative David Molineus * @license LGPL 3.0 * @filesource * */ namespace Netzmacht\Tapatalk\Api\Users; use Netzmacht\Tapatalk\Transport\MethodCallResponse; class User { /**...
true
b2db89ce7666651da494b824d1fa72f9e16588c9
PHP
lx1986tao16/tandyBlog
/app/Http/Controllers/Admin/TagsController.php
UTF-8
1,636
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use App\Models\Tag; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class TagsController extends Controller { public function index() { $tags = Tag::all(); return view('admin.tags.list', compact('tags')); } public functio...
true
f6526cf0af8ac918ebb9e87c8f373b3c64a8d634
PHP
wwrona/php
/powitalna.php
UTF-8
559
3.28125
3
[]
no_license
<?php $obrazki = array('1.png', '2.png', '3.png', '4.png', '5.png', '6.png'); shuffle($obrazki); ?> <html> <head> <title> Strona powitalna</title> </head> <body> <h1>Części samochodwe</h1> <div align="center"> <table width = 100%> <tr> <?php /* Poniższe wkłada obrazki w tabelę for ($i = 0; $i <3; $i++) { echo "<td...
true
6f166812d885eb0b9a553d49bf06eef21f39b141
PHP
marscore/hhvm
/hphp/test/zend/good/ext/standard/tests/strings/htmlspecialchars_decode_variation6.php
UTF-8
1,043
3.5625
4
[ "Zend-2.0", "PHP-3.01", "MIT" ]
permissive
<?php /* Prototype : string htmlspecialchars_decode(string $string [, int $quote_style]) * Description: Convert special HTML entities back to characters * Source code: ext/standard/html.c */ /* * testing whether htmlspecialchars_decode() is binary safe or not */ <<__EntryPoint>> function main() { echo "*** Testing...
true
0854c5788103ec628c79b802f09496d9beed8735
PHP
JvMolli/2DawServidor
/examenPhp/controllers/persona.php
UTF-8
961
3.296875
3
[]
no_license
<?php class Persona { public $nombre; public $apellidos; public $sexo; public $edad; public $telefono; public $imagen; public $contraseña; function __construct($nombre, $apellidos, $sexo, $edad, $telefono, $contraseña, $imagen) { $this->nombre = $nombre; $this->apellido...
true
db9724d43ce97b4f11e4d54e28ad08c40438f580
PHP
rozinCodes/school-management
/API/application/controllers/api/Login.php
UTF-8
1,927
2.671875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php require APPPATH.'libraries/REST_Controller.php'; class Login extends REST_Controller { public function __construct() { parent::__construct(); //load database $this->load->database(); $this->load->model(array("api/student_model")); $this->load->model(array("api/com...
true
64e2e363e1ec47d2ea38f353e75633e09098d4b8
PHP
andreadlm/unito
/tweb/Vuvuzela/services/functions/authors.php
UTF-8
1,073
2.8125
3
[]
no_license
<?php # Selects a randomly ordered list of the :num authors that have written the most # articles and have set the profile picture const AUTHOR_QUERY = 'SELECT * FROM ( SELECT coalesce(user.complete_name, user.username) as name, user.img FROM us...
true
7a9398b48162c198ba025f87637b1dc6ec76e7c0
PHP
big-javascript-fan/HyonMoo-WooCom
/hyunmoo/framework/theme/shortcodes/one_half.php
UTF-8
686
2.734375
3
[]
no_license
<?php // Column one_half shortcode ////////////////////////////////////////////////////////////////// function hyunmoo_shortcode_one_half($atts, $content = '') { $default_atts = shortcode_atts( array( 'last' => 'no', ), $atts); # Overwrite Default Attributes $atts = shortcode_atts( $defaul...
true
a9c8407a8d2770795c860bcf971c304185a0313a
PHP
nachovazquez1990/mongril_club
/public_html/admin/model/consumo_class.php
UTF-8
4,804
2.59375
3
[]
no_license
<?php /*********************************************************** CLASE - read_by_id($id) - read_by_name($consumo) - read_all_consumos($consumo, $precio, $consumo) - create_consumo($consumo, $precio, $consumo(numero)) - delete_consumo($id) - update_consumo($consumo, $precio, $consumo(numero)) ********************...
true
144c2685e7c760594d90bcc317930f9cd4c96572
PHP
gcarneiro/sheer
/sheer/core/action/queryGenerator/Add.php
UTF-8
2,892
3.1875
3
[]
no_license
<?php namespace Sh\QueryGenerator; /** * @author guilherme * * Classe geradora de querys para inserção a partir de ActionHandlers * */ class Add { /* * Query padrão */ const QUERY_PATTERN = 'INSERT INTO {table} {fieldlist} VALUES {values}'; /** * @var \Sh\ActionHandler */ protected $actionHandle...
true
7245389bf5ad8ab0a8174c6b297e4f8e673e62e0
PHP
Ashiyro/Mon-Framework
/Components/Router/Router.php
UTF-8
1,445
2.96875
3
[ "MIT" ]
permissive
<?php namespace Components\Router; use Psr\Http\Message\ServerRequestInterface; use Zend\Expressive\Router\FastRouteRouter; use Zend\Expressive\Router\Route as ZendRoute; /** * Register and match routes */ class Router { /** * @var FastRouteRouter */ private $router; public function __constr...
true
51418500e4421e4f5773232a7df85b39db603e6f
PHP
commercetools/commercetools-sdk-php-v2
/lib/commercetools-api/src/Models/ShippingMethod/ShippingMethodAddZoneActionBuilder.php
UTF-8
1,760
2.515625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * This file has been auto generated * Do not change it. */ namespace Commercetools\Api\Models\ShippingMethod; use Commercetools\Api\Models\Zone\ZoneResourceIdentifier; use Commercetools\Api\Models\Zone\ZoneResourceIdentifierBuilder; use Commercetools\Base\Builder; use Commerceto...
true
3965246462eb3b518e19185905c4c9a77144d973
PHP
mcordingley/HashBin
/src/Hasher.php
UTF-8
222
3.109375
3
[ "MIT" ]
permissive
<?php namespace mcordingley\HashBin; interface Hasher { /** * @param string $input * @return int A signed integer between PHP_INT_MIN and PHP_INT_MAX */ public function hash(string $input): int; }
true
6adc43c4acb4f8c1a1f71a56821040b086718d64
PHP
iamluc/GloomyPagerBundle
/RESTConnector/SlickGrid.php
UTF-8
1,538
2.515625
3
[ "MIT" ]
permissive
<?php namespace Gloomy\PagerBundle\RESTConnector; class SlickGrid extends RESTBase { public function __construct($request, $pager, array $config = array()) { parent::__construct($request, $pager, $config); } public function handle() { // items per page $perPage = $this->_r...
true
e241420ba1f687eb110432bd2be84b2297dabe76
PHP
hanxiao84322/coach_system
/models/Activity.php
UTF-8
5,233
2.671875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "activity". * * @property integer $id * @property string $name * @property integer $category * @property integer $level_id * @property integer $recruit_count * @property string $sign_up_begin_time * @property string $sign_up_end_ti...
true
0fd6ed1f77dbe0c992f76b3fb542f199cfdef076
PHP
JayDeeJaye/anaconda-jdj-f
/apis/apiHeader.php
UTF-8
947
2.796875
3
[]
no_license
<?php // Common exception handler, returns an error response with the message in it set_exception_handler(function ($e) { $code = $e->getCode() ?: 400; header("Content-Type: application/json", NULL, $code); echo json_encode(["error" => $e->getMessage()],JSON_PRETTY_PRINT); exit; }); // Get the request verb $verb...
true
673f1c6173757c3db81787284e7288497f6f10c2
PHP
andrii-androshchuk/api-framework
/framework/configuration/configuration.class.php
UTF-8
7,908
2.84375
3
[]
no_license
<?php /** * Configuration * * The class that alllows to work with configuration. * All of them are loads from .cgf file from app path. * * Public methods: * @method initialize(string : name of configuration's file); * @method get(string : key); * @method instance(); * @method loadFromArray(array...
true
cc2cb4e911a729be112a191245f99d677d7e1800
PHP
savalonso/SEVRI
/controladora/ctrUsuarios.php
UTF-8
3,286
2.734375
3
[]
no_license
<?php header("Content-Type: text/html; charset=iso-8859-1"); class ctrUsuarios { function ctrUsuarios(){} function insertarUsuarios(){ include_once ("../dominio/dUsuario.php"); include_once ("../data/dtUsuario.php"); $usuario = new dUsuario; $usuario->setCedula($_POST['cedula']); $usuario->setNo...
true
970098632fbc6a98a0737868a77674a717fe5547
PHP
fdask/nottingham
/src/Player.class.php
UTF-8
4,372
3.40625
3
[]
no_license
<?php namespace fdask\Sheriff; /* * represents a player in the game **/ class Player { /** constants to identify which player deck one might want to access **/ const DECK_HAND = 'deckhand'; const DECK_PUBLICSTAND = 'deckpublicstand'; const DECK_HIDDENSTAND = 'deckhiddenstand'; /** @var string the name of the pla...
true
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
44