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
698dbeef849f53dba0b9f1c6dcf84cc3ad70592d
PHP
evantbyrne/burner
/burner/command/generate/hash/secret.php
UTF-8
1,236
3.046875
3
[ "CC-BY-4.0", "CC-BY-3.0" ]
permissive
<?php namespace Core\Command; /** * Generate Hash Secret Command * @author Evan Byrne */ class Generate_Hash_Secret { /** * Help */ public function help() { echo "\ngenerate_hash_secret <config>\n\n"; echo "Description:\n"; echo "\tCreates a random string and sets it to 'hash_secret'\n" . "\tconf...
true
0ef2d2979b08c4b51677fcc90096aec5c44f65b4
PHP
Proclasse/Mini-projet-2
/new_menu.inc.php
UTF-8
1,172
2.703125
3
[]
no_license
<?php mb_internal_encoding('UTF-8'); // traitement pour indiquer à php l'utilisation de l'encodage en UTF-8 (màj : ne fonctionne toujours pas...) // ce fichier reprend dynamiquement le menu en fonction des ajouts de l'admin echo ' <nav id="menu"> <ul> <li> <a href="index.php">Présentation</a> </li> <hr /> '...
true
35dd207e316d683ffc1e9f09b7a1e8911c0a32d0
PHP
EkanMagnia/emaghero
/index.php
UTF-8
1,231
2.859375
3
[]
no_license
<?php use Hero\Entity\Player; use Hero\Helper\Output; use Hero\Entity\WildBeast; use Hero\Service\BattleService; use Hero\Service\FirstAttackerService; use Hero\Service\LuckService; use Hero\Service\Skill\SkillResolverService; ini_set( 'display_errors', 1 ); ini_set( 'display_startup_errors', 1 ); error_reporting( E_...
true
74dece1cf9032b2abcec87bbf44c655e54103c76
PHP
WiebedeBoer/threekingdoms
/database/migrations/2020_06_15_190146_create_stances_table.php
UTF-8
819
2.53125
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateStancesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('stances', funct...
true
cad6f43d4cbf547e1032f6c481198f5b30f3491d
PHP
nikola-graor/php
/validacija.php
UTF-8
1,393
2.921875
3
[]
no_license
<?php require 'konekcija.php'; $provera = array ('proizvodjac', 'artikal', 'ncena', 'pcena'); foreach($_POST as $key => $value){ if (in_array($key, $provera)){ if (isset($_POST[$key]) && !empty($_POST[$key])){ $$key = proveri($key); }else{ die("Morate uneti sve parametre!!!"); } } } echo ...
true
7e262d494b3b88f171f7499fefc91a227867009c
PHP
smc87/PokemonGoBot-JSON-Generator
/core.php
UTF-8
925
2.609375
3
[]
no_license
<?php function getAccounts($filename) { $content = file_get_contents($filename, FILE_USE_INCLUDE_PATH); $i = 0; foreach (explode(PHP_EOL, $content) as &$value) { $parameter = explode(';', $value); $account[$i]['username'] = $parameter[0]; $account[$i]['password'] = $parameter[1]; $account[$i]['latitude'] = $...
true
3f95196f1e4c39dd2f88acdbe5c52936d1452afd
PHP
abekedevelop/aviata
/app/Domain/Contracts/Context/Common/FallibleContextPartContract.php
UTF-8
406
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Domain\Contracts\Context\Common; use Throwable; /** * Interface FallibleContextPartContract * * @package App\Domain\Contracts\Context\Common * @method setFail(Throwable $fail) */ interface FallibleContextPartContract { /** * @return bool */ public function hasFail(): bool; ...
true
cf9da77ab995873446c4488be1a3ca416d264668
PHP
Lyv/symfony-3wa
/src/Troiswa/PublicBundle/Controller/ActeurController.php
UTF-8
6,257
2.671875
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace Troiswa\PublicBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; #note1 use Troiswa\PublicBundle\Entity\Acteur; use Symfony\Component\httpfoundation\request; #note2 use Troiswa\PublicBundle\Form\ActeurType; //pour débugger use Doctrine\Common\Util\Debug; use Symfony\Com...
true
2bf03308c2a27a6dba9e84f6814ea53b41591dc0
PHP
jonathangreco/jonathan
/module/User/tests/UserTest/Framework/TestCase.php
UTF-8
1,062
2.515625
3
[]
no_license
<?php /** * @extends PHPUnit_Framework_TestCase * Permet de récupérer l'entity Manager en utilisant la factory et de faire d'autres actions * Accessible dans nos classe de test ! On factorise l'accès à l'EntityManager * @package User * @author Jonathan Greco <jgreco@docsourcing.com> */ namespace UserTest\Fram...
true
5d3565a3ecdafd9e7fb97deec9cf45bad56eac85
PHP
TrejoYahir/Policontacto
/app/Policontacto/Managers/VacanteManager.php
UTF-8
227
2.515625
3
[ "MIT" ]
permissive
<?php namespace Policontacto\Managers; class VacanteManager extends BaseManager { public function getReglas() { $reglas = [ 'descripcion' => 'required|max:500', 'nombre' => 'required' ]; return $reglas; } }
true
390cc37fe4c8c3de8aa7f2cbdb17f54f22b23211
PHP
Laboralphy/o876-psyl
/lib/psyl/Runner.php
UTF-8
1,514
2.96875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: ralphy * Date: 14/09/17 * Time: 17:40 */ namespace O876\Psyl; require_once 'Modules/Math.php'; use O876\Psyl\Modules\Math; /** * Class Runner * @package O876\Psyl * @class Runner * * a runner will parse and evaluate a source. * if an error occurs, the runner is ab...
true
002e98551bd0ecaf0400d5b8f875f968eff9ce18
PHP
DeivissonFelipe/SGPE
/app/Http/Controllers/ExameController.php
UTF-8
3,210
2.65625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Exame; use App\Plano; use App\Http\Controllers\Controller; use App\Http\Requests\ExameRequest; class ExameController extends Controller{ /** * Renderiza a página de index dos exames, dado um plano selecionado * @param int $id - identific...
true
b9e1fad2bdb3646511e8cd3aefb2390d6a435170
PHP
chinleung/verbose-localization
/src/HasVerboseLocalization.php
UTF-8
902
2.53125
3
[ "MIT" ]
permissive
<?php namespace ChinLeung\VerboseLocalization; trait HasVerboseLocalization { use Concerns\HasAfroAsiaticVerboseMethods, Concerns\HasAustronesianVerboseMethods, Concerns\HasDravidianVerboseMethods, Concerns\HasFrenchCreoleVerboseMethods, Concerns\HasHmongMienVerboseMethods, ...
true
1555838bee39f89e976c481c511f9759928d6fd2
PHP
fontenele/kf
/src/Kf/View/Html/InputHidden.php
UTF-8
790
2.78125
3
[]
no_license
<?php namespace Kf\View\Html; class InputHidden extends Input { /** * @param string $name * @param string $label * @param string $value * @param array $options * @throws \Exception */ public function __construct($name, $value = null, $options = []) { try { pa...
true
9bf58a4285704c21d90e59dd921eb801802b5a2d
PHP
nicowollenzin/comments
/post.php
UTF-8
941
2.578125
3
[]
no_license
<!doctype html> <html> <head> <meta charset="utf-8" /> <title>Kommentare zu <?php echo $_GET['id']; ?></title> <link rel="stylesheet" href="./comments.css" /> </head> <body> <?php require_once("config.php"); if(isset($_POST['name'], $_POST['comment'], $_POST['spam-protection']) && $_POST['spam-protection'] == 42){...
true
310e2424b077d3fd00a507f8cbeecaef6bacbb5a
PHP
simple-es/event-sourcing
/tests/Core/MetadataTest.php
UTF-8
3,167
2.5625
3
[ "MIT" ]
permissive
<?php /** * @license https://github.com/simple-es/event-sourcing/blob/master/LICENSE MIT */ namespace SimpleES\EventSourcing\Test\Core; use SimpleES\EventSourcing\Metadata\Metadata; /** * @copyright Copyright (c) 2015 Future500 B.V. * @author Jasper N. Brouwer <jasper@future500.nl> */ class MetadataTest ext...
true
8e223989f8af134c1b807af73966f4cf66d6c6bc
PHP
rohitshrotriya/cricketmatchdemo
/app/Fixture.php
UTF-8
817
2.578125
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Fixture extends Model { /** * The attributes that are mass assignable. * * @var array */ //public $timestamps = false; protected $fillable = [ 'team1_id', 'team2_id', 'tournament_id','level_id','winner_id','sta...
true
7ac935eff84f2c3a790347c4132876bea9762edc
PHP
Krystopher06/PHP-MYSQL
/PHP&SQL/Niveau_2_Exercice_1/SansFramework/resetPasswordV2.php
UTF-8
4,767
2.625
3
[]
no_license
<!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <!-- https://www.developpez.net/forums/d1417886/php/langage/genere-url-unique/ --> <body> <?php require_once('config.php'); func...
true
92b2d4fc625527c7bb67d8880031000c070580e2
PHP
scriptzteam/newzNZB-UseNet-Indexer
/www/lib/smarty/plugins/modifier.expires.php
UTF-8
465
3.28125
3
[]
no_license
<?php /** * Smarty date modifier plugin * Purpose: converts unix timestamps or datetime strings to words * Type: modifier<br> * Name: expires<br> */ function smarty_modifier_expires($date) { if ($date == "") return ""; $now = new DateTime(); $dt = new DateTime($date); $interval = $dt->diff...
true
1329e25ff112fe64c17d6ac81795655ef4f95a61
PHP
habibhaidari1/foodcart-server
/database/seeders/RegionSeeder.php
UTF-8
3,009
2.578125
3
[]
no_license
<?php namespace Database\Seeders; use App\Postcode; use App\Rate; use App\Region; use Illuminate\Database\Seeder; class RegionSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // Kassel 1 $region = Region::create(); ...
true
be9b17c1f00db7db5731dc6dfd598af50b934253
PHP
SAP55/yii2-order-management
/models/search/OrderAttributeSearch.php
UTF-8
1,375
2.578125
3
[]
no_license
<?php namespace sap55\order\models\search; use yii\data\ActiveDataProvider; use sap55\order\models\OrderAttribute; /** * OrderAttributeSearch represents the model behind the search form about OrderAttribute. */ class OrderAttributeSearch extends OrderAttribute { public $attribute_name; public $assignment; publ...
true
a053627ef910268db7ffbe15d05fcbcc3c466079
PHP
vanzshell/vendorsmgmt
/database/migrations/2021_03_18_153325_create_vendors_official_representatives.php
UTF-8
842
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateVendorsOfficialRepresentatives extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::creat...
true
8f8a69d275c3fbda140819e2576bcdb2761b6b63
PHP
iuliianak/sun
/src/Planeta.php
UTF-8
116
2.625
3
[]
no_license
<?php namespace Space; class Planeta {public $name; public function __construct($name) { $this->name=$name; } }
true
c77228c51f185bb62239e5580086ffdad0b7ef5f
PHP
yonikal56/plumber
/application/models/Galleries_model.php
UTF-8
2,204
2.53125
3
[]
no_license
<?php class Galleries_model extends CI_Model { private $galleries = []; public function __construct() { parent::__construct(); $this->load_galleries(); } public function load_galleries() { $this->galleries = $this->Site_model->get('galleries'); foreach($this->g...
true
1f7793966629ebdc9291b99a9e96557d066066b2
PHP
luisg1992/DISA
/nucleo/Maestro.php
UTF-8
1,489
2.859375
3
[]
no_license
<?php class Maestro { private $_controlador; private $_metodo; private $_argumentos; public function __construct() { if (isset($_GET['url'])) { $url = filter_input(INPUT_GET, 'url', FILTER_SANITIZE_URL); $url = explode('/', $url); $url = array_filter($url); $this->_controlador = array_s...
true
7b98eb659fdc72276409988761897ffb5255e581
PHP
ArthSavsani/cms
/stu_fac/newuser.php
UTF-8
1,078
2.609375
3
[]
no_license
<?php session_start(); $servername = "localhost"; $username = "root"; $password = ""; $dbname = "project"; // Create connection $conn = mysqli_connect($servername, $username, $password, $dbname); // Check connection if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } $fullname=$_POST['first']; $e...
true
c11b9b7aa71f53875e1f433ae7b3e8d47afc06f5
PHP
dbondus/code-samples
/php/2013-log-parser/application/Utils.php
UTF-8
966
3.109375
3
[ "MIT" ]
permissive
<?php namespace application { use Exception; class Utils { /** * Define log file format by first string * * @param string $filePath * @return string */ public function getLogFileFormat($filePath) { $fp = self::openFile($file...
true
6cd846a5eabb07af42748cc44ca006b6799b6f13
PHP
RockHardJim/instinct
/application/libraries/lib/image/qrcode.php
UTF-8
1,635
2.75
3
[]
no_license
<?php /* @abstract You can create a QR code on the fly for URL, TEL, TEXT and EMAIL @example image_qrcode('http://adilbo.com') @param string $data @param string $type [URL, TEL, TXT, EMAIL default=TXT] @param int $size in pixel [default=50] @param string $ec allows recovery of data lost [L=7%,M=15%,...
true
d089a8ee2fe57e89952fa5f5ac061feaa474bb35
PHP
haidangdevhaui/MyShop
/app/Repositories/ProductCategoryRepository.php
UTF-8
740
2.78125
3
[]
no_license
<?php namespace App\Repositories; use App\Models\ProductCategory; use App\Repositories\Contracts\ProductCategoryInterface; class ProductCategoryRepository extends AbstractRepository implements ProductCategoryInterface { public function __construct(ProductCategory $category) { $this->model = $categor...
true
681f277cbd8cc7005c614f83d7f273d20ee115e6
PHP
Azzam79/belajar_php
/kondisional-if.php
UTF-8
197
2.921875
3
[]
no_license
<?php $suhu=36.7; if($suhu > 38){ echo " kamu tidak boleh masuk"; } else if($suhu == 38){ echo "kamu hati-hati"; } else{ echo "kamu boleh masuk"; }
true
73c3513f391a7c210113b250a257ddc406beffb6
PHP
milleyin/TMM_BackEnd
/.svn/pristine/73/73c3513f391a7c210113b250a257ddc406beffb6.svn-base
UTF-8
5,128
2.84375
3
[ "MIT" ]
permissive
<?php /** * UserIdentity represents the data needed to identity a user. * It contains the authentication method that checks if the provided * data can identity the user. */ class UserIdentity extends CUserIdentity { /** * 角色状态异常 代码 * @var unknown */ const ERROR_ROLE_STATUS_INVALID = 3; /*...
true
8abe8c2c9ca3395ec91da7ab887558beefbda43d
PHP
inkover/ev-act
/app/Models/ActivityUrl.php
UTF-8
416
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * @property int $id * @property string $url * @property string $url_hash * @property int $ticks * @property string $last_tick_at * @property string $created_at * @property string $updated_at */ class ActivityUrl extends Model { prot...
true
7f895ed22fc5ee731759c90091652a7bf85d939d
PHP
xbantcl/decorate-proj
/apps/Decorate/Redis/BaseRedis.php
UTF-8
1,213
2.78125
3
[]
no_license
<?php namespace Decorate\Redis; /** * Redis */ use Predis\Client; use Slim\Container; class BaseRedis { protected static $redisInstance = []; protected $config = null; protected $redisPath = ''; public function __construct($config = 'default') { $this->config = $config; $this->...
true
0bf93f8b0e46dc3b31c663572e20279cb2dba25d
PHP
abuenosvinos/courses
/src/Course/Application/EditCourse/EditCourse.php
UTF-8
1,855
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Course\Application\EditCourse; use App\Course\Domain\Entity\CourseCategory; use App\Course\Domain\Entity\CourseLevel; use App\Course\Domain\Event\CourseModified; use App\Course\Domain\Repository\CourseCategoryRepository; use App\Course\Domain\Repository\CourseLevelReposit...
true
29069b22791ed89177086347e96b81c02e2b52ef
PHP
AlejandroLopez96/EjerciciosPHP
/Tema9/ejercicio1/Lagarto.php
UTF-8
388
3.0625
3
[]
no_license
<?php include_once 'Mamifero.php'; class Lagarto extends Animal { public function __construct($s) { parent::__construct($s); } public function escondete() { return "No me vas a encontrar<br>"; } public function nada() { return "Estoy nandando<br>"; } public function agitarAlas() { ...
true
5d059887842afc0c48387d841cf28067ab7fc2fd
PHP
Luisaamj/serialMovies
/app/Http/Requests/MovieStoreRequest.php
UTF-8
2,766
2.5625
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Contracts\Validation\Validator; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Http\Exceptions\HttpResponseException; class MovieStoreRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @ret...
true
c8b2c98c64440885e2a9da8faa473bf60834d4fb
PHP
mehnert-vecam/Symfony
/src/Vest/SharedBundle/Entity/NsNews.php
UTF-8
2,421
2.53125
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace Vest\SharedBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * NsNews */ class NsNews { /** * @var integer */ private $newsId; /** * @var string */ private $newsName; /** * @var string */ private $newsDatum; /** * @var string ...
true
ccad3cf6df94b596a15bcc4136673068e356031d
PHP
NikitaSteamme/wsdl_test
/src/EnumType/TypeOfTransaction.php
UTF-8
933
2.796875
3
[]
no_license
<?php namespace EnumType; use \WsdlToPhp\PackageBase\AbstractStructEnumBase; /** * This class stands for typeOfTransaction EnumType * @subpackage Enumerations */ class TypeOfTransaction extends AbstractStructEnumBase { /** * Constant for value 'TRANSFER_INNER_SYSTEM' * @return string 'TRANSFER_INNER...
true
75aa6f8b453a354ad768ba3c7cf2991c4fe5a063
PHP
swhatele/wipunity
/app/Repositories/Eloquent/Repository.php
UTF-8
9,658
2.734375
3
[]
no_license
<?php namespace App\Repositories\Eloquent; use App\Repositories\Contracts\RepositoryInterface; use App\Repositories\Exceptions\RepositoryException; use App\Repositories\Contracts\CriteriaInterface; use App\Repositories\Criteria\Criteria; use Illuminate\Database\Eloquent\Model; use Illuminate\Container\Contai...
true
e90131fea38dafb6ed9563d44bafeccdb876df82
PHP
tolaku/leonidovna
/admin/auth/enter.php
UTF-8
1,755
2.765625
3
[]
no_license
<?php define('VOROBEY', TRUE); session_start(); include $_SERVER['DOCUMENT_ROOT'].'/config.php'; if(isset($_SESSION['auth']['admin'])) { header("Location: ". PATH ."admin/"); exit; } if($_POST){ $username = trim(mysqli_real_escape_string($db, $_POST['username'])); $password = trim($_POST['password']); $query =...
true
9e4b22b52ccd4166b5ded98cd2c4d1e184797656
PHP
fgct/securepay-api
/src/SecurePayApi/Request/CardPayment/CreatePaymentFromInstrumentRequest.php
UTF-8
769
2.609375
3
[ "MIT" ]
permissive
<?php namespace SecurePayApi\Request\CardPayment; use SecurePayApi\Model\Credential; use SecurePayApi\Model\Response\CardPayment\PaymentObject; use SecurePayApi\Request\RestApiRequest; class CreatePaymentFromInstrumentRequest extends RestApiRequest { protected string $customerCode; public function __constru...
true
3cf598419b9c7034bea33b6b9ea545bcf0ce48e3
PHP
paulmaunders/sylar
/src/Container.php
UTF-8
237
2.546875
3
[ "MIT" ]
permissive
<?php namespace Ionut\Sylar; use Illuminate\Container\Container as BaseContainer; class Container extends BaseContainer { public function __get($k) { return $this[$k]; } public function __set($k, $v) { $this[$k] = $v; } }
true
af8caa3bd39626580868f81e5d9fad2ad5d9a3e4
PHP
adehikmatfr/php7-simple-web-project
/madu/webMadu/validasi/index.php
UTF-8
3,962
2.625
3
[]
no_license
<?php // validasi numeric function angka($a){ if(is_numeric($a)){ return false; } return true; } // validasi huruf function karakter($a){ if(preg_match("/^[A-Za-z ]*$/",$a)){ return false; } return true; } // validasi huruf dan angka function non_karakter($a){ if(preg_match("/^[A-Za-z0-9 -]*...
true
d18c771dc9768f237a1e9ca891683c3a16f72eeb
PHP
magnolia-project/magnolia
/spec/Domain/Model/RepositorySpec.php
UTF-8
1,071
2.671875
3
[]
no_license
<?php namespace spec\Domain\Model; use Domain\Model\Repository; use PhpSpec\ObjectBehavior; use Prophecy\Argument; class RepositorySpec extends ObjectBehavior { function let() { $this->beConstructedWith('KnpLabs', 'magnolia'); } function it_is_initializable() { $this->shouldHaveT...
true
8586697e86c507f41735d5b39eebba187fb28947
PHP
daniel-de-wit/lighthouse-sanctum
/src/GraphQL/Mutations/VerifyEmail.php
UTF-8
2,902
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace DanielDeWit\LighthouseSanctum\GraphQL\Mutations; use DanielDeWit\LighthouseSanctum\Contracts\Services\EmailVerificationServiceInterface; use DanielDeWit\LighthouseSanctum\Traits\CreatesUserProvider; use Exception; use GraphQL\Type\Definition\ResolveInfo; use Illuminate\Auth\A...
true
51160965c38072f5c8d71e9464873b21d9708674
PHP
ahmadfauzaan613/DLI-Edu-Venture-PHP-Back-End
/application/models/M_startup.php
UTF-8
1,577
2.546875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class M_startup extends CI_Model { public $table = 'tbl_startup'; public $id = 'id_startup'; public $order = 'DESC'; //ambil semua data pada tbl_startup function get_all() { return $this->db->get($this->table)->result(); ...
true
589c8103d45198eda88962d27c2dd02bcf1930f3
PHP
builtthorough/ttwttd
/add.php
UTF-8
1,349
2.75
3
[]
no_license
<?php /* Initialize connection to TTWTTD database.*/ require_once 'webapp/init.php'; /* Check if user input has been entered in "ttw_name" input box and, if so, execute a prepared SQL statement to insert such input into "items_ttw" table. */ if(isset($_POST['ttw_name'])) { $name_ttw = trim($_POST['ttw_name']);...
true
43a0715449e25ffc3b0dae5eafad0ac559586d4a
PHP
moovspace/routex-php
/app/Core/Img/Download.php
UTF-8
2,283
3.015625
3
[]
no_license
<?php namespace App\Core\Img; use Exception; class Download { protected $File = ''; protected $Speed = 0; protected $Mb = 1024 * 1024; protected $AllowedExtensions = array(); function __construct($speed = 1){ $this->MaxSpeed($speed); } function DownloadFile($path){ // Add file $this->AddFile($path); ...
true
0ddf358e3e899152bd2e85e0e6fa366b0b5b5953
PHP
ni-c/simpleve
/models/behaviors/readonly.php
UTF-8
887
2.84375
3
[]
no_license
<?php /** * Behaviour for models that access readonly tables. * * @author Willi Thiel * @date 2010-09-01 * @version 0.1 */ class ReadonlyBehavior extends ModelBehavior { /** * Behaviour callback * * You can return false from a behavior's beforeDelete to abort the delete. Return true to all...
true
7668f1e71e021fdc33f3b6545642f04a572102dc
PHP
YenShiangGao/college_project_NetShop
/ggfood/shop/query/member_update.php
UTF-8
970
2.59375
3
[ "MIT" ]
permissive
<?php require_once('get_link.php'); session_start(); $msg = (object)[]; if(isset($_SESSION['id'])){ //連接資料庫 $link = get_link(); $escape = function($str) use (&$link){ return mysqli_real_escape_string($link,$str); }; //檢查資料是否更新 $set = ''; if(isset($_POST['nick'])){ $set .= "nick = {$escape...
true
6478b3e04f5579ee5873398bd53b8f5238d61ea2
PHP
lightster/pickem-app
/src/Lidsys/Football/View/GameTransformation.php
UTF-8
514
2.6875
3
[]
permissive
<?php namespace Lidsys\Football\View; use Lidsys\Application\View\TransformationInterface; use DateTime; use DateTimeZone; class GameTransformation implements TransformationInterface { private $timezone; public function __construct() { $this->timezone = new DateTimeZone('UTC'); } publi...
true
975eba3c0ce0d722e191c5fda1a6218a4dd8f93d
PHP
arvidte/Webbserverprogrammering
/2018-09-20/index.php
UTF-8
269
2.890625
3
[]
no_license
<!DOCTYPE html> <html lang="sv"> <head> <meta charset="utf-8"> <title>Programering</title> </head> <body> <?php //$foo = 1; //echo $foo; //$bar = 2; //echo $bar; //$bar = $foo; $bar = 1; echo $bar; $foo = & $bar; echo $foo; $bar = 2; echo $foo; ?> </body> </html>
true
ff8cc40c140934ad099988faecf8866968f652f7
PHP
moldwebs/TMSystem
/src/Services/TripService.php
UTF-8
2,072
2.515625
3
[]
no_license
<?php namespace App\Services; use App\Entity\Setting; use App\Entity\Trip; use Doctrine\ORM\EntityManager; use Doctrine\ORM\EntityManagerInterface; use setasign\Fpdi\Fpdi; use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; use Symfony\Component\HttpFoundation\ParameterBag; /** * Class T...
true
c3bfa0f10a210fe1bb58bf02227e297c262c43b5
PHP
djkost85/igenblog
/admin/class/class.setting.php
UTF-8
943
2.625
3
[]
no_license
<?php //Message Set include_once'var-message.php'; class Setting{ public function listSetting($dbHandle,$type,$status){ try{ $stmt = $dbHandle->prepare('SELECT * FROM bl_setting WHERE se_type = :type AND se_status = :status ORDER BY se_sort ASC'); $stmt->bindParam(':type',$type); $stmt->bindParam(':stat...
true
702fc0c883de319ed73711a830ca8f452b416003
PHP
ume-kun1015/PHPPlayground
/review/list.php
UTF-8
138
2.84375
3
[]
no_license
<?php $date = date('Y/m/d'); list($year, $month, $day) = explode('/', $date); echo $year . "\n"; echo $month . "\n"; echo $day . "\n";
true
b0dacd4c1a18abf478c3ee86ed61faca1fc462f5
PHP
BenMenking/mud
/class.world.php
UTF-8
2,235
3.078125
3
[]
no_license
<?php class World { private $world; private $rooms = [], $spawn_id; public function __construct($name) { $file = 'worlds/' . strtolower($name) . '.json'; if( file_exists($file) ) { $this->world = json_decode(file_get_contents($file), true); foreach($this->world['r...
true
84202e293ef10a90a3943636f42a3a4be1a23caa
PHP
JhonatanLopez7/proyectoSoftware3
/protected/models/Presupuesto.php
UTF-8
3,009
2.71875
3
[]
no_license
<?php /** * This is the model class for table "presupuesto". * * The followings are the available columns in table 'presupuesto': * @property integer $codigo_Presupuesto * @property double $porcentaje_maximo * * The followings are the available model relations: * @property Formulario[] $formularios * @propert...
true
a4b0e2aa4328c008c086b6bda5c1c9f3842ed773
PHP
Akshay-Hegde/KCSARA_MySitemap
/models/mysitemap_m.php
UTF-8
1,090
2.921875
3
[ "Apache-2.0" ]
permissive
<?php defined('BASEPATH') or exit('No direct script access allowed'); class MySitemap_m extends MY_Model { public function get_page_tree() { $all_pages = $this->db ->select('id, parent_id, title, status, uri') ->where('status','live') ->order_by('`order`') ->get('pages') ->result_array(); // Fir...
true
bd3cb3bea389721127cb2b71d20cb91d2ceb951b
PHP
GoldenCodes/vindi-laravel
/src/Models/PaymentProfileModel.php
UTF-8
2,605
2.78125
3
[]
no_license
<?php namespace GoldenCodes\VindiLaravel\Models; use GoldenCodes\VindiLaravel\Services\PaymentProfileService; /** * Class PaymentProfileModel * @package GoldenCodes\VindiLaravel\Models * @see https://vindi.github.io/api-docs/dist/#!/payment_profiles * * @property int id * @property string holder_name * @prope...
true
7288b71c041b75ffc8829972e2ffd4ad707a40a4
PHP
galvao-eti/implementacao-concreta-baseada-em-abstracoes-mrcldejesus
/src/Alfa/Entidade.php
UTF-8
1,872
3.09375
3
[ "MIT" ]
permissive
<?php namespace Alfa; abstract class Entidade implements Abstracao\Entidade{ public static $dependencia; public function __construct(BaseDeDados $base){ self::$dependencia = $base; } public function create($colunas, $valores){ $entidade = $this->getNome(); $colunas = array_keys($atributos); $valore...
true
ec9f5b5853aa7d4152cae21a27b06ac7e844ea63
PHP
Er1cYang/yiiliteforzswidget
/framework/web/CPagination.php
UTF-8
1,836
2.734375
3
[]
no_license
<?php class CPagination extends CComponent { const DEFAULT_PAGE_SIZE=10; public $pageVar='page'; public $route=''; public $params; public $validateCurrentPage=true; private $_pageSize=self::DEFAULT_PAGE_SIZE; private $_itemCount=0; private $_currentPage; public function __construct($itemCount=0) { $this->setItemCount($...
true
3708f2b0e3345c6f33b04698729f8408de5c3c2f
PHP
AntonyMorar/SitiosTuristicos
/controllers/searchSitesController.php
UTF-8
2,283
2.625
3
[ "Apache-2.0" ]
permissive
<?php //Cargamos archivos a ocupar include("../config/dbs.php"); require_once "HTML/Template/IT.php"; $template = new HTML_Template_IT('../templates'); $template->loadTemplatefile("sitesList.html", true, true); // Si se envía el formulario if(isset($_POST['search'])){ // Se carg...
true
790100c1f3c8fe3dffdc6cc8ef929dbf22d07b7c
PHP
abdelrahmanbadr/Business-Days
/app/Domain/Services/BusinessDaysCalculatorService.php
UTF-8
2,860
3.265625
3
[]
no_license
<?php namespace App\Domain\Services; use App\Domain\Contracts\BusinessDaysCalculatorServiceInterface; use App\Domain\Models\Holiday; use DateTime; /** * Class BusinessDaysCalculatorService * @package App\Domain\Services * * This class will be responsible for calculating amount of business days * past the date ...
true
645b5836960c1286aad39b276cefe6f05b0b4f7b
PHP
chubbyphp/chubbyphp-container
/src/Exceptions/ExistsException.php
UTF-8
661
2.71875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Chubbyphp\Container\Exceptions; use Psr\Container\ContainerExceptionInterface; final class ExistsException extends \LogicException implements ContainerExceptionInterface { public const TYPE_FACTORY = 'factory'; public const TYPE_PROTOTYPE_FACTORY = 'prototype factory...
true
8ffbf42eb3cf9d9f269bcdaa7d14d36ec78b7b9d
PHP
iainconnor/cornucopia
/src/IainConnor/Cornucopia/Annotations/TypeHint.php
UTF-8
6,303
2.953125
3
[]
no_license
<?php namespace IainConnor\Cornucopia\Annotations; use IainConnor\Cornucopia\Type; class TypeHint { const ARRAY_TYPE = 'array'; const ARRAY_TYPE_SHORT = '[]'; const NULL_TYPE = 'null'; const TYPE_SEPARATOR = '|'; /** * Map of possible names to a sanitized version. * * @var a...
true
0fe923b8dad964929d2fbc6ccf27a16aef5fb15d
PHP
i0mcodes/iom-repository
/repository/src/Repository/Repository.php
UTF-8
839
2.875
3
[]
no_license
<?php namespace Repositories\Repository; use Repositories\Interfaces\RepositoryInterface; class Repository implements RepositoryInterface { /** * nom de la class model du repository * @var */ protected $model; public function create(array $attributes) { /* appel le function ...
true
3427d43bcbaff446ee21e59e43db7a026a598714
PHP
rishavloomba/Quikr-Reimbursement-systems
/quikr-reimbursementSys/src/Models/User.php
UTF-8
1,933
3.078125
3
[]
no_license
<?php namespace App\Models; class User { protected $id; protected $empid; protected $name; protected $email; protected $location; protected $designation; protected $managerId; protected $department; public function __construct($id , $empid ...
true
948a44ae500a217c3f6c3a91206094fbf59768eb
PHP
fxrootname/php-mt-subscriptions
/src/Model/InitSubscriptionResponse.php
UTF-8
2,297
2.671875
3
[]
no_license
<?php /** * Class InitSubscriptionResponse * * @package DigitalVirgo\MTSubscriptions\Model * @author Adam Jurek <adam.jurek@digitalvirgo.pl> */ namespace DigitalVirgo\MTSubscriptions\Model; use DigitalVirgo\MTSubscriptions\Model\Enum\WebResponseStatus; /** * Class InitSubscriptionResponse */ class InitSubscript...
true
a26954a1e16e0ee551ac32e9bb4fb25fed3ed49c
PHP
diferete/GitHub
/steeltrater/app/controller/ControllerMET_TEC_ModUsuario.php
UTF-8
1,179
2.640625
3
[]
no_license
<?php /* * Classe que implementa os métodos de controle * dos módulos do usuário */ class ControllerMET_TEC_ModUsuario extends Controller { public function __construct() { $this->carregaClassesMvc('MET_TEC_ModUsuario'); } /* * Método que retorna o modulo do usuário, se esta setado $bIni...
true
d4e617982ab3e3d0039f9edc9244f884251c257d
PHP
eki-nrw/mdl
/src/Working/WorkingSubject/Registry.php
UTF-8
2,344
2.703125
3
[ "MIT" ]
permissive
<?php /** * This file is part of the Eki-NRW package. * * (c) Ekipower * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Eki\NRW\Mdl\Working\WorkingSubject; use Eki\NRW\Mdl\Working\WorkingSubject\ActionHandlerInterface; use Reflection...
true
2f23ae126789c8b2cefcd6e43bfe7509d33e2288
PHP
MaslaLT/MVC-Shop-by-Udemy
/MVC_udemy/app/controllers/Pages.php
UTF-8
705
2.5625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: lazeris * Date: 04/09/2018 * Time: 11:13 */ class Pages extends Controller { public function about() { $data =[ 'title' => 'About page', 'description' => 'I am php junior developer. This site is made to show what I can do using OOP ...
true
2cbf67e6bf31ce0205c146102234f357f4cd1700
PHP
HusNet/LaravelSmsUpCh
/src/Events/SmsUpChMessageWasSent.php
UTF-8
879
2.671875
3
[ "MIT" ]
permissive
<?php namespace Husnet\LaravelSmsUpCh\Events; use Husnet\LaravelSmsUpCh\SmsUpChMessage; use Husnet\LaravelSmsUpCh\SmsUpChResponse; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; /** * Class SmsUpChMessageWasSent * @package Hus...
true
bac19b5d9628f935f13a7f1bfdd0a4ac1f74a476
PHP
babul28/SiDeDi
/database/migrations/2019_11_15_094401_create_table_students.php
UTF-8
1,028
2.765625
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateTableStudents extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('students', fun...
true
71c1d4e2a2a749c3acd6416e02c559de1d33ed71
PHP
bryhal/efi-helpers2
/EFI-helpers.php
UTF-8
21,135
2.71875
3
[]
no_license
<?php /* There are 4 really important functions in here: -function efi_create_job($job_id, $extra_job_data = array()) * This creates the job, sets some default that can be overwritten by * $extra_job_data -efi_update_job_part($job_id, $extra_part_data = NULL) * Once the job is created, the job part can be updated ...
true
c7ff6ba50d45e2445b21b399865ae15fc41b7d66
PHP
spurwork/laravel-taxes
/src/Models/Countries/US/Mississippi/MississippiIncomeTaxInformation.php
UTF-8
1,086
2.578125
3
[]
no_license
<?php namespace Appleton\Taxes\Models\Countries\US\Mississippi; use Appleton\Taxes\Classes\WorkerTaxes\BaseTaxInformationModel; use Appleton\Taxes\Countries\US\Mississippi\MississippiIncome\MississippiIncome; class MississippiIncomeTaxInformation extends BaseTaxInformationModel { protected $config_name = 'taxes....
true
a49f41a5c2ac6138918fcd9c3d038dae7f383a8a
PHP
miranavvs/J-registration
/data/data-register.php
UTF-8
1,489
2.578125
3
[]
no_license
<?php require_once 'dbconfig.php'; if($_POST) { $user_name = $_POST['user_name']; $user_email = $_POST['user_email']; $user_sexe = $_POST['gender']; $user_job = $_POST['job']; $user_naiss = $_POST['dob']; $user_password = $_POST['password']; $password = md5($user_password); $datej = date('Y-m-d H:i:...
true
baf83c1d46b8fb924d50d9f72791ace12c4d2445
PHP
glenshappy/apitpl
/common/models/Article.php
UTF-8
3,864
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; use yii\web\Link; use yii\web\Linkable; use yii\helpers\Url; /** * This is the model class for table "article". * * @property integer $id * @property string $title * @property string $content * @property integer $category_id * @property integer $status * @property inte...
true
b50d09de79e3497b70394abecf8db7fca9cd7e0e
PHP
SabinoSis/sabino
/views/product/index.php
UTF-8
447
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php /* @var $this yii\web\View */ ?> <h1>Lstar Produtos</h1> <?php foreach($produtos as $key => $produto):?> <div class="col-md-2"> <img src="<?php echo $produto->image ?>" class="img-responsive" /> <h2><?php echo $produto->model ?></h2> <h3>R$ <?php echo number_format($produto ->price,2,'.',',')?></h3> <...
true
bb9f52fd6b999a56ed80d1d32e0139e2b120d7a3
PHP
that0n3guy/cruddy
/src/Kalnoy/Cruddy/Entity/Columns/Types/Field.php
UTF-8
3,529
2.71875
3
[]
no_license
<?php namespace Kalnoy\Cruddy\Entity\Columns\Types; use Illuminate\Database\Query\Builder; use Kalnoy\Cruddy\Entity\Columns\AbstractColumn; use Kalnoy\Cruddy\Entity\Columns\ColumnInterface; use Illuminate\Database\Eloquent\Model as Eloquent; use Illuminate\Database\Eloquent\Builder as EloquentBuilder; use LogicExcepti...
true
16698d4a43ec33fc65c09bbd73f438e6f0077272
PHP
mger3339/smart_lab
/application/models/Email_hostname_model.php
UTF-8
1,922
2.53125
3
[ "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Email_hostname_model extends Smartlab_model { /** * Enable soft delete */ protected $special_hostnames = array('ludicgroup.com'); /** * Enable soft delete */ protected $soft_delete = TRUE; /** * Protected columns */...
true
eccc2f8276825f7eca3041af97b0de21d82c5ce2
PHP
ViniciusOsmari/sistema-monitoramento
/plataforma-web/equipamentos_cadastro.php
UTF-8
13,239
2.609375
3
[]
no_license
<!DOCTYPE html> <?php // Verifica usuário logado e nível de acesso $nivel_necessario = 5; require_once "codigo.usuario_sessao.php"; // Incluir arquivo de conexão ao BD require_once "codigo.bd_conexao.php"; // Define variáveis e inicializa com valores vazios $gepoc_id = $patrimonio = $num_serie = $equipamento =...
true
b6cb56c066ce972ee2b42d94853b1199fb57212a
PHP
FEJKEN1337/projektinzynieria
/portal/src/Template/Articles/main.ctp
UTF-8
436
2.78125
3
[]
no_license
<!-- Here's where we loop through our $articles query object, printing out article info --> <?php foreach ($articles as $article): ?> <tr> <center> <?php ?> <h1><?= $this->Html->link($article->user_id, ['action' => 'view', $article->id]) ?></h1> </center> <p><?= h($article->body) ?></p> <p><...
true
91c2e6f05f9377075dc4a356aa021f102acd106d
PHP
lulala58/tour
/database/migrations/2018_09_18_180402_create_tours_table.php
UTF-8
1,265
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateToursTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('tours', function ...
true
df3d95dc4269663a3f1cc42d069f62f38fcd083d
PHP
fuzionnz/civimigrate
/civimigratecustomfields.class.inc
UTF-8
6,582
2.65625
3
[]
no_license
<?php /** * @file */ /** * */ abstract class CiviMigrateCustomFields extends Civimigration { // Set to 1 for debug info. protected $debug = 0; protected $json_folder = NULL; protected $customFields = array(); protected $entity = 'custom_field'; /** * */ public function __construct($arguments)...
true
dad4929fa9415a3e20dd1c437020d11505f9eb6e
PHP
Huldula/ESportsBracketBuilder
/php-backend/src/Entities/Game.php
UTF-8
2,212
2.84375
3
[]
no_license
<?php namespace ESportsBracketBuilder\Entities; /** * @Entity @Table(name="games") */ class Game implements \JsonSerializable { /** * @var int * @Id @Column(type="integer") @GeneratedValue */ protected $id; /** * @ManyToOne(targetEntity="Player") * @JoinColumn(name="player1_id"...
true
4a9a3f46da6dce89f33924783a4c4693c005ec8a
PHP
SergioPerezFigueroa/Proyecto_IS-410_1900
/Aplicacion/1-Pantallas HTML/app/class-alumno.php
UTF-8
1,763
2.953125
3
[]
no_license
<?php class Alumno(){ private $idpersona; private $nombre; private $apellido; private $pais; private $email; private $edad; private $sexo; private $telefono; private $direccion; private $idalumno; private $empresa; ...
true
626ebc104b1984c7d7b8e7ae73ea1d76b53349d7
PHP
nrcltd/digital
/app/Plugin/PaypalIpn/Controller/InstantPaymentNotificationsController.php
UTF-8
3,780
2.65625
3
[ "Apache-2.0" ]
permissive
<?php class InstantPaymentNotificationsController extends PaypalIpnAppController { public $name = 'InstantPaymentNotifications'; public $helpers = array('Html', 'Form'); /** * beforeFilter makes sure the process is allowed by auth * since paypal will need direct access to it. */ public function beforeFilter(){...
true
44f457ee22bf0c4ec10be0498492cd5478aea772
PHP
ManavJaiswal19/BountyHunter
/viewtask.php
UTF-8
2,373
2.5625
3
[]
no_license
<?php session_start(); if($_SESSION['sid']==session_id()) { require 'dbconfig/config.php'; try { require "common.php"; require "config.php"; $connection = new PDO($dsn, $username, $password, $options); // fetch data code will go here $sql = "SELECT * FROM taskinfo WHER...
true
5c9bd805ad21932f451646a2efd4117b57d1c09d
PHP
timuradilev/Blog-v1.0
/controller/utility.php
UTF-8
332
2.640625
3
[ "MIT" ]
permissive
<?php function exception_error_handler($severity, $message, $file, $line) { if (!(error_reporting() & $severity)) { // This error code is not included in error_reporting return; } throw new Exception($message."\n".$severity."\n".$file."\n".$line); } set_error_handler("exception_error...
true
7bdd2c72725fdc3a9e08ee3a5a6d46dd0b5bf475
PHP
jerostax/PHP_Carnet_Adresse
/Correction/FCDEV-2019/PROCEDURAL/fonctions.php
UTF-8
512
3.546875
4
[]
no_license
<?php # Les fonctions (perso) define('prenom', 'Guillaume'); function maFonction($arg1, $arg2, $arg3) { echo prenom; return $arg1 + $arg2 * $arg3; } echo maFonction(1, 2, 3); echo $arg1; function tirage($nbBouboulesATirer, $valeurMax) { # $nbBouboulesATirer = 5; # $valeurMax = 49; $loto = []; while(count(...
true
766c4cc72421366c49dea32b06cc02145f12228f
PHP
wazsmwazsm/Workerman_Prc
/Timer/add7.php
UTF-8
658
2.921875
3
[]
no_license
<?php require_once dirname(dirname(__FILE__)) . '/vendor/autoload.php'; use Workerman\Worker; use \Workerman\Lib\Timer; class Mail { // 作为回调函数,必须为 public public function send($to, $content) { echo "send mail to ".$to." $content \n"; } public function sendLater($to, $content) { // 调用方法属...
true
ebb2e45108153cd6234ca6a44e99505da7ac4be9
PHP
OskarStark/continuouspipe
/api/src/ContinuousPipe/Pipe/Kubernetes/Tests/Repository/HookableReplicationControllerRepository.php
UTF-8
2,732
2.53125
3
[ "Apache-2.0" ]
permissive
<?php namespace ContinuousPipe\Pipe\Kubernetes\Tests\Repository; use GuzzleHttp\Promise\PromiseInterface; use Kubernetes\Client\Model\ReplicationController; use Kubernetes\Client\Repository\ReplicationControllerRepository; class HookableReplicationControllerRepository implements ReplicationControllerRepository { ...
true
366c63df1f5cd97c0988b27e8e2f522c3ec93a91
PHP
astratech/coffee-ms
/app/Http/Controllers/Suppliers.php
UTF-8
6,604
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Site; use DB; class Suppliers extends Controller{ public function __construct() { $this->site_model = new Site; if(!isset($_SESSION['coffee_staff_logged'])){ $url = url('/login'); header("Location: ...
true
9e2e37e15ac4b7ed06d032206652d8a786befffb
PHP
xicrow/php-curl
/src/Request.php
UTF-8
1,975
3.1875
3
[ "MIT" ]
permissive
<?php namespace Xicrow\PhpCurl; use Xicrow\PhpCurl\Helpers\CurlOptions; use Xicrow\PhpCurl\Interfaces\RequestInterface; /** * Class Request * * @package Xicrow\PhpCurl */ class Request implements RequestInterface { /** * cURL handle * * @var null|resource */ private $curlHandle; /** * CurlOptions in...
true
adf08d72af09213661e4ee1031d9138c0b6a581a
PHP
ADahmani/AUTON-HOME
/server/js/date.php
UTF-8
1,035
2.65625
3
[]
no_license
<?php //foreach($xml->children() as $state) //{ // $states[]= array('state' => (string)$state->name); //} //echo json_encode($states); // //echo time()*1000; // $json ="a"; //http://192...
true
5c87b8619b1841e11eaa3f9cb8f581a69b1c7ca5
PHP
sanketvgh/akash-technolabs-internship-task-solutions
/Day-8/model/user.php
UTF-8
1,633
3.46875
3
[]
no_license
<?php /** * User Model */ class User{ private $id; private $firstname; private $lastname; private $email; private $phone; private $gender; private $location; private $role; function __construct($id, $firstname, $lastname, $email, $phone, $gender, $location, $role){ $...
true
933cf51e4f85badab98b07703c7c3b074c431bee
PHP
omusico/auti-elementary-school-website
/current/application/admin/controllers/AccessresourceController.php
UTF-8
1,785
2.546875
3
[]
no_license
<?php /** * 澳底國小網站程式 * * LICENSE * * 本程式遵循GNU/GPL v3規範,詳情請見http://www.gnu.org/licenses/gpl.txt * * @copyright 2008 ottokang * @license http://www.gnu.org/licenses/gpl.txt GNU/GPL License 3 */ /** * Admin_AccessresourceController * * 管理介面/資源存取管理 */ class Admin_AccessresourceControlle...
true
dc10df73976a92e9b9372910b7954c2f784b9940
PHP
JanWennrichPCSG/php-index
/tests/unit/IndexTest.php
UTF-8
3,752
2.5625
3
[ "WTFPL" ]
permissive
<?php namespace malkusch\index\test; use malkusch\index as index; require_once __DIR__ . "/../classes/AbstractTest.php"; /** * Tests an index * * @author Markus Malkusch <markus@malkusch.de> * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations * @license WTFPL */ class IndexTest extends AbstractTest {...
true
8ddc1a1277303c02598c876255f501f99ebc718f
PHP
majkel89/tcpdf-warper
/src/org/majkel/tcpdfwarper/ImageOp.php
UTF-8
13,775
2.625
3
[ "MIT" ]
permissive
<?php /** * Created by Generator. * Package: org\majkel\tcpdfwarper * User: Michał (majkel) Kowalik <maf.michal@gmail.com> * Date: 2016-01-26 * Time: 23:13:35 */ namespace org\majkel\tcpdfwarper; /** * Class ImageOp * @package org\majkel\tcpdfwarper * * Puts an image in the page. * The upper-left corner mu...
true
d355ae8199665c2323a074c652e47e801dbbe1fe
PHP
calebTZD/manyToMany
/api.php
UTF-8
7,195
2.5625
3
[]
no_license
<?php // URI = /project/apiName/resourceNae/operation<create,read,update,delete>/?id=<id> $request = $_SERVER['REQUEST_URI']; list($root, $proj, $apiRoot, $resource, $operation) = explode("/", $request); switch ($resource) { case 'character' : require __DIR__ . '/character.php'; switch ($operation)...
true