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
8f9c09b172b45a4e43e8f7c57bb547efd191d455
PHP
BGCX261/zoombi-svn-to-git
/trunk/Zoombi/Main/error.php
UTF-8
330
2.671875
3
[]
no_license
<?php /* * File: error.php * Author: Andrew Saponenko <roguevoo@gmail.com> * Description: Class for Zoombi PHP Framework */ class Zoombi_Error extends Zoombi_Exception { public $module; function & setModule( Zoombi_Module & $a_mod ) { $this->module = & $a_mod; return $this; } function & getModule() {...
true
ddbba9a66f9172c14c28b5f16a5f2b0620042b16
PHP
Aquarmini/dtm-api
/app/biz/Repository/Group.php
UTF-8
2,183
2.6875
3
[ "MIT" ]
permissive
<?php // +---------------------------------------------------------------------- // | Group.php [ WE CAN DO IT JUST THINK IT ] // +---------------------------------------------------------------------- // | Copyright (c) 2016-2017 limingxinleo All rights reserved. // +---------------------------------------------------...
true
23e5b1f7a42f9a59ee80e13892f0a73a7e63abed
PHP
fakturk/ojs
/src/Ojstr/JournalBundle/Entity/Article.php
UTF-8
12,657
2.65625
3
[ "MIT" ]
permissive
<?php namespace Ojstr\JournalBundle\Entity; use JMS\Serializer\Annotation\ExclusionPolicy; use JMS\Serializer\Annotation\Expose; /** * Article * @ExclusionPolicy("all") */ class Article extends \Ojstr\Common\Entity\GenericExtendedEntity { /** * auto-incremented article unique id * @var integer ...
true
262ecbc34865323805209e2845bccdd563acf531
PHP
Volcom40/Art3FactLab
/dao/admin-dao.php
UTF-8
1,230
2.921875
3
[]
no_license
<?php require_once(__DIR__ . '/../modules/bdd_util.php'); // Va chercher l'ensemble des admins présent dans la table administrateur-site function fetchAdminSite($login){ $bdd = connectDBS(); $req=$bdd->prepare("SELECT * FROM administrateur_site WHERE login= :login"); $req->execute(array(':login' => $logi...
true
4e8e687c8e754badd39fcca8cd3b2b42ae98b89d
PHP
alexwangtech/is448-pms
/actions/update-password.php
UTF-8
932
3.0625
3
[]
no_license
<?php // ******************************************************** // given the 'userId' and 'password', update the "PMSUsers" // table with the new given values // ******************************************************** // get the constants from the config file require_once('../config/config.php'); // get the POST ...
true
4bfef3075fc5aba62544c6c104f6f14dd8f34a65
PHP
JustFS/php-stuliday
/libraries/models/Model.php
UTF-8
302
2.671875
3
[]
no_license
<?php require_once '../config/database.php'; require_once '../config/session.php'; abstract class Model { protected $pdo; public function __construct() { $this->pdo = getPdo(); if (!empty($_SESSION['id'])) { $this->idSession = htmlspecialchars($_SESSION['id']); } } }
true
abb0a6fc0c77a80332a9ce974800c81e264a7036
PHP
Matteo-Fattorini/deliverboo
/database/seeds/dishes_order_seeder.php
UTF-8
831
2.609375
3
[]
no_license
<?php use App\Dish; use App\Order; use Illuminate\Support\Facades\DB; use Faker\Generator as Faker; use Illuminate\Database\Seeder; use Carbon\Carbon; class dishes_order_seeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run(Faker $faker) { ...
true
6e69f4509177bb175be0214ba477e5a6e3441bd7
PHP
ErivaldoOliveiraSobral/aluraphp
/envia-contato.php
UTF-8
1,561
2.65625
3
[]
no_license
<?php session_start(); $nome = $_POST["nome"]; $email = $_POST["email"]; $mensagem = $_POST["mensagem"]; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require 'vendor/autoload.php'; $gmail = "erivaldooliveirasobral@gmail.com"; $senha = "JacquelineErivaldo"; try { $mail = new PHP...
true
dcc4ec38981853e392d821e4cdc12c1b6ebebac6
PHP
Lezzyy/Bank_account
/controllers/create.php
UTF-8
553
2.8125
3
[ "MIT" ]
permissive
<?php require('../model/Connexion.php'); require('../model/AccountManager.php'); require('../entities/Account.php'); $manager = new AccountManager($bdd); // if all the $_POST are set if(isset($_POST['number']) && isset($_POST['account']) && isset($_POST['name']) && isset($_POST['amount'])){ // we create a new object ...
true
e7b4db596ad1251560ff70d6ade3e9c0c78a5a41
PHP
page2me/kotchasan
/tests/Kotchasan/Database/SqlTest.php
UTF-8
21,758
2.578125
3
[ "MIT" ]
permissive
<?php namespace Kotchasan\Database; /** * Generated by PHPUnit_SkeletonGenerator on 2017-04-10 at 15:34:52. */ class SqlTest extends \PHPUnit_Framework_TestCase { /** * @var Sql */ protected $object; /** * Sets up the fixture, for example, opens a network connection. * This method is called before...
true
b972f9759452c3f0cd6c05dab107e5e6c18f01b6
PHP
Umisoft/umi-framework
/library/orm/manager/ObjectManager.php
UTF-8
6,958
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * UMI.Framework (http://umi-framework.ru/) * * @link http://github.com/Umisoft/framework for the canonical source repository * @copyright Copyright (c) 2007-2013 Umisoft ltd. (http://umisoft.ru/) * @license http://umi-framework.ru/license/bsd-3 BSD-3 License */ namespace umi\orm\manager; use um...
true
da1c0edc1370eb130d09fe01ab9fb234834c8d8f
PHP
jaimeac882/UPC_TRAMITEDOCUMENTARIO
/datos/AreaDatos.php
UTF-8
4,710
2.515625
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ require_once "../datos/conexion.php"; require_once "../entidades/beanTramite.php"; require_once "../entidades/empleado...
true
d841ae7b805f9e9c4604b072fdff6482feda0f5a
PHP
Mushfikur-joy/matchmaking
/question/height.php
UTF-8
1,152
2.703125
3
[]
no_license
<?php if(isset($_POST['submit'])){ //$height = $_POST['height']; $gender = $_POST['gender']; ?> <!DOCTYPE html> <html> <head> <title> Questions </title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesh...
true
ea7b4e933611010a7f5b5e536a88408dfad1b026
PHP
joeljacd/SLD-WS
/app/Helpers/EstadoTransaccion.php
UTF-8
757
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Helpers; class EstadoTransaccion { public $existeError = false; //public $existeRegistro = false; public $mensaje = ""; public $data; public static $noExistenDatos = "No existen datos con el criterio seleccionado"; public ...
true
c249829156d6564445b9aa97bd9f700ef857c055
PHP
ReissClothing/BackBee
/app/migrations/Version20151106111845.php
UTF-8
2,662
2.515625
3
[ "MIT" ]
permissive
<?php namespace Application\Migrations; use Doctrine\DBAL\Migrations\AbstractMigration; use Doctrine\DBAL\Schema\Schema; /** * Auto-generated Migration: Please modify to your needs! */ class Version20151106111845 extends AbstractMigration { /** * @param Schema $schema */ public function up(Schema...
true
01643bd97c54629420379c9f8873e9b34c5e8b59
PHP
DevGarage/JSON-ATP
/php/simj-vers/json_atp.php
UTF-8
12,480
2.609375
3
[ "Apache-2.0" ]
permissive
<?php /** * DevGar * Ukraine, Odessa * Author: Bubelich Nikolay * Email: thesimj@gmail.com * GitHub: https://github.com/DevGarage/JSON-ATP * Date: 15.11.13 * VERSION 3.16 * * ========================================= * Apache License, Version 2.0, January 2004 * http://www.apache.org/licenses/ */ class Jso...
true
01a36cc0bdfdf70c1b34d6c16c6b7f83b8057609
PHP
santiart/Programacion_Laboratorio_3
/prog_3/ejercicios/ejercicio02.php
UTF-8
61
2.75
3
[]
no_license
<?php $x = -3; $y = 15; $resultado = $x+$y; echo $resultado;
true
37d1654dd1c7207a8306295a9df003b82da338d3
PHP
dsite/cscce-wireframes
/public/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-views/src/Shortcode.php
UTF-8
564
2.75
3
[]
no_license
<?php namespace MBViews; class Shortcode { private $renderer; public function __construct( $renderer ) { $this->renderer = $renderer; add_shortcode( 'mbv', [ $this, 'render' ] ); } public function render( $atts ) { $atts = array_merge( [ 'id' => null, 'name' => '', ], $atts ); $key = null; ...
true
c3c471244f0bbce4dcdbee3792baf734bed7a562
PHP
md-systems/commerce_giftcard
/src/GiftcardOrderManager.php
UTF-8
3,696
2.5625
3
[]
no_license
<?php namespace Drupal\commerce_giftcard; use Drupal\commerce_giftcard\Entity\GiftcardInterface; use Drupal\commerce_order\Adjustment; use Drupal\commerce_order\Entity\OrderInterface; use Drupal\commerce_price\Price; use Drupal\Core\Entity\EntityTypeManagerInterface; class GiftcardOrderManager { /** * The enti...
true
385638a4cecbb5326909b0e388ddd1edb72eb8a4
PHP
irimo/fonttt
/server_userroot/make_old/phpde_2png.php
UTF-8
1,623
2.703125
3
[]
no_license
<?php require_once("imagecreatefrombmp.function.php"); class ImageConvert { var $dir; var $code; var $bmpDir; var $svgDir; function __construct($dir){ $this->dir = $dir; $this->bmpDir = "/home/moemoe/maked_fonts/{$dir}/bmps/"; $this->pgmDir = "/home/moemoe/maked_fonts/{$dir}/pgms/"; $this->sv...
true
f79533ba1ce4d01b3734a1ba83aa32e774bf3592
PHP
KamilleModules/Ekom
/View/Cart/Cartoon/Invoice/RepaymentSchedule/RepaymentScheduleRenderer.php
UTF-8
3,239
2.703125
3
[]
no_license
<?php namespace Module\Ekom\View\Cart\Cartoon\Invoice\RepaymentSchedule; use Module\Ekom\View\Cart\Cartoon\Util\BaseRenderer; class RepaymentScheduleRenderer extends BaseRenderer { /** * https://github.com/lingtalfi/Models/blob/master/RepaymentSchedule/repayment-schedule.md */ private $repayment...
true
ba52dd672df7ea071fc3652cdbd1850b1a5770e7
PHP
lachykor10/ajaxelec
/lista-lecturas.php
UTF-8
952
3.140625
3
[]
no_license
<?php //es el archivo encargado de listar todas las lecturas que estan guardadas en la bd include('database.php');//se incluye el archivo que se conecta a la bd $query = "SELECT * from lecturas"; $result=mysqli_query($conexion, $query); if(!$result){ die('La consulta ha fallado'. mysqli_error($conexion)); } $j...
true
c4a2d6eec9f413a51c0fec4cc11720d66717a58d
PHP
lexcast/fminor-repertoire
/Request/RoutingRequest.php
UTF-8
970
2.65625
3
[ "MIT" ]
permissive
<?php namespace Fminor\Repertoire\Request; use Fminor\Core\Request\RequestAbstract; class RoutingRequest extends RequestAbstract { private $path; private $methods; private $controller; private $action; public function getPath() { return $this->path; } public function setPath($p...
true
f2c3539d0ca812f3b573a74e1cca5713ea5b4177
PHP
frdmn/pwm
/commands/search
UTF-8
1,521
3.03125
3
[ "WTFPL" ]
permissive
#!/usr/bin/env php <?php /* * Include functions and initalizations */ $scriptdir=realpath(dirname(__FILE__)); include($scriptdir.'/../lib/functions.php'); require_once 'Console/Table.php'; // Load and store cache $raw_cache=file_get_contents($cache_file); $json_cache=json_decode($raw_cache); // Create empty array...
true
a17905b27f1c3d4b1d1f65672d2704edfd4bc397
PHP
juliogallardo1326/proc
/etel/old/stuffed/class/pagenums3.class.php
UTF-8
6,611
2.625
3
[]
no_license
<? class PageNums { function PageNums($RecCount = false, $Limit = false, $Index=false) { global $nsProduct, $nsTemplate; if ($Index) { $PageStart=(isset($GLOBALS['_GET']['Pg'][$Index]['PS']))?$GLOBALS['_GET']['Pg'][$Index]['PS']:false; $PageCurrent=(isset($GLOBALS['_GET']['Pg'][$Index]['PC']))?$GLOBALS['_G...
true
c498a269515216b76c9a90f24519c72e01dcfc11
PHP
maxym16/framephp
/vendor/core/Router.php
UTF-8
4,922
3
3
[]
no_license
<?php namespace vendor\core; /** * Router * @author Maxym */ class Router{ /** * масив маршрутів,таблиця маршрутів * @var array */ protected static $routes =[]; /** * поточний маршрут * @var array */ protected static $route =[]; public static function add($regexp,$...
true
dd7dcc794f56afdacf391ac97524439eedc7bc21
PHP
cordoval/FOSJenkinsBundle
/BuildAnalysis/TestSuite.php
UTF-8
1,463
2.640625
3
[]
no_license
<?php /* * This file is part of the FOSJenkins package. * * (c) Hugo Hamon <hugo.hamon@sensio.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace FOS\Bundle\JenkinsBundle\BuildAnalysis; /** * The UnitTestSuite class ...
true
af9b92e743c51aeaaaf7cf4eb93a76abf7168e0b
PHP
sagas1416/hhvm
/hphp/test/slow/dynamic_methods/1207.php
UTF-8
218
2.890625
3
[ "Zend-2.0", "MIT", "PHP-3.01" ]
permissive
<?php class A { function test($a, $b) { var_dump($a, $b); } } <<__EntryPoint>> function main_1207() { $m = 'test'; $o = new A(); $ar = array(0,1); $st = 'abc'; $o->$m($ar[0], $st[0]); A::$m($ar[1], $st[1]); }
true
ecec69d077a7689bfc65b49e2443e483c6f92d0b
PHP
palmic/lbox
/lBox/dbi/DbControl/class.DbSelector.php
UTF-8
8,217
2.765625
3
[]
no_license
<?php /** * Database platform selector * @author Michal Palma <michal.palma@gmail.com> * @package DbControl * @version 1.5 * @date 2006-01-11 */ class DbSelector { //== Attributes ====================================================================== /** * current platform name ...
true
122c339f8747f72529fb8f55a15d2b3bd36d729b
PHP
JoelMedrano/unistycontrol
/modelos/social.modelo.php
UTF-8
2,375
2.875
3
[]
no_license
<?php require_once "conexion.php"; class ModeloSocial{ /*============================================= CREAR RED SOCIAL =============================================*/ static public function mdlIngresarSocial($tabla,$datos){ $stmt = Conexion::conectar()->prepare("INSERT INTO $tabla(nombre_red_social,id_usuar...
true
23bf4512bdd979d2f36098bd45f4649fb7c94640
PHP
vespakoen/bolt-core
/src/Bolt/Core/Config/Object/Collection/Factory/FieldCollection.php
UTF-8
1,105
2.71875
3
[]
no_license
<?php namespace Bolt\Core\Config\Object\Collection\Factory; class FieldCollection { public function __construct($app) { $this->app = $app; } public function create($items = array()) { $fieldCollectionClass = $this->getFieldCollectionClass(); return new $fieldCollectionCla...
true
d14c5efd5a36b1271bcd094b14161c55197530bd
PHP
nooevil/pengstud.com
/lib/yandex/vendor/bubnov/yandex-direct-client/example.php
UTF-8
2,429
2.765625
3
[]
no_license
<?php /* * Example of usage yandex-direct-client lib. * @author Bubnov Mihail <bubnov.mihail@gmail.com>. */ /* * Use composer autoloader */ require 'vendor/autoload.php'; $authKey = 'MY-AUTH-TOKEN'; $client = new YandexDirectClient\Client($authKey); try { /** * Getting Units for users */ $r...
true
bd00cac5c2b8daa86f39e575e4a80965c230bca2
PHP
boyhagemann/shopper
/app/models/Product.php
UTF-8
666
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Auth\UserInterface; use Illuminate\Auth\Reminders\RemindableInterface; class Product extends Eloquent { /** * The database table used by the model. * * @var string */ protected $table = 'products'; protected $hidden = array('id', 'created_at', 'updated_at'); /** * @return Produc...
true
5ff12c25fc3bed3d6f496f68a7af433f89276513
PHP
DurvalPaicheco/praxis_sis
/app/Models/CursoDAO.php
UTF-8
865
2.578125
3
[]
no_license
<?php namespace App\Models; use Exception; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; class CursoDAO extends Model { public static function saveCurso(Curso $objCurso){ try{ //$objCurso = new Curso;...
true
d26bcc62bc3b0b562b85322375ff24a5f583ad89
PHP
uminonar/api_php
/change-mode.php
UTF-8
805
2.703125
3
[]
no_license
<?php //データベースに接続 $dsn = 'mysql:dbname=api_sample;host=localhost'; $user = 'root'; $password = 'rihoriho1002'; $dbh = new PDO($dsn,$user,$password); $dbh->query('SET NAMES utf8'); if (isset($_POST) && !empty($_POST)){ //渡ってきたjsonデータをデコードする //2つの辞書配列データ’openFlag’,’id’が取れる $json = json_decode($_P...
true
521e15b85f1951081d06ef16f5b756d4451f311e
PHP
nikic/PHP-Yacc
/lib/Core/ArrayObject.php
UTF-8
1,624
3.03125
3
[]
no_license
<?php declare(strict_types=1); namespace PhpYacc\Core; use IteratorAggregate; use ArrayAccess; class ArrayObject implements ArrayAccess, IteratorAggregate { protected $offset = 0; protected $array = []; public function __construct($input = [], int $offset = 0) { if ($input instanceof ArrayO...
true
7ff41bae42c975634f14c6fbc760f3835fecbcbb
PHP
MaslaLT/Commision_task
/src/Money/Money.php
UTF-8
935
3.453125
3
[]
no_license
<?php declare(strict_types=1); namespace Masel\CommissionTask\Money; use Masel\CommissionTask\Currency\Currency; class Money { /** * @var Currency */ protected $currency; /** * @var float; */ protected $amount; /** * @throws \Exception */ public function __con...
true
cc38abd60c6efdf3d558f993567f411ad35b39cc
PHP
czuria1/GeekText
/geek-text/server.php
UTF-8
25,619
3.015625
3
[]
no_license
<?php header("Access-Control-Allow-Origin: *"); //Info to connect to DB $servername = "localhost"; $dbusername = "root"; $dbpassword = "W&tson$2018"; $dbname = "geektext_db"; //what method to execute $method = urldecode($_POST['method']); $params = null; $params_arr = null; //Parameters passed if( i...
true
93e6882e8d66febec0f4642c5407194d641b1556
PHP
emmdel/Firebird-Drupal7-Layer
/firebird/select.inc
UTF-8
4,322
3.046875
3
[]
no_license
<?php /** * @ingroup database * @{ */ require_once dirname(__FILE__) . '/query.inc'; class SelectQuery_firebird extends SelectQuery { public function __toString() { // For convenience, we compile the query ourselves if the caller forgot // to do it. This allows constructs like "(string) $query" to wor...
true
3da6962cc292f354181c4291f1d9f985bfb35336
PHP
veronikasgit/hw1.4
/index.php
UTF-8
1,269
3.03125
3
[]
no_license
<?php $all_animals = array ( 'Africa' => array ( 'Panthera leo', 'Hippotigris', 'Giraffa camelopardalis', 'Rhinoceros bicornis', 'Hippopotamus amphibius', ), 'Europe' => array ( 'Ursus arctos' ), 'Australia' => array ( 'Vombatidae', ), '...
true
0e7c40ffe8f7588f8034d051d2e0a0199800806f
PHP
PackageFactory/PackageFactory.Neos.CodeGenerator
/Classes/Framework/Util/StringUtil.php
UTF-8
3,725
2.984375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace PackageFactory\Neos\CodeGenerator\Framework\Util; /* * This file is part of the PackageFactory.Neos.CodeGenerator package */ final class StringUtil { /** * @param string $string * @return string */ public static function unindent(string $string): strin...
true
51ad3fa14c3676b944c2c33dac8b067cc96cf922
PHP
manaphp/manaphp
/framework/Http/AuthorizationInterface.php
UTF-8
408
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace ManaPHP\Http; interface AuthorizationInterface { public function getPermissions(string $controller): array; public function buildAllowed(string $role, array $granted = []): array; public function getAllowed(string $role): string; public function isAllowed(st...
true
5a444214daf02e794aabf48ce6958ce3d73e7bba
PHP
ryzen500/absensimember
/printketExcel.php
UTF-8
1,459
2.78125
3
[]
no_license
<html> <head> <title>Absen keterangan</title> </head> <body> <?php include "koneksi.php"; echo "<h1>Absen Keterangan </h1>"; $sql = "SELECT * FROM tb_keterangan"; if ($result = $koneksi->query($sql)) { if ($result->num_rows > 0) { echo "<table border='1'>"; ec...
true
79b0d91546fdcc9ed6d1e485eebf3ae03bfb6ca1
PHP
smsapi/smsapi-php-client
/src/Infrastructure/RequestAssembler/RequestAssembler.php
UTF-8
1,077
2.6875
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace Smsapi\Client\Infrastructure\RequestAssembler; use Psr\Http\Message\RequestFactoryInterface; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\StreamFactoryInterface; use Smsapi\Client\Infrastructure\Request; /** * @internal */ class RequestAssembler { privat...
true
c78b7aada585aa12421a9ed974a59b593b18985c
PHP
HryshchukBohdan/artJ
/controllers/UserController.php
UTF-8
683
2.703125
3
[]
no_license
<?php // Контролер пользователей namespace controllers; use models\UserModel; class UserController extends Controller { public function regAction() { $userObj = new UserModel(); $user = $userObj->userInfoByEmail($_POST['email']); if($user && isset($user[0])) { $view = new V...
true
933332f00403db27f9f12cc6d66ecd47fa4021c0
PHP
ismail1432/bookmarkzer
/src/Application/CreateABookmark/CreateABookmarkHandler.php
UTF-8
1,534
2.609375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Application\CreateABookmark; use App\Domain\EmbedInterface; use App\Domain\Model\Bookmark; use App\Domain\Repository\BookmarkRepositoryInterface; use App\Domain\ValueObject\BookmarkType; use Symfony\Component\Messenger\Handler\MessageHandlerInterface; final class CreateA...
true
88676a30f4357fad1c41419667fa303de6a46b7e
PHP
pmdhbw/parkplatz
/parkplatz/src/AppBundle/Model/DBLot.php
UTF-8
5,833
2.578125
3
[]
no_license
<?php //Created by Torben Krieger namespace AppBundle\Model; class DBLot{ private $doctrine; public function __construct($doc){ $this->doctrine = $doc; } public function getDBLot($lotId){ $repo = $this->doctrine->getRepository('AppBundle:Lot'); $lot = $repo->find($lotId); ...
true
c7c354b5428e904789c31cf19a3234a27424c2d9
PHP
mattmccray/ShortStack
/source/shortstack/flash.php
UTF-8
759
2.9375
3
[]
no_license
<?php class Flash implements ArrayAccess { public $now = array(); public function __construct($key = "_FLASH_DATA_") { $this->key = $key; @session_start(); $this->now = isset($_SESSION[$this->key]) ? $_SESSION[$this->key] : array(); } public function offsetSet($offset, $value) { $_SESSION[$this->...
true
6f60fa6ee194d5227b87e3de166715c3b6744abd
PHP
Santzu-159/dwese
/pdo1/ealumno.php
UTF-8
3,555
2.765625
3
[]
no_license
<!DOCTYPE html> <?php if(!isset($_GET['id'])){ header("Location:alumnos.php"); die(); } session_start(); //Hacemos autoload de las clases spl_autoload_register( function ($nombre) { require "./class/". $nombre .".php"; //Cuando llamo a una clase, automaticament ebusca el nombre de la clase .php ...
true
67a726d58ee5c4a54fbe2e876fcf2f27e953552d
PHP
hessdev/extrapointsapi
/application/views/shards/stylesheets.php
UTF-8
1,062
2.546875
3
[]
no_license
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); if (!empty($css_list) && is_array($css_list)) { $stylesheets = array(); foreach($css_list as $stylesheet) { if (substr($stylesheet['css_uri'], 0, 4) != 'http') { $stylesheet_path = ($this->config->item('site_root') == '') ? substr($styleshe...
true
952bea956ab59ba7aa89c973181e0b376f6264c3
PHP
chkdsk11/project
/serve/models/shopmodel/BaiyangMomTrialReport.php
UTF-8
2,093
2.640625
3
[]
no_license
<?php namespace Shop\Models; class BaiyangMomTrialReport extends BaseModel { /** * * @var integer * @Primary * @Identity * @Column(type="integer", length=11, nullable=false) */ public $id; /** * * @var integer * @Column(type="integer", length=20, nullable=fal...
true
942e1e1aba501e66227de87f25b32ccc7fc77ebf
PHP
BezlepkinAndrey/echo.rarus-crimea.ru
/60 задач/10.php
UTF-8
452
3.8125
4
[]
no_license
<?php function isContinuousSequence($arr) { for ($i = 1; $i < count($arr); $i++) { if ($arr[$i] != ($arr[$i - 1] + 1)) { return false; } } return (bool) count($arr); } echo isContinuousSequence([10, 11, 12, 13]); // => true echo isContinuousSequence([10, 11, 12, 14, 15]); /...
true
88bfd9263422eabef9db1986da972c5dd7d4d1df
PHP
tadija-lazarevic/angular-calendar
/ajax/getNotes.php
UTF-8
632
2.625
3
[]
no_license
<?php require_once '../includes/db.php'; # Data for return $result = array(); $success = 'listOk'; if ( isset($_REQUEST['from']) && isset($_REQUEST['to']) ) { $from = $_REQUEST['from']; $to = $_REQUEST['to']; $listOfNotes = $mysqli->query( "SELECT * FROM $TBL_NOTE WHERE ...
true
11e743a9d0c93ee4bc748f3c9c8889ba6638fcd1
PHP
youmad/ts3php
/src/Query.php
UTF-8
1,783
2.921875
3
[ "MIT" ]
permissive
<?php namespace Youmad\TeamSpeak3; use Youmad\TeamSpeak3\Command\AbstractCommand; use Youmad\TeamSpeak3\Command\QuitCommand; use Youmad\TeamSpeak3\Transport\TCPTransport; class Query { /** * @var Config */ private $config; /** * @var TCPTransport */ private $transport; /** ...
true
7cdad81806111f0864f3634f4af5dffb67b0b7bf
PHP
MrCaktuz/csiangleur
/contact.php
UTF-8
1,423
2.828125
3
[]
no_license
<?php // Setup variables $errors = []; $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message']; $errorsSummary = "Un ou plusieurs champs n'est pas bien remplis..."; // Testing the data if ( !isset($name) || $name == '' ) { $errors['name'] = "Oups ! Vous n'avez pas entré de nom..."; $err...
true
46901f71f892f85e6108c9a5f4fd91fb3ccd8e67
PHP
ekaprasasti/todo-slim-api
/src/App/Modules/Todo/TodoController.php
UTF-8
4,574
2.625
3
[]
no_license
<?php namespace App\Modules\Todo; use Slim\Container; use Slim\Views\PhpRenderer; use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ResponseInterface as Response; use App\Modules\Todo\Model\Todo; use App\Modules\Todo\Model\TodoQuery; use App\Modules\Todo\Services\TodoService; use App\Core\E...
true
2cbcebee2f3aced6399306d794e6116f4020965b
PHP
tristanjahier/zoho-crm-php
/src/V1/Modules/AbstractModule.php
UTF-8
4,514
2.875
3
[]
no_license
<?php namespace Zoho\Crm\V1\Modules; use BadMethodCallException; use InvalidArgumentException; use Zoho\Crm\V1\Client; use Zoho\Crm\Support\ClassShortNameTrait; use Zoho\Crm\V1\Entities\Entity; /** * Base class of the API module handlers. */ abstract class AbstractModule { use ClassShortNameTrait; /** @va...
true
80a771e60632fd364b56b909db2a6b663bb0ad71
PHP
morafabio/shazam2spotify
/src/Shazam2Spotify/test/Common/SongTest.php
UTF-8
1,127
2.703125
3
[]
no_license
<?php namespace Shazam2Spotify\test\Common; use Shazam2Spotify\test\TestCase; use Shazam2Spotify\Common\Song; class SongTest extends TestCase { protected $song; public function setUp() { $this->song = new Song(); } public function testArtist() { $this->assertNull($this->song...
true
52fe45013bc75214255bb26b3144dddfb11a1472
PHP
Ayumi-s/household-account-book
/function.php
UTF-8
29,510
2.515625
3
[]
no_license
<?php //===================================== // エラー表示 //===================================== // ログを取るか ini_set('log_errors', 'on'); // ログの出力ファイルを指定 ini_set('error_log', 'php.log'); //ログをディスプレイに表示する ini_set('display_errors', 'off'); //全てのエラーを出力する error_reporting(E_ALL); //===================================== // 時間管...
true
1afc607b089f383885d99f789e287f9b20c530fe
PHP
z172294849/small-framework
/Core/Build.php
UTF-8
1,227
2.578125
3
[]
no_license
<?php ### 创建项目的MVC结构 create_dir(ROOT_PATH.APPLICATION_NAME.DIRECTORY_SEPARATOR,0777); $necessary_dir = array('Controller','Model','View','Conf','Library'); foreach($necessary_dir as $v){ if(!create_dir(ROOT_PATH.APPLICATION_NAME.DIRECTORY_SEPARATOR.$v,0777)){ echo '<h2>项目创建失败!</h2>';exit; } } #...
true
3a7cabe94c56a7b359ccbb4aef90dca56a1473d6
PHP
Ad3lian/gitSiteAdrien
/model/ConnexionManager.php
UTF-8
1,180
2.796875
3
[]
no_license
<?php require_once("model/Manager.php"); class ConnexionManager extends Manager { public function getConnexion($email, $password){ $db = $this->dbConnect(); $connexion = $db->prepare('SELECT * FROM users WHERE email = ? AND password = ?'); $connexion->execute(array($email,...
true
94cef8ec9ca6f4686f8e3bb9662e47d8db98e46b
PHP
pinepain/sms-krank
/tests/SMSKrank/Tests/Utils/StringTest.php
UTF-8
9,249
2.734375
3
[ "MIT" ]
permissive
<?php namespace SMSKrank\Tests\Utils; use SMSKrank\Utils\String; class StringTest extends \PHPUnit_Framework_TestCase { /** * @var \SMSKrank\Utils\String */ protected $s; protected function setUp() { $this->s = new String(); } public function providerStringsWithoutPad() ...
true
1e31326226f187826baee9ed0f3c7b3449e0ff05
PHP
jamieego/blog
/core/db.class.php
UTF-8
732
3.171875
3
[]
no_license
<?php /* 连接数据库类 */ class db{ /*一个类construct方法,这里注意的是前面是双下划线,而且construct这个方法是自动执行*/ function __construct(){ /*连接数据库语句*/ $this->mysqli=new mysqli('127.0.0.1','root','root','blog'); /*如果连接出现错误怎么办*/ if ($this->mysqli->connect_error) { die('Connect Error (' . $this->mysqli->connect_errno . ') ' ...
true
54e47bc0d9f88ab97297c2c0b0d72f36a1fdba5a
PHP
RamosBruno/facebookQuizz
/src/AppBundle/Services/Facebook.php
UTF-8
5,770
2.640625
3
[]
no_license
<?php namespace AppBundle\Services; use Doctrine\Common\Persistence\ObjectManager; use Facebook\Exceptions\FacebookSDKException; use Facebook\Exceptions\FacebookResponseException; use Symfony\Component\HttpKernel\Exception\HttpException; use AppBundle\Entity\DataUserFacebook; use AppBundle\Entity\LikeFacebook; use Sy...
true
9a2b188f0626557846ead58f33112361308b7e3d
PHP
Leon2012/php-api
/tests/CacheTest.php
UTF-8
2,381
2.6875
3
[]
no_license
<?php /** * * @authors LeonPeng (leon.peng@live.com) * @date 2016-12-28 10:25:48 * @version $Id$ */ use leon2012\phpapi\cache\CacheFactory; use leon2012\phpapi\cache\drivers\Yac as MyYac; class CacheTest extends PHPUnit_Framework_TestCase { public function testApc() { $cache = CacheFact...
true
e6d8c33882f012fbd0343052be81d3812f9dcdcc
PHP
erich1989/superhumans
/src/pdf-certificates/certificate-training.php
UTF-8
3,675
2.546875
3
[]
no_license
<?php date_default_timezone_set("America/Bogota"); setlocale(LC_ALL, 'es_ES.utf-8'); require('fpdf182/fpdf.php'); require_once('../../models/database-connection.php'); require_once('../../models/training-class.php'); $connection = new Database("localhost", "transito", "valeria2", "superhumanos"); $training = new Le...
true
d1f448121e4fe27a2516bab9c807f7bc454d9db2
PHP
o2system/framework
/src/Helpers/Url.php
UTF-8
8,876
2.71875
3
[ "MIT" ]
permissive
<?php /** * This file is part of the O2System Framework package. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author Steeve Andrian Salim * @copyright Copyright (c) Steeve Andrian Salim */ // --------------------...
true
2a2cbd540106796bc49569530be51f56981a4bcf
PHP
morda123/api-master
/www/app/Console/Commands/ImportRecipes.php
UTF-8
6,691
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use App\Models\Category; use App\Models\Ingredient; use App\Models\IngredientsForRecipe; use App\Models\Recipe; use App\Models\Step; use Illuminate\Console\Command; use Illuminate\Support\Arr; use Illuminate\Support\Str; use PhpOffice\PhpSpreadsheet\IOFactory; use PhpOffice\PhpSp...
true
7b1f8f1ad705126b6d9123d2c3118c685bfa4039
PHP
Igor-Gr/t1-framework
/src/Elision/Validator/Validator.php
UTF-8
1,386
2.71875
3
[]
no_license
<?php namespace Elision\Validator; class Validator { public $builtInValidators = [ 'string' => 'Elision\Validator\StringValidator', 'email' => 'Elision\Validator\EmailValidator', 'required' => 'Elision\Validator\RequiredValidator', 'coincidence' => 'Elision\Validator\Coincidence...
true
b955ea522f55da54c3180d10937e63969702c691
PHP
Mostafa0220/student-classes-crud
/backend/app/Http/Controllers/StudentController.php
UTF-8
12,109
2.8125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Student; use App\Classes; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; class StudentController extends Controller { /** * Index function for this controller. * * Maps to the following URL: http://localhost:8000/ * shows t...
true
25a35b46d32f2ba9bdc56182ebd27c8c1f7478ec
PHP
saravr/vega
/tmp/c.php
UTF-8
266
2.953125
3
[]
no_license
<?php include 'Contact.php'; $nm = 'Robert'; $ph = 4455; $ct = new Contact(); $ct->name = $nm; $ct->phone = $ph; $ct->save(); echo "Now, let us find $nm\n"; $rec = $ct->find($nm); foreach ($rec as $item) { $ph = $item['phone']; echo "Phone: $ph\n"; } ?>
true
2f1c4de98451b4b66312ff8eff89a146777eb71c
PHP
dhiemaz86/newsema
/page/action_detail_about.php
UTF-8
551
2.71875
3
[]
no_license
<?php require_once('lib/DBClass.php'); require_once('models/m_about.php'); $id=$_GET['a']; $about = new about(); $data=$about->readAbout($id); if(empty($data)){ exit('Data Not Found'); } $dt=$data[0]; ?> <table border="1"> <tr> <th>Id About</th> <th>Nama</th> <th>Deskripsi</th> <th>Foto</th> </...
true
adad72cfab642a5ff9a1e154ae273f6412c44f93
PHP
bianergege/q.r.l
/2014.7.21/10.3/__construct.php
UTF-8
524
4
4
[]
no_license
<?php class Person{ var $name; var $sex; var $age; function __construct($name="",$sex="男",$age=1){ $this->name = $name; $this->sex = $sex; $this->age = $age; } function say(){ echo "我的名字:".$this->name.",性别:".$this->sex.",年龄:".$this->age."。<br>"; } function run(){ echo $this->name."在走路<br>"; } } $...
true
e7d039f1c8ecdc1587df63057b2ce8ace146172f
PHP
haganicolau/zf2-with-apigility
/zf2/module/Cliente/src/V1/Rest/Cliente/ClienteEntity.php
UTF-8
3,811
2.671875
3
[]
no_license
<?php namespace Cliente\V1\Rest\Cliente; use Cliente\V1\Rest\Endereco\EnderecoEntity; use Cliente\V1\Rest\Telefone\TelefoneEntity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping\OneToOne; use Doctrine\ORM\Mapping\OneToMany; use Doctrine\ORM\Mapping\JoinColumn...
true
cc7cdd7d36b36a90d97bf000f0484d9e3eba918e
PHP
seanxh/althea
/protected/components/Operator.php
UTF-8
7,685
2.890625
3
[]
no_license
<?php class Operator { public $type; public $value; const OPERATOR = 'operator'; //操作符 const FUNCTIONS = 'function'; //函数名 const INTEGER = 'integer'; //整型字符 const VARIABLE = 'variable'; //变量 const PENDING = 'pending'; //未决 const STRING = 'string'; //字符串 /** * @var FunctionsS...
true
9a496c3dee68cff63b1984b058151cf0ddd233df
PHP
de-graeuler/my-garden
/backend/test/graeuler-garden-collect/ApiTokenTest.php
UTF-8
2,516
2.6875
3
[ "Apache-2.0" ]
permissive
<?php namespace Graeuler\Garden\Collect; use PHPUnit\Framework\TestCase; class ApiTokenTest extends TestCase { private $apiToken; private $salt = '123456'; private $goodtoken = 'unit-test-token'; private $badtoken = 'bad-test-token'; public function setUp() { $this->apiToken =...
true
fb1c86feff14ee801bd7bb11b762e31b769b83a6
PHP
LokiThor2021/tmdb
/src/VfacTmdb/Interfaces/Results/ChangeResultsInterface.php
UTF-8
651
2.515625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * This file is part of the Tmdb package. * * (c) Vincent Faliès <vincent@vfac.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author Vincent Faliès <vincent@vfac.fr> * @copyright Copyright...
true
fa8421b7e313e7e0cc03f8452ee3d190ea3751ae
PHP
GlaucoAmaral/php1
/variaveis/exemplo-04.php
UTF-8
461
3.328125
3
[]
no_license
<?php $nome = (int) $_GET["a"]; //array super global pois nao precisa colocar global nele quando for usar em um outro escopo que nao seja o escopo global, fazendo um cast pois todos os dados vindos de POST ou GET são string. ?a=123 //var_dump($nome); $ip = $_SERVER["REMOTE_ADDR"]; //captura informacoes do ambiente...
true
52fa53f4ac49c6089e74b39991aa40f15c1c5237
PHP
sidiqagus22/yii1-dev
/testdrive/protected/controllers/TesController.php
UTF-8
4,104
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * */ class TesController extends Controller { public function actionIndex() { // $this->render('index'); // $testing = 'buntingbro?'; // $model = Tes::model(); // $tesdata = $model->findAll(); // $this->render('index',array('tesdata'=> $tesdata)); ...
true
9ce1f9fbf020bf534841c847b60ea9fbfbaeb8ad
PHP
younginnovations/aidstream-old
/application/modules/default/models/CsvUpload.php
UTF-8
19,612
2.6875
3
[]
no_license
<?php class Model_CsvUpload { protected $inputFile; protected $data; protected $elementData; protected $error; protected $keys; protected $headerCount; protected $requiredHeaders = array('TransactionType', 'TransactionValue'); protected $ignoredHeaders = array('Activity_Identifier', ...
true
91d9e76d22bf93c793e3944764ee85a70ee126b2
PHP
kuronekowen/php-delete-line-in-file
/php-delete-line-in-file.php
UTF-8
370
3.28125
3
[ "WTFPL" ]
permissive
<?php function deleteLineInFile($file,$string) { $i=0;$array=array(); $read = fopen($file, "r") or die("can't open the file"); while(!feof($read)) { $array[$i] = fgets($read); ++$i; } fclose($read); $write = fopen($file, "w") or die("can't open the file"); foreach($array as $a) { if(!strstr($a,$str...
true
610301bc45dcf76614bf060c65da30c6ce96eea4
PHP
renatosoares/playground
/src/weather-demonstration/index.php
UTF-8
1,630
2.984375
3
[ "MIT" ]
permissive
<?php require_once( "Services/Weather.php" ); $weather = new Services_Weather(); $wdc = $weather->service( 'Weatherdotcom' ); function get_average( $zip ) { global $wdc; $fc = $wdc->getForecast( $zip, 7 ); $dayavg = 0; foreach ( $fc['days'] as $day ) { $high = $day['temperatureHigh']; $low = $day['...
true
430a75dcb2b955a9450b50784df7a15384f366b3
PHP
JerCo/Starter-Php-login-and-quiz-site
/read_log.php
UTF-8
955
2.828125
3
[]
no_license
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); require './requires/u_auth.php'; if (isset($_GET['clear']) && $_GET['clear'] == 'true'){ $file = './logs/log.txt'; if($handle = fopen($file, 'w')){ // overwrites // rewind($handle); fwrite($handle, "L...
true
22f2829c5ed2ab050829938444404f55eb77e77a
PHP
vshmakov/specifications
/src/Security/CurrentUserProvider.php
UTF-8
520
2.625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Security; use App\Entity\User; use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; use Symfony\Component\Security\Core\Security; final class CurrentUserProvider { public function __construct(private Security $security) { } public functi...
true
deb4a8ed118fdb2e0b0b95de41be81d124edae33
PHP
CodeExpertsLearning/dicas-php-codigos
/date_format.php
UTF-8
381
3.21875
3
[]
no_license
<?php //Data $data = '2019-06-29 13:40:00'; //Formato da Data antes da Formatação $mascaraDataAtual = 'Y-m-d H:i:s'; //Formato da Data para Formatação $mascaraDataParaFormatar = 'd/m/Y H:i:s'; //Iniciando formatação $data = DateTime::createFromFormat($mascaraDataAtual, $data); //Formatando data print $data->format(...
true
8fa687b14b864be40d8d036b1a47d7244d6d2b6c
PHP
baguy/cadastro_laravel
/app/validators.php
UTF-8
4,618
3
3
[]
no_license
<?php Validator::extend('alpha_spaces', function($attribute, $value) { return preg_match('/^[\pL\s]+$/u', $value); }); Validator::extend('array_full', function($attribute, $value, $parameters) { $is_full = (in_array('', $value)) ? false : true; return $is_full; }); Validator::extend('array_unique', ...
true
6d60f762e482edd40f67a3e1eb56f74701ca4047
PHP
ub1956/Medical-Job-Portal
/app/libraries/DbHelper.php
UTF-8
742
3
3
[]
no_license
<?php /** * Description of Database Library * * @package Library * @author Eftakhairul Islam <eftakhairul@gmail.com> * @website http://eftakhairul.com */ class DbHelper { public static function getWhere($filters, $extra = array()) { $filtersArray = array(); foreach ($filter...
true
a309fbbb1cba727daf4274b9e479dcf4bbedc3f9
PHP
nulpatrol-sandbox/FastBicycle-Framework
/Exception/HttpNotFoundException.php
UTF-8
566
2.859375
3
[]
no_license
<?php namespace Framework\Exception; /** * Class HttpNotFoundException * * @author Rost Khanyukov <rost.khanyukov@gmail.com> * @package Framework\Exception */ class HttpNotFoundException extends \Exception { /** * HttpNotFoundException constructor * * @param string $message Exception message ...
true
9d2dbca1f910c909db2ce41582d55556f8585c65
PHP
gnut06300/debuterEnPhp
/bases.php
UTF-8
760
3.6875
4
[]
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> <body> <!-- Commentaire HTML --> <?php /* On écrit Hello World*/ echo "<h1>Hello World !!</h1>"; // L'injection de variable fonctionne UNIQUEM...
true
16e160c73299ba4f2921716f443592bad1089add
PHP
josebamango/PHP
/DAW2-main/DAW2-main/DWES/Examenes/Examen 1Ev - 2/nuevacompra.php
UTF-8
1,664
2.921875
3
[]
no_license
<?php require_once "queriesPDO.php"; $texto = ""; if (isset($_POST["insertar"])) { if (empty($_POST["fecha"]) || empty($_POST["importe"])) { $texto = "Faltan datos por introducir"; } else { if (insertarCompra($_POST["comercio"], $_POST["cliente"], $_POST["fecha"], $_POST["importe"])) { ...
true
d8b1808d96b32f20fe5d59e8d71e0611de0a5ded
PHP
ircmaxell/php-cfg
/lib/PHPCfg/Op/Expr/Assertion.php
UTF-8
822
2.65625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * This file is part of PHP-CFG, a Control flow graph implementation for PHP * * @copyright 2015 Anthony Ferrara. All rights reserved * @license MIT See LICENSE at the root of the project for more info */ namespace PHPCfg\Op\Expr; use PHPCfg\Assertion as Assert; use PHPCfg\Op\...
true
2145d56ca181a913b5ae306959c4368ac684d957
PHP
KuhKatz/Webshop-Project
/WebProject/nav.php
UTF-8
1,121
2.625
3
[]
no_license
<?php /*$items = array( "mainmenu" => "Main Menu", "nes" => "NES", "snes" => "SNES", "n64" => "N64", "virtualboy" => "Virtual Boy", "gamecube" => "GameCube", "wii.php" => "Wii", "wiiu" => "Wii U", "switch" => "Switch", "gameboy" => "Game Boy", "gameboycolor" => "Game Boy Color", "ds" => "DS", "3ds" => "DS...
true
2b647db75c80f46666a10ad30dc23ac177852a7e
PHP
1soft/formValidation
/process.php
UTF-8
2,180
2.578125
3
[]
no_license
<?php $errors = array(); // array to hold validation errors $data = array(); // array to pass back data // validate the variables ====================================================== foreach($_POST as $key => $value) { if (empty($value)) $errors[$key] = $key . ' '.$value.' is invalid'; }...
true
00ab4c4bcec2312909dff825cccad84a807e7566
PHP
rahulyhg/liga-manager-api
/src/Infrastructure/Persistence/RedisEventPublisher.php
UTF-8
680
2.84375
3
[]
no_license
<?php declare(strict_types=1); namespace HexagonalPlayground\Infrastructure\Persistence; use HexagonalPlayground\Domain\Event\Event; use HexagonalPlayground\Domain\Event\Subscriber; use Redis; class RedisEventPublisher implements Subscriber { /** @var Redis */ private $redis; /** * @param Redis $re...
true
ff3dc43e0e7fc86176f56f6757c8039b1ef59629
PHP
saulalvarado9777/p_venta
/controlador/ventas_controller.php
UTF-8
3,662
2.6875
3
[]
no_license
<?php include_once '../modelo/venta.php'; include_once '../modelo/cliente.php';// para poder utilizar funciones de otro modelo tenemos que agregar la ruta del archivo del modelo //include_once '../modelo/conexion.php';//el include se usa cuando hay mas de un modelo en el controlador $cliente= new cliente();//instanciom...
true
c31b8029e9a344c40eb2685e58384ef7fed90deb
PHP
joaopmarcal/php-io
/making-writing-easier.php
UTF-8
137
2.53125
3
[]
no_license
<?php $cursos = "\nDesign Patterns PHP II: Boas práticas de programação"; file_put_contents('cursos-php.txt', $cursos, FILE_APPEND);
true
c83b711b4ec58a0d08209398c8d61b4f4f8e1388
PHP
likenhp/php-practice
/newclass.inc.php
UTF-8
1,634
3.9375
4
[]
no_license
<?php /* private only allows usage within the class, does not allow extensions public allow usage outside of classes protected can only be access within the same class, but also allows extensions of the class */ class NewClass { // properties and methods here public $info = "Information"; } // $object = new NewC...
true
b6bf8ba5e96d0490be168dcb3f66dfada52fa405
PHP
warz66/Solution-mairie-symfony-5
/src/Entity/CarrouselObjet.php
UTF-8
3,905
2.578125
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use Vich\UploaderBundle\Mapping\Annotation as Vich; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\Validator\Context\ExecutionContextInterface; /** * @ORM\Entity(reposit...
true
830f39d00a509592fd500b3ef54f31a153bd9142
PHP
ASHOK6266/esgi
/test-performance/travaux-practique/rendre/cc-tests-de-perf-master/tests/RegistrationControllerTest.php
UTF-8
3,040
2.640625
3
[]
no_license
<?php namespace App\Tests; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; /** * Functional testing : Registration */ class RegistrationControllerTest extends WebTestCase { /** * Testing registration restrictions * No password given * Asserting Error */ public function testEmpt...
true
9f9753e9966ef6aa3ef8289c1a1ee2ce913476ed
PHP
sofwar/trade-opskins-api
/src/Resources/ITrade/GetTradeUrl.php
UTF-8
1,223
2.9375
3
[ "MIT" ]
permissive
<?php namespace SofWar\Opskins\Resources\ITrade; use SofWar\Opskins\Resources\BaseModel; class GetTradeUrl extends BaseModel { /** * OPSkins.com User ID. * * @var int */ protected $id; /** * Your trade token. * * @var string */ protected $token; /** ...
true