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
2ba3b47422febb55e15198a700c8f908cda8f303
PHP
ridvanbaluyos/euler
/lib.php
UTF-8
362
3.9375
4
[]
no_license
<?php function get_sum_of_digits($number) { $length = strlen($number); $sum = 0; for ($i = 0; $i < $length; $i++) { $sum += $number[$i]; } return $sum; } function is_palindrome($input) { return ($input == get_palindrome($input)) ? true : false; } function get_palindrome($...
true
b9f70ba4a965bf8b018718d261aea4df1c3485b1
PHP
smjhang/demos
/redis-notify/notify.php
UTF-8
4,599
2.859375
3
[]
no_license
<?php require __DIR__.'/vendor/autoload.php'; class LocalStorage { private $product_store = []; // 目前所有 products /** * 使用前更新目前所有 products * @param \Predis\Client $client_sync */ public function init(\Predis\Client $client_sync) { $all_product_keys = $client_sync->keys('product:*...
true
a2592a551ef9075c5dd5d941da21f99f1e366999
PHP
ares0310/projet-MVC
/afpa/exercice.php
UTF-8
4,090
3.546875
4
[]
no_license
<?php // $tableau = array("h", "b", "f", "d" ); // function ordreAlph($tab) { // sort($tab); // echo end($tab); // } // ordreAlph($tableau); // EX 2 on vous donne une chaine de caract, on veut afficher chaque mot sur une ligne // $ch = "chaine de caractere"; // function ligne($tab){ // echo str_replace...
true
8b5c0bfcbdcecaa3eabeb45f339bebf01c67720b
PHP
vardumpras/project
/src/Alcyon/CoreBundle/Entity/MappedSuperclass/ParentChildLinked.php
UTF-8
1,561
2.78125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: ddesousa * Date: 20/03/2017 * Time: 15:35 */ namespace Alcyon\CoreBundle\Entity\MappedSuperclass; trait ParentChildLinked { abstract public function getChilds(); abstract public function getParents(); /** * Add a link between parent and c...
true
449940c16bc9cabae4453ac990e56b88eb86d1bb
PHP
sakattack1994/Project_Avourh
/study_schedule.php
UTF-8
4,319
2.546875
3
[]
no_license
<?php if(!isset($_SESSION)) { session_start(); } $alert=""; if(isset($_POST['delete_study_schedule'])){ $conn = new mysqli('localhost', 'root', '', 'mydepartment'); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $sql='...
true
8d2f680a7f9388bb68fab5d3cca1ab272d06f666
PHP
rolandosasa/suite-briix
/app/Repositories/Briix/Access/Product/EloquentProductRepository.php
UTF-8
504
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Briix\Access\Product; use App\Models\Briix\Access\Product\Product; /** * Class EloquentProductsserviceRepository * @package App\Repositories\Productsservice */ class EloquentProductRepository implements ProductRepositoryContract { /** * @param string $order_by * @param...
true
767f0801ccdfb1268cb0111e94d22ea75691b474
PHP
Mazzu90/project_works
/Config/Core/Entities/Querable.php
UTF-8
5,084
2.546875
3
[]
no_license
<? namespace Config\Core\Entities; use Config\Core\Query\Count; use Config\Core\Query\Distinct; use Config\Core\Query\Query; use Config\Core\Query\Basic; use Config\Core\Query\Range; use Config\Core\Query\Pool; use Config\Core\Query\QueryField; use Config\ComponentsMap; /** * Class Querable * @package Config\Core\...
true
9e92205c127fc16854f28fa4e17792b7c0878a5b
PHP
Apfelfrisch/EdiSeg
/tests/Segments/UnaTest.php
UTF-8
2,921
2.8125
3
[]
no_license
<?php namespace Proengeno\Edifact\Test\Message\Segments; use Proengeno\Ediseg\Segments\Una; use Proengeno\EdiEnergy\Test\TestCase; use Proengeno\Edifact\Message\Delimiter; class UnaTest extends TestCase { /** @test */ public function it_can_set_and_fetch_basic_informations() { $segName = 'UNA'; ...
true
f4d20236ad5bef4e36e2d13a9a804720dca4f577
PHP
WordPress/phpdoc-parser
/tests/phpunit/tests/export/docblocks.php
UTF-8
2,957
2.578125
3
[]
no_license
<?php /** * A test case for exporting docblocks. */ namespace WP_Parser\Tests; /** * Test that docblocks are exported correctly. */ class Export_Docblocks extends Export_UnitTestCase { /** * Test that line breaks are removed when the description is exported. */ public function test_linebreaks_removed() { ...
true
f1806bfa3449d6f9af0547ee716e0f02c615152c
PHP
xmzhang0/php-exercise-files
/Week-1/14-PHP-Array-Operators-Exercise.php
UTF-8
2,445
3.765625
4
[ "MIT" ]
permissive
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Using PHP Array Operators Exercise</title> </head> <body> <?php /********************************************* * Use the following arrays to exp...
true
2aef704141e9b291730d9aa1dc2e15bc0693b4c4
PHP
prateekvij/UploadEx
/upload.php
UTF-8
2,031
2.75
3
[]
no_license
<?php if (isset($_POST["secure"])){ //echo "there"; $secure=true; $password=$_POST["password"]; //echo $password; } else{ //echo "not there"; $secure=false; $password=""; } //var_dump($_SESSION); //echo $secure; if (!empty($_SESSION['username'])) { $uploader=$_SESSION['username']; $privacy=...
true
b5c06cbf716cb2d64ac3185163edfa3cad2a6bfb
PHP
dostontiu/easyway
/console/migrations/m191207_163651_country.php
UTF-8
565
2.546875
3
[]
permissive
<?php use yii\db\Migration; /** * Class m191207_163651_country */ class m191207_163651_country extends Migration { /** * {@inheritdoc} */ public function safeUp() { $this->createTable('country', [ 'id' => $this->primaryKey(), 'name' => $this->string()->notNull()...
true
218d8907506d9f5e20bcf725c3509fec714b74be
PHP
Isnirae/Php-Formation
/07-superglobales/validation.php
UTF-8
3,486
3.015625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Validation</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstr...
true
33d7b06043070fe972da761dd75467d98d97a181
PHP
loclamor/BECSA
/server/model/Action.php
UTF-8
1,939
2.71875
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of Action * * @author Loïc */ class Model_Action extends Entite { public $DB_table = 'action'; public $DB_equiv = array( "id" => "id", "action" =...
true
b3f683935ceda728d4f8127707dd100dc3bfb58c
PHP
hjhnju/yucheng
/application/library/Loan/RetCode.php
UTF-8
717
2.578125
3
[]
no_license
<?php class Loan_RetCode extends Base_RetCode { /** * 贷款为空 * @var integer */ const LOAN_EMPTY = 1200; const LOAN_SAVE_FAIL = 1201; const MAKE_LOAN_FAIL = 1202; const UNABLE_MAKE_LOAN = 1203; const UNABLE_REFUND = 1204; const REFUND_FAILED = 1205; prote...
true
26a92deaf9b6ccf2cb2e90b7e86f50c821bc91cb
PHP
k-holy/Volcanus_Csv
/tests/Volcanus/Csv/Test/BuilderTest.php
UTF-8
2,820
2.75
3
[ "MIT" ]
permissive
<?php /** * Volcanus libraries for PHP * * @copyright 2011-2013 k-holy <k.holy74@gmail.com> * @license The MIT License (MIT) */ namespace Volcanus\Csv\Test; use Volcanus\Csv\Builder; /** * BuilderTest * * @author k.holy74@gmail.com */ class BuilderTest extends \PHPUnit\Framework\TestCase { public funct...
true
fa15500ae0de6c5fb6b48f634276b4c23cc5e906
PHP
ArekPastuszka/coyote
/app/Models/Scopes/TrackForum.php
UTF-8
794
2.5625
3
[ "MIT" ]
permissive
<?php namespace Coyote\Models\Scopes; use Coyote\Str; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Query\Expression; use Illuminate\Database\Query\JoinClause; trait TrackForum { /** * Scope a query to only given user id. * * @param Builder $builder * @param string $guestI...
true
482716a2380fc0969ff726ccb464d4fdda32ad00
PHP
hkpark130/HK_Shop_MVC_Pattern
/hkshop/mvc/ConnectModel.php
UTF-8
3,337
3.28125
3
[]
no_license
<?php class ConnectModel{ //PDO인스턴스를 배열로 저장해두는 프로퍼티 protected $_dbConnections = array(); //접속명을 저장하는 프로퍼티 protected $_connectName; //실행 클래스(ExecuteModel의 서브 클래스)의 인스탄스를 저장하는 프로퍼티 protected $_modelList = array(); //실행 클래스(ExecuteModel의 서브 클래스)명을 지정하기 위한 상수 const MODEL = 'Model'; //***connect()*** pu...
true
f1e6336f8b132275072dbfa7149815f6a0f30a9c
PHP
eclipxe13/CfdiUtils
/src/CfdiUtils/Internals/NormalizeLineEndingsTrait.php
UTF-8
918
2.984375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace CfdiUtils\Internals; /** * NormalizeLineEndingsTrait contains a private function normalizeLineEndings * This help the implementer class to work with EOL * * NOTE: Changes will not be considering a bracking compatibility change since this utility is for internal usage only * @internal */ trait No...
true
b3990aaffd95c75d5d6f0161f13d75cd4948172b
PHP
MonsieurBon/todo-server
/src/Events/EventName.php
UTF-8
647
3.09375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Todo\Events; use Todo\ValueObject; class EventName implements ValueObject { private $name; public static function fromString(string $name): EventName { return new self($name); } private function __construct(string $name) { $this->nam...
true
65e4b4ac0df0773bcdebcdcbe0e93d91b7f5d7a3
PHP
natansdj/ipn_esaksi
/app/Http/Controllers/Api/TpsAPIController.php
UTF-8
3,846
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api; use App\Http\Requests\Api\CreateTpsAPIRequest; use App\Http\Requests\Api\UpdateTpsAPIRequest; use App\Models\Tps; use App\Repositories\TpsRepository; use Illuminate\Http\Request; use App\Http\Controllers\AppBaseController; use InfyOm\Generator\Criteria\LimitOffsetCriteria; us...
true
3a20a5911a4ca5e59348086e04d643546d64cd27
PHP
alieen0127/PHP
/brad05.php
UTF-8
481
3.109375
3
[]
no_license
<?php $xy =''; $x =''; $y =''; $result =''; if (isset($_GET['x'])){ $x = $_GET['x']; $y = $_GET['y']; $xy = (int)($x / $y); $r2 = $x % $y; $result = "{$xy} ...... {$r2}"; //echo "{$x} + {$y} = {$xy}<br>" ; //echo gettype($x) . '<br>'; } ?> <form action="brad05.php"> <!--處理 --> <input name="x" value="<?php echo $...
true
c8386d3088283329e4a406b73a07ae82ce75f4aa
PHP
pmbaldha/singleton-factory
/Model/UserModel.php
UTF-8
156
2.625
3
[ "MIT" ]
permissive
<?php class UserModel { public $email = "pmbaldha@gmail.com"; public function __construct($email = '') { if(!empty($email)) $this->email = $email; } } ?>
true
d9d3651f158295a89f5151f73be1412595de6da4
PHP
alexmon1989/pass-request
/application/libraries/Clean_upload_folder_lib.php
UTF-8
763
2.90625
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * Clean_upload_folder_lib * * Очитска папки uploads * * @author Монастырецкий Александр Николаевич <monastyretsky@mail.ru> * @version 1.0 */ class Clean_upload_folder_lib { private $folder = './uploads/'; /** * Конст...
true
f7dc5859d2ebe890b510b88562b86c7214f185ad
PHP
ookeyLai/ikareHealth
/lib/Device.inc
UTF-8
4,838
2.5625
3
[]
no_license
<?php if (!defined("DEVICE")) { class Device { var $tbl = "device"; var $accdevtbl = "accountdevice"; var $key = "ID"; function add_validate(&$d){ $valid = true; return $valid; } function user_add_validate(&$d){ $valid = true; return $valid; } function update_validate(&$d){ $...
true
0d631a3ffc909231c0d7bace6aa91e7341635334
PHP
basecloudwaf/proxy-manager
/app/src/Model/DomainsService.php
UTF-8
2,814
2.53125
3
[]
no_license
<?php namespace App\Model; use App\SSH; use Latte\Engine; use Nette\Database\Context; /** * @author Tomáš Kolinger <tomas@kolinger.name> */ class DomainsService extends BaseService { const TABLE_NAME = 'domains'; private $servers; public function __construct(array $servers, Context $context) { parent::_...
true
65ab1e9800bc126c46f7527949c536ba21d38955
PHP
pelletfrog/Hiskio_Finance_sample_code
/app/Responser/ReceivableResponser.php
UTF-8
1,586
2.90625
3
[ "MIT" ]
permissive
<?php namespace App\Responser; class ReceivableResponser { // 設定回傳的格式,和取代字串用的 object array private $template = '<PaySvcRs>'. '<StatusCode>$statusCode</StatusCode>'. '<StatusDesc>$message</StatusDesc>'. '<PmtAddRs>'. '<UserID></UserID>'. '<TxnSeq>$txSeq</TxnS...
true
537ee070ac823be50b8b45648dfbd54aea30b170
PHP
dilyanatanasov/project-example
/modify_user.php
UTF-8
977
2.703125
3
[]
no_license
<?php require_once dirname(__FILE__). "/views/html/heading.php"; if ($_SESSION["uid"] === 1) { header("Location: index.php"); } require_once dirname(__FILE__). "/views/html/modify_user.html"; require_once dirname(__FILE__). "/models/User.php"; $user = new User(); $allUsers = $user->list(); echo "<div class='c...
true
5d4f1b35a03b22cddf8de508f54f36cc392a1b2c
PHP
mathieus-l/Chess
/src/Figures/King.php
UTF-8
3,796
3.125
3
[]
no_license
<?php namespace Chess\Figures; use Chess\AbstractFigure; use Chess\Interfaces\Figure as FigureInterface; use Chess\Interfaces\Figures\King as KingInterface; use Chess\Traits\Figures\Moves\Askew; use Chess\Traits\Figures\Moves\Alongside; class King extends AbstractFigure implements KingInterface { use Askew, Alon...
true
7b188f75ad62ac59424c57498575f2ee79669bce
PHP
krapshsa/leetcode-php
/tests/Backtracking/LetterCombinationsOfAPhoneNumberTest.php
UTF-8
754
2.890625
3
[]
no_license
<?php namespace Test\BinaryTree\Backtracking; use App\BinaryTree\Backtracking\LetterCombinationsOfAPhoneNumber; use PHPUnit\Framework\TestCase; class LetterCombinationsOfAPhoneNumberTest extends TestCase { public function test1() { $letterCombinationsOfAPhoneNumber = new LetterCombinationsOfAPhoneNum...
true
67af423a9f74d3c67e1f5057391472ea2a552a28
PHP
DJDarkByte/homework
/week5/application/controllers/admin.php
UTF-8
863
2.796875
3
[ "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * The admin class handles all functions that require a user to be logged in * @access public * @author Bart Veneman */ class Admin extends CI_Controller { /** * Create an instance of Admin and check if a user is logge...
true
295770967d92214cf5ad2aeaa7b33f91acf2aed2
PHP
derouxj/booker
/view/unartiste.view.php
UTF-8
1,128
2.546875
3
[]
no_license
<!DOCTYPE html> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta charset="utf-8"> <link rel="stylesheet" type="text/css" href="../view/style/styleart.css" /> <html> <head> <title> <?php echo $_GET['art']; ?> </title> </head> <body> <?php $...
true
aacf973bf8c74aa2a654514ba75352b137ca8ffe
PHP
annisamonitha/Baru
/app/Http/Controllers/UsersController.php
UTF-8
1,982
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\User; use Auth; class UsersController extends Controller { public function userLoginRegister(){ //echo "test"; die; return view('users.login_register'); } public function login(Request $request){ if($reque...
true
d04447681725a00d8f0f5ed2abe47ddf52eaaabd
PHP
wilcorrea/metadados
/bootstrap/function.php
UTF-8
1,331
2.9375
3
[]
no_license
<?php if (!function_exists('pick')) { /** * @param mixed $value * @param string|int $property (null) * @param mixed $default (null) * * @return mixed */ function pick($value, $property = null, $default = null) { if (is_null($property)) { return $default; ...
true
2709f781aae19572632042b5cfffc679e2ac1e58
PHP
djgogo/CPCII
/Task01/src/demo.php
UTF-8
1,372
3.328125
3
[]
no_license
<?php require_once 'Person.php'; // Instantiate new Person $peter = new Person('Peter', 'Sacco', '09.03.1968'); $name = $peter->getName(); $surname = $peter->getSurname(); $birthday = $peter->getBirthday(); // Catch exception if zipcode is invalid and print error message try { $peter->setZipCode(123456); }catch ...
true
bff174a2b12f69e19d604c6cb9d8f44e75736d40
PHP
SoftiboxRecrutement/symfonyRecrutement
/src/Sfb/SiteBundle/Entity/Image.php
UTF-8
1,981
2.515625
3
[]
no_license
<?php namespace Sfb\SiteBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * Image * * @ORM\Table(name="image") * @ORM\Entity(repositoryClass="Sfb\SiteBundle\Repository\ImageRepository") */ class Image { /** * @var int * * @ORM\Column(na...
true
80f098d3948b4b2d7c7e0a8afc0a249f10834ba4
PHP
victorcodex/yii2_-exercise
/models/User.php
UTF-8
2,879
2.859375
3
[]
no_license
<?php namespace app\models; use app\components\PersonalCodeValidator; use Yii; /** * This is the model class for table "users". * * @property int $id * @property string $first_name * @property string $last_name * @property string $email * @property int $personal_code * @property int $phone * @property bool ...
true
81c07733b7507e65445615e248e5728f4c767348
PHP
humweb/esports-module
/src/Models/Map.php
UTF-8
512
2.53125
3
[ "MIT" ]
permissive
<?php namespace Humweb\Esports\Models; use Humweb\Core\Data\Traits\SluggableTrait; use Illuminate\Database\Eloquent\Model; use Spatie\MediaLibrary\HasMedia\HasMediaTrait; use Spatie\MediaLibrary\HasMedia\Interfaces\HasMedia; /** * Post * * @package Humweb\Blog\Models */ class Map extends Model implements HasMedia...
true
e8cd54bc4b80f699c9d9355aac076279d66d7423
PHP
r3wald/GameOfLife
/src/GameOfLife/Renderer/NcursesRenderer.php
UTF-8
1,604
2.96875
3
[ "MIT" ]
permissive
<?php namespace GameOfLife\Renderer; use GameOfLife\Playground; use GameOfLife\State; class NcursesRenderer { /** * @var Playground */ private $playground; /** * @var resource */ private $window; /** * @var resource */ private $screen; /** * @param Pl...
true
253349aa8d54a1b43c5a0b3a1387134cd0dbb621
PHP
marcosh/php-validation-dsl
/src/Combinator/Any.php
UTF-8
4,010
2.75
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Marcosh\PhpValidationDSL\Combinator; use Marcosh\PhpValidationDSL\Result\ValidationResult; use Marcosh\PhpValidationDSL\Translator\Translator; use Marcosh\PhpValidationDSL\Validation; use Webmozart\Assert\Assert; use Webmozart\Assert\InvalidArgumentException; use function is...
true
fbaf9fa566e04aa9bc69497a1020ca181be7ee85
PHP
ahmadqawasmeh2/schoolsystem
/app/libraries/class.pdf.builder.php
UTF-8
2,549
2.859375
3
[ "MIT" ]
permissive
<?php class PdfBuilder { public $tcpdf = array(); public $doc_details = array(); public function __construct($doc_details = array()){ //require_once('app/libraries/TCPDF/tcpdf.php'); $this->doc_details = $doc_details; if(!isset($this->doc_details['orientation'])){ $this->do...
true
547ef92b8157e54fcde55054f8f8eff17f2ee8fb
PHP
Jeansteve/BOCO-API
/www/wordpress/modele/getDetails.php
UTF-8
1,544
2.640625
3
[]
no_license
<?php $numP = $_GET['numP']; $bdd = new PDO("mysql:host=localhost;dbname=BOCCO-GROUPE1","root","root"); $req = $bdd->prepare(" SELECT PL.num_plateau, PL.libelle_plateau, PL.prix_plateau, P.libelle_plat, E.libelle_entree, D.Libelle_Dessert FROM PLATEAU PL, PLAT P, ENTREE E, DESSERT D ...
true
884982aa5cc98badc2a9d19c1fe2fde176cd4714
PHP
jamielaststand/patterns
/GoatPen.class.php
UTF-8
312
2.84375
3
[]
no_license
<?php class GoatPen { public function getGoat($name){ $goat = new Goat(); $goat->setName($name); $goat->setReference('1234567890'); $goat->load(); } public function addGoat($name, $reference){ $goat = new Goat(); $goat->setName($name); $goat->setReference($reference); return $goat; } };
true
18c520bcc37233b03d598948cd7dcefa46a57b54
PHP
GiovannyFialho/gameEinstein-IBM
/application/models/UsuariosModel.php
UTF-8
3,935
2.609375
3
[]
no_license
<? if (!defined('BASEPATH')) exit('No direct script access allowed'); Class UsuariosModel extends CI_Model { public $idUsuario; public $nome; public $documento; public $email; public $senha; public function saveNewUser($data) { $passHash = $this->hashPassword(); if ($thi...
true
028f7da19326fc64625f450fb8cbc6bd7f568e0e
PHP
bruninho51/workorganize
/config/env.php
UTF-8
1,629
3.125
3
[]
no_license
<?php /* * SINGLETON DE CONFIGURAÇÕES DO PROGRAMA * * SINGLETON RESPONSÁVEL POR GUARDAR AS CONFIGURAÇÕES * DO SISTEMA. ELAS PODEM SER MODIFICADAS NO ARQUIVO env.json * * AUTOR: BRUNO MENDES PIMENTA */ namespace config; class env{ //GUARDARÁ INSTÂCIA private static $env; //GUARDARÁ AS CONFIGURAÇÕES ...
true
94174e297452a4807f25b79de7cb3e3a3271f77c
PHP
ankithg03/codilar-open-graph
/Model/PropertyInterface.php
UTF-8
2,066
2.59375
3
[]
no_license
<?php namespace Codilar\OpenGraph\Model; /** * Interface PropertyInterface * * @category SEO * @package Codilar\OpenGraph\Api\Data * @author Codilar Team Player <ankith@codilar.com> * @license Open Source * @link https://github.com/ankithg03/codilar-open-graph * @copyright Copyright © 2020 Codilar Tec...
true
44589d7e318736af7b57255eb7d50e5ea62ea631
PHP
dusiktomas/currency
/classes/Database.php
UTF-8
767
3.203125
3
[]
no_license
<?php class Database { private static $db = Null; public static function handler(){ if(self::$db === Null){ $mysqli = new mysqli('localhost', 'root', '', 'currency'); if ($mysqli->connect_error) { die('Connect Error (' . $mysqli->connect_errno . ') ' . $mysqli->co...
true
98067da52b2774c558be2ec6172f89ae663d99c0
PHP
PhanVanThang98/18php04_dev
/session 18/form.php
UTF-8
1,016
3.0625
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Form post - session 3</title> <style type="text/css"> .error { color: red; } </style> </head> <body> <?php $errName = ''; $errPass = ''; $check = true; if (isset($_POST['submit'])) { var_dump($_FILES);exit(); $name = $_POST['name']; $password = $_POST['password...
true
920dd5273b0d29369004d03f97c386f19090a42b
PHP
gchamoun/SportsSocialRank
/application/models/UserRank_model.php
UTF-8
1,860
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class UserRank_model extends CI_Model { public function __construct() { $this->load->database(); $this->load->model('Category_model'); $this->load->model('User_model'); } public function getRank($twitterId, $categoryId) { $sql = "SELECT * FROM twitter_rank wh...
true
f57bf153973dcc304323daedcc3a0cc6b7aa1d67
PHP
Carsopre/carsopreWebLaravel
/app/controllers/SectionsController.php
UTF-8
5,216
2.671875
3
[]
no_license
<?php class SectionsController extends \BaseController { protected $layout = "layouts.main"; private $user = NULL; public function __construct() { $this->beforeFilter('csrf', array('on'=>'post')); $this->beforeFilter('auth', array('only'=>array('getDashboard'))); } /* CLASS DISABLED DUE TO RE...
true
2a053a7ba079a0d828f071bc3e4b82d6735de5e8
PHP
catchup-forks/PackageEws365
/src/StructType/EwsGetMessageTrackingReportResponseMessageType.php
UTF-8
5,298
2.546875
3
[ "MIT" ]
permissive
<?php namespace Ews\StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for GetMessageTrackingReportResponseMessageType StructType * @package Ews * @subpackage Structs * @author WsdlToPhp <contact@wsdltophp.com> */ class EwsGetMessageTrackingReportResponseMessageType extends EwsRe...
true
91df0d223f50fe4728b3f7ccc1c9caf45331bc0c
PHP
alexshadie/geo
/tests/unit/CountryTest.php
UTF-8
2,312
2.796875
3
[]
no_license
<?php namespace alexshadie\geo; use PHPUnit\Framework\TestCase; class CountryTest extends TestCase { public function testBuild() { $c = new Country(1, 'Country 1', 'CT', 'CNT', '001'); $this->assertEquals(1, $c->getCountryId()); $this->assertEquals('Country 1', $c->getCountryName());...
true
59b725546229831da4e356a21214a08d788ce71a
PHP
zhangzhiwei1228/my_mall
/librarys/Suco/View/Abstract.php
UTF-8
2,273
2.75
3
[]
no_license
<?php /** * Suco_View_Abstract 视图抽象 * * @version 3.0 2009/09/01 * @author Eric Yu (blueflu@live.cn) * @copyright Copyright (c) 2009, Suconet, Inc. * @package View * @license http://www.suconet.com/license * ----------------------------------------------------------- */ class Suco_View_Abstract...
true
35388f11c345d6eafb5084d7431dd8aa0c0890b5
PHP
xxgail/LeetCode-PHP
/LinkedList/m-19-removeNthFromEnd.php
UTF-8
801
3.765625
4
[]
no_license
<?php require 'ListNode.php'; /** * @Time: 2020/10/30 * @DESC: 19. 删除链表的倒数第N个节点 * 给定一个链表,删除链表的倒数第 n 个节点,并且返回链表的头结点。 * 示例: * 给定一个链表: 1->2->3->4->5, 和 n = 2. * 当删除了倒数第二个节点后,链表变为 1->2->3->5. * @param $head * @param $n * @return null * @link: https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/ */ ...
true
58ffea7320b8489ad271416c73f157a7e9a6730c
PHP
ldziewa/api-module
/module/Application/src/Architectures/Tactician/CommandBus/TacticianCommandBus.php
UTF-8
676
2.765625
3
[]
no_license
<?php declare(strict_types=1); namespace Application\Architectures\Tactician\CommandBus; use Application\Architectures\Tactician\Command; use League\Tactician\CommandBus; final class TacticianCommandBus implements CommandBusInterface { /** @var CommandBus */ private $commandBus; /** * TacticianCo...
true
f67dcec224117f2860b0c000c95908c2dd90e324
PHP
victorjoos/scoutnet-saintjoseph
/html/membres.php
UTF-8
1,277
2.90625
3
[]
no_license
<?php // Include JSON // Include mcrypt function encrypt($string, $password) { $encrypted = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($password), $string, MCRYPT_MODE_CBC, md5(md5($password)))); return $encrypted; } function decrypt($string, $password) { $decrypted = rtrim(mcrypt_decrypt(MCRYPT...
true
aca57c9733c91dd179b50af7b974787e956847ae
PHP
rose5566/Clothing-website
/bool/admin/cateditAct.php
UTF-8
829
2.6875
3
[]
no_license
<?php header("Content-Type: text/html; charset=utf8"); require('../include/init00.php'); $data = array(); $cat_id = $_POST['cat_id'] + 0; $data['cat_name'] = $_POST['cat_name']; $data['intro'] = $_POST['intro']; $data['parent_id'] = $_POST['parent_id'] + 0; if($cat_id == ''){ exit('失敗空欄位傳送1'); } if($data['cat_...
true
f0c0dd0fdeeab194dfab0bcbd746c958ae8e2ca1
PHP
Mitiaj/revolut
/src/Api/Data/Account.php
UTF-8
2,402
2.90625
3
[]
no_license
<?php declare(strict_types=1); namespace Mitiaj\RevolutApi\Api\Data; use Carbon\Carbon; class Account implements \JsonSerializable { /** * @var string */ protected $id; /** * @var string */ protected $name; /** * @var string */ protected $currency; /** ...
true
f104ce3b6be2ea8eee28c6545977cd0a4ec28246
PHP
seehsam/EWA16
/Vorlesung/VL12/Beispiel_unstrukturiert/Add.php
UTF-8
3,227
3.296875
3
[ "MIT" ]
permissive
<?php // UTF-8 marker äöüÄÖÜ߀ // Variante 3 (prozedural, gegliedert mit Formularauswertung) // 1. Auswertung übermittelter Daten in inkludiertem Skript // 2. Datenbankabfrage // 3. Abfrageergebnis in Array übertragen // 4. Helperfunktion definieren // 5. HTML-Ausgabe mit HEREDOC, Helperfunktion und Daten aus Array //...
true
d43ed39ac1ea6342d60b7c28f189b54aa7fcc37d
PHP
Garabec/test_education_kolesnik_t
/Homework#3/19.php
UTF-8
509
3.453125
3
[]
no_license
<!DOCTYPE html> <html lang="ru"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <?php $day=date("N"); $days = array( 1 => 'Понедельник' ,2=> 'Вторник' ,3=> 'Среда' ,4=> 'Четверг' , 5=>'Пятница' , 6=>'Суббота' ,7=> 'Воскресенье' ); foreach ($days as $key=>$temp_day) { if ($key ...
true
e572e08044df34441bcbf2a6e06ed6310daf55c8
PHP
firestorm23/books
/src/SiteBundle/Entity/Book.php
UTF-8
3,612
2.515625
3
[ "MIT" ]
permissive
<?php namespace SiteBundle\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; /** * Book * * @ORM\Table(name="book") * @ORM\Entity(repositoryClass="SiteBundle\Repository\BookRepository") */ class Book { /** * @var int * * @ORM\Column(name="id", type="int...
true
84094b255ea0cfbb0a471d81961969e6fcf7dea4
PHP
marc-mbc/price-breakdown
/src/Pb/Domain/PriceBreakdown/taxable.php
UTF-8
460
2.875
3
[ "MIT" ]
permissive
<?php namespace Pb\Domain\PriceBreakdown; use Money\Money; /** * Interface Taxable * @package Pb\Domain\PriceBreakdown */ interface Taxable { /** * @return Money */ public function gross(); /** * @return Money */ public function net(); /** * @return Money */ ...
true
3c4d845000bc4184629e76fa328622141ce3a66c
PHP
bigfongcom/JfunitPHP
/Lib/Tool/Upload.class.php
UTF-8
4,353
2.59375
3
[]
no_license
<?php namespace Jfunit\Lib\Tool; class Upload{ public $dir; public $config=''; public function __construct($config){ if (!empty($config)) { foreach ($config as $key => $value) { $this->config[$key]=$value; } } $this->dir = SITE_PATH.'/Uploads'.DS.date('Ymd'); ...
true
f1a21c18a98811cf0a00b29ea96d85e9d9185612
PHP
alaa-almaliki/magento2-store-config
/Validators/FileExistsValidator.php
UTF-8
451
2.75
3
[ "MIT" ]
permissive
<?php /** * @copyright 2019 Alaa Al-Maliki <alaa.almaliki@gmail.com> * @license MIT */ declare(strict_types=1); namespace Alaa\StoreConfig\Validators; /** * Class FileExistsValidator * * @package Alaa\StoreConfig\Validators * @author Alaa Al-Maliki <alaa.almaliki@gmail.com> */ class FileExistsValidator { ...
true
9a00fc56248ca5f58e4d32f4fa6ee55e677701e8
PHP
MoralistFestus/user-authentication
/controllers/login.php
UTF-8
3,794
2.859375
3
[]
no_license
<?php // Database connection include('config/db.php'); global $wrongPwdErr, $accountNotExistErr, $emailPwdErr, $verificationRequiredErr, $email_empty_err, $pass_empty_err; if(isset($_POST['login'])) { $email_signin = $_POST['email_signin']; $password_signin = $_POST['pas...
true
ea34e96146e160b3d2c1d7309683bebcb767f9e7
PHP
Capisso/IP
/src/Capisso/Ip/IPv4/Address.php
UTF-8
529
3.09375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Capisso\Ip\IPv4; use Capisso\Ip\AddressException; class Address extends \Capisso\Ip\Address { public function __construct($address) { if(!is_string($address)) { throw new AddressException('Address must be string.'); } $this->address = $address; } /** ...
true
ad32cdccc0f90f4e71998852ddf657e5fecb4e55
PHP
SerafimArts/ffi-sdl
/src/ThreadPriority.php
UTF-8
325
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Serafim\SDL; interface ThreadPriority { public const SDL_THREAD_PRIORITY_LOW = 0; public const SDL_THREAD_PRIORITY_NORMAL = 1; public const SDL_THREAD_PRIORITY_HIGH = 2; /** * @since SDL 2.0.9 */ public const SDL_THREAD_PRIORITY_TIME_CRITICAL = ...
true
f6efe0838b5bcd806cd50db6b74a8cbbf226c5cf
PHP
moakprojects/offtopic
/resources/controllers/logoutController.php
UTF-8
358
2.890625
3
[]
no_license
<?php //if the user wants to logout we destroy the session and delete all set user cookies if(isset($_POST["logout"]) && $_POST["logout"] === "true") { session_start(); $_SESSION = array(); if(isset($_COOKIE["usr"])) { setcookie("usr", "", time() - 60, "/"); ...
true
46a0b60a490e3c206c5f452fe5bf20bfc3f224c4
PHP
code0001aaa/ProjectPrimera
/OngekiScoreLog/app/Services/OngekiUtility.php
UTF-8
5,959
2.96875
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\MusicData; class OngekiUtility { private static $MusicData = null; function __construct() { $temp = (new MusicData())->getEstimateExtraLevel(); foreach ($temp as $key => $value) { $this::$MusicData[$value['title']] = $value; unset($this...
true
e011c3bcec4329300540b98b7685b882aa187795
PHP
LericheM/IT202
/formAssignment.php
UTF-8
3,162
2.828125
3
[]
no_license
<?php ini_set('display_errors',1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); function getName(){ if(isset($_GET['name'])){ echo "<p>Hello, " . $_GET['name'] . "</p>"; } } function checkPasswords(){ if(isset($_POST['password']) && isset($_POST['passwordConfirm']) ){ if($_POST['password']==...
true
d1628988ec42690261f7bb6c62cc255d69ee3b3d
PHP
ruff0/DL
/protected/modules/admin/models/Issue.php
UTF-8
1,743
2.8125
3
[ "MIT" ]
permissive
<?php /** * This is the model class for table "issue". * */ class Issue extends CActiveRecord { /** * Returns the static model of the specified AR class. * @param string $className active record class name. * @return Issues the static model class */ public static function model($className = __CLASS__) { ...
true
f1cb59ba64d522aa4d09eddf780e5ff20cb166a7
PHP
WhichBrowser/Legacy
/src/Data/Bots.php
UTF-8
717
2.828125
3
[]
no_license
<?php namespace WhichBrowser\Data; use WhichBrowser\Model\Browser; use WhichBrowser\Model\Version; class Bots { public static $BOTS = []; public static function identify($ua) { require_once __DIR__ . '/../../data/browsers-bots.php'; foreach (self::$BOTS as $i => $bot) { if (...
true
8bcc77381127b5920ef556176924ea7b410b280d
PHP
ritikalath30/Assignment1
/file10.php
UTF-8
435
3.609375
4
[]
no_license
<html> <body> <?php $variable=8; $variable+=2; echo "Add 2. Value is now $variable <br>"; $variable-=4; echo "Subtract 4.Value is now $variable<br>"; $variable*=5; echo "Multiply by 5.Value is now $variable<br>"; $variable/=3; echo "Divide by 3.Value is now $variable<br>"; $variable++; echo "Increment value by one.Valu...
true
8bc606d0bd292781f6fa5cdadbe4a86e5f20a4fa
PHP
fcocascales/phpRestQuery
/rest/network/test_URI.php
UTF-8
2,460
3.03125
3
[]
no_license
<?php // Proinf.net — 2017 function test_extract_uri(string $name, string $uri, string $reference) { $pos1 = strpos($uri, $name) + strlen($name); $result = substr($uri, $pos1); $pos2 = strrpos($result, '?'); if ($pos2 !== false) $result = substr($result, 0, $pos2); $result = trim($result,'/'); ...
true
be59f06e76fb7280d0615a1cee8317a63a199192
PHP
Geeklcit/tapaha
/edit.php
UTF-8
2,781
2.953125
3
[ "MIT" ]
permissive
<?php include("header.html"); include("connexion.php"); $id = $_GET['id']; echo $id; /* // sql montrer les données à modifier $sqli = "SELECT * FROM cours"; //executer la requete $mort=$con->query($sqli); echo $mort; */ $mor = $con->query("select * FROM cours where id='$id' "); // On affiche le resultat while ($...
true
b3915f4e52597957e080298daa83a9209b211d19
PHP
mortuzahossain/phpLearning
/practice_file/8.php
UTF-8
300
2.875
3
[]
no_license
<?php //define("ABOUT", "Learning PHP");//the nace of the constant must have all caps or statrt with _ //echo ABOUT; define("ABOUT", "Learning PHP",true); //give another parameter true then i can use the name both upper case and lower case //and it will not generate any error echo about; ?>
true
41b3d47fdd397d70b612dc725c5068fd2b410fa0
PHP
parandiy/symfonytest
/src/AppBundle/Controller/IndexController.php
UTF-8
4,193
2.53125
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace AppBundle\Controller; use AppBundle\Entity\Link; use AppBundle\Entity\Statistic; use AppBundle\Form\LinksType; use FOS\UserBundle\Model\UserInterface; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Component\HttpFoundat...
true
5ad16f94cc510871988acbc18f0c0e83cd98e471
PHP
pubba98/Lei
/Seasion Exercice/page1.php
UTF-8
192
2.609375
3
[]
no_license
<?php //session start @session_start(); //set session variable $message = $_SESSION["message"]; echo "Message: ".$message; //$username =$_SESSION["username"]; // echo "Username".$username;
true
0321a63326669c94348585903a51ab22d72b81b6
PHP
AnnaigJegourel/OC-P5-Creez-votre-premier-blog-en-PHP
/src/Controller/CommentController.php
UTF-8
3,251
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Controller; use App\Model\Factory\ModelFactory; use Twig\Error\LoaderError; use Twig\Error\RuntimeError; use Twig\Error\SyntaxError; /** * Class CommentController * * Manages the Comments Features * * @package App\Controller */ class CommentController extends MainController { /** ...
true
4e29cbb709a47dacae75f2bad5cbf9c8ee9f3ebc
PHP
gorkalaucirica/HipchatAPIv2Client
/API/UserAPI.php
UTF-8
5,367
2.953125
3
[ "MIT" ]
permissive
<?php namespace GorkaLaucirica\HipchatAPIv2Client\API; use GorkaLaucirica\HipchatAPIv2Client\Client; use GorkaLaucirica\HipchatAPIv2Client\Model\User; use GorkaLaucirica\HipchatAPIv2Client\Model\Message; class UserAPI { /** @var Client */ protected $client; /** * Room api constructor * * ...
true
4c6fada0a436ef7b54d438f5aef10152d3fb43c1
PHP
jianfyun/psr-easy-http-message
/src/PsrEasy/Http/Message/UploadedFile.php
UTF-8
3,605
3.125
3
[]
no_license
<?php namespace PsrEasy\Http\Message; use Psr\Http\Message\StreamInterface; use Psr\Http\Message\UploadedFileInterface; /** * UploadedFile * * @uses Psr\Http\Message\UploadedFileInterface * @package PsrEasy\Http\Message * @see http://www.php-fig.org/psr/psr-7/ */ class UploadedFile implements UploadedFil...
true
b0f0a66fb1f4e335df9eae7cb38089476e78e256
PHP
JonasDae/FruitOfThing
/app/Http/Controllers/ProfileController.php
UTF-8
1,164
2.703125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class ProfileController extends Controller { //prevent non authorized access public function __construct() { $this->middleware('auth'); } public function index() { ...
true
3d98d098c938786601d48f904ef68e64ef5f3819
PHP
redcrix/zend-php
/module/API/src/V1/Entity/Logger.php
UTF-8
2,123
2.671875
3
[]
permissive
<?php namespace API\V1\Entity; use Doctrine\ORM\Mapping as ORM; /** * Logger * * Classo de registro de logs para transações financeiras * * @author Marcus Borges <yahuchanam@gmail.com> * @copyright (c) 2019, InetPet * @version 1.0.0 * @ORM\Table(name="transaction_logs") * @ORM\Entity */ class Logger { ...
true
0f5bd3dbaf5ba56f30c6e8c2ede3261cb32c1625
PHP
wclintv/sandbox
/app/Models/CustomerSearchData.php
UTF-8
1,587
2.59375
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use App\Models\CustomerData; class CustomerSearchData extends Model { protected $table = 'customersearchdata'; protected $primaryKey = 'cust_id'; protected $fillable = [ 'cust_id', 'address_id', 'office_id', 'firstnam...
true
a7014c08e577321b7cef3d445fe853501f0d2b93
PHP
ampersa/axo
/commands/ExampleCommand.php
UTF-8
827
2.75
3
[ "MIT" ]
permissive
<?php /** * Axo - Console Micro-Framework * * @author Ampersa Ltd <contact@ampersa.co.uk> * @license MIT * @copyright © Copyright Ampersa Ltd 2017. */ namespace Commands; use System\Log\Log; use System\Console\Command; class ExampleCommand extends Command { protected $signature = 'example (An example comma...
true
0128fe88ea8ab3f2525d4077be852f21c5fd387c
PHP
nemundo/process
/src/Content/Data/ContentType/ContentTypeUpdate.php
UTF-8
850
2.546875
3
[]
no_license
<?php namespace Nemundo\Process\Content\Data\ContentType; use Nemundo\Model\Data\AbstractModelUpdate; class ContentTypeUpdate extends AbstractModelUpdate { /** * @var ContentTypeModel */ public $model; /** * @var string */ public $phpClass; /** * @var string */ public $contentType; /** * @var bool */ public $setupSt...
true
e4e6bfd77fd773c54749f573c684b2a23d254f58
PHP
Macara/xSon
/examples.php
UTF-8
993
2.90625
3
[]
no_license
<?php require_once("xson.class.php"); //Basic XML-JSON conversion echo "Basic XML-JSON conversion: \n"; $xml = '<?xml version="1.0" encoding="UTF-8" ?> <base id="1"> <case id="2"></case> <case id="3"></case> </base>'; $xml_xson = new xSon($xml); echo "\n XML input: \n \n".$xml; echo "\n \n JSON Output...
true
f1717d62384d1dfe465ecc811ba25069d295c713
PHP
ysbaddaden/misago
/lib/Misago/ActiveSupport/Cache/FileStore.php
UTF-8
1,836
2.921875
3
[ "MIT" ]
permissive
<?php namespace Misago\ActiveSupport\Cache; # An Cache Store implementation which stores data in files. # See <tt>Store</tt> for help. class FileStore extends Store { private $cache_dir; function __construct() { $this->cache_dir = TMP.'/cache/file_store/'; if (!file_exists($this->cache_dir)) { m...
true
09397ca756bb44ec6fbb1cf0bcf6d0902ef0bebb
PHP
zlikavac32/php-measuring-units
/examples/quantity.php
UTF-8
1,384
2.8125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); require_once __DIR__ . '/common.php'; $liter = $unitsOfMeasure['l']; $deciliter = $unitsOfMeasure['dl']; // Quantities can be created by calling __invoke() method $volume = $unitsOfMeasure(23, 'l'); // Quantities can be converted into different measure units echo "$volume = {$volume-...
true
d21db28c0dfd3b4e254cf0595ca24c6c71326418
PHP
anystack-sh/php-sdk
/src/Objects/Contact.php
UTF-8
1,026
2.90625
3
[]
no_license
<?php namespace Anystack\Sdk\Objects; use Saloon\Contracts\DataObjects\WithResponse; use Saloon\Contracts\Response; use Saloon\Traits\Responses\HasResponse; class Contact implements WithResponse { use HasResponse; public function __construct( public string $id, public string $email, ...
true
a09d96c7ebf3db14902f29fefe6325043cb69f01
PHP
TheXobbitt/rest
/api/services/OAuthService.php
UTF-8
1,196
2.875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Oleksandr Blakov * Date: 12/29/17 * Time: 04:11 */ namespace rest\services; use base\exceptions\DomainException; use base\exceptions\ValidationException; use base\helpers\HttpClient; /** * Class OAuthService * @package rest\services */ class OAuthService { /** ...
true
6550be170fbf93ef3361f0feb3948253bbdaa690
PHP
tmtystm15/07_36_tomitayasutomo
/index1.php
UTF-8
1,482
3.046875
3
[]
no_license
<?php //PDOでデータベース接続 try { $pdo = new PDO("mysql:host=localhost;dbname=gs_db;charset=utf8","root"); }catch (PDOException $e) { exit( 'DbConnectError:' . $e->getMessage()); } // 実行したいSQL文(最新順番3つ取得) $sql = "SELECT * FROM gs_table ORDER BY time DESC LIMIT 10"; //MySQLで実行したいSQLセット。プリペアーステートメントで後から値は入れる $stmt = $p...
true
1cd5852c9129da36bfb4a7e7787aa77fe16ab3f4
PHP
amrihidayatullohmf/ugc-wp-plugin
/class.ugc-mailer.php
UTF-8
1,523
2.90625
3
[]
no_license
<?php class Ugc_Mailer { private $FROM = "ugc@mail.co"; private $SUBJECT = ""; private $TO = ""; private $BODY = ""; function __construct($options = array()) { if(isset($options['from'])) { $this->FROM = $options['from']; } if(isset($options['subject'])) { $this->SUBJECT = $options['subject']; } ...
true
d902b5834545c83d8dd9670d719b06a7aabb9dc7
PHP
Ditwo/badnet
/src/utils/uttemplate.php
UTF-8
19,747
2.671875
3
[]
no_license
<?php /***************************************************************************** ! Module : utils ! File : $Source: /cvsroot/aotb/badnet/src/utils/uttemplate.php,v $ ! Version : $Name: $ ! Revision : $Revision: 1.10 $ ! Revised by : $Author: cage $ ! Date : $Date: 2007/05/19 ...
true
1937647c688b0b52fae0635b23091d98bd680041
PHP
MatiasGalvan/MoviePass
/Controllers/MovieController.php
UTF-8
9,285
2.640625
3
[]
no_license
<?php namespace Controllers; use Models\Movie as Movie; use Models\Genre as Genre; use Models\Cinema as Cinema; use DAO\MovieDAO as MovieDAO; use DAO\GenreDAO as GenreDAO; use DAO\MovieFunctionDAO as MovieFunctionDAO; use DAO\CinemaDAO as CinemaDAO; use Controllers\CinemaController...
true
12449294dc31b4d47c6abc8559d41330eb313a7c
PHP
siriusphp/validation
/src/ValueValidator.php
UTF-8
8,606
3.15625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Sirius\Validation; use Sirius\Validation\Rule\AbstractRule; class ValueValidator { /** * The error messages generated after validation or set manually * * @var array */ protected $messages = []; /** * Will be used to construct the rules ...
true
140226631e4ae49b175bfb2fbfb60d8425732644
PHP
AzonMedia/guzaba2
/src/Guzaba2/Kernel/Interfaces/ClassInitializationInterface.php
UTF-8
315
2.671875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Guzaba2\Kernel\Interfaces; interface ClassInitializationInterface { /** * Must return an array of the initialization methods (method names or description) that were run. * @return array */ public static function run_all_initializations(): array; }
true
2bc83626a5cdc32ff7ab62df8663bd75d55923ec
PHP
run417/sbwms
/src/Model/Inventory/Item/ItemEntityManager.php
UTF-8
2,642
2.859375
3
[ "MIT" ]
permissive
<?php namespace sbwms\Model\Inventory\Item; use sbwms\Model\Inventory\Item\Item; use sbwms\Model\Inventory\Category\Subcategory; use sbwms\Model\Inventory\Category\SubcategoryRepository; use sbwms\Model\Inventory\Supplier\Supplier; use sbwms\Model\Inventory\Supplier\SupplierRepository; class ItemEntityMana...
true
c3c5a864f6d9d7b98b21c06b716342df5db69f7d
PHP
tryfatur/sdppi-kemkominfo
/sdppi.php
UTF-8
4,209
2.890625
3
[]
no_license
<?php header("Content-Type: text/html; charset=ISO-8859-1"); /* * Generate URL untuk scrapping data dari SDPPI Kominfo pertahunnya. */ function sdppi_url($year) { for ($i=1; $i < 13; $i++) { if ($i < 10) { $url = 'http://sdppi.kominfo.go.id/downloads/43/RHU-'.$year.'0'.$i.'.htm'; $headers ...
true
3c0a7c60e8069724d73e87685a5ec4a2dc165be2
PHP
OChriiis/gittest
/projetophp-rti-sa01-rti-solutions/projetophp-rtisolutions/seneletro/calculavalor.php
UTF-8
1,288
2.78125
3
[]
no_license
<?php $nome = $_GET["nome"]; $rua = $_GET["rua"]; $numero = $_GET["numero"]; $consumo = $_GET["consumo"]; if($consumo > 120){ $taxaporkWh = 0.42; }else if( $consumo <= 120){ $taxaporkWh = 0.32; } $valorTotal = $consumo + ($consumo * $taxap...
true