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
55969df3cbfce167098e38e66fae05581134b755
PHP
rtp-ch/smarty
/Packages/Libraries/smarty/smarty/development/PHPunit/CompileDelimiterTests.php
UTF-8
803
2.609375
3
[]
no_license
<?php /** * Smarty PHPunit tests compilation of delimiter tags * * @package PHPunit * @author Uwe Tews */ /** * class for delimiter tags tests */ class CompileDelimiterTests extends PHPUnit_Framework_TestCase { public function setUp() { $this->smarty = SmartyTests::$smarty; SmartyTests::init();...
true
3919d8e55eedc1528b70c34d260adef36bd2eea6
PHP
Freddis/inferred
/src/Types/ParameterSchema.php
UTF-8
884
2.953125
3
[]
no_license
<?php declare(strict_types=1); namespace Inferred\Types; use Inferred\Values\IDefaultValue; class ParameterSchema implements IParameterSchema { protected string $name; protected ?IDefaultValue $defaultValue = null; protected ?ITypeSchema $type = null; public function __construct(string $name, ?IType...
true
dc8a6dec80cd8920b34a64b1e81bbdb1748e3fc2
PHP
duyquang1202/screeenly
/app/Screenshot/Screenshot.php
UTF-8
3,390
2.890625
3
[ "MIT" ]
permissive
<?php namespace Screeenly\Screenshot; use App; use Config; use File; use Screeenly\Screenshot\PhantomJsClient as Client; class Screenshot { public $url; public $width; public $height; public $delay; public $path; public $filename; public $assetPath; public $base64; public $stora...
true
f48a66a1dbdc9fd4184e95fbc0f282a82a938348
PHP
NaokiOouchi/dokusyu-php
/section10/Area2.php
UTF-8
160
3.328125
3
[]
no_license
<?php class Area { public static $pi = 3.14; public static function circle(float $radius):float { return pow($radius, 2)*self::$pi; } }
true
f974853ee42b28ed7a3d09e4dc4cf2087d8523b1
PHP
roneigy/listacontatos
/temcontatos.php
UTF-8
2,258
2.546875
3
[]
no_license
<html> <head> <meta charset="utf-8" /> <title>Lista de Contatos</title> <link rel="stylesheet" href="contatos.css" type="text/css" /> </head> <body> <h1>Lista de Contatos</h1> <form> <fieldset> <legend>Nova contato</legend> ...
true
69b3245209a1a1e5059942d99c06b25341750978
PHP
maLahrim/Blog-PHP-MVC-OOP
/controller/PostsClass.php
UTF-8
1,345
2.984375
3
[]
no_license
<?php // Request all blog posts + all blog comments + all signaled comments // Parent Front end controler in controller/frontend.php namespace Controller; use Model\CommentManager; use Model\PostManager; class PostsClass { public $_postsArray; public $_commentsArray; public function __construct($vie...
true
1f9ae0534e74c7ed78234a53466ff3aa745cd342
PHP
Oktopost/Wave
/src/Wave/Base/StorageLayer/IData.php
UTF-8
397
2.609375
3
[ "MIT" ]
permissive
<?php namespace Wave\Base\StorageLayer; /** * @skeleton */ interface IData { /** * @return ILocalPackages */ public function localPackages(); /** * @param string $serverName * @return IServerState */ public function localServerState($serverName); /** * @return IServers */ public function serv...
true
a40cdc91e8277a628352968ab70e8a1653896d1e
PHP
tonysh518/ave_photowall
/api/protected/models/User.php
UTF-8
4,107
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * This is the model class for table "User". * * The followings are the available columns in table 'User': * @property integer $uid * @property string $username * @property string $screen_name * @property string $password * @property string $salt * @property string $sns_uid * @property string $acces...
true
45a529863d2d614efc14a7150fe319d243040ba2
PHP
dp-ifacesoft/Ice
/Source/Ice/Helper/Config.php
UTF-8
2,687
2.90625
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Ice\Helper; use Ice\Core\Logger; class Config { /** * Get more then one params of config * * @param array $config * @param $key * @param bool $isRequired * @return array * @author dp <denis.a.shestakov@gmail.com> * * @version 0.4 * @since 0.4 ...
true
88c4d07e616a03bd5bc26f605ae415a8b10072d4
PHP
matheus-lauritzen/CRUD_star_wars
/classes/Planeta.php
UTF-8
1,397
2.984375
3
[]
no_license
<?php require 'Conexao.php'; class Planeta { private $conexao; public function __construct(){ $con = new Conexao(); $this->conexao = $con->getConexao(); } public function listar(){ $sql = 'SELECT * FROM planeta;'; $q = $this->conexao->prepare($sql); $q->e...
true
e6a73f8a3275b3e2fdfcc1bb2ed22e4edee4d6dd
PHP
IrfanJulaihi/Litigation-Tracking-System-LiTracks-
/UserChangeEmail.php
UTF-8
6,918
2.71875
3
[]
no_license
<?php require_once('Connections/localhost.php'); ?> <?php if (!isset($_SESSION)) { session_start(); } $MM_authorizedUsers = "1"; $MM_donotCheckaccess = "false"; // *** Restrict Access To Page: Grant or deny access to this page function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) { // For security, ...
true
3ed37007d55aa967032c32bb1c35fc69377cfc60
PHP
helsingborg-stad/hbg-trend-omvarlds-analys-2021
/library/Customizer/DesignLibrary.php
UTF-8
5,704
2.703125
3
[ "MIT" ]
permissive
<?php namespace Municipio\Customizer; class DesignLibrary { private $apiUrl = 'https://customizer.helsingborg.io/'; private $sharedModKeys = [ 'colors', 'radius', 'modules', 'site' ]; private $apiActions = [ 'post' => "", 'single' ...
true
d99d5232a27416ffb03311d1ae35332c8ccb7b52
PHP
FurkanKuyular/CorporateWebHelp
/app/Exports/ExcelExport.php
UTF-8
763
2.65625
3
[]
no_license
<?php namespace App\Exports; use Maatwebsite\Excel\Concerns\Exportable; use Illuminate\Database\Eloquent\Collection; use Maatwebsite\Excel\Concerns\WithHeadings; use Maatwebsite\Excel\Concerns\FromCollection; class ExcelExport implements FromCollection, WithHeadings { use Exportable; private $excelArray; ...
true
0e0c01491e2da484e4687d5175139a6cd5e1b96f
PHP
albanx/zf3-skeleton-app
/module/Auth/src/Controller/IndexController.php
UTF-8
1,116
2.53125
3
[ "CC0-1.0" ]
permissive
<?php namespace Auth\Controller; use Auth\Services\AuthService; use Zend\Mvc\Controller\AbstractActionController; use Zend\View\Model\JsonModel; use Application\Model\Entity\User; class IndexController extends AbstractActionController { protected $storage; protected $authService; public function __constru...
true
a975a09a9f1b6cb261918c1ae0c475eab0b5f492
PHP
denisfelic/series-manager-in-laravel
/app/Http/Requests/SeriesFormRequest.php
UTF-8
1,057
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class SeriesFormRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get...
true
b244af4b5eebc9de49d0b1b862b2b20f25c4495b
PHP
sitemavens/maven-common
/app/mail-lists/mail-list.php
UTF-8
2,526
2.890625
3
[]
no_license
<?php namespace Maven\MailLists; // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; /** * * @author mustela */ abstract class MailList { private $options = array( ); private $maillistKey; private $key; private $name; private $id; private function getMaillistKey() { //We need to saniti...
true
3d89f5020785408fa3e1d4e38c390b66a64ab877
PHP
Lets-Build-Something/PairUp
/database/factories/ModelFactory.php
UTF-8
1,748
2.734375
3
[ "MIT" ]
permissive
<?php /* |-------------------------------------------------------------------------- | Model Factories |-------------------------------------------------------------------------- | | Here you may define all of your model factories. Model factories give | you a convenient way to create models for testing and seeding yo...
true
c406ecebfd8915d0f7e86cf1acef7110b4a92567
PHP
benzocv/accounting-software-php
/system/library/log.php
UTF-8
1,291
3.0625
3
[]
no_license
<?php class Log { private $file; private $handle; public function __construct($filename) { $this->file = DIR_SYSTEM . 'logs/' . $filename; $this->handle = fopen($this->file, 'a'); } public function __destruct() { fclose($this->handle); } public function write($mess...
true
9eb8437d71e4142056b1d98b7f13ce27975de332
PHP
FedeGuayas/tareas
/database/seeds/AreaSeeder.php
UTF-8
483
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; class AreaSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { factory(App\Area::class, 10)->create(); // //Solo si el numero de usuarios es el mismo que de areas sino da error // ...
true
b51462391fd5aa735a5142b832db02fb8bbfcc46
PHP
josephjlee/PHP-2
/training/1.php
UTF-8
320
3.234375
3
[]
no_license
<?php //$user = array("first_name" => "Brad", "last_name" => "Traversy", "email" => "techguyinfo@gmail.com"); $fruits = array("Apple","Orange","Grapes"); foreach($fruits as $fruit) { echo $fruit."<br>"; } ?> <ul> <?php foreach($fruits as $fruit) :?> <li><?php echo $fruit; ?></li> <?php endforea...
true
4a4b20410a37669b45cec6ca67837f82ec3bee5b
PHP
Lorenzschaef/PHPDDDMD
/src/NoLayerSkippingRule.php
UTF-8
3,032
2.84375
3
[]
no_license
<?php namespace Lorenzschaef\PHPDDDMD; use PDepend\Source\AST\AbstractASTClassOrInterface; use PDepend\Source\AST\ASTClass; use PHPMD\AbstractNode; use PHPMD\Rule\ClassAware; class NoLayerSkippingRule extends DDDBaseRule implements ClassAware { /** * This method should implement the violation analysis al...
true
9225684e430c30cda3495876290cb25fb808bb50
PHP
Nogrod/ebay-sdk-php
/src/MerchantData/NotificationPayloadTypeCodeType.php
UTF-8
1,228
2.65625
3
[ "MIT" ]
permissive
<?php namespace Nogrod\eBaySDK\MerchantData; /** * Class representing NotificationPayloadTypeCodeType * * This type is deprecated. * XSD Type: NotificationPayloadTypeCodeType */ class NotificationPayloadTypeCodeType { /** * Constant for 'eBLSchemaSOAP' value. * * New Schema format (used by the...
true
e6510c80aaf6821570709793f12ab5b4e5e86610
PHP
alexboccia/codigos
/sorteio-megasena.php
UTF-8
844
2.9375
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Sorteio Megasena</title> </head> <body> <!-- tag html --> <h1><b>SORTEIO DA MEGASENA</b></h1> <hr> <br> <form method="post"> <fieldset> <legend><b>Informe à quantidade de dezenas</b></legend> <input type="number" name="dezenas...
true
88b55d7e9bbf113607ee92ad9b57d9bfa86569ce
PHP
gabi2018/i-library
/app/categories/controller/Categories.php
UTF-8
1,789
3.03125
3
[]
no_license
<?php class Categories extends Controller{ private $categoryModel; # Con el metodo contructor, crea la variable category y se le asigna el modelo de la categoria por parametro public function __construct(){ parent::__construct(); $this->categoryModel = $this->model('Category'); } public f...
true
bd0ddec5f6ac1b73a59684702e1534970e8e8a4b
PHP
j2made/Simple-Social-Stuff
/youtube/youtube-subscriber-count-wp-assist.php
UTF-8
3,991
2.671875
3
[]
no_license
<?php /** * Get YouTube Subscribers (Youtube API v3) * ---------------------------------------- * Uses Basic Auth to get Subscriber count. * * Create a Google Developer account, and login to the developer console * (https://console.developers.google.com). Create a project and connect * the...
true
6cde0f1dda6e2340c6a564199ae6581f3848d92a
PHP
agence-webup/laravel-form
/src/Elements/Radio.php
UTF-8
1,413
2.59375
3
[ "MIT" ]
permissive
<?php namespace Webup\LaravelForm\Elements; class Radio extends Base { protected $type; protected $radios = []; public function __construct($type, $oldValue) { parent::__construct($oldValue); $this->type = $type; } public function render() { if (array_key_exists('...
true
33fea8ed8172584baad5e022d68b8a21e5d1c22b
PHP
mnapoli/infection
/src/Mutation.php
UTF-8
2,847
2.84375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Copyright © 2017-2018 Maks Rafalko * * License: https://opensource.org/licenses/BSD-3-Clause New BSD License */ declare(strict_types=1); namespace Infection; use Infection\Mutator\Util\Mutator; use PhpParser\Node; /** * @internal */ final class Mutation implements MutationInterface { /** ...
true
c62a195c766bbc2d8d5bddaa6df0a9104bcbfb1f
PHP
j18015/KaraokeScore_server
/post.php
UTF-8
478
2.78125
3
[]
no_license
<?php $date = htmlspecialchars($_POST["date"]); $title = htmlspecialchars($_POST["title"]); $singer = htmlspecialchars($_POST["singer"]); $score = htmlspecialchars($_POST["score"]); //MySQL.phpを取り込み include 'MySQL.php'; //MySQLに接続 $up = new MySQL(); //MySQLに書き込み $up->add($date, $title ,$...
true
733d67d220160fc1f21ff474a965e604d0e9dc4f
PHP
dwn84/HP3
/Ejemplos PHP DB/manejoDatos.php
UTF-8
1,240
4.0625
4
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <h1>Hello world</h1> <?php echo "<h2>Experimento 1</h2>"; echo "</br>"; echo "<h3>Experimento 2</h3>"; ...
true
9a5147418fd306bbcaa5cd167b9fb7a040a626a6
PHP
royer-z/CS490ReleaseVersionRepo
/login.php
UTF-8
1,102
2.8125
3
[]
no_license
<?php session_start(); // https://web.njit.edu/~rvz2/login.php // cURL in PHP $username = $_POST['username']; $password = $_POST['password']; if($username === '' || $password === '') { // Detect if any form field is empty echo json_encode('empty'); } else { // Send data using cURL $formData; $formData->username =...
true
d9aabb5f3e61fb2cf6841756f5ba9fba9817bd4d
PHP
MogammadTaariqBardien/php-lessons
/2018-11-20/destroy.php
UTF-8
557
3.078125
3
[]
no_license
<?php session_start(); ?> <!DOCTYPE html> <html lang="en"> <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>How to delete a session</title> </head> <body> <?php session_unset()...
true
6dc1d5dc055adf363730e1ffe2e1529b1c413a2a
PHP
deshi9012/workice
/app/Services/SvgFactory.php
UTF-8
2,972
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Services; use Exception; use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Collection; use Illuminate\Support\Facades\Blade; use Illuminate\Support\HtmlString; class SvgFactory { private $files; private $svgCache; private $config = [ 'inline' => false, ...
true
e39e2c21b3eb2e3cb12137b46e7e84904e0d1a28
PHP
makasim/JRM
/test/fixtures/JRMTestSerializableClass.class.php
UTF-8
562
3.015625
3
[]
no_license
<?php class JRMTestSerializableClass implements IJRMSerializable { public $x; public $y; public $z; public function __construct() { } /** * @return array */ public function getJrmProperties() { return array('x1'=> $this->x, 'x2' => $this-...
true
ebe512ccfc1d5289bd5f2f2561909dbfb8fa6279
PHP
johanpoirier/wallblog
/src/Controller/ItemController.php
UTF-8
4,887
2.5625
3
[]
no_license
<?php namespace App\Controller; use App\Repository\ItemRepository; use App\Service\PictureService; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\JsonResponse; class ItemContro...
true
54301b99df30c8d792e4482312e663edc486a65d
PHP
gordon-leung/GourmetGuru
/app/models/.svn/text-base/store.php.svn-base
UTF-8
5,558
2.546875
3
[]
no_license
<?php class Store extends AppModel { var $name = 'Store'; var $displayField = 'name'; var $validate = array( 'user_id' => array( 'numeric' => array( 'rule' => array('numeric'), 'message' => 'user_id is numeric' ) ), ...
true
639cd20e2f8bb6133fe1198f27817a3e144ac56f
PHP
sammiee2003/A-few-moments-later-3f9ece3d
/tijd.php
UTF-8
446
3.375
3
[]
no_license
<?php $input = readline(""); $a = explode(" ", $input); $b = 0; foreach ($a as $value) { $i = substr($value, -1); switch($i){ case "d": $b=$b+((int)$value * 86400); break; case "h": $b=$b+((int)$value * 3600); break; case 'm': $b=$b+((i...
true
7f72458c9de3228e56007a497c843b930477f167
PHP
vainia/Learning-XML
/05_09_2017/xml/przyklad3.php
UTF-8
606
2.796875
3
[]
no_license
<?php $i = 0; $uchwyt = fopen("przyklad3.csv","r"); $string = "<?xml version=\"1.0\" encoding=\"windows-1250\"?>\n<?xml-stylesheet type=\"text/xsl\" href=\"zestawienie.xsl\"?>\n\t<tozsamosc>\n"; while(($data = fgetcsv($uchwyt, 1000, ";")) !== FALSE) { $i++; $string .= "\t\t<osoba nr=\"$i\">\n"; $s...
true
561521439c3e083fb29346b3f02328ef03934c45
PHP
kritik94/hexlet-workshop-oop-4
/src/Weather/Api/Apixu.php
UTF-8
1,782
2.75
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php namespace App\Weather\Api; use \GuzzleHttp\ClientInterface; use \GuzzleHttp\Exception\ClientException; use \App\Weather\WeatherInfo; class Apixu implements ApiInterface { const API_URL = 'http://api.apixu.com/v1/current.json'; private $httpClient; private $apiKey; public function __construct(...
true
27d4f7b660b1f723c44702eb22acf37f559720c9
PHP
Kaymara/framework
/src/Compose/Config/Repository.php
UTF-8
2,840
2.953125
3
[ "MIT" ]
permissive
<?php namespace Compose\Config; use Compose\Contracts\Config\Repository as RepositoryInterface; use Compose\Utility\Hash; use Tightenco\Collect\Support\Collection; class Repository implements RepositoryInterface, \ArrayAccess { /** * Config items * * @var array */ protected array $items =...
true
e24129a0074b7c740887785276052db9b660508f
PHP
sloan58/stocker
/lib/KarmaTek/Stocker.php
UTF-8
5,812
2.9375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: sloan58 * Date: 9/3/14 * Time: 7:41 PM */ namespace lib\KarmaTek; class Stocker { public static function LevFreeCash($parentTable,$objPHPExcel,$company,$columns,$row) { // Create Total Cash Flow From Operating Activities $tcffoa = []; $...
true
9ea5c62b45deaa31ebb0c2a3812caa14b52d43d4
PHP
VyacheslavGL/PHP_work
/dz_OOP/Patient.php
UTF-8
1,541
3.0625
3
[]
no_license
<?php require_once "Doctor.php"; class Patient { private $name = null; // private $date = null; private $date = []; private $doctor = null; function __construct() { $this->date = date_create(); } public function getName() { return $this->name; } ...
true
69d1e071e2f57c3bed44b50f257bdcbefb8f7196
PHP
gaiduduk/JavaScriptEngine
/test_res/php/js_parser.php
UTF-8
14,426
2.609375
3
[]
no_license
<?php use Peast\Syntax\Node\ArrayExpression; use Peast\Syntax\Node\AssignmentExpression; use Peast\Syntax\Node\BinaryExpression; use Peast\Syntax\Node\BlockStatement; use Peast\Syntax\Node\CallExpression; use Peast\Syntax\Node\ClassDeclaration; use Peast\Syntax\Node\ExpressionStatement; use Peast\Syntax\Node\ForStatem...
true
aa15b8878a9e2491c654949366b1f9c3051e2206
PHP
liutao1125/test
/include/CacheKey.php
UTF-8
16,201
2.671875
3
[]
no_license
<?php //utf-8 /* * 临时缓存key的统一接口 */ class CacheKey { static $prefix='sxzx'; //获取用户key static function get_user_key($uid) { return self::$prefix.__FUNCTION__.$uid.'aa'; } //获取用户name_key static function get_user_name_key($name) { return self::$prefix.__FUNCTION__.$name; } //获取班级key static functio...
true
c2a357951998464528aee60312147af48c6b4d2f
PHP
sanjaysojan-dev/CS348_CW_Dev
/cs348_Main/app/TMDB.php
UTF-8
496
2.671875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Support\Facades\Http; class TMDB { private $apiKey = '13940090e50ffcce1cfadc44221aff67'; public function __construct(){ } /** * A Method to retrieve up coming films from API * * @return \Illuminate\Http\Client\Response */ public function ...
true
ce7f0c449ab576c8a34170a26bbf75d7f3cfea62
PHP
Prastiow/WebLatihan
/materi3/Latihan_35.php
UTF-8
136
2.75
3
[]
no_license
<?php $password = "123456"; $posisi = strpos($password, "2"); echo $password; echo " Angka 2 berada dalam index string ke $posisi";
true
cd71455ecb394efa1a589585df7222ac48a3fe88
PHP
Piotezaza/CoursNumericall
/PHP/BASIQUE/7-exoBoutique/inc/fonction.php
UTF-8
1,612
3.28125
3
[]
no_license
<?php // Création d'une fonction pour afficher les var_dump() & print_r() function debug($var, $mode = 1) { // Version Bootstrap echo '<div class="text-light font-weight-bold p-3 mb-5" style="background: #' . rand(111, 999) .'">'; // Version manuelle // echo '<div style="color: white; font-weight: bol...
true
283749bf17642e36fc1da66fc40957f687de947e
PHP
guilhermehorta/coffee
/app/Participate.php
UTF-8
16,100
2.828125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Relations\Pivot; use App\RuleSet; class Participate extends Pivot { /** * The attributes that should be cast to native types. * * @var array */ protected $casts = [ 'inventory' => 'object', 'oldInventory' => 'object' ...
true
beaa65c3ef737ab50a024d36b1198e265c61d4fd
PHP
ILuisNovoa/Empiregaming
/models/Login.php
UTF-8
1,061
2.671875
3
[]
no_license
<?php /** * modelo Login */ class Login { private $pdo; public function __construct() { try { $this->pdo = new Database; } catch (PDOException $e) { die($e->getMessage()); } } public function validateUser($data) { try { $st...
true
de8093d5567c43a1a1dfc9bdaf10fcef0f716096
PHP
Murzbul/laravel
/app/Http/Api/Requests/Auth/AuthLoginRequest.php
UTF-8
785
2.84375
3
[]
no_license
<?php namespace App\Http\Api\Requests\Auth; use Digichange\Payloads\Auth\AuthLoginPayload; use Illuminate\Http\Request; class AuthLoginRequest implements AuthLoginPayload { const EMAIL = 'email'; const PASSWORD = 'password'; /** @var Request */ private $request; public function __construct(Requ...
true
bcc4ff61eea805800c952684b747723e5cca8d13
PHP
127511/PHP3_Eind2
/classes/Field.php
UTF-8
812
3.28125
3
[]
no_license
<?php require 'Card.php'; class Field{ public $difficulty; public function createField(){ if($this->difficulty == 0){ for ($i=1; $i < 17; $i++) { $button = new Card($i); $button->render($i); if ($i % 4 == 0) { echo "<br>"; } ...
true
108ca5052af6956dc771d013ee9a4d47534d0002
PHP
whentony/cursoSelenium
/tests/PaginaInicialTest.php
UTF-8
2,549
2.71875
3
[]
no_license
<?php namespace tests; use Facebook\WebDriver\Remote\RemoteWebDriver; use Facebook\WebDriver\Remote\DesiredCapabilities; use Facebook\WebDriver\Remote\RemoteWebElement; use Facebook\WebDriver\WebDriverBy; use Facebook\WebDriver\WebDriver; use PHPUnit\Framework\TestCase; class PaginaInicialTest extends TestCase { p...
true
ecf6849b87ee291203fb5a1f33f7fe8987f02b86
PHP
Nikhil1311/Expense-Management
/get_group_totals.php
UTF-8
1,394
2.671875
3
[]
no_license
<?php include('init.php'); $expenses = array(); $personal_totals = get_personal_expense(); if(is_null($personal_totals[0])) { $expenses[] = 0; } else { $expenses[] = $personal_totals; } $personal_group_totals = get_personal_group_totals(); // print_r($personal_group_totals); if(empty($personal_group_totals)) { ...
true
88cfdca95884a3c6cd6d55a6c6833abace26f30e
PHP
garaujodev/PHP
/PrimesNumber.php
UTF-8
182
3.640625
4
[]
no_license
<?php for($i = 2; $i <= 1000; $i++) { $prime = true; for($aux = 2; $aux < $i; $aux++) { if($i % $aux == 0) { $prime = false; break; } } if($prime) echo $i . " "; }
true
ba05f75cea5157a8270a0e59c38c95351c20a2fd
PHP
hsamshod/auth
/app/lib/Db.php
UTF-8
4,835
3.359375
3
[]
no_license
<?php /** * Class Db. * Establishes database connection and runs queries. */ class Db extends Singleton { /* @var static $_instance Class instance */ protected static $_instance; /* @var PDO $_db PDO connection instance. */ private static $_db; protected function __construct() { ...
true
71f405a24e17262ae556e77e91daeec8b5f59105
PHP
barnebys/analytics-php
/src/Impression.php
UTF-8
1,331
3.140625
3
[ "MIT" ]
permissive
<?php namespace Barnebys\Analytics; /** * Class UrlHelper * @package Barnebys\Analytics */ final class Impression { const VERSION = '1.0'; private $url = ''; /** * Impression constructor. * @param UrlBuilder $urlBuilder * @param $programId * @param null $dimension1 * @param n...
true
9bc7821760a4f53ad8cf9b0d9fea77572d124192
PHP
sergiocardoso/PHPicture
/Lib/Core/PHPFactory.php
UTF-8
3,564
2.796875
3
[]
no_license
<?php namespace PHPicture\Core; Class PHPFactory { use PHPTools; private static $file = null; private static $file_absolute_path = null; public static function make($file, $hash, $parameters){ $PHPicture = PHPicture::getInstance(); self::$file = pathinfo($PHPicture->imagesPath().'/'.$file); self::$file...
true
d3728c74e5967e439165c01518666ee9b270e6c1
PHP
asma-sassi/bio-market
/forms/panier.class.php
UTF-8
1,146
3.015625
3
[]
no_license
<?php class panier{ private $DB; public function __construct($DB){ if(!isset($_SESSION)) { session_start(); //vérifier que la session existe } if(!isset($_SESSION['panier'])) { $_SESSION['panier'] = array(); } $this->DB = $DB; if(isset($_GET['delPanier'])) $this->del($_GET['delPanier...
true
190334ab76bff9c8fa04db9553f787c8e1e9cc25
PHP
serhii-sv/luminex
/app/Modules/Parsers/FixerModule.php
UTF-8
2,187
2.703125
3
[]
no_license
<?php namespace App\Modules\Parsers; use App\Models\Setting; use GuzzleHttp\Client; /** * Class FixerModule * @package App\Modules\Parsers */ class FixerModule { /** @var string $api */ private $api = 'http://data.fixer.io/api/'; /** * @param string $method * @param string|null $type * ...
true
e2bfbf765e4b00d70a0fd36eda6310e55e810282
PHP
s-kanako/php-1stweek
/class/3_connect.php
UTF-8
136
2.71875
3
[]
no_license
<html> <body> <?php $text = "Spice up"; echo "I love ".$text."!"; ?> </body> </html>
true
1738ea1b4a3e57fd73b18bddb29d6f9cbcee7a8c
PHP
dvdknaap/DirectadminAudit
/directadminManager.php
UTF-8
12,169
2.515625
3
[]
no_license
#!/usr/local/bin/php -c /usr/local/lib/php.root.ini -q <?php /*********************************************************************\ * General script which saves all password creation and changes * * Also handles the SpamNotify change in the SpamAssassin Setup screen * \******************************************...
true
09fd5b7412d333d524e7270e570053c9471a8c56
PHP
genkgo/mail
/test/Unit/GenericMessageTest.php
UTF-8
4,659
2.8125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Genkgo\TestMail\Unit; use Genkgo\TestMail\AbstractTestCase; use Genkgo\Mail\GenericMessage; use Genkgo\Mail\Header\GenericHeader; use Genkgo\Mail\Header\MimeVersion; use Genkgo\Mail\Stream\EmptyStream; use Genkgo\Mail\Stream\AsciiEncodedStream; final class GenericMessageTest ...
true
26f6469b7457bd0b577bdd74f038def175f8b97d
PHP
lburgoa/paypal-sdk
/tests/PayPalServiceTest.php
UTF-8
4,430
2.640625
3
[ "MIT" ]
permissive
<?php namespace PaymentGateway\PayPalSdk\Tests; use PaymentGateway\PayPalSdk\Constants\ProductCategory; use PaymentGateway\PayPalSdk\Constants\ProductType; use PaymentGateway\PayPalSdk\PayPalService; use PaymentGateway\PayPalSdk\Requests\StoreProductRequest; use PaymentGateway\PayPalSdk\Requests\UpdateProductRequest;...
true
33f04c2394f7df170610054929d7983c96bb3fa9
PHP
alexandreo/lol-api-connect
/src/lol-api-connect/Client.php
UTF-8
1,341
2.75
3
[]
no_license
<?php /** * @author Alexandre Oliveira * @author Alexandre Oliveira <contato@alexandreo.com.br> */ namespace Alexandreo\LolApiConnect; use Exception; use GuzzleHttp\Client as RequestClient; use Psr\Http\Message\UriInterface; /** * Class Client * @package Alexandreo\LolApiConnect */ class Client extends Request...
true
0771663b54e86fb578aaab1693ddeefeff495efd
PHP
pmdevelopment/tool-bundle
/Twig/TimeExtension.php
UTF-8
4,045
2.734375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: sjoder * Date: 09.11.2015 * Time: 12:52 */ namespace PM\Bundle\ToolBundle\Twig; use DateTime; use PM\Bundle\ToolBundle\Framework\Traits\Services\HasTranslatorServiceTrait; use Twig_Extension; use Twig_SimpleFilter; /** * Class TimeExtension * * @package PM\Bundle\Tool...
true
165856ca349b670989e50d37868afe66f619f462
PHP
brindajani96/laravel-package
/app/Http/Controllers/UserController.php
UTF-8
888
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Intervention\Image\Facades\Image; class UserAvatarController extends Controller { public function store(Request $request) { // validate the image $this->validate($request, [ 'avatar' => 'required|image|max:2000...
true
af2c0af1de150442802bbb3850c7179792cbe204
PHP
tomnomnom/unit-testing
/mocks/usermanager.php
UTF-8
577
3.03125
3
[]
no_license
<?php require __DIR__.'/user.php'; class UserManager { protected $db; function __construct($db = null){ $this->db = $db; } function getByUsername($username){ $s = $this->db->prepare(" select id, username, password from users where us...
true
bdd6a6028521ca7afef09cdf71385d985237f266
PHP
thpkml/PHP_Online_Shop
/config1.php
UTF-8
341
2.671875
3
[ "MIT" ]
permissive
<?php $servername="localhost"; $username="root"; $password="Use_Your_Password"; $dbname="CL"; //connect to the database //1. create connection $conn = new mysqli($servername, $username, $password, $dbname); //2. check connection if ($conn->connect_error){ die("Failed to connect". $conn->connect_erro...
true
0e57bafafee13a3a6c37c4add0b706547859f224
PHP
feliow/barlocator
/gallery.php
UTF-8
2,533
2.828125
3
[]
no_license
<?php include("header.php"); ?> <?php include("config.php"); ?> <div id="pagecontainer" > <div id="form"> <form id="upload" action="" method="POST" enctype="multipart/form-data"> <input type="file" name="upload"/><input type="submit" value="...
true
faffa516e1799591e139766a821dd9a9d7b0c6f6
PHP
ahridin-synamedia/IPTV-Tools-API
/common/user.php
UTF-8
16,286
2.84375
3
[]
no_license
<?php /**********************************************************************************/ /* */ /* user.php */ /* */ /* Author : Ernst Reidinga */ /* Date : 12/04/2021 */ /* Version : 1.0 */ /* ...
true
3156c92411ae956ae0938c1136977971ed3a5509
PHP
hpaghdal/project1
/Assignment 1/test.php
UTF-8
417
2.59375
3
[]
no_license
<?php function get_category_name($category_id) { global $conn; $query = 'SELECT * FROM account WHERE id = :category_id'; $statement = $conn->prepare($query); $statement->bindValue(':category_id', $category_id); $statement->execute(); $category = $statement->fetch(); $statemen...
true
1e744d153798fc0d120db4bc1f86a0ce9450bbda
PHP
daagmbh/mailer
/src/Message/AttachmentMessageInterface.php
UTF-8
390
2.59375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Daa\Library\Mail\Message; /** * This interface extends the MessageInterface with attachments. * * You can use the AttachmentMessageTrait for pre-configured methods. */ interface AttachmentMessageInterface extends MessageInterface { /** * Returns the attachments of this mail. * *...
true
018beb8251b12c93cc410ca87ee21ec3cb4ed12a
PHP
cacomir1008/php2_KaoriIshimaru_05
/select_book.php
UTF-8
4,174
2.71875
3
[]
no_license
<?php // 共通関数読み込み  // ※require_onceとincludeは基本同じ // 違い:require_onceは失敗するとその場でSTOP、includeはそのまま進めてくれる include('funcs.php'); // -------------------------------- // ①ログイン認証 loginCheck(); // $namePreview = // -------------------------------- // ②登録した本の表示 //1.DB接続 $pdo = dbConnect(); //2.データ取得SQL作成 // 自分が登録した かつ 読み終わって...
true
a04d24f0caa25d441f8bd0c9e0320e19d5661973
PHP
objectivehtml/media
/src/Support/Taggable.php
UTF-8
943
2.640625
3
[]
no_license
<?php namespace Objectivehtml\Media\Support; use Illuminate\Support\Collection; use Objectivehtml\Media\Contracts\Taggable as TaggableInterface; trait Taggable { protected $tags; public function tag($key): TaggableInterface { $this->tags([$key]); return $this; } public functio...
true
aa455c343d62256f32c519a894b958de199e687b
PHP
Florent0589/school-demo
/app/Subject.php
UTF-8
768
2.65625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Subject extends Model { protected $table = 'subjects'; static public function calculateSubjectAverage($id, $student_id, $grade_id, $assessment_id) { return StudentMark::where([ 'student_id'...
true
e78ac6af6a7417ca98b07e69b35fa0e9af93819b
PHP
Imtinmin/CTF_Challenge
/35c3CTF/35c3/post/8.php
UTF-8
807
2.515625
3
[]
no_license
<?php class Attachment { private $za = NULL; public function __construct() { $this->za = new SoapClient(null,array('location'=>'http://67.230.186.92:8012','uri'=>'http://67.230.186.92:8012')); } } $c=new Attachment(); $aaa="\$serializedobject\xef\xBC\x84".serialize($c); echo $aaa; #$serialize...
true
5a72c203519bf77e59b931298ff11e945b0c2903
PHP
s9e/TextFormatter
/tests/Plugins/MediaEmbed/Configurator/TemplateBuilderTest.php
UTF-8
2,523
2.53125
3
[ "MIT" ]
permissive
<?php namespace s9e\TextFormatter\Tests\Plugins\MediaEmbed\Configurator; use s9e\TextFormatter\Plugins\MediaEmbed\Configurator\TemplateBuilder; use s9e\TextFormatter\Tests\Test; /** * @covers s9e\TextFormatter\Plugins\MediaEmbed\Configurator\TemplateBuilder */ class TemplateBuilderTest extends Test { /** * @testdo...
true
38eb7cb0871b6845857cf460fc6bb3a252019789
PHP
nimbly/Limber
/src/Exceptions/InternalServerErrorHttpException.php
UTF-8
385
2.859375
3
[ "MIT" ]
permissive
<?php namespace Nimbly\Limber\Exceptions; use Throwable; /** * 500 Internal Server Error exception */ class InternalServerErrorHttpException extends HttpException { public function __construct(?string $message = null, ?int $code = null, ?Throwable $previous = null) { parent::__construct( 500, $message ??...
true
5528fe6864ad2ae5ca195f4ef2125cfb021abb1b
PHP
pierreminiggio/racing-car-kata
/Bowling/src/GameInterface.php
UTF-8
277
3.0625
3
[]
no_license
<?php declare(strict_types=1); namespace Bowling; interface GameInterface { /** * Indique le résultat d'un lancé */ public function roll(int $pins): void; /** * Permet d'obtenir le score de la partie */ public function score(): int; }
true
ea90d0f3808db71ccb6d099c2cdd2d4cce664ad9
PHP
Andi-M96/PHP-course
/Ex_Files_Learning_PHP/Exercise Files/02_06_challenge/start.php
UTF-8
473
3.671875
4
[]
no_license
<?php $min = 1; $max = 50; $guess = 33; //Change this value to test! $num = 33; // Change this value to test! // If you really want to go nuts, try this: //$num = rand($min, $max); if ( $guess < $min || $guess > $max ) { echo '<p>Guess not in range.</p>'; exit(); } if ( $num == $guess ) { echo '<p>Guess...
true
533493a8437a8c1bd3e9cc05a1e53500808b00b5
PHP
MalakasP/Salys
/app/views/paging.php
UTF-8
1,002
2.5625
3
[]
no_license
<div id="pagingLabel"> Pages: </div> <ul id="paging"> <?php foreach ($data['paging']->data as $key => $value) { $activeClass = ""; if($value['isActive'] == 1) { $activeClass = " class='active'"; } if (isset($data['country'])){ if (isset($data['sort'])){ echo "<li{$activeClass}><a href='index.php?m...
true
7adc12619db6060ff2305d87b569af17c2e8bc70
PHP
aurelienFeignon/api_sortir
/src/Security/TokenAuthenticator.php
UTF-8
3,329
2.625
3
[]
no_license
<?php namespace App\Security; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\Exception\AuthenticationException; use Symf...
true
89cf5f71f887180bd3d19174a83a45208d57055a
PHP
PN-promo6/php-project-kingsefiz
/src/Controller/HomeController.php
UTF-8
1,221
2.5625
3
[]
no_license
<?php namespace Controller; use Entity\User; use Entity\Recipe; use ludk\Http\Request; use ludk\Http\Response; use ludk\Controller\AbstractController; class HomeController extends AbstractController { public function display(Request $request): Response { $userRepo = $this->getOrm()->getRepository(Use...
true
74aa5d361d21133f121454f514c44b8658285fee
PHP
jirengu-inc/jrg-renwu4
/member/王欢/task24/code3.php
UTF-8
695
2.625
3
[]
no_license
<?php // echo $_GET; header("Content-Type: text/html; charset=UTF-8"); if ($_GET) { $username = trim($_GET['username']); $data['result'] = true; if ($username == '') { $data['result'] = false; $data['content'] = '用户名不能为空'; } if ($username == 'hello') { $data['result'] = false; $data['content'] ...
true
2fa007277bfb322bac6d76e3df78bd6aa52a2454
PHP
jagdisharma/SquireApp
/frontend/models/Tblrides.php
UTF-8
2,124
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace frontend\models; use Yii; /** * This is the model class for table "TBL_RIDES". * * @property int $id * @property string $r_name * @property string $s_location * @property double $start_latitute * @property double $start_longitude * @property string $d_location * @property double $end_latitud...
true
56cdb43c520236aa20f15479983e35114d756e97
PHP
LNCH/laravel-blog
/src/Models/BlogTag.php
UTF-8
1,592
2.875
3
[]
no_license
<?php namespace Lnch\LaravelBlog\Models; use Illuminate\Database\Eloquent\SoftDeletes; class BlogTag extends BlogModel { use SoftDeletes; protected $fillable = [ 'site_id', 'name' ]; /** * Related post records * * @return \Illuminate\Database\Eloquent\Relations\Belong...
true
9b9f595255c01ab6ec1a8791e290667d19908d44
PHP
nikhilbhatnagar/Diary
/web/welcome.php
UTF-8
1,721
2.78125
3
[]
no_license
<?php include_once("header.php"); //including the database connection file include_once("config.php"); //fetching data in descending order (lastest entry first) $query = "SELECT d.DATE, d.SUBJECT, d.CONTENT, f.FEELTING_TYPE, t.TAG_NAME, d.ATTACHMENT " ."FROM T_DIARY d, T_FEELING f, T_TAG t " ."WHERE d.FEE...
true
ffc68d18669f2111990ba143092121195b000d9c
PHP
musthafa-pa/PHP-Login-form
/login.php
UTF-8
3,719
2.546875
3
[]
no_license
<?php ini_set("display_errors", "1"); error_reporting(E_ALL); $link = "http://ideasforblogging.com"; $con=mysqli_connect("localhost","musthafa","password"); mysqli_select_db($con,"loginsystem"); if(isset($_REQUEST["submit"])) { $username = $_REQUEST["username"]; $password = $_REQUEST["password"]; $qu...
true
0ec1615d81bed4381640a42bfd7e4e64f926b474
PHP
zhangjiquan1/phpsourcecode
/ruoxi520_admin/RXThinkCMF_TP3.2/Application/Common/Common/Zeus.php
UTF-8
17,972
2.84375
3
[ "Apache-2.0" ]
permissive
<?php // +---------------------------------------------------------------------- // | RXThink框架 [ RXThink ] // +---------------------------------------------------------------------- // | 版权所有 2017~2019 南京RXThink工作室 // +---------------------------------------------------------------------- // | 官方网站: http://www....
true
1b8b2f0df645d98576acb812427f447cbfcf2bfd
PHP
paskyorg/nagvel
/app/misMacros.php
UTF-8
1,956
2.703125
3
[]
no_license
<?php /* * Mis Macros * */ function mCC ($str, $suffix = null) { return ucwords(str_replace('_', ' ', $str)) . $suffix; } HTML::macro('form_checkbox', function($name, $errors = null) { $error = null; if ($errors->first($name)) { $error = '<div class="col-md-4 alert alert-dan...
true
ecf47e80fd290c10cc5bc69a84663231ea96b818
PHP
clement90/blog-Partie4
/src/pages/register.php
UTF-8
7,073
2.890625
3
[]
no_license
<?php $titre = "Enregistrez-vous"; require "../../src/common/template.php"; require "../../src/fonctions/dbAccess.php"; require "../../src/fonctions/mesFonctions.php"; require "../../src/fonctions/dbFonction.php"; //si mon user est connecté, je le renvoie sur la page d'acceuil grace a ma fonc...
true
c6164c994671993ab411ab2623fe85c20583ef06
PHP
CJulien1/Galibelum
/src/AppBundle/EventListener/RegistrationConfirmedListener.php
UTF-8
2,049
2.5625
3
[]
no_license
<?php /** * Event Listener file * * PHP version 7.2 * * @category Listener * @package Listener * @author WildCodeSchool <contact@wildcodeschool.fr> */ namespace AppBundle\EventListener; use FOS\UserBundle\Event\GetResponseUserEvent; use FOS\UserBundle\FOSUserEvents; use Symfony\Component\EventDispatcher\Ev...
true
35ad49e9f34fda70ec59b0fd8ad6f3787271e53b
PHP
ChavdarSpasov/PHPPractice
/PHP OOP Fundamentals II/Vehicles Extended/Automobile.php
UTF-8
1,622
3.515625
4
[]
no_license
<?php class Automobile { protected $fuelQuantity; protected $fuelConsumptionLitterPerKilometer; protected $tankCapacity; /** * Automobile constructor. * @param $fuelQuantity * @param $fuelConsumptionLitterPerKilometer */ public function __construct($fuelQuantity,...
true
934b658a3c784469f384e6b3422c3aac2a538b69
PHP
NochEnnael/idm232-lc973
/beta/recipe.php
UTF-8
7,722
2.921875
3
[]
no_license
<?php //step 1 open a connection to DB require '../include/db.php'; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="../alpha/index.css"> <link rel="stylesheet" href="../alpha/reci...
true
3cd1c043a426021e1bcf61f35b15fb86e57048fa
PHP
juanj320/Bookstore
/global/carrito.php
UTF-8
3,405
2.921875
3
[]
no_license
<?php session_start(); $id = $_POST['id']; //recepcionamos la variable id $ID = openssl_decrypt($id, COD, KEY); //desencripta la variable $nombre = $_POST['nombre']; $NOMBRE = openssl_decrypt($nombre, COD, KEY); //desencripta la variable $precio = $_POST['precio']; $PRECIO = openssl_decrypt($precio, COD, KEY); //d...
true
4995e838850c4b84bf5147c5d03d410c161f3149
PHP
PhelipeSR/sosunb
/application/models/admin/Demands_model.php
UTF-8
847
2.515625
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Demands_model extends CI_Model { function __construct() { parent::__construct(); $this->load->database(); } public function get_complaint() { $this->db->select('demands.id,demands.title,demands.counter,demands.image'); $this->db->...
true
1265f0a24dcf45e062d797c0d3dd35b7b2a6b149
PHP
cabezonzon/PHPOO
/Api/Models/Persona.php
UTF-8
149
2.703125
3
[]
no_license
<?php namespace Models; class Persona{ public static function hola() { echo"Hola soy la persona del modelo"; } } ?>
true
ef57df7543f81eba58fbb300c0ddf86139e6c8c7
PHP
MaximGns/Pagerfanta
/src/View/Template/TemplateInterface.php
UTF-8
1,467
2.890625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Pagerfanta\View\Template; interface TemplateInterface { /** * Renders the container for the pagination. * * The %pages% placeholder will be replaced by the rendering of pages. */ public function container(): string; /** * Renders a given p...
true
79d48350b2ecf8963fe91393bb56641c63529041
PHP
francescobbo/PHP-on-Pails
/pails/action_dispatch/http/url.php
UTF-8
2,926
2.84375
3
[]
no_license
<?php namespace ActionDispatch\Http; trait Url { public static function domain($tld_length = null) { if (!self::is_named_host(self::host())) return null; if ($tld_length == null) $tld_length = 1; $pieces = explode('.', self::host()); $domain_pieces = a...
true
24e631fab5cf21ffa24f15a48cd0b97449d886b5
PHP
kovac7527/VAIIsemestralkaCMS
/models/device.php
UTF-8
1,861
3.4375
3
[]
no_license
<?php class device { private $deviceID; private $modelName; private $brandId; private $series; private $image; private $description; public function __construct( $deviceID,$modelName , $brandId, $series, $image, $description ){ $this->deviceID = $deviceID; $this->modelName...
true
b2e5965cb8a66f3d2192410c1bdf7e50d901250b
PHP
cirsam/phpCalculatorTest
/index.php
UTF-8
1,488
3.78125
4
[]
no_license
<?php class MyTest implements Behaviour { private $name; private $sound; private $food; const pi = 3.14; protected static $countdata = 0; public function __construct(){ echo MyTest::$countdata++; } public function run(){ echo "run"; } public function getN...
true