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
8661aa23413b0b78dc53c48f8b50e698c6c9c7d0
PHP
ThimoSanders/NerdyGadgets
/editCart.php
UTF-8
1,252
2.671875
3
[]
no_license
<?php session_start(); try { $ItemID = $_GET['ItemID']; $Quantity = $_GET['Quantity']; $Price = $_GET['Price']; $TotalPrice = $_GET['TotalPrice']; if (!isset($_SESSION['shoppingcart'])) { throw new Exception("No session"); } if (!array_key_exists( $ItemID, $_SESSION['shoppingcart'])...
true
303dc90734cfacfef379d002d6d3ec2f2ea54e3a
PHP
ArifCahyady14702/Modul-PHP
/pembelajaran2/index.php
UTF-8
2,875
3.8125
4
[]
no_license
<?php // Pertemuan 2 - PHP Dasar //Sintaks PHP //Standar Output /* PHP memiliki perintah output antara lain : echo,print,print_r(untuk menampilkan isi array), var_dump(untuk debugging development) CONTOH: */ echo "Arif Cahyady<br>";//<br> di gunakan untuk membuat kalimat berikut nya ke bawah print "Arif Cahyady...
true
cd6ae77a7ce0b479f613794dc9807145cf704403
PHP
cometcult/metrics-game
/src/TheCometCult/Notifications/NotificationsSenderInterface.php
UTF-8
296
2.546875
3
[]
no_license
<?php namespace TheCometCult\Notifications; interface NotificationsSenderInterface { /** * @param array $metrics array of author => number of commits * @param array $params array of additional parameters */ public function send(array $metrics, array $params = array()); }
true
6b481b377521fd5fdaa8ab1f65da4104bba653b0
PHP
BLLekshmipriya/Mashup
/php/Lab-1/lab-1-4.php
UTF-8
240
2.53125
3
[]
no_license
<?php $content="PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML."; echo strrev($content); ?>
true
809c23b6a1c9b401904b445150e8472a4f03f043
PHP
easy-system/es-system
/src/SystemConfig.php
UTF-8
1,328
2.78125
3
[ "MIT" ]
permissive
<?php /** * This file is part of the "Easy System" package. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author Damon Smith <damon.easy.system@gmail.com> */ namespace Es\System; use Es\Container\Configuration\Configuration; ...
true
0d589803214450a70adbf766f09eeb1231907f19
PHP
LeoColomb/yourls-image-placeholder
/plugin.php
UTF-8
2,387
2.75
3
[]
no_license
<?php /* Plugin Name: Simple Image Generation Plugin URI: https://github.com/LeoColomb/yourls-image-placeholder Description: A quick and simple image placeholder service &mdash; <a href="http://placehold.it">placehold.it</a> Version: 1.2 Author: Leo Colombaro Author URI: https://colombaro.fr/ Template: <code>http://sho...
true
0a099a6ae1f0d264ea3bbc8b0b1529867e2d1071
PHP
fallabdoulaye93/sunuhajj
/app/common/CommonModel.php
UTF-8
1,122
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Seyni FAYE * Date: 31/01/2018 * Time: 12:52 */ namespace app\common; trait CommonModel { /** * Créer ici des méthodes appelable par toutes les classes models. */ /** * Verificationde lexistance emal user des Droit */ /*public function Veri...
true
d40a8db4a98de76f20399cbef1463cd0d5951587
PHP
milianhuampo/practica5
/ejercicio5.php
UTF-8
739
2.84375
3
[]
no_license
<!DOCTYPE html> <html lang="es"> <head> <meta charset="utf-8" /> <link rel="stylesheet" type="text/css" href="estilos.css" /> </head> <body> <?php if ($gestor = opendir('fotos')) //ABRE EL GESTOR DE DIRECTORIO DE LA CARPETA FOTOS Y LO ALMACENA EN LA VARIABLE $GESTOR SOLO CON ESTA CENTENCIA { echo "<table b...
true
3c03a268f1f17c6b2faab9d4ea6a55a472154907
PHP
JRSil/Dicas-Disney
/setwood/inc/woocommerce/setwood-woocommerce-template-functions.php
UTF-8
12,574
2.5625
3
[]
no_license
<?php /** * WooCommerce Template Functions. * * @package setwood */ /** * Before Content * Wraps all WooCommerce content in wrappers which match the theme markup * @since 1.0.0 * @return void */ if ( ! function_exists( 'setwood_before_content' ) ) { function setwood_before_content() { ?> <div id="prim...
true
3aab99575cc92e94caef129d4f16d3f9eea9f976
PHP
YeniferGonzalez/Proyecto-Final-sistema-de-votaciones-
/ManejadorPeriodo.php
UTF-8
1,853
2.578125
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset ="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>::Formulario de Captura de datos de candidatos:</title> <link rel="stylesheet" href="./libs/bootstrap/css/bootstrap.css"> <script src="./libs/jquery-2.1.0.js"></script> ...
true
f68943aed893f5cbf49824ad88b282a579bd9831
PHP
codeaid-dev/PHP_practice
/Exercise_var/s_var5.php
UTF-8
256
3.265625
3
[]
no_license
<?php $apple = 120; $pear = 180; $grape = 200; $tax = 1.1; print "リンゴ:" . $apple . "円<br>"; print "梨:" . $pear . "円<br>"; print "ぶどう:" . $grape . "円<br>"; print "合計:" . ($apple+$pear+$grape)*$tax . "円(税込)<br>"; ?>
true
44132605249c108fd75c0d9e618f321eb199e1a7
PHP
0x417368/dmi-whatsapi
/local/info.php
UTF-8
168
3.046875
3
[ "MIT" ]
permissive
<?php $line = "Hello there sailor. Aye sir."; $char = array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L"); echo "<pre>"; print_r($char); echo "</pre>"; ?>
true
ba514d55ad8c5e85f1dc25913f800f0e859ace30
PHP
Stratadox/Random
/tests/Generating_random_integers.php
UTF-8
2,374
3.0625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Stratadox\Random\Test; use PHPUnit\Framework\TestCase; use RuntimeException; use Stratadox\Random\RandomIntegerGenerator; use function count; /** * @testdox Generating random integers */ class Generating_random_integers extends TestCase { /** @test */ function gener...
true
ab76af66e661eb8e2524c1339199e0e05aceb782
PHP
17600200818/blog
/app/Http/Controllers/ArticlesController.php
UTF-8
2,564
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Article; use Illuminate\Http\Request; use App\Handlers\ImageUploadHandler; class ArticlesController extends Controller { public function index(Request $request, Article $article) { $perPage = 4; if ($request['query']) { $list =...
true
521065e9ce25c68b94475caaab8527cc81c7081b
PHP
airCstnr/PHP
/mult3.php
UTF-8
696
3.5
4
[]
no_license
#!/usr/bin/php <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" type="text/css" href="style.css"> <title>Table de multiplication</title> </head> <body> <section> <h1>Table de multiplication</h1> <?php printf("<table>\n"); printf("<tr>"); printf("<th></th>"); // pour la pr...
true
fbf49cae9047cada8a5eb404305800d19ffcbb24
PHP
TomKauffeld/project_Web
/api/v1/managers/CommentManagement.php
UTF-8
3,148
3.125
3
[ "Apache-2.0" ]
permissive
<?php require_once __DIR__."/../database/CommentDatabase.php"; require_once __DIR__."/../objects/User.php"; require_once __DIR__."/../objects/Comment.php"; require_once __DIR__."/TokenManagement.php"; class CommentManagement{ /** * searches if the id exists * @param string $id the id to search for ...
true
72dcc42cfe6b2c2dfa55dfe121890fb80ac59dda
PHP
smckeehan/confr
/database/seeds/PostsTableSeeder.php
UTF-8
1,563
2.578125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; class PostsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('posts')->delete(); $postsArr = array( ['id' => 1, 'title' => 'Test1', 'description' => 'Just an initia...
true
d14f4ee790396b050945ffdd7fb53611b482e371
PHP
albatronic/hermes2
/entities/methods/Idiomas.class.php
UTF-8
1,126
2.703125
3
[]
no_license
<?php /** * @author Sergio Perez <sergio.perez@albatronic.com> * @copyright INFORMATICA ALBATRONIC SL * @date 02.02.2014 01:32:22 */ /** * @orm:Entity(ErpIdiomas) */ class Idiomas extends IdiomasEntity { public function __toString() { return $this->getIDIdioma(); } /** * Devuelve arra...
true
4567bb6a040426886bf22395a839deaf5712c0e0
PHP
5ctechforgood/projectcaring
/piwik/plugins/SEO/Metric/Metric.php
UTF-8
2,594
2.921875
3
[ "LicenseRef-scancode-warranty-disclaimer", "GPL-3.0-or-later", "LGPL-2.0-or-later", "LGPL-2.1-or-later", "GPL-3.0-only", "GPL-1.0-or-later", "MIT" ]
permissive
<?php /** * Piwik - free/libre analytics platform * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ namespace Piwik\Plugins\SEO\Metric; /** * Describes a SEO metric. */ class Metric { /** * @var string */ private $id; /** * @var string...
true
6bc3ee510f614524baf99ed5f5632c90bcb66395
PHP
pommet99/Laravel_TodoApp
/app/Http/Controllers/TodoController.php
UTF-8
2,207
2.59375
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Todo; use Illuminate\Http\Request; class TodoController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $todos = Todo::latest()->...
true
27779a30bdeaf00c3d18207dd2d9db98f933d7fe
PHP
semenikhin/factory
/src/Definitions/ParameterDefinition.php
UTF-8
488
2.515625
3
[]
no_license
<?php declare(strict_types=1); namespace Yiisoft\Factory\Definitions; use ReflectionParameter; class ParameterDefinition extends ValueDefinition { private ReflectionParameter $parameter; public function __construct(ReflectionParameter $parameter, $value, string $type = null) { $this->parameter ...
true
37fdb25a47d4d11ce67bf389f4169453a272b4e8
PHP
Elema82/campagnoni
/app/Events/Tasks/CreateTask.php
UTF-8
726
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Events\Tasks; use App\api\V1\Task\Task; use Illuminate\Broadcasting\PrivateChannel; /** * Class CreateTask * @package app\Events */ class CreateTask { /** * @var array */ private $data; /** * @var Task */ private $task; /** * CreateTask constructo...
true
942a7af9bd66f49dd2f3c8c2f3b656940b0404b7
PHP
Goby026/Panamericanos
/controller/auspiciadores.controller.php
UTF-8
545
2.546875
3
[]
no_license
<?php require_once 'model/auspiciadores.php'; class AuspiciadoresController{ private $model; public function __CONSTRUCT(){ $this->model = new Auspiciadores(); } public function Index(){ session_start(); $auspiciadores = $this->getAuspiciadores(); $c=0; req...
true
03154c2d98334e62b8bc9d55ca0664f3c0e7a213
PHP
levantan123/codephp
/buoi 3/Numbers.php
UTF-8
434
3.0625
3
[]
no_license
<?php $argvPhay[1]= $argv; function countAndSum($argvPhay){ $sum=0; $count=0; for($i=2;$i<=(($argvPhay[1])+1);$i++){ $sum+=$argvPhay[$i]; if($argvPhay[$i]%2==0){ $count++; } } ...
true
50965af24f8a26685b77fa02fc20beded0fdf76c
PHP
pbiggar/phc
/test/subjects/codegen/switch_continue.php
UTF-8
444
3.453125
3
[]
no_license
<?php for ($x = 0; $x < 10; $x++) { switch ($x) { case 0: echo "0\n"; break; echo "x\n"; case 1: echo "1\n"; break; echo "x\n"; case 3: // for the hell of it case 2: echo "2\n"; break; echo "x\n"; case 4: echo "4\n"; continue; // the same as break ec...
true
6bc41122b969d84e0c74c173a690355479b5a711
PHP
f4ctorial5/factorial5
/PhpHBObfuscator.php
UTF-8
4,007
3.015625
3
[]
no_license
<?php class PhpHBObfuscator { public $comment_chance = 10; public $comment_file = "hb.txt"; public $min_spaces = 8; public $max_spaces = 16; private $_comments = []; private $_first_letter = "h"; private $_last_letter = "b"; private $_chars = ["d", "n", "o", "a", "j"]; private $_co...
true
f46eb7c9bc7c640a5a844db97e8c295bd0d8a725
PHP
raynaldmo/php-education
/Scripts/examples/constructor.php
UTF-8
1,074
3.28125
3
[]
no_license
#!/usr/bin/env php <?php // declare (strict_types = 1) error_reporting(E_ALL); ini_set('display_errors', 1); class Employee { protected $name; // not executed when Manager object is instantiated public function __construct($name) { $this->name = __CLASS__ . ' '. $name; echo __CLASS__ . ' constructo...
true
8fe3333fa3f508150a6c06dcf86a27eabd8753e6
PHP
rasmusjaa/php_piscine_d07
/ex06/UnholyFactory.class.php
UTF-8
1,116
3.8125
4
[]
no_license
<?php class UnholyFactory { private $absorbed = []; private function array_has_type($person) { foreach ($this->absorbed as $abs) { if ($abs->type == $person->type) { return true; } } return false; } public function absorb($person) { if ($person instanceof Fighter) { if ($this->array_...
true
ff169b2df5a7c5f52759e81dd49fe52c5c38f554
PHP
fracz/refactor-extractor
/results/piwik/a00487b0b841c4b15463b591c7f62176c4b84d15/after/Updater.php
UTF-8
13,852
2.671875
3
[]
no_license
<?php /** * Piwik - free/libre analytics platform * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * */ namespace Piwik; use Piwik\Columns\Updater as ColumnUpdater; /** * Load and execute all relevant, incremental update scripts for Piwik core and plugins, and bump ...
true
6db4586201b2f2a3b6cd9a7cb2a4352f87b4546d
PHP
MalikZouhiri/DropIUT
/S3/ProgWeb/dsprogweb/documents/TP-PHP/xml-sax-b.php
UTF-8
2,235
2.53125
3
[]
no_license
<HTML> <HEAD> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <TITLE>Parsing XML à la SAX</TITLE> <link REL="stylesheet" TYPE="text/css" HREF="http://www.grappa.univ-lille3.fr/~torre/site.css"> </HEAD> <BODY> <DIV CLASS="menu"> <DIV CLASS="partmenu"> <UL> <LI> voir le <A HREF="http://www.grap...
true
d62fb0561aa2ffe1fe2dd5a52f5ba04cfd4ee90b
PHP
trungpolit/saya_backend
/app/Vendor/Push/genkgo/push/src/RecipientInterface.php
UTF-8
252
2.859375
3
[ "MIT" ]
permissive
<?php namespace Genkgo\Push; interface RecipientInterface { /** * @return string */ public function getToken(); /** * @param $token * @return RecipientInterface */ public static function fromString($token); }
true
767df56a9cee57c13bdbffc4317dadd25e917bf0
PHP
chabzlala29/ayala-angular-app
/php/sessions.php
UTF-8
575
2.703125
3
[]
no_license
<?php $action = $_GET['action']; session_start(); if($action == 'token'){ setToken($_GET['token']); }else if($action == 'email'){ setEmail($_GET['email']); }else if($action == 'getToken'){ getToken(); }else if($action == 'getEmail'){ getEmail(); }else{ } function getToken(){ echo...
true
a9d7811e2d51864857501be4ea0bfc74369e4bda
PHP
joki20/dbwebb-mvc-ci
/tests/Unit/DiceHandCreateObjectTest.php
UTF-8
1,976
3.3125
3
[]
no_license
<?php namespace Tests\Unit; use PHPUnit\Framework\TestCase; use Joki20\Http\Controllers\DiceHand\DiceHand; /** * Test cases for class Guess. */ class DiceHandCreateObjectTest extends TestCase { /** * Construct object and verify that the object is instance of DiceHand class */ public function test...
true
476f402170907b6068b50d550b3699b33a6b9bed
PHP
johnathanmiller/secure-env-php
/tests/ParserTest.php
UTF-8
581
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace SecureEnvPHP\Tests; use PHPUnit\Framework\TestCase; use SecureEnvPHP\Constants; use SecureEnvPHP\Crypto; use SecureEnvPHP\Parser; class ParserTest extends TestCase { /** * Test parsing decrypted env file and matching expected object */ public function test...
true
6f857f8aad49585b943b8f76fa15a1a0eb659a30
PHP
sigma-z/Dive
/src/Dive/Schema/DataTypeMapper/DataTypeMapper.php
UTF-8
7,749
2.859375
3
[ "BSD-3-Clause" ]
permissive
<?php /* * This file is part of the Dive ORM framework. * (c) Steffen Zeidler <sigma_z@sigma-scripts.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Dive\Schema\DataTypeMapper; use Dive\Schema\OrmDataType\OrmDataType...
true
91cd6ad0d3e985540f07ebcc23c497be38c93205
PHP
TiegoMakaleng/PHP-Get-Started
/PHP/display-html-code-with-print-statement.php
UTF-8
264
3.328125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <title>Example of PHP print Statement</title> </head> <body> <?php // Displaying HTML code print "<h4>This is a simple heading.</h4>"; print "<h4 style='color: red;'>This is heading with style.</h4>" ?> </body> </html>
true
d239cd26152aaede1aba884a3494b5cf2718b9bf
PHP
mikekwilson/SithLeagueAPI
/app/Http/Controllers/DivisionsController.php
UTF-8
2,349
2.625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Http\JsonResponse; use App\Division; class DivisionsController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\JsonResponse */ public function index() { try { $re...
true
e55b0824f2d14d1351956340ab859452a849d242
PHP
creamjiang/WebOfThings
/views/log/index.php
UTF-8
410
2.625
3
[]
no_license
<h2>Gateways</h2> <table border='1'> <thead> <tr> <th>ID</th> <th>text</th> </tr> </thead> <tbody> <?php foreach ($logs as $log): ?> <tr> <td> <?php echo $log->id; ?> </td> <td> <?php echo timestamp_to_time($log->created_at) . " - " . date_format_DMY(timestamp_to_date($log->cre...
true
78e42051e4b977e78cc3ebc657d6e6b8e2aa35ff
PHP
SirApropos/phpMVC
/phpMVC/classes/utils/MethodInvoker.php
UTF-8
1,516
2.9375
3
[]
no_license
<?php /** * User: Apropos (sir.apropos.of.nothing@gmail.com) * Date: 10/26/2014 * Time: 5:07 PM */ class MethodInvoker { public static $mapping = [ "fields" => [ "container" => [ "autowired" => true, "type" => "IOCContainer" ] ] ]; /** * @var IOCContainer */ private $container; /** ...
true
60c8d00af176324d5f50fe7056f4ced259955760
PHP
igaponov/jsonrpc
/src/Spec/Response.php
UTF-8
2,151
2.90625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace JsonRpc\Spec; /** * When a rpc call is made, the Server MUST reply with a Response, * except for in the case of Notifications. */ class Response extends Unit { /** * @var mixed The value of this member is determined by the method invoked on the Server. * This member is REQUIRED on suc...
true
d969ad67668338c798f1bdf17085c08006078936
PHP
andrewbinghamteessideuni/Yii2
/actionAddproperty.php
UTF-8
2,303
2.78125
3
[]
no_license
<?php //New function for actionAddproperty -- update 16/10/18 to make more simple //Place this function within the site controller public function actionAddproperty() { //define three models $properties = new Properties(); $images = new Images(); $propertiesImages = new PropertiesImages...
true
c82d9db9233aedbeb952483f34338bd444003b6f
PHP
MaileRohivali/Harjutus3
/index.php
UTF-8
2,995
3.609375
4
[]
no_license
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>harjutus-3 - PHP andmetüübid</title> </head> <body> <h1>Muutujad</h1> <?php $variable = 30; echo $variable; //Lisan veebilehitsejas parema loetavuse saamiseks reamurdmise elemendi: ...
true
7308741cd2935508fdbe0483bd0c5c9af2d78b63
PHP
fossabot/malini
/Malini/Helpers/DecoratorRegistry.php
UTF-8
891
2.84375
3
[ "MIT" ]
permissive
<?php namespace Malini\Helpers; use Malini\Post; use Malini\Interfaces\PostDecoratorInterface; class DecoratorRegistry { protected static $registered_decorators = []; public static function has(string $name) { return isset(static::$registered_decorators[$name]); } public static function ge...
true
a5e2c68d83fd6f72b6e2f45daa7482667521a11d
PHP
AlaEddineZakha/nepsus
/src/AppBundle/Entity/Paiement/Devise.php
UTF-8
2,926
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Tlija * Date: 04/10/2017 * Time: 15:32 */ namespace AppBundle\Entity\Paiement; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; /** * @ORM\Entity * @ORM\Table(name="devise") */ class Devise { /** * @ORM\Id * @ORM\Generat...
true
0d6d77e89ec69c03feb4edfc9877e511a620cce4
PHP
phprao/data_script
/action/model/propmodel.php
UTF-8
576
2.859375
3
[]
no_license
<?php /** * 道具 * Created by PhpStorm. * User: Administrator * Date: 2018/3/21 * Time: 13:51 * @author Zhanghui */ class propmodel extends basicdatamodel { public function __construct($app) { parent::__construct(); $this->m_app = $app; } /** * 静态实例化 ...
true
71f309e09a03ae33d750c2faa0ee4e22339adaa4
PHP
kaskus/kaskus-php-sdk
/sample/simpleApplication/index.php
UTF-8
1,795
2.71875
3
[]
no_license
<?php require __DIR__ . '/vendor/autoload.php'; session_start(); // configuration $consumerKey = 'YOUR CONSUMER KEY'; $consumerSecret = 'YOUR CONSUMER SECRET'; $callbackUrl = 'http://localhost:8000'; // e.g. http://yourapplication.com // creating client $client = new \Kaskus\KaskusClient($consumerKey, $consum...
true
2956c0125bc642a3947747aeae6c1fd3773f20fd
PHP
ignacioito/HelloWorld
/exercicioaula09bdados.php
UTF-8
1,071
2.828125
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf8"/> <link rel="stylesheet" href="_css/estilo.css"> <style> h2{ font-family: arial; } </style> </head> <title></title> <body> <div> <?php ...
true
ad3285bd4f25f9557feae118b2cc12f4e781fa91
PHP
flydement/MyTest
/Note笔记/__construct.php
UTF-8
792
4
4
[ "MIT" ]
permissive
<?php class person{ public $name = "Tom"; public $gender; static $money = 10000; public function __construct(){ echo "父类之",PHP_EOL; } public function say(){ echo $this->name,"\t is",$this->gender,"\r\n"; } } class family extends person{ public $name; public $gender; public $age; static $money = 100000...
true
9690cd641df8806ea32355b7b0fa7c650d5441a8
PHP
jbrathony/lowes-api
/example.php
UTF-8
517
2.5625
3
[]
no_license
<html><body><form method="POST"> <table> <tr> <td>zipCode (optional)</td> <td><input name="zipCode" value=""></td> </tr> <tr> <td>itemId</td> <td><input name="itemId" value="2000000"></td> </tr> </table> <button>Submit</button> <?php require __DIR__.'/LowesApi.php'; if(isset($_POST['itemId'])){ $api =...
true
4bdd78e1527fbd0bfffadc6121b583e628470484
PHP
ashishsharma45/pdf
/cdac/Core PHP Notes/Core PHP Code/91. ReturnStatement.php
UTF-8
156
3.359375
3
[]
no_license
<?php function add($a, $b) { $sum = $a + $b; return($sum); // return($a + $b); } $total = add(2, 4); echo "Total = $total"; // echo add(2, 4); ?>
true
90012b87d2d5612f583213749481ed9402187775
PHP
mejison/remote-garage
/public/server.php
UTF-8
882
2.578125
3
[]
no_license
<?php $response = [ 'state' => false ]; $host = "localhost"; $username = "root"; $password = ""; $dbname = "remote"; $conn = new PDO("mysql:host=$host;dbname=$dbname", $username, $password); if (isset($_GET['thing'])) { $stmt = $conn->prepare("SELECT `state` from `po...
true
17d38cf80fe3de80a7b7a8934712e4de15f565cf
PHP
KohoVolit/KohoVolitAPI
/projects/napistejim/resources/PublicMessagesPreview.php
UTF-8
7,219
2.671875
3
[]
no_license
<?php /** * \ingroup napistejim * * Lists previews of sent public messages. */ class PublicMessagesPreview { /** * Lists previews of sent public messages in descending order by the date and time they were sent. * * \param $params An array of pairs <em>parameter => value</em> specifying the messages to selec...
true
9befaec6866e3ccc1f59be086146f09e2f4e78e1
PHP
DimkaInc/invent
/models/Moving.php
UTF-8
7,929
2.609375
3
[]
no_license
<?php namespace app\models; use Yii; /** * Это класс модели таблицы перемещений оборудования. * * @property int $id Идентификатор записи (неизменяемое) * @property string $date Дата перемещения * @property int $item_id Идентификатор предмета/оборудования * @property ...
true
7360b7372d463bdc21276041c041c663e08c21f1
PHP
aterego/extJs_transplant
/server/inc/function.php
UTF-8
1,096
2.578125
3
[]
no_license
<?php function query($qry) { $result = mysql_query($qry) or die("Failed query : <br>$qry<br><br>wrong kode : <br>&nbsp;&nbsp;&nbsp;" . mysql_error() . "!"); return $result; } function fetch_row($qry) { $tmp = query($qry); list($result) = mysql_fetch_row($tmp); return $result; } function _kd_auto($field,$table,$x...
true
ab63f55492b1c8384cbef7dc3ead2be384351e69
PHP
agolp/tdd-workshop
/ex2/src/PrimeFactors.php
UTF-8
414
3.84375
4
[]
no_license
<?php declare(strict_types=1); class PrimeFactors { public static function generate(int $n): array { $primes = []; for ($potentialDivider = 2; $potentialDivider <= $n; ++$potentialDivider) { while ($n % $potentialDivider === 0) { $primes[] = $potentialDivider; ...
true
690030243aef98f036476d62a746ac6d133ef795
PHP
Aminevsky/memo_app_laravel
/app/Repositories/Eloquent/MemoRepository.php
UTF-8
3,066
2.984375
3
[]
no_license
<?php namespace App\Repositories\Eloquent; use App\Repositories\MemoRepositoryInterface; use App\Memo; use Illuminate\Support\Facades\DB; /** * Class MemoRepository メモリポジトリ * @package App\Repositories */ class MemoRepository implements MemoRepositoryInterface { /** * メモを新規作成する。 * * @param strin...
true
6cc5479e11195b14cc647ddf769101af87bcac2e
PHP
asepsupriyanto/ngoding
/OOP/kelas.php
UTF-8
748
3.359375
3
[]
no_license
<html> <body> <?php class imah { public $nama; public $jk; function set_nama($nama) { $this->nama = $nama; } function get_nama() { return $this->nama; } function set_jk($jk) { $this->jk = $...
true
02bbb8a8c25d184d1c88febb4640aabf45f783e0
PHP
ezpublishlegacy/ezviewcounter
/ezviewcounter/autoloads/ezviewcounteroperator.php
UTF-8
4,294
2.78125
3
[]
no_license
<?php /** * Class operator to manage functions in template * @author Adrien Loyant <adrien.loyant@te-laval.fr> * @version 0.0.1 * @copyright Copyright (C) 2011 * @license GNU General Public License v2.0 * @since 2011-12-12 * @package ezviewcounter */ class eZViewCounterOperator { /** * The operators ...
true
72249a98ac1bd2093a3830ec110e29a2f5ea3b80
PHP
rodrigobsm/ciclomatic_web
/application/controllers/Prova.php
UTF-8
6,556
2.75
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Prova extends CI_Controller { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controll...
true
70102fbde4201fe081776041541dbaa2426c2fc2
PHP
gizmore/gwf5
/inc/util/gwf/GWF_RSS.php
UTF-8
1,749
2.796875
3
[ "MIT" ]
permissive
<?php final class GWF_RSS { private $title; private $descr; private $items; private $webURL; private $feedURL; public static function displayDate(int $time=null) { return date('r', $time===null?time():$time); } public static function displayCData($data) { return '<![CDATA['.htmlspecialchars($data)...
true
83bb31054d57edb00d3e7925218ce64c04ed92a6
PHP
cattapr/Millhouse-blog
/logic/pagination_count_db.php
UTF-8
343
2.546875
3
[]
no_license
<?php include 'partials/database.php'; $limit = 5; if(isset($_GET["page"])) { $page = $_GET["page"]; } else { $page=1; }; $start_from = ($page-1) * $limit; $statement = $pdo->prepare("SELECT * FROM posts order by postID DESC LIMIT $start_from, $limit"); $statement->execute(); $blog = $statement->fetch...
true
e30d697732429107e1a8ca484edf6b6a987a374e
PHP
nova-framework/novapress
/modules/Content/Views/Widgets/MainMenuItems.php
UTF-8
776
2.5625
3
[ "MIT" ]
permissive
<?php foreach ($items as $item) { if (! empty($children = $item['children'])) { $data = array( 'items' => $children, 'siteUrl' => $siteUrl, 'liClass' => 'dropdown-submenu', 'caret' => false, ); ?> <li<?= isset($liClass) ? sprintf(' class="%s"', $l...
true
f227a4f94027fbdbe6fd2988e2b26af0ef945ef1
PHP
omar-php/di
/test/unit/fixtures/classes.php
UTF-8
1,119
3.140625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Fixtures; interface I1 {} interface I2 {} abstract class AA {} abstract class BB {} class A extends AA implements I1 {} class B extends BB implements I2 {} class C { public function __construct(I1 $param1, I2 $param2) {} } class CFactory { /** * @var I1 ...
true
427f0368bfc52a0a80bef866efc219d438a7e5fe
PHP
alexandrebignalet/symfony3restapi
/src/AppBundle/Handler/QuestionHandler.php
UTF-8
4,658
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Alexandre * Date: 11/08/2016 * Time: 09:22 */ namespace AppBundle\Handler; use AppBundle\DataTransformer\QuestionDataTransformer; use AppBundle\DTO\QuestionDTO; use AppBundle\Factory\QuestionFactoryInterface; use AppBundle\Form\Handler\FormHandlerInterface;...
true
0fd5f1206dc46deaa1be008c8b63af2eebbbe356
PHP
Mayoshiroi/TinyPHPMVC
/system/class/CoreController.php
UTF-8
1,345
2.8125
3
[ "MIT" ]
permissive
<?php defined('ROOTPATH') OR exit(); class CoreController { protected $input; public function __construct() { foreach ($_POST as $key => $value) { $this->input["post"][] = array(fix_xss($key),fix_xss($value)); } foreach ($_GET as $key => $value) { $thi...
true
910f3e2c5758aeab4e8977dc70c910c87fc8b439
PHP
sunnyphp/testcase_pikabu
/cli/dist.php
UTF-8
1,611
2.75
3
[]
no_license
<?php declare(strict_types=1); // подключаем автозагрузку require_once __DIR__.'/../vendor/autoload.php'; // данные для записи в файл $bufferHeader = sprintf('<?php declare(strict_types=1); /** * @auto-generated @ %s * @author Sunny */ ', date('r')); $bufferFooter = PHP_EOL; // получаем используемые файлы $dire...
true
371c8fd5c2eb57ca2e8a940c21a02cf31e717e31
PHP
nascent-africa/addie
/app/Concerns/HasSlug.php
UTF-8
1,048
2.65625
3
[]
no_license
<?php namespace App\Concerns; use Illuminate\Database\Eloquent\Builder; use Spatie\Sluggable\HasSlug as SlugTrait; use Spatie\Sluggable\HasTranslatableSlug; use Spatie\Sluggable\SlugOptions; use Spatie\Translatable\HasTranslations; trait HasSlug { use HasTranslations, HasTranslatableSlug; public $translata...
true
63dbbb890c94ed4bbd764b1e6ad29de1a5efd8b8
PHP
ptim/gatsby-wordpress-gutenberg-1
/plugins/wp-gatsby/src/Schema/SiteMeta.php
UTF-8
2,423
2.734375
3
[ "MIT" ]
permissive
<?php namespace WP_Gatsby\Schema; /** * Adds info about the current site */ class SiteMeta { /** * */ function __construct() { add_action( 'graphql_register_types', function () { $this->registerFields(); } ); } /** * Regi...
true
ae5431fcdcf686eea8094c828c43a3ca04aa7a32
PHP
ruslanramdani1st/Php-dasar-github
/hotel/output.php
UTF-8
9,935
2.75
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>Data Hotel B5</title> </head> <body> <fieldset> <legend align="center"> <h1 s...
true
aa9312e371c3ee38fedc57843c717e72a7d6a856
PHP
gainge/RepoTracker
/api/pattern/create.php
UTF-8
1,380
2.703125
3
[]
no_license
<?php // required headers header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); header("Access-Control-Allow-Methods: POST"); header("Access-Control-Max-Age: 3600"); header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-...
true
08a86ea0cfe1d566feb00ca48d0d5ac1779dcb1e
PHP
dillonharless/CSC_450
/Project/Website Code/includes/Rentals.php
UTF-8
1,182
2.765625
3
[]
no_license
<!-- Alejandro Pena Osorio --> <?php require_once('../pdo_config.php'); $sql = 'SELECT * Ca_Images'; $result = $conn->query($sql); $errorInfo = $conn->errorInfo(); if (isset($errorInfo[2])) $error = $errorInfo[2]; else $numRows = $result->rowCount(); ?> <!DOCTYPE HTML> <html lang="en"> <head> ...
true
19b907896c5a5c502df9c66a81e47e7c025d48b7
PHP
Yongbei/blog
/app/Photo.php
UTF-8
451
2.59375
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Photo extends Model { protected $fillable = ['name', 'path']; protected $upload_dir = '/images/'; public function getNameAttribute($name){ $path = (file_exists(public_path() . $this->upload_dir . $name)) ? config('app.url') . $this...
true
f0edddc54f72107d85a9107dd6cdbeabeb20f82f
PHP
lop-old/phpUtils
/src/cache/cacher_filesystem.php
UTF-8
3,333
2.859375
3
[]
no_license
<?php /* * PoiXson phpUtils - PHP Utilities Library * @copyright 2004-2016 * @license GPL-3 * @author lorenzo at poixson.com * @link http://poixson.com/ */ namespace pxn\phpUtils\cache; use pxn\phpUtils\Arrays; use pxn\phpUtils\Strings; use pxn\phpUtils\General; use pxn\phpUtils\Defines; class cacher_filesyste...
true
4796dbc00e6cb17ded6232482cda7bd085d4b944
PHP
lucasllf2608/phpMySql
/gridContato.php
UTF-8
1,350
2.703125
3
[]
no_license
<?php if(isset($_GET['nome']) && isset($_GET['telefone']) && isset($_GET['email'])){ $pessoa = new Pessoa(); $pessoa->setEmail($_GET['email']); $pessoa->setNome($_GET['nome']); $pessoa->setTelefone($_GET['telefone']); //echo $pessoa->printObjeto(); gravarContato($conexao,$pessoa); } ...
true
91647e7063c5fedc726fde8d5bf6faae8a6394de
PHP
medinekorkut/swift-from-iban
/src/Common/ISwiftCode.php
UTF-8
225
2.796875
3
[ "MIT" ]
permissive
<?php namespace OguzCabuk\SwiftFromIban\Common; interface ISwiftCode { /** * Get Bank Swift Code from Iban * * @param string $Iban * @return string|null */ public function getCode($Iban); }
true
a196e604ee70e32225809cd5a8fa926bf2f75f89
PHP
edgargregori/eg-usab-orm
/database/factories/LanguageFatory.php
UTF-8
294
2.734375
3
[ "MIT" ]
permissive
<?php use Faker\Generator as Faker; // label: ISO 693-1 code, ISO: es, en, de, fr $factory->define(Model::class, function (Faker $faker) { $lang = randomElement($array = array('es', 'en', 'fr', 'de')); return [ 'label' => 'ISO 6931' . $lang . 'code', 'iso' => $lang ]; });
true
6610eb761e3454891acf2c7c6ec5ac036dad5986
PHP
openwebsolns/techscore
/lib/scripts/TweetSummary.php
UTF-8
2,474
2.953125
3
[ "MIT" ]
permissive
<?php namespace scripts; use \DB; use \InvalidArgumentException; use \STN; use \TSScriptException; use \TweetFactory; use \TwitterWriter; /** * Used from a CRON task to send updates to Twitter * * @author Dayan Paez * @created 2013-09-16 */ class TweetSummary extends AbstractScript { private $dry_run = false;...
true
49ba1d03828f05594e3483e208d2cf7f067f7a1c
PHP
MattWohler/wallet-api
/app/Models/Repositories/Contracts/Wallet/PlayerRepository.php
UTF-8
624
2.75
3
[]
no_license
<?php declare(strict_types=1); namespace App\Models\Repositories\Contracts\Wallet; use App\Models\Wallet\Player; use Illuminate\Support\Collection; interface PlayerRepository { /** * Get player by account * * @param string $account * @param bool $withBalance - if should include the balan...
true
717f7a2d11d22a027cd4f91c27ed607cea21c7eb
PHP
MarcoLunaGonzales/imonitoreo
/graficos/dataComposicionIngresos.php
UTF-8
2,206
2.59375
3
[]
no_license
<?php header('Content-Type: application/json'); set_time_limit(0); require_once '../conexion.php'; require_once '../functions.php'; require_once '../functionsPOSIS.php'; require_once '../styles.php'; error_reporting(E_ALL); $dbh = new Conexion(); /* $fondoTemporal=$_GET['fondoTemporal']; $anioTemporal=$_GET['anioTe...
true
33ebc1ea326765b804e8e15a27d9ebd82d60e1e7
PHP
zhazhaxia/php-test
/image_process/40image.php
UTF-8
514
2.6875
3
[]
no_license
<?php //简单的验证码 //随机数echo mt_rand(0,100); //实现0-9a-z十六进制 //echo dechex(mt_rand(0,15));//dechex数字转为十六进制 for($i=0;$i<4;$i++){ $nmsg.=dechex(mt_rand(0,15)); } //echo $nmsg; //验证码制成图片 header('Content-Type:image/png'); $im=imagecreatetruecolor(74,25); $blue=imagecolorallocate($im,0,102,255); $white=imagecolo...
true
fa434de7ac4c7e9f5df481ed17377baa84f0dec8
PHP
marciioluucas/back-s.order
/api/Insert.php
UTF-8
1,275
2.65625
3
[]
no_license
<?php require_once '../controller/UsuarioController.php'; require_once '../controller/ProdutoController.php'; /** * Created by PhpStorm. * User: Márcio Lucas * E-mail: marciioluucas@gmail.com * Date: 12/09/2016 * Time: 09:23 */ header('Content-Type: application/json', 'charset=utf-8', true); header('Content-Typ...
true
3e4474e74fe5dc0e7afb66144faef01c1464dcb0
PHP
pythagor/yii-phpab
/src/AbTestFactory.php
UTF-8
499
2.84375
3
[]
no_license
<?php namespace pythagor\yiiphpab; use phpab; /** * Class AbTestFactory * Made for instantiating phpab * @package pythagor\yiiphpab * @author Andrei Chugunov <admin@pythagor.com> */ class AbTestFactory implements AbTestFactoryInterface { /** * Returns phpab instance * @param string $name * @...
true
92b178ba19df9ff3278fe6af3e0b8704bc8295d9
PHP
icywolfy/pooltech
/module/Application/src/Application/Helper/NumberRangeSelectHelper.php
UTF-8
1,623
2.578125
3
[]
no_license
<?php namespace Application\Helper; use Zend\Form\Element\Select; use Zend\View\Helper\AbstractHelper; class NumberRangeSelectHelper extends AbstractHelper { private $format = '%d'; private $rangeStart = 0; private $rangeEnd = 0; private $attributes = array(); public function __invoke() { return $this;...
true
ce1f5162395f01a419386fd948fe7fe141bd393b
PHP
alindor01/tww_projekt_utb
/app/model/Guards/AGuard.php
UTF-8
282
2.59375
3
[]
no_license
<?php namespace App\model\Guards; use Nette\Application\UI\Presenter; abstract class AGuard implements IGuard { /** @var Presenter */ protected Presenter $presenter; public function __construct(Presenter $presenter) { $this->presenter = $presenter; } }
true
385d7526872ee85880adecb3ca1ddd2939fc76c9
PHP
rogan2929/Swapper-s-Delight
/php/jserror.php
UTF-8
440
2.609375
3
[]
no_license
<?php $message = filter_input(INPUT_POST, 'message'); $url = filter_input(INPUT_POST, 'url'); $line = filter_input(INPUT_POST, 'line'); $userAgent = $_SERVER['HTTP_USER_AGENT']; $log = fopen($_SERVER['DOCUMENT_ROOT'] . '\jserror.txt', 'a'); if (!$log) { exit(); } fwrite($log, date(DATE_RFC2822, $_S...
true
282f3961eee1a08ea592aa539ac971bbe8e9db2c
PHP
tentacode/KittenLitter
/src/App/Entity/Message.php
UTF-8
1,691
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use Doctrine\Common\Collections\ArrayCollection; /** * @ORM\Entity */ class Message { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="bigint") **/ private $id; ...
true
37dccf0ac54635d85ac45fd1ac3df12094401e7f
PHP
GabrielGui13/php_estudo
/arrays1/index.php
UTF-8
1,648
3.828125
4
[]
no_license
<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <title> Vetores </title> </head> <body> <pre> <h2> <?php function q() { echo "<br>"; } $n = array(3, 5, 8, 2); $n[] = 7; //adiciona um va...
true
34e6a3413b630c31042ac4bafdf7edce74510ac1
PHP
laurel-he/laravel_mall
/mall-serve/database/migrations/2018_02_13_105323_create_skus_table.php
UTF-8
1,031
2.625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateSkusTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('goods_sku', functi...
true
56ae91dcbc148930c4a7944d1c08e8237ec0f4f0
PHP
mrinmoygh081/bazaarbangla-ecommerce
/admin2/includes/view_all_images.php
UTF-8
3,093
2.5625
3
[]
no_license
<?php if(isset($_POST['checkBoxArray'])){ foreach($_POST['checkBoxArray'] as $imageValueId){ $bulk_options = $_POST['bulk_options']; switch($bulk_options) { case 'delete': $query = " DELETE FROM images WHERE image_id={$imageValueId} "; $delete_status = mysqli_query($connection, $query);...
true
9f656999dff584e5710836a678d1e540cc952e15
PHP
andparsons/mage-app-start
/app/code/Magento/Webapi/Model/WebapiRoleLocator.php
UTF-8
1,421
2.5625
3
[]
no_license
<?php namespace Magento\Webapi\Model; use Magento\Authorization\Model\ResourceModel\Role\CollectionFactory as RoleCollectionFactory; use Magento\Authorization\Model\Role; use Magento\Authorization\Model\UserContextInterface; use Magento\Framework\Authorization\RoleLocatorInterface; class WebapiRoleLocator implements...
true
96371ecfa7cfba21732d5b950791217a532471fb
PHP
chenyu00544/loong
/mobile/app/Modules/Api/Controllers/V2/FlowController.php
UTF-8
2,545
2.609375
3
[]
no_license
<?php namespace App\Modules\Api\Controllers\V2; use App\Modules\Api\Foundation\Controller; use App\Services\AuthService; use App\Services\FlowService; /** * Class FlowController * @package App\Api\Controllers\Wx */ class FlowController extends Controller { private $flowService; private $authService; ...
true
bb049e5453cb373e6d491d1ab57f30a8a108f68c
PHP
BrahimWDY/MicroBlog
/MicroBlog/Microblog-BrahimO/class/auth.php
UTF-8
585
3.046875
3
[]
no_license
<?php class Auth{ // initialisé l'authentification private $db; public function __construct($db){ $this->db = $db; } public function register($first, $last, $uid, $password, $email){ // Crypté le mot de passe $password = password_hash($password, PASSWORD_DEFAULT); // On exé...
true
4e74700dd2eaa948687c8b3f9417d9ed186507ad
PHP
BrentIO/FireFly_Configurator-old
/www/html/api/pinsAvailable.php
UTF-8
3,052
2.828125
3
[ "MIT" ]
permissive
<?php require_once('getConfig.php'); require_once('simpleRest.php'); require_once('database.php'); $simpleRest = new simpleRest(); $pin = new pin(); $_GET_lower = array_change_key_case($_GET, CASE_LOWER); try { $database = new database(); //Always assume success ...
true
7190a3fca2b8ee594f894af1e7f1b3b7a20e422f
PHP
abryb/console-handler
/src/Section/Log/RotateLogSection.php
UTF-8
1,604
3.015625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Abryb\ConsoleHandler\Section\Log; use Symfony\Component\Console\Output\ConsoleSectionOutput; /** * @author Błażej Rybarkiewicz <b.rybarkiewicz@gmail.com> */ class RotateLogSection extends WriteLogSection { /** * @var int */ private $numberOfLines; /*...
true
82201495e79a39b682ac37ffda9584a41389e844
PHP
alefesouza/laravel-vue-workshop
/routes/web.php
UTF-8
1,153
2.578125
3
[]
no_license
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | ...
true
ef50873549e3efb69f6bd821ba37c7b1e3f1a5f3
PHP
picq/whmcs-php
/whmcs.class.php
UTF-8
10,515
2.59375
3
[]
no_license
<?php class WHMCS { public $url; public $username; public $password; public $accesskey; public function __construct($url = 'http://whmcs.com/include/api.php', $username = 'username', $password = 'password', $accesskey = ''){ $this->url = $url; $this->username = $username; $this->password = $password; $th...
true
976eb53edac9056c0988493a60eb93d2b9b872be
PHP
Eighnov08/OOP
/STUDI KASUS/project/controller/news.php
UTF-8
540
2.828125
3
[]
no_license
<?php namespace controller; use controller\Database as DB; class News extends DB{ public function getNews(){ $sql = $this->prepare("SELECT * FROM oop_news"); $sql->execute(); return $sql->fetchAll(); // fetchAll tampilkan semua data } public ...
true
572874396b0e55db3a6c30e6405b3091ee8beafe
PHP
andparsons/mage-app-start
/app/code/Magento/ImportExport/Model/Import/ImageDirectoryBaseProvider.php
UTF-8
1,447
2.515625
3
[]
no_license
<?php declare(strict_types=1); namespace Magento\ImportExport\Model\Import; use Magento\Framework\App\Config\ScopeConfigInterface; use Magento\Framework\Filesystem\Directory\ReadInterface; use Magento\Framework\Filesystem; use Magento\Framework\App\Filesystem\DirectoryList; /** * Provides base directory to use for...
true
6f6ab7495bc832dcb8a0c08e2fbe87d9d69cfcb5
PHP
federicozacayan/phpunit-docker
/index.php
UTF-8
141
2.578125
3
[]
no_license
<?php require_once './vendor/autoload.php'; use App\Bar; $foo = new Bar(); if($foo->run()){ echo 'true'; } else { echo 'false'; }
true
39d16c39fbdf2e533a620c861b87be4468f225d7
PHP
thejhubbs/UIComponents
/html/contact.php
UTF-8
358
2.71875
3
[]
no_license
<?php $adminEmail = "thejhubbs@gmail.com"; $name = clean($_POST["name"]); $email = clean($_POST["email"]); $message = clean($_POST["message"]); $reason = clean($_POST["reason"]); function clean($str){ return trim(stripslashes(htmlspecialchars($str))); } echo $name . " (" . $e...
true