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
24d88bbbedfd4beb22e5ef25639b3061a4f0cba2
PHP
tokenly/laravel-event-log
/src/Middleware/LogAPICalls.php
UTF-8
2,968
2.578125
3
[ "MIT" ]
permissive
<?php namespace Tokenly\LaravelEventLog\Middleware; use Closure; use Exception; use Tokenly\LaravelEventLog\Facade\EventLog; use Symfony\Component\HttpKernel\Exception\HttpException; class LogAPICalls { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param...
true
b97f1090fa3dd44787fa907b69a0fcb68bc5e46e
PHP
jebc88/AlphaDesign
/TAREAS-INDIVIDUALES/14-Marzo/EstebanBenavides/lib/Carrito.php
UTF-8
1,716
2.640625
3
[]
no_license
<?php require_once("ConectorBD.php"); class Carrito { var $redirectUrl = 'carrito.php'; function __construct() { $this->revisarCarrito(); } function revisarCarrito() { if(array_key_exists('carrito',$_SESSION) === false){ $_SESSION['carrito']= array(); } } fu...
true
7bfa15e0123f084a211882d1a2d9a181c33ba079
PHP
codertiu/city-edu
/console/migrations/m180429_052216_create_students_leave_table.php
UTF-8
561
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Handles the creation of table `students_leave`. */ class m180429_052216_create_students_leave_table extends Migration { /** * @inheritdoc */ public function up() { $this->createTable('students_leave', [ 'id' => $this->primaryKey(), ...
true
7cec13044522d887a63a80fa6c4ae987e8b721ad
PHP
Cyapow/cti-tech-test
/app/Filters/QueryFilters.php
UTF-8
1,645
2.765625
3
[]
no_license
<?php namespace App\Filters; use Illuminate\Database\Eloquent\Builder; use Illuminate\Http\Request; use Inertia\Inertia; class QueryFilters { protected $request; protected $builder; protected $sortable; public function __construct(Request $request) { $this->request = $request; } ...
true
b3d9ad0ba133172f33718a25e48d34bbc9235df4
PHP
jorgefprietol/reservasy
/lib/Application/Authentication/AuthenticatedUser.php
UTF-8
3,437
2.59375
3
[]
no_license
<?php /** Copyright 2020 Prieto Linares, Jorge Fidel This file is part of Agenda Capacitaciones Yanbal 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 late...
true
fc3ba52a33bc9bd65c413fff6c57d24291d9f9a4
PHP
msmeeks/talk_examples_solid_principles
/2_open_closed_b.php
UTF-8
439
2.78125
3
[]
no_license
<?php /** * Open-Closed Principle Resolution */ interface Metric { public function processMetric(); } class FooMetric implements Metric { public function processMetric() {...} } class BarMetric implements Metric { public function processMetric() {...} } class MetricManager { public function proce...
true
28cbdef603638b34cf5e42fcfb544f17ce7d136c
PHP
behnam-shahriari/socialseeder
/app/Http/Controllers/Auth/SignupController.php
UTF-8
951
2.640625
3
[]
no_license
<?php /** * User: MB * Date: 10/18/2020 */ namespace App\Http\Controllers\Auth; use App\Http\Controllers\AppController; use App\Models\Actor; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; class SignupController extends AppController { public function signUp(Request $request) { $u...
true
b58860e9c8aa768c9001a2f9ddc56d16fe656739
PHP
anna0308/MVC
/app/system/view.php
UTF-8
200
2.546875
3
[]
no_license
<?php class system_view { public function render($file) { if(file_exists('../views/'.$file.'.php')){ include('../views/'.$file.'.php'); } else { echo "ERROR: file not found"; } } } ?>
true
d8563b0f68b0dd221660e07804032bcd73008663
PHP
255153YW/php-test
/models/database/Employee.php
UTF-8
267
2.65625
3
[]
no_license
<?php /** * Simple class used to represent the employee tables from the database **/ Class Employee{ public $id; public $firstname; public $lastname; public $address; public $salary; public $contact; public $position; public $username; public $password; } ?>
true
dfadcbb37718ebaa5f5716fe8ea78a3dbff60a66
PHP
MonirHossen/OOP-PHP
/basic program/p6.php
UTF-8
439
4.125
4
[]
no_license
<!--5. Find first N prime number.--> <?php $n = 200; $primeCount = 0; $k = 1; while ($primeCount < $n) { if (IsPrime($k)) { $primeCount++; print "$primeCount : $k <br>"; } $k ++; } function IsPrime($a) { $count = 0; $s = sqrt($a); for($i = 2; $i < $s; $i++) { i...
true
e959214204ea260532b3e50fdde2af30764b2500
PHP
keepeye/webframe
/application/common/model/AdminUser.php
UTF-8
1,818
2.65625
3
[ "Apache-2.0" ]
permissive
<?php namespace app\common\model; use app\component\contracts\AuthUser; use think\Model; /** * 后台用户类 * * 需要实现 \app\component\contracts\AuthUser 接口 * * @package app\common\model */ class AdminUser extends Model implements AuthUser { /** * @inheritdoc */ protected $table = 'admin_users'; p...
true
66bd24cac3a0c8af7e80cb5bbae97132d7ac8503
PHP
ami0rez/Orientawjh
/Website/orientawjih-j/fct/classes/Choix.php
UTF-8
1,445
2.828125
3
[]
no_license
<?php class Choix{ public $id_ad=-1,$id_et=-1,$id,$diplomes,$lieus; public $name,$desc,$date; public $horizons,$fillieres,$conditions; function __construct($id, $name, $desc) { $this->id = $id; $this->name = $name; $this->desc = $desc; } } class Filliere{ public $id; ...
true
6ba52248127505752e50ae9bbeec7a3bdb2714d5
PHP
HelenVolovyk/mvc_shop
/Framework/Core/ErrorHandler.php
UTF-8
270
2.71875
3
[]
no_license
<?php namespace Framework\Core; class ErrorHandler { public function register() { set_exception_handler([$this, 'exceptionHandler']); } public function exceptionHander(\Exception $e) { $this->showError(get_class($e), $e->getMessage()); return true; } }
true
08381dd852e7eaa8eff508cc155bb695a53f775b
PHP
ducthang310/Zend-Bag
/modules/configuration/models/DbTable/Configuration.php
UTF-8
692
2.53125
3
[]
no_license
<?php class Configuration_Model_DbTable_Configuration extends Base_Model_DbTable_Backend { protected $_name = 'configuration'; protected static $_instance = NULL; public function __construct($config = array()) { parent::__construct($config); } public static function getIns...
true
f48312ffab8ea95cc89612848e7d826202c73e91
PHP
hrishiraol/monitoring
/oauth/getzohodata1.php
UTF-8
12,802
2.53125
3
[]
no_license
<html> <title>Bulk API - Oauth</title> <body> <h1>Create Bulk Report</h1> <form action="" method="post"> <input type="submit" name="refreshToken" value="Refresh" /><br> <input type="submit" name="createBulkReport" value="Create" /><br> <input type="submit" name="checkBulkReport" value="...
true
7538c4616ec58edce5e2c9714af261db9e475380
PHP
petidesoftwares/filmsalesservice_api
/app/Models/Customer.php
UTF-8
2,261
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Notifications\Notifiable; use Tymon\JWTAuth\Contracts\JWTSubject; class Custo...
true
9caec40a8aca6299c6b8df2a33b2aa7e923affe2
PHP
Diamondgal/cbc5Project
/eventCreate1.php
UTF-8
1,223
2.78125
3
[]
no_license
<?php // header("content-type: text/plain"); header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Credentials: true'); header('Access-Control-Allow-Headers: "origin, x-requested-with, content-type"'); header('Access-Control-Allow-Methods "GET, POST, OPTIONS"'); // header('Content-Type', 'application/...
true
e8345ff80ca98cb1e42b9805cf7aebb5c0bd5774
PHP
ariel0080/Programacion3
/previa/PIZZERIA/manejadores/1productoCarga.php
UTF-8
1,102
2.75
3
[]
no_license
<!-- 1- POST - > va al index HeladoCarga.php se ingresa sabor precio tipo (crema o agua) cantidad de kg se guardan los datos tomando el sabor y el tipo como identificador ( no se puede repetir) ---------------- se guarda en helados.txt (o csv)---------------- --> <?php echo "<font size='3' color='blue' face='verdana...
true
c30e5400819ed1e66a8a2b9c5a74bc43a2977307
PHP
hiadm/yblog
/modules/home/modules/content/controllers/ArticleController.php
UTF-8
973
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User : daimajie * Email: daimajie@qq.com * Date : 2019/2/20 * Time : 13:43 */ namespace app\modules\home\modules\content\controllers; use app\models\content\Article; use app\modules\home\controllers\BaseController; use yii\helpers\VarDumper; use yii\web\NotFoundHttpException;...
true
8ed156f540238423e2e11584e5b29f6e595ad9c2
PHP
jeroendn/cloudstorage-website
/php/ajax/add_share.php
UTF-8
1,324
2.59375
3
[]
no_license
<?php session_start(); include_once '../../php/dbconnection.php'; if ($_POST['mail'] != '' && $_POST['document_id'] != '') { // get user data (ID) $sql = "SELECT user_id FROM user WHERE user_mail=:mail LIMIT 1"; $stmt = $conn->prepare($sql); $stmt->bindParam(':mail', $_POST['mail'], PDO::PARAM_STR); $stmt->e...
true
d16e5bf71dd9e772ff3ed00545e0cee4465326a8
PHP
brunarocha/view-xml
/app/Http/Controllers/ReadXmlController.php
UTF-8
1,488
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class ReadXmlController extends Controller { public function create() { return view('import.create'); } public function store(Request $request) { $xml = simplexml_load_file($request->file('file')); $newLi...
true
e331385f3e91fbacb3eb778cd324d90e8d104c82
PHP
fortinhovihamba/SmartListApp
/pages/login.php
UTF-8
1,677
2.546875
3
[]
no_license
<?php session_start(); require_once('app/cnx.php'); if (isset($_POST['ok'])) { extract($_POST); $pass= sha1($pass); $requete = "SELECT * FROM t_user LEFT JOIN t_role ON t_role.idrole=t_user.idrole WHERE t_user.email='$login'AND t_user.mdps='$pass' ORDER BY t_user.iduser asc"; $re...
true
ff704fa9a7d23f2b4983701cfbb5f41f3737bbc0
PHP
pixeline/bugs
/install/install.php
UTF-8
4,350
2.671875
3
[ "MIT" ]
permissive
<?php class install { public $config; function __construct() { $this->config = require '../config.app.php'; $this->language = $_GET["Lng"] ?? "en"; $this->language = require '../app/application/language/'.$_GET["Lng"].'/install.php'; } public function check_connect() { @$connect = ($GLOBALS["___mysqli_ston...
true
9711f5ac793453cf808ce5db2c1d4dc48696e309
PHP
Tombrown1/inventory
/index.php
UTF-8
2,653
2.71875
3
[]
no_license
<?php session_start(); include_once 'database/connect.php'; $mysqli = dbconnect(); include_once 'classes/users.php'; if(isset($_POST['login'])){ $email = $_POST['email']; $password = $_POST['password']; // print_r($_POST); // exit(); // Sanitize the Login ...
true
45c3577cf51a9b9a8784f87c7560b286e2ffd4ff
PHP
QuentG/MyBnb
/src/Service/Pagination.php
UTF-8
6,059
3.015625
3
[]
no_license
<?php namespace App\Service; use Doctrine\Common\Persistence\ObjectManager; use Exception; use Symfony\Component\HttpFoundation\RequestStack; use Twig\Environment; /** * Classe de Pagination qui extrait toute notion de calcul et de récupération de données de nos controllers * * Elle nécessite après instanciation ...
true
27c4c380cf0397d5321ea35c1775f0221ffc6577
PHP
JavierLob/Servicio_Medico
/modelo/m_carrera.php
UTF-8
2,139
2.578125
3
[]
no_license
<?php require_once('m_mysql.php'); class claseCarrera extends bd_my { public $idtcarrera, $carrera, $estatuscarrera; function __CONSTRUCT() { $this->idtcarrera = ''; $this->carrera = ''; $this->estatuscarrera = ''; } public function set_datos($idtcarrera = '', $carrera = '', $estatuscarrera = '...
true
03f3d831dd8cecd94913184df2ea0e68f53777bb
PHP
adiv-phpian/twitter-reply-bot-codeigniter-framework
/application/models/Dashboard_model.php
UTF-8
5,762
2.5625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /** * Database actions for free_agent controller * * This model represents user authentication data. It operates the following tables: * - user account data, * - user token * - user profile * * @package Free_agent_model * @author muthukr...
true
faa8db0a8ca133a77c48d889e4bdde3eac1a2df9
PHP
jraulcr/curso-php
/imagenes_servidor/leer_imagen_bbdd.php
UTF-8
1,127
2.53125
3
[]
no_license
<!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <?php ...
true
f62004220b6579250910f8f84cfbe06a9299e249
PHP
demvsystems/exec
/tests/CommandTest.php
UTF-8
2,918
2.921875
3
[ "MIT" ]
permissive
<?php use Demv\Exec\Command; use Demv\Exec\Exception\OsNoMatchException; use Demv\Exec\OS; class CommandTest extends PHPUnit_Framework_TestCase { /** * Test a simple app call */ public function testExec() { $input = 'Hello World'; $result = Command::create() ->app('e...
true
33e5fd8eb63cf0f4268da619ede6e7a82ddd12d2
PHP
paolaht/EcoVida
/ecovida/app/Http/Controllers/MaterialController.php
UTF-8
3,546
2.8125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Requests; use App\Http\Requests\CreateMaterialRequest; use Illuminate\Http\Request; use App\Libraries\Repositories\MaterialRepository; use Mitul\Controller\AppBaseController; use App\Libraries\Repositories\MensajeRepository; use Response; use Flash; class MaterialCon...
true
46b7344d245c5afcb5a21e780bae851eb72d0885
PHP
code-distortion/adapt
/src/Support/Exceptions.php
UTF-8
2,518
3.09375
3
[ "MIT" ]
permissive
<?php namespace CodeDistortion\Adapt\Support; use CodeDistortion\Adapt\DI\Injectable\Interfaces\LogInterface; use CodeDistortion\Adapt\Exceptions\AdaptException; use CodeDistortion\Adapt\Exceptions\AdaptRemoteBuildException; use Throwable; /** * Support methods relating to exceptions. */ class Exceptions { /**...
true
4ca8adc7f6b4700ac0880b1596c4e17e9f344ff7
PHP
aamarinho/HorariosRest
/model/CalendarioMapper.php
UTF-8
5,276
2.6875
3
[]
no_license
<?php require_once(__DIR__ ."/../core/PDOConnection.php"); class CalendarioMapper { private $db; public function __construct() { $this->db = PDOConnection::getInstance(); } public function registrar(GrupoReducido $grupo) { $stmt = $this->db->prepare("SELECT asignatura.cuatrimestre F...
true
e894be6d78d98177c34bf8790c893d4ec8f5b225
PHP
bytic/Collections
/legacy/Traits/DeprecatedTraits.php
UTF-8
328
2.515625
3
[ "MIT" ]
permissive
<?php namespace Nip\Collections\Legacy\Traits; /** * Trait DeprecatedTraits * @package Nip\Collections\Legacy\Traits */ trait DeprecatedTraits { /** * @param $key * @return bool * @deprecated Use ->has($key) instead */ public function exists($key) { return $this->has($key); ...
true
2901167fa85324966913eb3edfa16630c59b5f44
PHP
Celeroctos/mis_developing
/protected/models/MisActiveRecord.php
UTF-8
11,617
2.8125
3
[]
no_license
<?php class MisActiveRecord extends CActiveRecord { public function getTableName($alias = null) { if ($alias != null) { return $this->tableName().' as '.$alias; } else { return $this->tableName(); } } /** * @param string|null $className * @return static ...
true
a589e414ccac4600e53867ef7db6d27883a724b1
PHP
spotlighthometours/spotlighthometours.com
/checkout/checkout_getccdetails.php
UTF-8
2,297
2.609375
3
[]
no_license
<?php /********************************************************************************************** Document: checkout_getccdetails.php Creator: Brandon Freeman Date: 02-28-11 Purpose: Returns cc information. (for Ajax request) ****************************************************************************************...
true
de3a19dd8b2a65d273acae7f69a835b0a91c788d
PHP
fracz/refactor-extractor
/results/Elgg--Elgg/958dc6efa414f17a97c198bd3aaa923d6c820533/before/ConfigTable.php
UTF-8
5,154
3.1875
3
[]
no_license
<?php namespace Elgg\Database; /** * These settings are stored in the dbprefix_config table and read * during system boot into $CONFIG. * * WARNING: API IN FLUX. DO NOT USE DIRECTLY. * * @access private * * @package Elgg.Core * @subpackage Database * @since 1.10.0 */ class ConfigTable { /** * Gl...
true
81a925f7abc6a58ea12c6ad39055a09dc656d8b4
PHP
aldemeery/enum-polyfill
/SplEnum.php
UTF-8
1,921
3.328125
3
[ "MIT" ]
permissive
<?php if (!class_exists('SplEnum')) { /** * A polyfill for the 'splEnum' class. * * @see http://php.net/manual/en/class.splenum.php * @author Osama Aldemeery <aldemeery@gmail.com> */ abstract class SplEnum { /** * @constant(__default) The default value of the enum...
true
2e7bf8e085f95815cf450baa51f0683c1277290b
PHP
joao4597/f1tribo.ddns.net
/public_html/database/drivers.php
UTF-8
352
2.796875
3
[]
no_license
<?php function getAllDrivers() { global $conn; $stmt = $conn->prepare('SELECT * FROM drivers'); $stmt->execute(); return $stmt->fetchAll(); } function getAllDriversByPoints() { global $conn; $stmt = $conn->prepare('SELECT * FROM drivers ORDER BY points DESC'); $stmt->execute(); ...
true
614e1b3308a0356fef317c38720b7b73b71989e8
PHP
carstenwindler/frameworkless
/src/Repository/ProductRepository.php
UTF-8
1,388
2.875
3
[]
no_license
<?php declare(strict_types=1); namespace MyMicroService\Repository; use Doctrine\DBAL\Connection; use Psr\Log\LoggerAwareInterface; use Psr\Log\LoggerAwareTrait; class ProductRepository implements LoggerAwareInterface { use LoggerAwareTrait; public function __construct( private Connection $connecti...
true
d9ccaf0102889f59d78d7344b271bf9383ff9f36
PHP
BNLMaor/crm
/includes/core.php
UTF-8
1,995
2.703125
3
[]
no_license
<?php session_start(); ob_start(); class Core { private $loadedClasses = []; public $Route; public $DB; public $Custom; public $User; private static $instance = false; public function __construct() { $initClasses = ["Database", "Route", "Custom", "User","Accessmanager","Language","Admin","Imap"...
true
8c3c3b143c6c80baa34da5bd233a93b4083ee818
PHP
ValtrX/apidavid
/index.php
UTF-8
4,226
2.84375
3
[]
no_license
<?php if (!empty($_GET['location'])) { $country_url = 'https://api.datoscovid.org/timeline/' . urlencode($_GET['location']); $country_json = file_get_contents($country_url); $country_array = json_decode($country_json, true); /* Convertimos Fechas a un array desde el array de cada pais */ $fechas...
true
594712b13cb5ed40331699b7d93b452b7a58ba39
PHP
5m477/vishleshakee
/app/Http/Controllers/queryStatusController.php
UTF-8
2,701
2.640625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\QueryStatus; use Illuminate\Http\Request; class queryStatusController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // } /** * Show th...
true
311238d673e4f57e9f2397ae6b1528f012b2cdc9
PHP
aumartinez/php-team-metrics
/app/controllers/logout.php
UTF-8
1,442
2.703125
3
[ "MIT" ]
permissive
<?php class Logout extends Controller { protected $output; public function __construct($controller, $method) { parent::__construct($controller, $method); session_start(); # Any models required to interact with this controller should be loaded here $this->load_model("DbMo...
true
11cf01b0b3c3d9eb5f3479533e709f22b20f7b02
PHP
tylerbenjaminfryatt/Subscriber_Login_Notification_App
/includes/Sender.php
UTF-8
1,390
2.609375
3
[]
no_license
<?php require_once('PantryDatabase.php'); require_once('Mail.php'); /** * The class for the notification sender */ class Sender { // TODO: Change this to config. const HOST = 'ssl://smtp.gmail.com'; const PORT = '465'; const USERNAME = 'CIS234A@gmail.com'; const PASSWORD = 'CIS234A_mail'; con...
true
4399d2159429e310a150aac66c01489e285fc757
PHP
luisgcastillo40so/Weather
/Helper/Configuration.php
UTF-8
1,338
2.515625
3
[]
no_license
<?php namespace HTCode\Weather\Helper; use Magento\Framework\App\Helper\AbstractHelper; use Magento\Framework\App\Helper\Context; use Magento\Framework\Encryption\EncryptorInterface; use Magento\Store\Model\ScopeInterface; use Magento\Store\Model\StoreManagerInterface; class Configuration extends AbstractHelper { ...
true
aaf6e73a7c9d6f0a0239d8662872e32f3494a6e5
PHP
activecollab/utils
/src/ValueContainer/ValueContainer.php
UTF-8
791
2.640625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Active Collab Utils project. * * (c) A51 doo <info@activecollab.com>. All rights reserved. */ declare(strict_types=1); namespace ActiveCollab\ValueContainer; class ValueContainer implements ValueContainerInterface, WriteableValueContainerInterface { private bool $value_is...
true
7a043182bba1836d038e47f2766f2daecf458fb5
PHP
M7moudAlrays/Diner-Club
/app/Http/Controllers/backend/OrderController.php
UTF-8
3,398
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\backend; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Models\Order; use App\Models\User; use App\Notifications\AddReservation; use Illuminate\Support\Facades\Auth; class OrderController extends Controller { /** * Display a listing of the res...
true
cf563294b96e81e9e4b9bee8b815001f36110905
PHP
Yeun22/netflix
/cours/index.php
UTF-8
719
2.828125
3
[]
no_license
<?php if(!empty($_POST['pseudo'])){ $pseudo = $_POST['pseudo']; setcookie("pseudo", $pseudo, time()+365*24*2600); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>PHP</title> </head...
true
917627f867c9fd29ffe422695d8f88d0e6b8f92f
PHP
christianklisch/newsletter2go-api-php
/src/christianklisch/newsletter2goapi/entity/Status.php
UTF-8
1,335
2.953125
3
[ "MIT" ]
permissive
<?php namespace Newsletter2Go; class Status { private $success; private $value; private $status; private $reason; public function __construct($vars = null) { if ($vars) { if (array_key_exists('success', $vars)) $this->success = $vars['s...
true
0aa6e5e29cc764879ea7ad34f2c9483aabb1189f
PHP
ITAAcademy/RobotaMolodi
/app/Http/Composers/Show/Company.php
UTF-8
539
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Composers\Show; use App\Http\Composers\Show\SeoInfo\CreatorContract; use Illuminate\Contracts\View\View; class Company { private $creator; public function __construct(CreatorContract $creator) { $this->creator = $creator; } public function compose(View $view){ ...
true
1f3088a42e6bdfffda4c37ec68f048fdb2cf9b70
PHP
ragulara93/atexo
/tests/CardSortingTest.php
UTF-8
1,784
2.765625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Tests; use App\Services\Game\CardSorting; use PHPUnit\Framework\TestCase; class CardSortingTest extends TestCase { public function testSortingCards(): void { $cardSorting = new CardSorting(); $initialSetCard = [ [ "val...
true
262fce4ed0c54491d38f26621be52c30efafb243
PHP
sy-records/realtimehot-weibo
/realtimehot-weibo.php
UTF-8
2,940
2.515625
3
[ "Apache-2.0" ]
permissive
<?php /* Plugin Name: Realtimehot Weibo(微博热搜榜) Plugin URI: https://github.com/sy-records/realtimehot-weibo Description: 在WordPress的仪表盘、小工具、文章、页面等地方加入微博热搜榜,随时随地 get 实时微博热搜,一键直达! Version: 1.1.0 Author: 沈唁 Author URI: https://qq52o.me License: Apache 2.0 */ function luffy_http_get($url) { $body = ''; $headers = [...
true
1f281d0c1d1142cdb6f42e22b61a4912e95c7a92
PHP
revolution-messaging/mobilize-php
/src/Revmsg/Mobilize/Collection.php
UTF-8
3,382
2.75
3
[ "MIT" ]
permissive
<?php namespace Revmsg\Mobilize; class Collection extends Entity\Object implements Entity\CollectionInterface { protected $scheme = 'Revmsg\Mobilize\Model\Collection'; protected $customMap = array(); public function filter($property, $value, $operator = 'eq') { $output = array(); if (!...
true
2a74ba1638091f1d22a70089bf4089d0bc921109
PHP
langostinko/torrent-parser
/lib/loaders/FilmTorrentLoader.php
UTF-8
2,503
2.640625
3
[]
no_license
<?php include_once(__DIR__."/AbstractLoader.php"); include_once(__DIR__.'/../defines.php'); include_once(__DIR__.'/../simple_html_dom.php'); class FilmTorrentLoader extends AbstractLoader { private $link; function __construct($link) { $this->result = array(); $this->link = $link; } ...
true
a2a7d5584a5c83a34f2bc8840ef420d2ba03fda3
PHP
depekur/eating-time
/backend/database/migrations/2018_05_05_004443_create_ingredients_table.php
UTF-8
766
2.78125
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateIngredientsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('ingredients', function(Blueprint $table) { $table->increments('id'); ...
true
f92a401ae28ea5ed7d15416fe5880e1617cf0e23
PHP
ghonaime91/laravel-todo-final-task
/app/Http/Controllers/todoListController.php
UTF-8
4,498
2.84375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\users; use App\Models\tasks; class todoListController extends Controller { //middle ware public function __construct(){ $this->middleware('userCheck',['except' => ['create','store','LoginView','login']]); } ...
true
7ebd5fad5de33996bafd92bf1c1e90abbb8d0844
PHP
alexdu98/Ambiguss
/src/AppBundle/Repository/HistoriqueRepository.php
UTF-8
2,395
2.5625
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Repository; use AppBundle\Entity\Membre; use Doctrine\ORM\EntityRepository; class HistoriqueRepository extends EntityRepository { /** * Retourne le nombre d'historique * * @param Membre $membre * @return mixed * @throws \Doctrine\ORM\NoResultException * @th...
true
4581bb44724e3960458122a7dfc0f10af574bd05
PHP
enimiste/colors-names
/src/W3SchoolColors.php
UTF-8
471
2.59375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: e.nouni * Date: 26/09/2016 * Time: 13:21 */ namespace Com\NickelIT\Colors; class W3SchoolColors { /** * Returns a list of colors names mapped with its hex code. * Ex: ['name' => 'AliceBlue', 'hex' => '#F0F8FF'], * * @return array */ publ...
true
d395f1c4fd44b61118ab4bd2e0cc947e11ad8424
PHP
nickdi2000/mountain
/application/controllers/Race.php
UTF-8
3,170
2.609375
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Race extends MY_Controller { public function __construct() { parent::__construct(); $this->load->helper('url'); $this->load->library('session'); $this->load->model(Array('racer_model', 'race_mode...
true
3baffeeede446ce379575d5378bf447e9bc98018
PHP
PaddyS/panic-lab-helper-core
/tests/Unit/Services/Hydrators/HydrationCollectorTest.php
UTF-8
3,653
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace PanicLabCore\Tests\Unit\Services\Hydrators; use PanicLabCore\Services\Exceptions\InvalidTileTypeException; use PanicLabCore\Services\Hydrators\HydrationCollector; use PanicLabCore\Services\Hydrators\HydratorInterface; use PanicLabCore\Services\Hydrators\SwitchHydrator; use Pan...
true
a622bdd75080d19894bd4e6c49d1cdcc647a12aa
PHP
smallsee/kkzl
/app/Api/Transformers/AnimeTransformer.php
UTF-8
619
2.578125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: xiaohai * Date: 17/8/4 * Time: 22:32 */ namespace App\Api\Transformers; use League\Fractal\TransformerAbstract; class AnimeTransformer extends TransformerAbstract { public function transform($anime){ return [ 'id' => $anime['id'], 'title' ...
true
1a1398b81e0ae081bb4456dfa325af1d750196f5
PHP
zhalnin/service
/imei-service-edited/dmn/system_article/paragraph.php
UTF-8
11,382
2.53125
3
[]
no_license
<?php /** * Created by JetBrains PhpStorm. * User: zhalnin * Date: 21.04.12 * Time: 22:19 * To change this template use File | Settings | File Templates. */ error_reporting(E_ALL & ~E_NOTICE); // Устанавливаем соединение с базой данных //require_once("../../config/config.php"); // Подключаем блок авторизации requ...
true
b952c0350929921ef6a9a6528ca6a44a62d54016
PHP
ki-ti/gs_kadai
/第9回課題/session_regenerate_id.php
UTF-8
235
2.671875
3
[]
no_license
<?php session_start(); $old_sessionid = session_id(); session_regenerate_id(true); $new_sessionid = session_id(); echo "古いセッション: $old_sessionid<br />"; echo "新しいセッション: $new_sessionid<br />"; ?>
true
b731712ec58bdc3b729f4ad00e52931c3e758a4c
PHP
marthiam/Moovite
/web/index1.php
UTF-8
309
2.90625
3
[]
no_license
<?php include("algo.php"); ?> <!DOCTYPE html> <html> <head> <title>Page test</title> </head> <body> <h1>Test de l' algorithme</h1> <?php echo "le voyage".choix("brest","antibes",0,100,100, '2015-02-01'); ?> </body> </html>
true
2db17ad14082acb2717c8747cb2475f86c8f0639
PHP
botrelli/okoabundle
/src/Tg/OkoaBundle/Util/StringUtil.php
UTF-8
859
3.21875
3
[ "MIT" ]
permissive
<?php namespace Tg\OkoaBundle\Util; /** * String utility functions. */ class StringUtil { /** * Very basic function that makes some english word plural. * @param string $str * @return string */ public static function pluralize($str) { if (strlen($str) > 0 && $str[strlen($str)...
true
25996afbe81ec36455af845cba4e790f5d1c6d76
PHP
frodcode/OperationsBundle
/Calculator/Operation/ApplyCalculator.php
UTF-8
434
2.546875
3
[]
no_license
<?php namespace Acme\OperationsBundle\Calculator\Operation; /** * @author odehnal@medio.cz */ class ApplyCalculator implements IOperationCalculator { public function calculate($doValue, $oldValue) { if ($oldValue !== NULL) { throw new \Acme\OperationsBundle\Calculator\Exception\IllegalArgumentException('Old...
true
302407ce09a9843c677c519ae02cbdf5efd9cd2d
PHP
dalehurley/code-igniter-tools
/custom_db_drivers/example_mysql_model.php
UTF-8
1,155
2.640625
3
[ "Unlicense" ]
permissive
<?php // an example model using the additionnal mysql driver functions class example_mysql_model extends CI_Model { public function add_or_replace() { // "REPLACE INTO table (foo) VALUES (bar)" $this->insert_replace('table', array('foo' => 'bar')); // you can also do $this->replace(); $this->in...
true
097646d7eadebeabc50b10eae932cd199417ef7b
PHP
Samonzs/twa_project
/login.php
UTF-8
2,644
2.828125
3
[]
no_license
<?php require_once("nocache.php"); $errorMessage = ''; // check that the form has been submitted if(isset($_POST['submit'])) { if(empty($_POST['email']) || empty($_POST['password'])) { $errorMessage = "A password or email is required"; } else{ require_once("conn.php"); $email = $dbConn->escape_string($_...
true
0cc08e36da8121ca5807f8a8d21b858165a418c6
PHP
frankmolenaar1986/funda-project
/php/client.php
UTF-8
2,813
2.640625
3
[]
no_license
<?php // Variable that could be set in JS or other calling resource, hardcoded for // the assignment $numerOfAgents = 10; // Variable that could be set in JS or other calling resource, hardcoded for // the assignment $urlKey = "005e7c1d6f6c4f9bacac16760286e3cd"; // Base of the url to be add...
true
3d39407a176775d30887a0e52d9f3294f128f4a0
PHP
HH8023/php-demo
/mine/mine/628/demo4.php
UTF-8
302
3.03125
3
[]
no_license
<?php /* 32位下整型的最大值,PHP_INT_MAX,21亿多; 最小值,PHP_INT_MIN -21亿多,PHP中新增的函数 */ echo '32位软件下,PHP整型的最大值是:', PHP_INT_MAX, "<br>"; echo '32位软件下,PHP整型的最小的值是:', PHP_INT_MIN, "<br>"; var_dump(PHP_INT_MIN);
true
7345051a2d0f0c2cf2bf5168389b16af3911b6b6
PHP
Ph3nol/Docker-Arch
/src/Application/TemplatedFileGenerator.php
UTF-8
1,191
2.71875
3
[ "MIT" ]
permissive
<?php namespace Ph3\DockerArch\Application; use Ph3\DockerArch\Application\Twig\Extension\DockerfileExtension; use Twig_Environment; use Twig_Extension_Debug; use Twig_Loader_Filesystem; /** * @author Cédric Dugat <cedric@dugat.me> */ class TemplatedFileGenerator implements TemplatedFileGeneratorInterface { /*...
true
5bec381429164502f09ceba346cb0a616ec6d5f4
PHP
DonVit/cstmd
/common/NewsCategory.php
UTF-8
431
2.53125
3
[]
no_license
<?php class NewsCategory extends DBManager { public $id; public $name_ro; public $name_ru; public $name_en; public $description_ro; public $description_ru; public $description_en; public $order; public $valid; function getTableName(){ return "news_category"; } function getName1(){ $fieldname="nam...
true
a2e89b329eebf794482f7e0abec867c3eb2ac818
PHP
lees9/assignment4-part2
/inventory.php
UTF-8
1,456
2.921875
3
[]
no_license
<!-- Name: Sang Hoon Lee Class: CS290 W15 Assignment: 4 part 2 Filename: inventory.php Description: Contains the functions and method to filter by category, add movies, and remove movies. Date: 02/15/15 --> <?php include_once('sql.php'); //function to filter by category name function ge...
true
688a38da0c12c7b5b170fc109e1b219c16a3aae8
PHP
skrishnamurthy2/hangman
/src/Service/Game.php
UTF-8
248
2.6875
3
[]
no_license
<?php namespace Hangman\Service; use Hangman\Message\GameStateMessage; interface Game { public function getGame(string $gameId): GameStateMessage; public function guess (string $gameId, int $version, string $letter): GameStateMessage; }
true
77fe0c7017ca18c415e43953401e371d59bf397f
PHP
PT-Studios/rust-donation-credits-webcode
/includes/mysql/config/config.php
UTF-8
2,254
2.953125
3
[]
no_license
<?php require_once $_SERVER["DOCUMENT_ROOT"] . '/includes/app_config.php'; $hn = $GLOBALS['cfg']['hostname']; $un = $GLOBALS['cfg']['username']; $pw = $GLOBALS['cfg']['password']; $db = $GLOBALS['cfg']['dbname']; class ConnDB{ //Vars protected $hostname; protected $username; protected $password; protected $db...
true
be02d6e0a0bf68a434572c2c0119ff508cccece0
PHP
luigif/WsdlToPhp
/samples/xignite-globalrealtime/Tick/XiGlobalrealtimeTypeTick.php
UTF-8
5,452
2.796875
3
[]
no_license
<?php /** * Class file for XiGlobalrealtimeTypeTick * @date 08/07/2012 */ /** * Class XiGlobalrealtimeTypeTick * @date 08/07/2012 */ class XiGlobalrealtimeTypeTick extends XiGlobalrealtimeWsdlClass { /** * The Date * Meta informations : * - minOccurs : 0 * - maxOccurs : 1 * @var string */ public $...
true
4810c7eb5c96c452fc4d398ffa8ea6b475ba66ad
PHP
charlesyu122/ANOW-php-repo
/get_events_with_changes.php
UTF-8
2,048
2.84375
3
[]
no_license
<?php // array for JSON response $response = array(); // include db connect class include '../ANowPhp/db_connect.php'; // connecting to db $db = new DB_CONNECT(); //receive POSTS $today = $_POST['today']; $userId = $_POST['user_id']; $check = "false"; // get all attendance starting today $result = mysql_query("SEL...
true
5be19a4295d372c7e9eae486abfdb71b1403f666
PHP
easiestway/console-project
/src/Console/Config.php
UTF-8
1,369
3.03125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * @author d.shokel@gmail.com */ namespace Console; use Symfony\Component\Yaml\Yaml; class Config { const ENV_ALL = 'all'; protected $path; protected $env; protected $options = array(); function __construct($path, $env) { $this->path = $path; $this->env = $en...
true
445ebf74fc7ac301206a68d092c8c3f0a4491c4f
PHP
BartoszBartniczak/proophessor-do
/src/Model/Todo/TodoId.php
UTF-8
1,360
2.875
3
[]
no_license
<?php /** * This file is part of prooph/proophessor-do. * (c) 2014-2016 prooph software GmbH <contact@prooph.de> * (c) 2015-2016 Sascha-Oliver Prolic <saschaprolic@googlemail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ na...
true
52c383e8e3629cd384419201da93a89a786ff7b5
PHP
saintdron/corporate.loc7.0
/app/Repositories/PortfolioRepository.php
UTF-8
5,920
2.625
3
[ "MIT" ]
permissive
<?php namespace Corp\Repositories; use Corp\Http\Requests\PortfolioRequest; use Corp\Portfolio; use Illuminate\Support\Facades\Gate; use Image; class PortfolioRepository extends Repository { public function __construct(Portfolio $model) { $this->model = $model; } public function get($select...
true
3d5fed16a83399cd2544a68ecc1238502f7243e0
PHP
NIZZOLA/CursoWeb3moduloDS
/aula4/listarClientes.php
UTF-8
1,083
2.546875
3
[]
no_license
<!doctype html> <html> <head> <!-- Place your kit's code here --> <script src="https://kit.fontawesome.com/03a46de5f2.js" crossorigin="anonymous"></script> </head> <body> <a href="formClientes.php"><i class="far fa-plus-square"></i></a> <table border="1"> <thead> <tr> <th>Código...
true
f3448a4406c9a571d4afdbec813983ac99371190
PHP
ccmorenosa/artemisa
/serviciosacademicos/Grados/entidades/DetalleRegistroGradoFolio.php
UTF-8
5,482
3.375
3
[]
no_license
<?php /** * @author Carlos Alberto Suarez Garrido <suarezcarlos@unbosque.edu.co> * @copyright Dirección de Tecnología - Universidad el Bosque * @package entidades */ class DetalleRegistroGradoFolio{ /** * @type int * @access private */ private $idDetalleRegistroGradoFolio; /** * @...
true
e7ed83debffa86df17b3206323aeaa958a7addf5
PHP
ajaykandpal/Auto-Orienting-Images-Uploaded-online
/ajayk.php
UTF-8
2,437
2.9375
3
[]
no_license
<html> <head> <title>PHP File Upload example</title> </head> <body> <form action="max.php" enctype="multipart/form-data" method="post"> Select image : <input type="file" name="file"><br/> <input type="submit" value="Upload" name="Submit1"> <br/> </form> <?php function correctImageOrientation($file...
true
598b45c005bf897cc4e4bd65d0678dfa0180b560
PHP
CeusMedia/Cache
/src/CachePoolFactory.php
UTF-8
647
2.578125
3
[]
no_license
<?php declare(strict_types=1); /** * .... * @category Library * @package CeusMedia_Cache * @author Christian Würker <christian.wuerker@ceusmedia.de> */ namespace CeusMedia\Cache; /** * .... * @category Library * @package CeusMedia_Cache * @author Christian Würker <christian.wuerker@ceusmedia.de> */ ...
true
7dbf2639f8a3a1fad163a0f1787112862d84a5f1
PHP
Arowne/Homemade_Framework
/Core/TemplateEngine.php
UTF-8
1,067
3.078125
3
[]
no_license
<?php class TemplateEngine { public function run($path) { $content = file_get_contents($path); $content = preg_replace('/{{(.*)}}/', '<?= htmlentities($1);?>', $content); $content = preg_replace('/{%(.*)%}/', '<?php htmlentities($1);?>', $content); $content = preg_replace('/@if\((.*)\)/', '<?php if...
true
b90b687f7006426b1fddfa6a07391f9057f0b097
PHP
Faryzal2020/e-jurnal
/ajax/getSelectJabatan.php
UTF-8
1,248
2.578125
3
[]
no_license
<?php session_start(); include("../config.php"); $atasan = $_POST['atasan']; $i = $_POST['i']; $value = $_POST['value']; if($atasan == "n"){ $sql = "SELECT jabatan.id_jabatan, jabatan.nama_jabatan, jabatan.eselon, atasan.nama_jabatan, atasan.id_jabatan, atasan.eselon FROM jabatan LEFT JOIN jabatan as atasan ON ...
true
ec879054c65251bd9ff1ed22c67143eb8502f2ab
PHP
kaelynx/web_basics
/art-store/lib/PaintingSubjectsCollection.class.php
UTF-8
533
3.25
3
[]
no_license
<?php class PaintingSubjectsCollection { private $pSubjects = null; private $ps = null; public function __construct(){ $ps = new PaintingSubjectsDB(); $psEntries = $ps->getAll(); $this->pSubjects = array(); foreach($psEntries as $psc){ //use id as key $this->pSubjects[$psc['PaintingSubjec...
true
cdba4038d61580bddaa6957b3c429aef04443c90
PHP
Luckyoula9034/courier
/getprice.php
UTF-8
678
2.515625
3
[]
no_license
<?php $q=$_GET["q"]; require_once('database.php'); mysql_select_db("tbl_payments", $con); $sql="SELECT DISTINCT(weight_price) FROM user WHERE id = '".$q."'"; $result = mysql_query($sql); echo "<table border='1'> <tr> <th>Firstname</th> <th>Lastname</th> <th>Age</th> <th>Hometown</th> <th>Job</th...
true
d41f0cbada03164efb471c06e22c62847ad84b03
PHP
lealuo520/mellivora-logger-factory
/src/Processor/CostTimeProcessor.php
UTF-8
906
2.8125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace Mellivora\Logger\Processor; use Monolog\Logger; /** * 用于获取时间成本消耗 */ class CostTimeProcessor { protected static $points = []; protected $level; public function __construct($level = Logger::DEBUG) { $this->level = Logger::toMonologLevel($level); } public function __...
true
a6b95a6a2db47d24379fa44e35fca0a323287c95
PHP
sadiayousafzai036/Wood
/top5reviews.php
UTF-8
1,925
2.78125
3
[]
no_license
<html> <head> <title>Top 5 rated products based on best reviews</title> </head> <body> <?php ob_start(); $servername = "us-cdbr-iron-east-04.cleardb.net"; $username = "bbfde2f23076ea"; $password = "13418461"; $database = "heroku_9f74518f3cbe85c"; if (!($conn = mysqli_connect($servername, $username, $pa...
true
a0717d566211024067bbefa0bc359f33613286dd
PHP
vikas-srivastava/extensionmanager
/code/control/JsonHandler.php
UTF-8
14,132
2.765625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * All task related to json file. * * Usage: * <code> * $json = new JsonReader(); * $json->cloneJson($url); * $json->saveJson($url,$latestReleasePackage); * </code> * * @package extensionmanager */ use Composer\Config; use Composer\IO\NullIO; use Composer\Factory; use Composer\Repository\VcsReposito...
true
7a811bbced750cb98ed5bf2f5e658b9df7687086
PHP
ARMA-EGY/clinic
/app/Http/Requests/Patients/AddRequest.php
UTF-8
1,275
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests\Patients; use Illuminate\Foundation\Http\FormRequest; class AddRequest extends FormRequest { public function authorize() { return true; } public function rules() { return [ 'name' => 'required', 'phone' => 'required', ...
true
95a748f2aab0d1537364bb3e5c1f25c48255034a
PHP
yannis-staali/lpb
/Model/ModelAdminUser.php
UTF-8
1,286
2.84375
3
[]
no_license
<?php require_once 'Model/ModelAdmin.php'; class adminUser extends admin { protected $pdo; //SELECT ALL USER public function selectalluser(){ $sql = "SELECT id, login, email, password, id_droits FROM utilisateurs"; $stmt = $this->pdo->prepare($sql); $stmt->execute(); while($user = $stmt->fetchAll(PDO...
true
5eb52d3737c281e0affee368aee8e9c17fb50175
PHP
rciam/perun-simplesamlphp-module
/lib/Auth/Process/ProxyFilter.php
UTF-8
8,704
2.5625
3
[ "BSD-2-Clause" ]
permissive
<?php declare(strict_types=1); namespace SimpleSAML\Module\perun\Auth\Process; use SimpleSAML\Configuration; use SimpleSAML\Error\Exception; use SimpleSAML\Logger; /** * Class sspmod_perun_Auth_Process_ProxyFilter. * * This filter allows to disable/enable nested filters for particular SP or for users with one of...
true
b24c1f9e2ac0f3b10fd18b396ff34a545793bf3d
PHP
bparks/pails-auth
/views/account/forgot.php
UTF-8
5,275
2.90625
3
[]
no_license
<?php /* Below is a very simple example of how to process a lost password request We'll deal with a request in two stages, confirmation or deny then proccess This file handles 3 tasks. 1. Construct new request. 2. Confirm request. - Generate new password, update the db then email the user 3. Deny request...
true
9d4bd4772227071c766aa7f5cfcbdae8088b26ba
PHP
issaqsyed/APIOrdermanagement
/module/OrderManagement/src/OrderManagement/Controller/OrderManagementController.php
UTF-8
9,970
2.625
3
[]
no_license
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/ for the canonical source repository * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace Ordermanagement\C...
true
de61e77dae7278df044a9bfb9df51c88e9a6fef3
PHP
pegam/PHPMan
/Man.php
UTF-8
855
3.640625
4
[]
no_license
<?php /** * Class Man */ class Man implements SleepInterface, EatInterface, WorkInterface { /** @var int */ private $birth; /** @var int */ private $happiness; /** @var int */ private $energy; public function __construct() { $this->birth = time(); $this->happiness = 50...
true
cbf1994dcd941b4e133bca52f9d609a4830274dc
PHP
evillemez/AyamelResourceApiServer
/src/Ayamel/ResourceBundle/Document/ContentCollection.php
UTF-8
3,828
2.78125
3
[ "MIT" ]
permissive
<?php namespace Ayamel\ResourceBundle\Document; use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB; use JMS\Serializer\Annotation as JMS; use AC\ModelTraits\AutoGetterSetterTrait; /** * Content container object, contains several types of fields for referencing the content of a resource object * * @MongoDB\Em...
true
9ffda180c8f19e2b6975d96a12fe332f32bf07b4
PHP
nucknine/PHP-Projects
/4-9_Namespaces/uqn/global.php
UTF-8
154
2.5625
3
[]
no_license
<? include 'project.php'; class Connection{ function __construct(){ echo __CLASS__.'<br>'; } } echo 'Из GLOBAL:<br>'; $obj = new Connection; ?>
true
5928f623ca5e012277ca3b7f63e766d9c86fe564
PHP
CALauer/KinderMission
/includes/login_inc.php
UTF-8
1,598
2.578125
3
[]
no_license
<?php if(isset($_POST['Login'])) { require 'config.php'; $emailUsername = $_POST['emailUsername']; $password = $_POST['password']; if (empty($emailUsername) || empty(password)) { header ('Location: ../view/index.php?error=EmptyFields'); exit(); } else { $sql = ...
true