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
f95f2fc92f12a643c06a21cdfb82de1fdfb5a415
PHP
ezequielstuarts/grupo8-e-commerce
/funciones/manejoDB.php
UTF-8
4,366
2.921875
3
[]
no_license
<?php $db = "./data/usuarios.json"; /** * @function * @name obtenerUsuarios * @description Devuelve un array associativo conteniendo todos los usuarios guardados en el archivo usuarios.json * @return {array} Devuelve un arreglo con todos los usuarios guardados en usuarios.json */ function obtenerUsuarios() { ...
true
55afd63d74880c130250c0076876c7fcb0d7dbea
PHP
neokdev/EarlyBirds
/src/Domain/Models/Comment.php
UTF-8
1,896
2.828125
3
[]
no_license
<?php namespace App\Domain\Models; use Doctrine\ORM\Mapping as ORM; use Gedmo\Timestampable\Traits\TimestampableEntity; use Ramsey\Uuid\Uuid; use Ramsey\Uuid\UuidInterface; /** * @ORM\Entity(repositoryClass="App\Domain\Repository\CommentRepository") */ class Comment { use TimestampableEntity; /** * @v...
true
dae3188d9d432544cdaf464b3bd087c30968aedf
PHP
aletsrdz/mediatecaWeb
/protected/models/AcervoImpreso.php
UTF-8
5,712
2.515625
3
[]
no_license
<?php /** * This is the model class for table "acervo_impreso". * * The followings are the available columns in table 'acervo_impreso': * @property integer $idacervo * @property integer $catalogo * @property integer $material * @property integer $idioma * @property string $titulo * @property string $autor_per...
true
da2b266ffe1d5242543d26cebfc645545623aa2e
PHP
pgoodman/pinq-php
/system/packages/model/relational/handler/query.php
UTF-8
1,493
2.625
3
[]
no_license
<?php /* $Id$ */ !defined('DIR_SYSTEM') && exit(); class PinqModelRelationalHandlerQuery extends GatewayTypeHandler implements InstantiablePackage { protected $_cached_queries = array(), $_query_types; public function __construct() { $this->_query_types = arra...
true
0b09116c9ed420fcda5dfb4b8eb4c352efed5fce
PHP
Syinua/Authorization
/src/UserModel.php
UTF-8
3,347
3.171875
3
[]
no_license
<?php class UserModel { const FILE_NAME = '../data/.htpasswd'; const DB_NAME = '../data/user.db'; const DB_FILE = '../data/user.sqlite.sql'; /** * @var */ private $_db = null; /** * @var null */ private static $_instance = null; private function __clone() { ...
true
d48a1e3f3642fe47ac6ca5035ed6c3188fdaaa55
PHP
rs-sliske/laravel-5-3-login-tests-example
/tests/LoginTest.php
UTF-8
1,340
2.65625
3
[ "MIT" ]
permissive
<?php use Illuminate\Foundation\Testing\DatabaseMigrations; use App\User; class LoginTest extends TestCase { use DatabaseMigrations; /** @test */ public function it_can_log_a_user_in_given_correct_credentials(){ //get a test user $user = factory(User::class)->create(['password' => bcrypt('pass...
true
62da051c11e08f6e68d1ab880843bfa381617d40
PHP
Mitrovic/beverly
/frontend/models/AlcoholDrugs.php
UTF-8
1,701
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "alcohol_drugs". * * @property int $id * @property int $driver_id * @property int $positive * @property int $proof * * @property Driver $driver */ class AlcoholDrugs extends \yii\db\ActiveRecord { /** * @inheritdoc */...
true
d99fdda2c45dafbc6152240282af6dfc1f598736
PHP
akagane99/csnc
/html/webapp/modules/linklist/validator/Validator_LinkRequired.class.php
UTF-8
2,119
2.578125
3
[ "BSD-2-Clause" ]
permissive
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * リンク必須項目チェックバリデータクラス * * @package NetCommons.validator * @author Noriko Arai,Ryuji Masukawa * @copyright 2006-2007 NetCommons Project * @license http://www.netcommons.org/license.txt NetCommons License * @project NetC...
true
4d028095987592b551b86fb2258b0250b69f3c2d
PHP
ikubij/itrans-bus-booking-system
/iTrans-bus-booking-system/php/SignUpCustomer.php
UTF-8
2,254
2.578125
3
[]
no_license
<?php require_once("database.php"); require_once("function.php"); session_start(); global $database; $_POST['email']; $_POST['phonenumber']; $_POST['username']; $_POST['password']; $_POST['password2']; if(isset($_POST['email']) && isset($_POST['phonenumber']) && isset($_POST['username']) & isset($_POST['password']) ...
true
79fecb62af60d853f378364d4b50f662d46d6a25
PHP
overwatch13/cryptoklout
/jobs/recurring-btc.php
UTF-8
725
2.5625
3
[]
no_license
<?php // Purpose: this file runs every minute via crontab. The script fires the getJson function to make the call out to cryptocompare. Once retrieved it ajax's the data out to our server for permanent keeping. //echo getcwd() . "\n"; if(empty($_SERVER['DOCUMENT_ROOT'])){ // chdir("/home/cryptoklout/public_html...
true
4fc2054c35ed2c34a42e9fe09fe81d53a8bf1a29
PHP
soon14/shunjubao
/YIC/CLASS/FileLock.class.php
UTF-8
421
3.203125
3
[]
no_license
<?php class FileLock implements LockInterFace { public function getLock($filename, $lockTime) { if(file_exists($filename) && time() - filectime($filename) < $lockTime) { return false; } # 分配锁 $fp = fopen($filename, "w+"); fclose($fp); return tru...
true
f6328b3c77b47ec439c57d37d39edaf9e1edf53c
PHP
rls124/decidere
/html/app/Console/Command/DatasetShell_OLD.php
UTF-8
3,310
2.640625
3
[]
no_license
<?php App::uses('AppShell', 'Console/Command'); class DatasetShell extends AppShell { public $uses = array('Dataset'); public function startup() { parent::startup(); $this->GearmanShell->addMethod('reverse', $this); $this->GearmanShell->addMethod('long_running', array...
true
e8b7acf6ee9f95097b9fe285e20698a898cd06d3
PHP
GutiRz/backend-fifafriends-tfg
/app/CompetitionStats.php
UTF-8
605
2.578125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class CompetitionStats extends Model { protected $guarded = []; protected $appends = ['points', 'played']; protected $with = ['team']; public function team() { return $this->belongsTo(Team::class, 'team'); } public functi...
true
2434e920f943bc2c5aae6a7c1bff08706520e91b
PHP
grueneschweiz/weblingservice
/app/Repository/Revision/RevisionRepository.php
UTF-8
1,948
2.828125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: cyrillbolliger * Date: 30.11.18 * Time: 17:31 */ namespace App\Repository\Revision; use App\Exceptions\InvalidRevisionArgumentsException; use App\Exceptions\RevisionNotFoundException; use App\Exceptions\WeblingAPIException; use App\Repository\Repository; class RevisionR...
true
441d86cd9275d8c41332b77c3cb0daba7b62cf36
PHP
Eliza-prog/Progra3Proyecto
/backend/Base-Aerolinea/domain/baseDomain.php
UTF-8
763
2.921875
3
[]
no_license
<?php /** * @author ChGari * Date Last modification: Tue Jul 07 16:42:51 CST 2020 * Comment: It was created * */ class BaseDomain { //attributes private $FechaRegistro; //constructors public function __construct() { } function getFechaRegistro() { return $this->F...
true
600ed6983bcd350f1453a3a1a2adef68ba5dccaf
PHP
jrjr-randy/backoffice
/prometheus/business_logic/translations/export_translations_file.class.php
UTF-8
1,365
2.8125
3
[]
no_license
<?php require_once 'export.class.php'; require_once 'translations.sql.php'; require_once 'languages/language.class.php'; /** * Export class to generate the translations excel file * * @author Mark Thornburgh <mthornburgh@agel.com> * @copyright Agel Enterprises */ class export_translations_file extends export { ...
true
d7b71f40ff951fdfe7ea2218e8e9894864915d52
PHP
JhulFramework/PHPServer4ODK
/required/odk/0.1/framework/jhul/Jhul/Utils/AccessLevel.php
UTF-8
342
2.9375
3
[ "MIT" ]
permissive
<?php namespace Jhul\Utils; class AccessLevel { const SWAYAM = 0; const CONTACTS = 1; const WORLD = 2; public static function I() { return new static(); } public function isValid( $accessLevel ) { return AccessLevel::SWAYAM == $accessLevel || AccessLevel::CONTACTS == $accessLevel || AccessLevel::WORLD =...
true
7c919936e7d54d66e9841146fd02da512107a537
PHP
AlexandreSimplon/testPHP
/index.php
UTF-8
3,854
2.609375
3
[]
no_license
<?php include_once('app.php') ?> <!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>test</title> </head> <body> <!-- <?php echo "<h1>Salut...
true
654e3503ac54f9408fd06e39c612a91a5c77f6c5
PHP
EurActiv/VSAC-Examples
/examples/modules/example-module-drivers/example-module-english.php
UTF-8
1,815
2.84375
3
[ "MIT" ]
permissive
<?php /** * This file is an example driver for the example module. * * @see inc-example-module.php * * Driver functions should be pseudo-namespaced with the driver name. They * should correspond to the module function name. So, the module function: * * "{$module_name}_function_name" * * becomes: * * ...
true
38c70e9e48f133427ed58bc9bbfa82130ccce48a
PHP
NETWAYS/lconf-web
/app/modules/Api/lib/database/IcingaDoctrineDatabase.class.php
UTF-8
821
2.78125
3
[]
no_license
<?php class IcingaDoctrineDatabase extends AppKitDoctrineDatabase { const CONNECTION_ICINGA = 'icinga'; private $use_retained = false; /** * When working with icinga objects and multiple addon databases * this method ensures that you're working on the right space! */ public static...
true
2a25506bba2dad8b44db28124b8bf13f0d963156
PHP
MishaGolenko/CLI-parser
/src/app/Classes/Abstracts/ReportInterface.php
UTF-8
232
2.75
3
[]
no_license
<?php namespace App\Classes\Abstracts; use App\Exceptions\CliException; interface ReportInterface { /** * @param string $arg * @return void * @throws CliException */ public function make($arg): void; }
true
4ec0a1a172c7014d932ec5caf5d880a5debee63a
PHP
droidpat/SugarCRM_Custom_Solutions
/Files/dynamicTags.php
UTF-8
2,176
2.71875
3
[]
no_license
<?php if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); class dynamicTagsClass { function dynamicTagsMethod ($bean, $event, $arguments) { //Only run if the description field has been edited. if ($bean->fetched_row['description'] !== $bean->description) { $...
true
a783093bbb5021db7952f84a1073de91ee4d239c
PHP
mmuriel/hr-cube-summation
/app/lib/hr/cube-summation/classes/Matrix3DRequestHandler.php
UTF-8
1,537
2.984375
3
[]
no_license
<?php namespace Hr\CubeSummation\Classes; use Hr\CubeSummation\Models\TestCase; class Matrix3DRequestHandler{ private $instrucciones, $qtyTestCases; private $resultadosTestCases = array(); public function __construct($instrucciones){ $this->instrucciones = $instrucciones; } public function processInstru...
true
3b19e5586b836c9b973078b1bcb328a4f0390b3e
PHP
ttlxihuan/laravel-crbac
/src/Models/Power/Route.php
UTF-8
508
2.546875
3
[]
no_license
<?php /* * 路由记录 */ namespace Laravel\Crbac\Models\Power; use Laravel\Crbac\Models\Model; class Route extends Model { /** * @var bool 是否记录修改日志 */ protected $saveUpdateLog = false; /** * @var string 表名 */ protected $table = 'power_route'; /** * 关联权限项 * @return \I...
true
aecf3786a0ef7b7e0814db68152fda43b4becc4f
PHP
smartwebzone/ecommerce_laravel_app
/app/Repositories/Email/AbstractCompanyDecorator.php
UTF-8
936
2.953125
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Email; /** * Class AbstractEmailDecorator. * * @author Phillip Madsen <contact@affordableprogrammer.com> */ abstract class AbstractEmailDecorator implements EmailInterface { /** * @var EmailInterface */ protected $email; /** * @param EmailInterface $ema...
true
088eaa07a57bc8f74ee2bf91fb7910841f4fa6a1
PHP
imorikenn/YPHPSample
/fukushu/06/work2.php
UTF-8
411
3.484375
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>ワーク9</title> </head> <body> <table border="2"> <tr bgcolor="AAAAAA"> <th>番号</th><th>点数</th> </tr> <?php $point = [80,60,22,50,75]; $a = 0; foreach($point as $key=> $value){ echo "<tr><td>{$key}</td><td>{$value}</td></tr>\n"; } echo "</table>"; $a = array_sum($point); $a = $a / coun...
true
81d5e2a20ec06fabb2bc6fc10b8c10eb646debfb
PHP
PJMessi/admin-template-with-realtime-updates-using-pusher
/Laravel/app/Repositories/UserRepository.php
UTF-8
2,037
2.9375
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Repositories\UserRepositoryInterface; use App\User; use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Support\Facades\Hash; class UserRepository implements UserRepositoryInterface { private $model; /** * UserRepository constructor. * ...
true
32624bdd133503d66e94e15cea3b2292cc7c8e88
PHP
aistiak/vue_routine
/PHP/apu/class/delclass.php
UTF-8
1,273
2.609375
3
[]
no_license
<?php include('connect.php'); if($_SERVER['REQUEST_METHOD'] === 'GET'){ $day = $_GET['day']; $token = $_GET['token']; $time = $_GET['time']; $teacher_id = $_GET['teacher_id']; $course_name = $_GET['course_name']; if(is_null($day) || is_null($token) || is_null($teacher_id) || is_null($course_name)){ $obj = ...
true
2c3c0cfa158c20dd89cb666242fdbfd43d6fcd71
PHP
Mabast1/Advanced.Web.Application
/Chapter3/Exercise3-1/ValidateCreditCard.php
UTF-8
907
3.3125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title> Validate Credit Card </title> </head> <body> <h1> Validate Credit Card </h1> <hr/> <?php $CreditCard = array("","8910-1234-5678-6543","0000-9123-4567-0123"); foreach ($CreditCard as $CardNumber){ if (empty($CardNumber)){ echo("<p> This Credit C...
true
2e30fc00c4404508f401d70963c52f6911b2879f
PHP
3DFace/generic-storage
/src/dface/GenericStorage/Memory/MemoryOrderDefComparator.php
UTF-8
876
2.921875
3
[]
no_license
<?php namespace dface\GenericStorage\Memory; use dface\criteria\builder\Comparator; use dface\criteria\builder\ObjectGraphNavigator; class MemoryOrderDefComparator { /** @var array[] */ private array $orderDef; private ObjectGraphNavigator $navigator; private Comparator $valueComparator; public function __con...
true
314f925a865cbf575c7a4359cc4cbf3a906894e7
PHP
kristjaningiragnarsson/vef2a_verkefni4-5
/Vef2a_Verkefni/login.php
UTF-8
2,840
2.53125
3
[]
no_license
<html> <head> <title>skrá inn</title> <meta charset="utf-8"> <link rel="stylesheet" type="text/css" href="main.css"><!--tengir við main.css--> </head> <body> <?php if(isset($errMsg)){ echo '<div style="color:#FF0000;text-align:center;font-size:17px;">'.$errMsg.'</div>'; } ?> ...
true
0f4df97f5b243659276b86eb49a3b55c45b9f685
PHP
gradiph/dondarmy2
/system/database/migrations/2016_08_06_012446_create_kegiatans_table.php
UTF-8
746
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateKegiatansTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('kegiatans', function (Blueprint $table) { ...
true
a76382d50a477bbb2b576ff2fd4880f9cb7cfcf9
PHP
kshamlani/SimpleCMSBlog
/application/models/Content_model.php
UTF-8
2,909
2.515625
3
[ "MIT" ]
permissive
<?php class Content_model extends CI_Model{ public function __construct(){ $this->load->database(); } public function get_contents($slug = FALSE, $limit = FALSE, $offset = FALSE){ if($limit){ $this->db->limit($limit, $offset); ...
true
b81e40e8162942cd7bff97af6232483e7a11d6cc
PHP
wanglelecc/laracms-shop
/src/Http/Controllers/Administrator/CategoryController.php
UTF-8
4,706
2.53125
3
[ "MIT" ]
permissive
<?php /** * LaraCMS - CMS based on laravel * * @category LaraCMS * @package Laravel * @author Wanglelecc <wanglelecc@gmail.com> * @date 2018/06/06 09:08:00 * @copyright Copyright 2018 LaraCMS * @license https://opensource.org/licenses/MIT * @github https://github.com/wanglelecc/laracms * @link...
true
72f486eb8787cbaa41081b9889170c82e8061487
PHP
pekand/snippets
/snippets/php/030-uid/uid.php
UTF-8
297
3.46875
3
[]
no_license
<?php mt_srand(random_int(PHP_INT_MIN, PHP_INT_MAX)); function uid($len) { $ch = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; $out = ""; for ($i=0; $i < $len; $i++) { $out .= $ch[mt_rand(1, strlen($ch))-1]; } return $out; } echo uid(32);
true
60e0c04c8f8f08b2d5b2e265b11383f2b75d2c89
PHP
bakame-php/cron-expression
/src/Expression.php
UTF-8
11,076
3.109375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Bakame\Cron; use JsonSerializable; /** * A Immutable Value Object representing a CRON expression. */ final class Expression implements JsonSerializable { /** * Predefined aliases which can be used to substitute the CRON expression:. * * `@yearly`, `@annu...
true
7dfe7ce5a80a0e80843d44834bb40ff6ff8c179e
PHP
Alvendraihza/Fabelio-Technical-Test
/products.php
UTF-8
6,744
2.53125
3
[ "MIT" ]
permissive
<?php # template header include 'inc/__header.php'; # we need DB Connection here require 'inc/connection.php';?> <h1 class="mt-2 mb-5 pb-1 text-center">Our Products</h1> <?php if (isset($_GET['id'])): $result = pg_query($conn, "select * from products where id='".$_GET['id']."'"); $rs = pg_fetch_assoc($result); ...
true
ff8b6492ffcdda339f41d7d8dd53974f54de40d8
PHP
aydik99/marketbank
/models/Docs.php
UTF-8
787
2.546875
3
[]
no_license
<?php namespace app\models; use yii\db\ActiveRecord; class Docs extends ActiveRecord { public function rules() { return [ // username and password are both required //[['name_doc', 'filename'], 'required','При загрузке файла Паспорт не все поля БД получены успешно...
true
6924e2e6c318da7fec03e4251a9b61708a72c5d2
PHP
olzhing/Website
/list.php
UTF-8
659
2.953125
3
[]
no_license
<?php $servername = 'localhost'; $username = 'root'; $pasword = ''; //collect data from DB to array try{ // SELECT ALL PRODUCTS $conn = new PDO("mysql:host=$servername;dbname=uni", $username, $pasword); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTIO...
true
3bc073c8c5169f59992bf4938d39035635055430
PHP
fergaete/auth-acl
/src/Principal/Auth/Entity/Accion.php
UTF-8
968
2.8125
3
[]
no_license
<?php namespace Principal\Auth\Entity; use Principal\Auth\Entity\Collection\RecursoCollection; /** * Class Accion * @package Principal\Auth\Entity */ class Accion extends BaseEntity { /** * @var int|null */ private $id; /** * @var string */ private $nombre =...
true
36928f0ccfec68fbe5a44ac02b334f6cee7dbf51
PHP
danolez1/webprint-1
/src/printers/Printer.php
UTF-8
5,477
3.25
3
[ "MIT" ]
permissive
<?php namespace exchangecore\webprint\src\printers; class Printer { const UNIT_INCHES = 'in'; const UNIT_POINT = 'pt'; const UNIT_CENTIMETERS = 'cm'; const UNIT_MILLIMETERS = 'mm'; const INCHES_PER_POINT = 0.16666666666667; protected function unitsOfMeasure() { return [ ...
true
89acddc5f811b9913da4311c8eebd3ee357589e1
PHP
mordilion/SplitTest
/src/Mordilion/SplitTest/Chooser/BalancedChooser.php
UTF-8
1,669
2.78125
3
[ "MIT" ]
permissive
<?php /** * This file is part of the Mordilion\SplitTest package. * * For the full copyright and license information, please view the * LICENSE file that was distributed with this source code. * * @copyright (c) Henning Huncke - <mordilion@gmx.de> */ declare(strict_types=1); namespace Mordilion\SplitTest\Choo...
true
d1c3fd709d374bef7e3a8018ad9c351e91770274
PHP
nuiz/duragres
/src/Main/Form/PatternForm.php
UTF-8
3,676
2.609375
3
[]
no_license
<?php namespace Main\Form; use RedBeanPHP\R; class PatternForm extends Form { public $attr = [ // 'created_at'=> '', // 'updated_at'=> '', 'room_id'=> '', 'name'=> '', 'width'=> '0', 'height'=> '0', 'tile_width'=> '0', 'tile_height'=> '0', 'tile_size_unit'=> 'inch', 'picture'=> '', 'thumb'=> ''...
true
57eedf69de0a5df18cecdf2a265428ba6fe55e97
PHP
SnusnumrConceit/Risks
/app/Services/RiskMetricService.php
UTF-8
3,762
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Type; use App\Factor; class RiskMetricService { const METRIC_PREFIX = '_metric'; const RESPONSIBLE_PREFIX = '_responsible'; const USERS_AMOUNT_METRIC = 'users_amount' . self::METRIC_PREFIX; const RISKS_TYPES_METRIC = 'risks_types' . s...
true
f6e22b90980a93c94a8b68739a1397fe7915df23
PHP
daangelov/CodeSnip
/include/dashboard/add_snippet.php
UTF-8
1,891
2.546875
3
[]
no_license
<?php require_once '../settings.php'; if (!is_logged()) { exit(); } $response = array( 'st' => 1, 'msg' => '' ); if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['title']) && isset($_POST['lang']) && isset($_POST['code'])) { $title = htmlspecialchars($_POST['title']); $lang = htmlspecia...
true
a28d07d85c2a9d2f092d8f9d02dafe2b35fdde2d
PHP
flagship-io/flagship-php-sdk
/tests/Utils/FlagshipLogManager8Test.php
UTF-8
6,989
2.5625
3
[ "Apache-2.0" ]
permissive
<?php namespace Flagship\Utils; require_once __DIR__ . "/../Traits/ErrorLog.php"; use Flagship\Enum\FlagshipConstant; use PHPUnit\Framework\TestCase; use Psr\Log\LogLevel; use Flagship\Traits\ErrorLog; class FlagshipLogManager8Test extends TestCase { public function contextDataProvider() { return ...
true
116ba3502d6eee40018138788ccc3b6ca5ee8b12
PHP
lionardi123/outerlook
/app/User.php
UTF-8
1,193
2.515625
3
[]
no_license
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { use Notifiable; /** * The attributes that are mass assignable. * * @var array */ protected $table = 'msusers'; protected $f...
true
dde14e764a1a33192741f4009983670b7ae3784c
PHP
dragonzyc/WeiXinPlatform
/SimiSimi/simi.php
UTF-8
3,153
2.828125
3
[]
no_license
<?php /*小黄鸡 */ class QueenChater{ //将一些字符转化成utf8格式 function get_utf8_string($content) { $encoding = mb_detect_encoding($content, array('ASCII','UTF-8','GB2312','GBK','BIG5')); //echo $encoding; return mb_convert_encoding($content, 'utf-8', $encoding); } //小九机器人 public function xiaoj...
true
3f1d358418b078b906449c3f9af00f6b8ae35d2d
PHP
vvvitaly/txs
/src/Vmestecard/Api/AccessToken/ApiTokenProvider.php
UTF-8
2,208
2.765625
3
[]
no_license
<?php declare(strict_types=1); namespace vvvitaly\txs\Vmestecard\Api\AccessToken; use Exception; use Http\Client\Exception\HttpException; use Http\Client\HttpClient; use Http\Message\RequestFactory; use Psr\Http\Client\ClientExceptionInterface; /** * Obtain access via API "/token" */ final class ApiTokenProvider ...
true
4de03d8c5411d14160d532b301a1f8c8d63b7228
PHP
parthoghosh-cse/assignment
/assignment php day1/namta/table of 2.php
UTF-8
86
3.046875
3
[]
no_license
<?php $count=1; for($i=2;$i<=20;$i+=2 ){ echo"2*$count =$i<hr>"; $count++; }
true
702ccf86cbc899ec291354297eccab871eaa26d8
PHP
ModestasGulb/PHP-basic-CMS
/PHPbasicCMS/includes/login_logout.php
UTF-8
653
2.5625
3
[]
no_license
<?php if ($_SESSION['logged_in'] == true) { // logout form echo '<div class="login_logout logout"> <a href="index.php?logout=true"><b>logout</b></a> </div>'; } else { // login form echo '<form method="POST" id="logIn" class="login"> <div> <label for="uname"><b>User name</...
true
9171469acc7f1dd222a24a6862c1a6888d8a63f7
PHP
orangeShadow/tovari-mailru
/src/CreateXML.php
UTF-8
9,017
3.03125
3
[ "Apache-2.0" ]
permissive
<?php namespace OrangeShadow\TovariMailRu; use DOMDocument; use DOMElement; /** * Class CreateXML * Подробнее на http://torg.mail.ru/info/122/#torg_price * @package OrangeShadow\TovariMailRu */ class CreateXML { protected $dom; protected $shopElement; protected $xmlElements = []; protected $clea...
true
08a02fef03a19a8b217f04005fc543cf435a1561
PHP
Bellov/design-patterns
/Composite/composite.php
UTF-8
1,522
3.890625
4
[]
no_license
<?php interface charClass { public function __construct(string $name, float $level); public function getNickName(): string; public function getClass(): string; public function getClassRole(): string; public function setLevel(float $level); } class Warrior implements charClass { protected $nic...
true
590ef5919e6dc994db2f0c8a638a2980ae063d73
PHP
omnova/shackmeets.com
/modules/chatty/classes/StoriesFeedParser.php
UTF-8
441
2.921875
3
[]
no_license
<? class StoriesFeedParser { function getStories() { # The chatty no longer has a concept of MD/ER/etc. We will just show the # one chatty "story". $feed = array(); # Add the latest chatty to the top of the list. $feed[] = array( 'title' => 'Latest Chatty', ...
true
0f91ec51b0d43833dbd01ed9f81a68d9210a76fb
PHP
takubn/herokuTest
/php/function.php
UTF-8
158
2.96875
3
[]
no_license
<?php // 現在時刻を取得 function getCurrentTime() { date_default_timezone_set("Asia/Tokyo"); $date = date('Y/m/d H:i:s'); return $date; }
true
cabfde8c9dc9a5b38125827bb77f8ec0c528e169
PHP
amandaperellon/CursoPHP
/PDO/Exemplo.php
UTF-8
605
3.046875
3
[]
no_license
<?php $conn = new PDO("mysql:dbname=dbphp7; host=192.168.14.224", "usr_teste", "1234"); $stmt = $conn->prepare("SELECT *FROM tb_usuario ORDER BY deslogin"); $stmt->execute(); $result = $stmt->fetchAll(PDO::FETCH_ASSOC); //ao invés de fazer o while para pegar cada linha, esse já pega todos os dados daquela tabela //...
true
51356bc11a61d956ca54887a1dd1b22e06bb80f6
PHP
mxkraus/time-record-mvc
/includes/classes/user-view.class.php
UTF-8
944
3.296875
3
[]
no_license
<?php /********************* * * View class * * ********/ class View{ private $path = 'view/templates'; private $template = 'single'; /** * Enthält die Variablen, die in das Template eingebetet * werden sollen. */ private $_ = array(); /** * Variablen mit einem Schlüssel an das View übergeben * ...
true
3a117b313b145c5e7d68abfc7c6d97a231ae6d85
PHP
5l1v3r1/Insomnia
/lib/Insomnia/Environment/Target.php
UTF-8
1,603
2.96875
3
[]
no_license
<?php /** * Assigned target to the test. */ class Insomnia_Environment_Target { /** * @var string $resource URL of target resource. */ private $resourceURL; private $resourceIP; /** * @var boolean $XSSAssigned Flag which signals that current target assigned to XSS Test. */ private $XSSAssigned; /** ...
true
c686d9f1bec5d8268ed52a932ae23f677c4a9e8d
PHP
schoolfam/ParcherApi
/src/routes/routes.php
UTF-8
39,340
2.6875
3
[]
no_license
<?php use \Psr\Http\Message\ServerRequestInterface as Request; use \Psr\Http\Message\ResponseInterface as Response; // user api // post queries // login $app->post('/api/user/login/', function(Request $request, Response $response){ $data = json_decode($request->getBody(),true); $email = $data['email']; $pass...
true
5418bf2e65a29a6575b0d67ebd61f118664b2455
PHP
djaapt/PereSrv
/shows.php
UTF-8
894
2.9375
3
[]
no_license
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <?php //Include the header - header starts the html and body tags include('header.php'); ?> <div id="info"> Shows <br><br> <?php //Build the connection to SQL server //DB connection variable to call later $DBC = mysqli_connect($HOST,$USER,$PASS,$DBASE) or...
true
78dbe477513e4e0f68ff0f2702ce450c254d3013
PHP
tmfksoft/PITC-BOT
/scripts/SmallURL.php
UTF-8
1,911
2.9375
3
[]
no_license
<?php $api->addTextHandler("smallurl"); // Simple SmallURL Script to shorten URLS it detects. // Put your API Key in and load it up. $key = "47a236f2a858808b7ebcbe84fe0536d3"; function smallurl($args) { $trigger = "!"; global $api; $msg = $args['text_array']; $chan = $args['channel']; if ($msg[0] == ...
true
7a8abadd761b9d1c745eaa0cdaeaf24721c5cc95
PHP
YaFou/StateMe
/src/Domain/Service/ServiceUpdateService.php
UTF-8
1,032
2.703125
3
[]
no_license
<?php namespace App\Domain\Service; use App\Domain\Incident\Entity\IncidentUpdate; use App\Domain\Service\Dto\CreateServiceUpdateDto; use App\Domain\Service\Dto\UpdateServiceUpdateDto; use App\Domain\Service\Entity\ServiceUpdate; use Doctrine\ORM\EntityManagerInterface; class ServiceUpdateService { public functi...
true
e00cf808a135d1307e25d127328be842e84c9e5c
PHP
CharalambosIoannou/Picking-The-Tees-Website
/invader.php
UTF-8
2,706
2.65625
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = "root"; $dbname = "rivertees"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $title=$_POST['title']; $name=$_...
true
330c3ed11a10972c701dbd43613331de69ed68ae
PHP
IT-JONCTION/Paymentsense_Magento
/app/code/community/Paymentsense/Payments/Helper/Logger.php
UTF-8
3,180
2.53125
3
[]
no_license
<?php /* * Copyright (C) 2019 Paymentsense Ltd. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 3 * of the License, or (at your option) any later version. * * This progr...
true
fc8936cc2e05efff49a89884efbfc6befe628b1a
PHP
plamen911/symfony-insurance-broker
/src/AppBundle/Controller/CreatePolicyController.php
UTF-8
2,299
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace AppBundle\Controller; use AppBundle\Entity\Car; use AppBundle\Entity\TypeOfPolicy; use AppBundle\Form\CarType; use AppBundle\Service\Car\CarServiceInterface; use AppBundle\Service\FormError\FormErrorServiceInterface; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Securit...
true
a01bdd75e0861ee3945b1335d260df8c22353063
PHP
OvalUK/PHP_SurveyGizmoAPI
/SurveyGizmo/Models/Concrete/SGDataContext.php
UTF-8
4,178
2.78125
3
[]
no_license
<?php namespace SurveyGizmo\Models\Concrete { require_once __DIR__ . '/../../../vendor/autoload.php'; // OAuth library: https://github.com/sudocode/ohmy-auth // PHP Curl Class: https://github.com/php-curl-class/php-curl-class use ohmy\Auth1; use SurveyGizmo\Models\Entities\SGAuthType; use Sur...
true
22ad92c66e86f46adc7f0453e6e35de28ad14783
PHP
LucasDelboni/estatistica-trakt
/filme/index.php
UTF-8
3,092
2.53125
3
[]
no_license
<?php include "../curl.php"; $filme = $_GET["nome"]; $nome = str_replace(" ", "-", $filme); $url = "https://api-v2launch.trakt.tv/movies/".$nome."/ratings/"; $resposta = curl_get($url); $someJSON = json_encode($resposta); $resultado = json_decode($someJSON, true); $media = 0; $t...
true
c85c99eb292ff6d4a9d232caee6890a977449230
PHP
jeremyrncp/projet8-TodoList
/src/AppBundle/Form/Handler/Task/CreateTaskHandler.php
UTF-8
1,952
2.640625
3
[]
no_license
<?php /** * Crée par Jérémy Gaultier <contact@webmezenc.com> * Tous droits réservés */ namespace AppBundle\Form\Handler\Task; use AppBundle\Entity\Task; use AppBundle\Form\Handler\FormHandlerInterface; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\Form\FormInterface; use Symfony\Component\HttpFoun...
true
473d582f2d0be8902eb310e41828f68e36022a22
PHP
sscharfenberg/imperiumstellarum
/app/Actions/Turn/Encounter/PersistEncounter.php
UTF-8
20,441
2.625
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT", "LicenseRef-scancode-public-domain" ]
permissive
<?php namespace App\Actions\Turn\Encounter; use App\Models\ConstructionContract; use App\Models\Encounter; use App\Models\Fleet; use App\Models\FleetMovement; use App\Models\Harvester; use App\Models\Player; use App\Models\Ship; use App\Models\Shipyard; use App\Models\Star; use App\Services\EncounterService; use Ap...
true
b56573f306bae22dd12dbfe288c19d501126be0b
PHP
DavidFontalba/DWES
/EXAMEN_2/scripts/nuevaMulta.php
UTF-8
1,424
2.65625
3
[]
no_license
<?php session_start(); if (($_SESSION['user'] == 'agente1') or ($_SESSION['user'] == 'agente2')) { } else { header("Location: ../index.php"); } if (isset($_POST['nuevaMulta'])) { //Ejemplo de multa ["idAgente"= , "matricula"=, "descripcion"=, "fecha"=, "importe"=, "estado"=] array_push( $_SESSION['m...
true
17ab11aae15f1a75d7519285d5c95538f22e49dd
PHP
junfengwu/framework
/整理/Database/Schema/Grammars/SQLiteGrammar.php
UTF-8
12,420
2.9375
3
[ "Apache-2.0" ]
permissive
<?php namespace Leaps\Database\Schema\Grammars; use Leaps\Support\Fluent; use Leaps\Database\Connection; use Leaps\Database\Schema\Blueprint; class SQLiteGrammar extends Grammar { /** * The keyword identifier wrapper format. * * @var string */ protected $wrapper = '"%s"'; /** * Th...
true
516146d10d258e2c41d7d9fc1c757bc22a24047e
PHP
ksmistry1991/allegro-api
/src/Soap/Types/doMyAccountItemsCountResponse.php
UTF-8
769
2.671875
3
[ "MIT" ]
permissive
<?php namespace Ircykk\AllegroApi; class doMyAccountItemsCountResponse { /** * @var int $myaccountItemsCount */ protected $myaccountItemsCount = null; /** * @param int $myaccountItemsCount */ public function __construct($myaccountItemsCount = null) { $this->myaccountIte...
true
ff47eef7ca6a3ba06952ddb43cc87d28fa695fca
PHP
tuanhuynh07/veritrant_payment
/storage/framework/tgMdk/Lib/tgMdkDto/ScoreatpayContactDto.php
UTF-8
8,066
2.640625
3
[ "MIT" ]
permissive
<?php /** * 連絡先情報クラス<br> * * @author Veritrans, Inc. * */ class ScoreatpayContactDto { /** * フルネーム(漢字)<br> * 文字列<br/> * 最大桁数:25<br/> * 購入者のフルネーム(漢字)を指定します。<br/> * - 最小2文字。<br/> */ private $fullName; /** * フルネーム(カナ)<br> * 文字列<br/> * 最大桁数:35<br/> * 購入者...
true
1e30a1d8e6993a9b89a1ab599f451a209f0bd9aa
PHP
mpay24/mpay24-php
/src/Exception/MissingResponseStatusException.php
UTF-8
713
2.8125
3
[ "MIT" ]
permissive
<?php namespace Mpay24\Exception; use Exception; /** * Class MissingResponseStatusException * @package Mpay24\Exception * * @author Stefan Polzer <develop@ps-webdesign.com> * @filesource MissingResponseStatusException.php * @license MIT */ class MissingResponseStatusException extends Exception { ...
true
4ff5a443c05880a2251325eec90da5ee1ed4dbde
PHP
dimono777/tsplugin
/model/validator/tin/structure.php
UTF-8
872
2.953125
3
[]
no_license
<?php namespace tradersoft\model\validator\tin; use tradersoft\helpers\Arr; class Structure { /** @var string */ protected $_value; /** @var array */ protected $_settings; /** * @param string $value * @param array $settings */ public function __construct($value, array $settin...
true
18d00979c00f1cd5cdfb927e9c29b49d93a47cd5
PHP
BhanuBasnet/BIM-4-PHP
/chapter-six/day-eight/form-all.php
UTF-8
3,374
3.328125
3
[]
no_license
<?php /* Form Validation */ $name = $email = $url = $gender = $country = $bio = $error = $success = ""; $nameErr = $emailErr = $countryErr = ""; if ($_SERVER['REQUEST_METHOD'] == "POST") { function clean_input($field_data) { $field_data = trim($field_data); //remove white spaces between beg. and end. o...
true
fe20188cf011d96c3194914fbdec50fa878be220
PHP
thekid/xp-experiments
/jay/net/xp_framework/tools/vm/unittest/emit/php5/CastEmitterTest.class.php
UTF-8
1,635
2.75
3
[]
no_license
<?php /* This class is part of the XP framework * * $Id$ */ uses('net.xp_framework.tools.vm.unittest.emit.php5.AbstractEmitterTest'); /** * Tests PHP5 emitter * * @purpose Unit Test */ class CastEmitterTest extends AbstractEmitterTest { /** * Tests a cast to int * */ #[@...
true
e869b9d9e6f4a4a239696c0b9c08543821bd96c7
PHP
halaei/redis-hyper-queue
/src/ArraySerialization.php
UTF-8
487
2.609375
3
[ "MIT" ]
permissive
<?php namespace Redis\HyperQueue; class ArraySerialization { public static function unserializeArray(array $items) { return array_map( function($item){ return unserialize($item); }, $items ); } public static function serializeArray(a...
true
d5fbc86ddd7c4cbbad6d407d3359d0ccc734a433
PHP
benmanu/silverstripe-styleguide
/code/parsers/YamlParser.php
UTF-8
2,200
2.90625
3
[]
no_license
<?php namespace BenManu\StyleGuide; use SilverStripe\Core\Injector\Injector; use SilverStripe\Dev\YamlFixture; use SilverStripe\Control\Director; use Exception; use BenManu\StyleGuide\StyleGuideFixtureFactory; use BenManu\StyleGuide\StyleGuideBlueprint; use BenManu\StyleGuide\StyleGuide; /** * YamlParser * Turn a ...
true
4b972d01b09dd5defc8e6fbb3ec0553208ae20a8
PHP
ijalandhika/BackgroundHandler
/app/tasks/coretasks/Schedulers/Instagram.php
UTF-8
1,494
2.75
3
[]
no_license
<?php namespace CoreTasks\Schedulers; /** * Scheduler to get data from instagram * * php cli.php scheduler main task=instagram username=ijalandhika */ use CoreTasks\CoreTask; class Instagram extends CoreTask { private $username; public function Invoke() { $this->InitializeParams(); $this->InstagramUser()...
true
cac5cdb5f85199a994c7125002df96e4ce717336
PHP
hive-school/dmitriy-shumitskiy
/src/BionicUniversity/DmytroShumitskiy/OopHomework/House/MoreRoom.php
UTF-8
957
2.90625
3
[]
no_license
<?php namespace BionicUniversity\DmytroShumitskiy\OopHomework\House; /** * Class MoreRoom */ class MoreRoom extends BlockOfFlats { /** * @var */ private $beds; private $windows; private $wifi; private $clean; private $breakfast; public function getBedAmount() { if ...
true
9b02a43913372747644e19f93e6fbca297bd7322
PHP
zjjzjw/crm
/app-admin/app/Src/Forms/Sale/SaleSearchForm.php
UTF-8
1,049
2.640625
3
[ "MIT" ]
permissive
<?php namespace Huifang\Admin\Src\Forms\Sale; use Huifang\Src\Sale\Domain\Model\SaleSpecification; use Huifang\Admin\Src\Forms\Form; class SaleSearchForm extends Form { /** * @var SaleSpecification */ public $sale_specification; /** * Get the validation rules. * * @return array...
true
affc90de8546d70074f230d1d1046c0ac97063f6
PHP
vietdevs/site-2
/app/code/Amasty/ShippingTableRates/Model/ResourceModel/Rate/ValidateUnique.php
UTF-8
3,640
2.578125
3
[]
no_license
<?php /** * @author Amasty Team * @copyright Copyright (c) 2020 Amasty (https://www.amasty.com) * @package Amasty_ShippingTableRates */ declare(strict_types=1); namespace Amasty\ShippingTableRates\Model\ResourceModel\Rate; use Amasty\ShippingTableRates\Api\Data\ShippingTableRateInterface; use Amasty\ShippingTabl...
true
2acce4a0ee3f4918595f470141daef9ad89b1885
PHP
stef-k/blog
/app/Helpers/SlugCleaner.php
UTF-8
558
2.65625
3
[ "MIT" ]
permissive
<?php /** * User: stef * Date: 10/1/2017 * Time: 11:52 μμ */ namespace app\Helpers; /** * Class SlugCleaner removes * @package app\Helpers */ class SlugCleaner { private static $toRemove = [ 'a', 'an', 'to', 'the', 'is', 'me', 'you', 'are', ...
true
a53fb8fba9e03ed461b33bd476882e019938d73d
PHP
EyvAZCeferov/PwcontrolPanel
/app/Http/Middleware/ApiController.php
UTF-8
707
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use Kreait\Firebase\Factory; class ApiController { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { ...
true
bf2cb8620c03e25ab54cbfe5aeeb1f621978ab93
PHP
F21/DNSMadeEasy
/DNSMadeEasy/resource/Folders.php
UTF-8
2,471
3
3
[]
no_license
<?php namespace DNSMadeEasy\resource; use DNSMadeEasy\driver\REST; /** * DNSMadeEasy is a PHP library to talk with DNSMadeEasy's v2.0 REST API. * This is a low level library that allows you to perform operations against the API and receieve a result object. * It also contains all tested methods (some are missing fr...
true
c99e6b2d129866733689be653eb7d5fc92388bf7
PHP
bangadam/laravel-masjid-GIS
/app/Policies/RuvidPolicy.php
UTF-8
1,444
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Policies; use App\User; use App\Models\Ruvid; use Illuminate\Auth\Access\HandlesAuthorization; class RuvidPolicy { use HandlesAuthorization; /** * Determine whether the user can view the ruvid. * * @param \App\User $user * @param \App\Models\Ruvid $ruvid * @r...
true
370363fcdb56a5d2f16c0c780dcec2f4aa8160da
PHP
sulu/sulu
/src/Sulu/Bundle/SecurityBundle/Command/CreateRoleCommand.php
UTF-8
5,112
2.546875
3
[ "MIT" ]
permissive
<?php /* * This file is part of Sulu. * * (c) Sulu GmbH * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Sulu\Bundle\SecurityBundle\Command; use Doctrine\ORM\EntityManagerInterface; use Sulu\Bundle\AdminBundle\Admin\AdminPool; use Sul...
true
307bcb144286245a2fa5ebd0403cfb53d0e12741
PHP
Gorbachev-WEB/ajax-app
/services/ajax-countries.php
UTF-8
1,181
2.828125
3
[]
no_license
<?php require_once $_SERVER["DOCUMENT_ROOT"] . "/../config/main.php"; require_once ENGINE_DIR . "/db.php"; function get_json($user_data){ // Получаем данные от пользователя, генерируем ответ $result = array(); if(isset($user_data["country_name"])){ // Если в запросе передано значение, вносим его в БД ...
true
7a10bd8196855094bf87d438f19a5b7e3d87773e
PHP
superstar0891/narfex.com
/api/Modules/Admin/layout/Toast.php
UTF-8
926
2.828125
3
[]
no_license
<?php namespace Admin\layout; use Api\Admin\Admin; use Serializers\AdminSerializer; class Toast extends Layout { const TYPE_SUCCESS = 'success'; const TYPE_ERROR = 'error'; private $message = 'Unknown message'; private $type = self::TYPE_SUCCESS; public static function withParams(string $messa...
true
5e12dbfae83ae8fb267548e2b7808e135df5d173
PHP
RahulMohanK/backendphp
/register.php
UTF-8
943
2.578125
3
[]
no_license
<?php $host="localhost"; $db_user="place user here"; $db_password="password here"; $db_name="db name here"; $con=mysqli_connect($host,$db_user,$db_password,$db_name); $name=$_POST["name"]; $phone=$_POST["phoneno"]; $password=$_POST["password"]; $dob=$_POST["dob"]; $bloodgroup=$_POST["bloodgroup"]; $state=$_POST["stat...
true
84a8e985a32802d4b907866ebdfb73b6b2a16182
PHP
mwakaambrose/ug-poll
/database/seeds/RespondentTableSeeder.php
UTF-8
991
2.671875
3
[ "MIT" ]
permissive
<?php use App\Models\User; use App\Models\District; use App\Models\Respondent; use Illuminate\Database\Seeder; class RespondentTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { foreach (User::all() as $user) { for...
true
d2bbfff15cb812d31fcb88d22614d162874fa1ec
PHP
darineraka/core-1
/src/Filesystem/Filesystem.php
UTF-8
858
2.875
3
[ "MIT" ]
permissive
<?php namespace NewUp\Filesystem; use Illuminate\Filesystem\Filesystem as LaravelFileSystem; use NewUp\Contracts\Filesystem\Filesystem as FileSystemContract; use Symfony\Component\Finder\Finder; /** * Class Filesystem * * This file system behaves just like the FileSystem class provided by * the Laravel framework,...
true
bbd63e98192c800886290e12cf67aee24b8851e7
PHP
nlmdev/hoard
/src/Hoard/NoSuchPoolException.php
UTF-8
731
3.078125
3
[]
no_license
<?php namespace Hoard; /** * Thrown when a pool is requested that does not exist. This will usually mean * that there is no class to represent the pool, not nessesarily that there is * no data available for that pool. */ class NoSuchPoolException extends Exception { /** * Construct a NoSuchPoolException...
true
04e4ad4ef84a4ff2b928e010edb1c867208925f4
PHP
YukhimaMaryan/Maryan_Yukhima_PHP
/mysite/return.php
UTF-8
163
3.1875
3
[]
no_license
<?php function area ($r){ return 3.14 * $r * $r; } //echo area (5) - area (3); $r1 = area (5); $r2 = area (3); echo "$r1 - $r2 = " . ($r1 - $r2); ?>
true
9fc4551b5833778e5d9c078eded544675d45801c
PHP
webtao520/php_project
/数组之道/compact.php
UTF-8
331
3.390625
3
[]
no_license
<?php // extract() 函数的逆操作是 compact() 函数,用于通过变量名创建关联数组: $clothes = 't-shirt'; $size = 'medium'; $color = 'blue'; $array = compact('clothes', 'size', 'color'); print_r($array); /* Array ( [clothes] => t-shirt [size] => medium [color] => blue ) */
true
4c625a4758bd51ecc69236fac5f41a38004fd9df
PHP
German-Vrazumosky/singleton
/SingletonProcessor.class.php
UTF-8
1,304
3.234375
3
[]
no_license
<?php final class SingletonProcessor { private static $instances = array(); // экземпляра объекта private function __construct() { /* ... @return Singleton */ } // Защищаем от создания через new private function __clone() { /* ... @return Singleton */ } // Защищаем от создания через клонирование priv...
true
7c680a0e48b318d91aa5ead2c4172a71d237700f
PHP
kate-shapoval/example.com
/application/controllers/EventsController.php
UTF-8
880
2.5625
3
[]
no_license
<?php require_once (DEV_ROOT_PATH.'application/models/Events.php'); require_once (DEV_ROOT_PATH.'application/core/Controller.php'); require_once (DEV_ROOT_PATH.'application/core/View.php'); /** * EventsController */ class EventsController extends Controller { /** * View single item of articles by id */ ...
true
2e2de922493f9875b9906ea4c074ca84d62e425f
PHP
konidev20/imsystem
/modules/customerLogin.php
UTF-8
2,288
2.53125
3
[]
no_license
<?php session_start(); require_once '../includes/db_connect.php'; //Establish DB Connection if(isset($_POST["customerID"]) && isset($_POST["customerPassword"])){ $customerID = $_POST["customerID"]; $customerPassword = $_POST["customerPassword"]; } //echo "".$customerID.""; //echo "".$customerPassword.""; $loginActi...
true
a7ef079aed9e4bb3e31acd958080db715aa555ff
PHP
iainzor/BlissApp
/bliss/core/DataStore/src/Filter/FilterInterface.php
UTF-8
486
2.6875
3
[ "MIT" ]
permissive
<?php namespace DataStore\Filter; use DataStore\Query\Query; interface FilterInterface { /** * @param array $valuePairs */ public function setValues(array $valuePairs); /** * @param \DataStore\Filter\Field\Collection $fields */ public function setFields(Field\Collection $fields); /** * @return \Da...
true