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
fdbde7ee4b04fa623fd717a8d9d216a472c25a49
PHP
sheldonjuncker/dj-yii
/components/gui/form/Element/Tag.php
UTF-8
2,303
3.390625
3
[]
permissive
<?php namespace App\Gui\Form\Element; class Tag extends Element { /** @var string $name */ protected $name; /** @var string $contents */ protected $contents; /** @var array $attributes */ protected $attributes = []; /** * Tag constructor. * @param string $name * @param string $contents * @param ...
true
df84d508babd8de8d1d1fe4aaee13bc15cede34a
PHP
Kyokazu/GestionProyectos
/Código_fuente/back/dto/Informe_gestion_semillero.php
UTF-8
2,154
2.953125
3
[]
no_license
<?php /* -------Creado por------- \(x.x )/ Anarchy \( x.x)/ ------------------------ */ // La última regla es confiar en Arciniegas \\ class Informe_gestion_semillero { private $id; private $fecha; private $semestre; private $capacitaciones_id; private $proyec...
true
aefcc7397d9f3e4316de008d9e005b089998563b
PHP
swami8223/Swami_April_Hotel_APP
/PHP/db_manager/hoteldetailsDbManager.php
UTF-8
10,479
2.9375
3
[]
no_license
<?php // hotelDetailsdbManager class updates DB include 'dbdetails.php'; include '../Classes/PHPExcel/IOFactory.php'; class hotelDetailsdbManager{ public $host_name=""; public $username=""; public $password=""; public $dbname=""; public $hotel_details_table_name=""; public $hotel_details_array = array(...
true
7a4ff204809eeb489490c413044388e54c87aa87
PHP
ajodar/curs2_php
/07_BBDD/BBDD_practiques/update/201214_actualitzarCategoria.php
UTF-8
646
2.921875
3
[]
no_license
<!-- Connexió a la BBDD --> <?php //Variables de connexió $server = "localhost"; $username = "root"; $password = ""; $databasename = "introduccio_bbdd"; //Connexió $conn = new mysqli($server, $username, $password, $databasename); if($conn->connect_error){ echo "Connexió erro...
true
d57b2ebd448c82473e1ef6f2a41ce8a14476a0b0
PHP
wangwt62/xsphp
/notebook.php
UTF-8
2,005
3.296875
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta http-equiv='Content-Type' content='text/html;charset=utf-8'/> <title>简单的基于文本的网络留言板V0.1</title> </head> <body> <?php $filename = "./files/notebook.txt"; /** * 如果提交留言信息,将留言信息写入文本文件 */ if(isset($_POST['submit'])) { $username = trim($_POST['username']); $title = trim($_POST[...
true
dc3444c29049d6edbd4a4004d123f2297287f758
PHP
RonaldoMoraes/PHP-padroes-de-projeto-e-boas-praticas
/DESIGN_PATTERNS/visitor/mercado/ImpostoCrise.php
UTF-8
418
3.421875
3
[]
no_license
<?php class ImpostoCrise implements Visitor { function visita(Produto $produto) { if ($produto instanceof Carne) { echo $produto->getValor() * 0.55 ."<br/>"; } else if ($produto instanceof Cereal) { echo $produto->getValor() * 0.32 ."<br/>"; } else if ($produto i...
true
d79e5941d878e486a471f9a8c6db4fb467179e40
PHP
Rockethouse/Statamify
/site/addons/Statamify/System/Helpers.php
UTF-8
3,579
2.59375
3
[ "Apache-2.0" ]
permissive
<?php namespace Statamic\Addons\Statamify\System; use Statamic\API\File; use Statamic\Addons\Statamify\System\System; use Statamic\API\YAML; class Helpers { public static function location($location) { $prefix = site_locale() != 'en' ? site_locale() : ''; $file = File::get(__DIR__ . '/../resources/loca...
true
be1aab61623861c29c83293d7b85586adfeb2c1c
PHP
liuweipcs/purchase
/.svn/pristine/be/be1aab61623861c29c83293d7b85586adfeb2c1c.svn-base
UTF-8
2,382
2.53125
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace app\api\v1\models; use Yii; use yii\data\ActiveDataProvider; /** * This is the model class for table "pur_inland_avg_deliery_time". * * @property integer $id * @property string $sku * @property integer $avg_delivery_time * @property string $update_time */ class InlandAvgDelieryTime extends \yii...
true
c83b6ab7bbe9134b835cf9acf61ac219351908b1
PHP
davids201221/Actividad4
/ejercicio7_registro_autos.PHP
UTF-8
781
2.90625
3
[]
no_license
<html> <head> </head> <body> <center> <h1>Registro de informacion</h1> <?php settype($nombre, "string"); settype($id, "integer"); settype($celular, "integer"); settype($correo, "string"); $id = 0; ...
true
e84930c1d4ebd65d37ec6ee2ee202c730a6873f6
PHP
benrowe/formatter
/tests/ComputerProviderTest.php
UTF-8
883
2.59375
3
[ "MIT" ]
permissive
<?php use Benrowe\Formatter\Providers\Computer; class ComputerProviderTest extends PHPUnit_Framework_TestCase { private $provider; public function setUp() { $this->provider = new Computer; } public function dataFilesize() { return [ [null, '<span>Not Set</span>'],...
true
248d87349a711c76434cee1060f90158ebfe21b4
PHP
opendatakosovo/the-future-workplace
/app/Exports/BusinessesExport.php
UTF-8
740
2.5625
3
[]
no_license
<?php namespace App\Exports; use Maatwebsite\Excel\Concerns\FromCollection; use App\businesses_map; use Illuminate\Support\Facades\DB; class BusinessesExport implements FromCollection { protected $year; public function __construct($year) { $this->year = $year; } /** * @return \Illum...
true
1cbb4d76664a8b8ad1750a23cb7e7df42b60abdf
PHP
mdeville/Piscine_PHP_01
/ex07/rostring.php
UTF-8
276
3.078125
3
[]
no_license
#! /usr/bin/php <?php if ($argc <= 1) exit(0); $split = explode(' ', $argv[1]); $tmp = array(); foreach ($split as $item) { if ($item != "") array_push($tmp, $item); } array_push($tmp, array_shift($tmp)); $final = implode(' ', $tmp); printf("%s\n", $final); ?>
true
a10e6d2f0774c319b78b8cd88aa0b96e0683778d
PHP
huangfuhui/ipcheck
/library/install/Install.php
UTF-8
686
2.5625
3
[]
no_license
<?php /** * Ipcheck安装操作规范 */ namespace Ipcheck\Install; use Ipcheck\RedisCheckOptionClass; interface Install { /** * 执行系统数据库安装及一些系统配置检查等系统初始化操作 * @param RedisCheckOptionClass $DBHandler 数据库操作对象 * @return bool */ function install($DBHandler = null); /** * 在 '/library/install' 目...
true
b662771f5e098484ef841cde76e8e681b84f2dfb
PHP
lvillanera/rino
/vendor/framework/rino/system/Core/Config.php
UTF-8
535
2.65625
3
[]
no_license
<?php namespace Rino\Core; /** * summary */ class Config { /** * summary */ public static function defined_constant($value='') { $getConstant = get_defined_constants(); return ((strlen($value)>0)? $getConstant[$getConstant]:(object)$getConstant); } public static function get() { $co...
true
291306ab69fc68a8f7aecadc6dc71c753236baed
PHP
mightylal/efed-content-management-system
/app/Repositories/ForumTopicRepository.php
UTF-8
2,041
3.109375
3
[ "MIT" ]
permissive
<?php namespace Efed\Repositories; use Efed\Contracts\Repositories\ForumTopicRepository as ForumTopicRepositoryInterface; use Efed\Models\ForumTopic; class ForumTopicRepository implements ForumTopicRepositoryInterface { /** * @var ForumTopic */ private $model; /** * Insert id. */ ...
true
4581207da52f1013b8bba0971a6c8d0fd6c7f979
PHP
pawan-saxena-srijan/Encryption
/app/Encryption/Repositories/EncryptionRepositories/OpensslEncryptionRepository.php
UTF-8
1,136
3.015625
3
[]
no_license
<?php namespace Encryption\Repositories\EncryptionRepositories; //Use the encryption interface from another namespace use Encryption\Repositories\InterfaceRepositories\EncryptionInterfaceRepository as EncryptionInterfaceRepository; /** * OpensslEncryptionRepository client implements @EncryptionInterfaceRepository */ ...
true
803c85cc1dedcf20b5fccccd797769bfdea3d569
PHP
yoneda73/PHP_BASIC
/BREAK002/api.php
UTF-8
470
2.71875
3
[]
no_license
<?php //日時の取得 $current_day = date('Y/m/d'); //星占いデータのURL $horoscope_url = 'http://api.jugemkey.jp/api/horoscope/free/'.$current_day; //ファイルを取得 $horoscope_json = file_get_contents($horoscope_url); //文字コードの変換 $horoscope_json = mb_convert_encoding($horoscope_json, 'UTF8', 'ASCII,JIS,UTF-8,EUC-JP,SJIS-WIN'); //連想配列に変換 ...
true
fabdfd5a7e4f5025f001b52d6774d57f9c7a3826
PHP
bigdaddymax/capexopex
/application/models/Scenario.php
UTF-8
5,663
3.3125
3
[]
no_license
<?php /** * Description of Scenario * * "Element" is a class that represent particular scenario of approval process. * It stores inscenarioation who is involved in approval process and in what sequence this process should run * * @author Max */ class Application_Model_Scenario { private $_valid = true; ...
true
4195b53867e2746ba439278eab8fc9dd319967fa
PHP
punktDe/pt_solr
/Classes/Extlist/DataBackend/QueryInterpreter/SimpleCriteriaTranslator.php
UTF-8
5,234
2.59375
3
[]
no_license
<?php /*************************************************************** * Copyright notice * * (c) 2010-2011 punkt.de GmbH - Karlsruhe, Germany - http://www.punkt.de * Authors: Daniel Lienert, Michael Knoll, Christoph Ehscheidt * All rights reserved * * For further information: http://extlist.punkt.de <extli...
true
4240ecd04d559fd6d7ea7dce0b3d2dc533f0f169
PHP
katatk/student-registration-form
/form-register.php
UTF-8
6,548
3.015625
3
[]
no_license
<?php session_start(); // user can only access form-register via the POST method, not GET (typing directly into the address bar) if (empty($_POST['submit'])) { header('Location: register.php'); die(); } // set the submit messages $msg_fail = 'One or more fields have an error.'; $msg_empty = 'Please f...
true
7e0300049c9aacb8785418abc8a567d779575c3c
PHP
Cassioblu55/aesop_php
/login/index.php
UTF-8
2,551
2.515625
3
[]
no_license
<?php session_start(); include_once '../config/config.php'; include_once $serverPath.'utils/db/db_get.php'; $login_ok = false; if(!empty($_POST)){ if(!empty($_POST['username']) && !empty($_POST['password'])){ $table = "users"; $query = "SELECT * FROM ".getTableQuote($table)." WHERE (username='".$_POST['us...
true
9e5f85f107628cbdc041d8d6855ff172ad334b8a
PHP
DaGhostman/openapi-generator
/src/Spec/Entities/Helpers/Secured.php
UTF-8
405
2.796875
3
[]
no_license
<?php declare(strict_types=1); namespace OpenAPI\Spec\Entities\Helpers; trait Secured { private $security = []; public function addSecurity(string $scheme, array $scopes) { $this->security[$scheme] = $scopes; } public function hasSecurity() { return !empty($this->security); ...
true
a2111353b8c3a8998bc8e5102428799b01d6470f
PHP
noxom/testsite
/framework/i18n/CPhpMessageSource.php
UTF-8
2,869
2.765625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * CPhpMessageSource class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CPhpMessageSource represents a message source that stores translated messages i...
true
cabe752eb2c17616447a0e6e717e3ebc7d918f2b
PHP
Patrick31000/php-crunching
/index.php
UTF-8
6,701
2.984375
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>title</title> <!--<link rel="stylesheet" type="text/css" href="css/style.css">--> </head> <body> <?php $string = file_get_contents("dictionnaire.txt", FILE_USE_INCLUDE_PATH); $dico = explode("\n", $string); echo "Le dictionnaire compte ".coun...
true
40539ad950607faef87be0b0b27d0cd261f6b261
PHP
long-blade/stackerstack
/src/FifoStack.php
UTF-8
812
3.140625
3
[ "MIT" ]
permissive
<?php namespace StackerStack; class FifoStack extends Stacker { protected $filePath = ROOT . DS . 'fifo_stack.json'; /** * @param bool $associative * @return mixed|null */ protected function get(bool $associative) { if (file_exists($this->filePath)){ $data = file_ge...
true
79202dd4df9bd8ea2fcdf00c525116492c2a3cae
PHP
cguntur/custom-acf-blocks
/functions.php
UTF-8
1,004
2.515625
3
[]
no_license
//Custom blocks using ACF add_action('acf/init', 'my_acf_init'); function my_acf_init() { // check function exists if( function_exists('acf_register_block') ) { acf_register_block(array( 'name' => 'featured-business', 'title' => __('Featured Business'), 'description' => __('A block that dis...
true
18707f23969928c4f96894f44c149463d4a141ed
PHP
1293464778/wsq
/Application/Api/Controller/LoginController.class.php
UTF-8
1,551
2.546875
3
[]
no_license
<?php namespace Api\Controller; use Think\Controller; use Common\Util\ArrayUtil; /** * 用户登录退出 */ class LoginController extends BaseController { /** * 登录 */ public function login() { // 登录主名称:手机号 $name = I ( 'userName', '' ,'trim'); // 未加密的密码 $pass = I ( 'password', ...
true
5ffd66f723e892d122ceecce20dc6e8ef8d8e5be
PHP
catiameskita/MovieStoreMySQL
/Classes/Sql.php
UTF-8
1,654
3.328125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: mesqu * Date: 17/10/2017 * Time: 15:39 */ class Sql extends PDO { //PDO instance representing a connection to a database public function __construct() { parent::__construct("mysql:host=localhost; dbname=moviesstore", "root", ""); } private fu...
true
281469705d38d20d107a80567bb3f27e595af56b
PHP
marksyzm/teoti
/web/public/includes/fb-session.php
UTF-8
880
2.84375
3
[]
no_license
<?php // Create our Application instance. $facebook = new Facebook(array( 'appId' => FACEBOOKAPPID, 'secret' => FACEBOOKAPPSECRET, 'cookie' => true, )); // We may or may not have this data based on a $_GET or $_COOKIE based session. // If we get a session here, it means we found a correctly signed sess...
true
80c24f5b3dfb153dfa54a3b3dbde29044be6747d
PHP
TheGrums/scribvs
/models/commentManager.php
UTF-8
3,478
2.859375
3
[]
no_license
<?php class CommentManager{ private $_bdd; public function __construct(){ $this->setDatabase(getBdd()); } ////////////////////// // // // Adder // // // ////////////////////// public function Add(Comment $cmt){ $ist_req = $this->_bdd->prepare("INSERT INTO `comm...
true
5210a936f7f0ab11a45b18e5e6bc0408be91a379
PHP
ekyna/Dpd
/tests/Definition/NumericTest.php
UTF-8
1,250
2.546875
3
[ "MIT" ]
permissive
<?php namespace Ekyna\Component\Dpd\Tests\Definition; use Ekyna\Component\Dpd\Definition\Numeric; use Ekyna\Component\Dpd\Tests\TestCase; /** * Class NumericTest * @author Etienne Dauvergne <contact@ekyna.com> * @package Ekyna\Component\Dpd */ class NumericTest extends TestCase { public function test_valida...
true
71b1f04b16d0ff7e3721028a2eeb9ae2b8c2dc3b
PHP
zeki-chen/storehouse
/phpstorehouse/Application/Common/Model/DictionaryModel.class.php
UTF-8
511
2.640625
3
[]
no_license
<?php /** * User: Administrator */ namespace Common\Model; use Think\Model; class DictionaryModel extends Model { protected $tableName = 'dictionary'; public $model=''; public function __construct(){ $this->model=M('dictionary'); } public function getByIndexCode($indexCode){ $list=$this->model->wher...
true
5043c971a1d90ce24e35881ad3f0deed7509c5dd
PHP
JySa65/project-kardex
/app/controllers/index/ChangePasswordController.php
UTF-8
2,005
2.59375
3
[]
no_license
<?php /** * */ if (!is_authenticated()) { return redirect('login'); } use app\models\AccountModel; use framework\view\View; class ChangePasswordController extends View { function __construct() { parent::__construct(); $this->error = array(); } function index() { if($_SERVER['REQUEST_METHOD'] === "GET...
true
f653fe966e4cff83928eba76034a482e99a2b38b
PHP
linkuha/parsers-benchmarks
/cli/wrappers/string.php
UTF-8
5,245
2.625
3
[ "MIT" ]
permissive
#!/usr/bin/env php <?php require_once '__consts.php'; cli_set_process_title('PHP parser - ' . basename(__FILE__)); ini_set('memory_limit', MAX_MEMORY_LIMIT); //require_once dirname(dirname(__DIR__)) . "/vendor/autoload.php"; require_once dirname(dirname(__DIR__)) . "/autoload.php"; $file = $argv[1]; $type = $argv[2...
true
0e980cac9d6efb36fd6e991a4fb9e5a22be722c4
PHP
mk2-php/libraries
/src/Updater.php
UTF-8
1,945
2.625
3
[ "MIT" ]
permissive
<?php /** * =================================================== * * PHP Framework "Mk2" * * Updater * * Object class for initial operation. * * URL : https://www.mk2-php.com/ * * Copylight : Nakajima-Satoru 2021. * : Sakaguchiya Co. Ltd. (https://www.teastalk.jp/) * * ====================...
true
16a89537234c4fc120f759def78c8a44e021caac
PHP
Elfourathmz/ESEFA-Cours
/Informatique/S4/Technologies du web/TP/TP5/exo3/exo3/read_file.php
UTF-8
424
3.21875
3
[]
no_license
<?php $file = fopen('info.txt', 'r'); $data = explode("\n", fread($file, filesize('info.txt'))); for ($i=0; $i < sizeof($data)-1; $i++) { $infos = explode("|", $data[$i]); print "Prénom : ".$infos[0]."<br>"; print "Nom : ".$infos[1]."<br>"; print "Adresse : ".$infos[2]."<br>"; print "CP : "...
true
bf59b65d386c491c8670a90136bcab90e5a05935
PHP
iamwizzdom/que
/system/que/error/log/LoggerTransport.php
UTF-8
3,452
2.96875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: wisdom Emenike * Date: 09/02/2022 * Time: 8:49 PM */ namespace que\error\log; use Closure; abstract class LoggerTransport { private string $message; private string $file; private int $line; private array $trace; private string $level; private stri...
true
a7287388c937651523d76471ace6c3d47069efec
PHP
netconstructor/AdWordsApiPhp53
/src/AdWords/cm/v201109/SelectorErrorReason.php
UTF-8
2,973
2.609375
3
[]
no_license
<?php namespace AdWords\cm\v201109; class SelectorErrorReason { /** * The field name is not valid. */ const CHOICE_INVALID_FIELD_NAME = 'INVALID_FIELD_NAME'; /** * The list of fields is null or empty. */ const CHOICE_MISSING_FIELDS = 'MISSING_FIELDS'; /** * The list of p...
true
39cd4375ba83015eeb0ec64d681464fb6bffb219
PHP
ArnoldSzep/navicon
/build/php/register.php
UTF-8
836
2.734375
3
[]
no_license
<?php session_start(); $form_data['name'] = $_POST['reg_name']; $form_data['phone'] = $_POST['reg_phone']; $form_data['email'] = $_POST['reg_email']; $form_data['password'] = $_POST['reg_pass1']; $error = false; // Checks foreach ($form_data as $key => $value) { if ($value == '') { $error = true; ...
true
eb99210ef510eec88755dccf71a1ac2c0eedf068
PHP
mikoim/p2-php
/lib/P2DataStore/AbstractDataStore.php
SHIFT_JIS
3,372
2.765625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /** * rep2expack - P2KeyValueStorebv * [eBeBNX̂߂̊ꒊۃNX * * P2KeyValueStorerep2ɈˑP̂Ŏg邪A * P2DataStorerep2Ŏg߂ɐ݌vĂB */ // {{{ AbstractDataStore abstract class AbstractDataStore { // {{{ properties /** * P2KeyValueStoreIuWFNgێAzz * * @var array */ static private $_kvs = array()...
true
afc480f480c9bd4a38aabe6f274191afe449c777
PHP
feadbox/combox
/app/Http/Requests/StoreAccountRequest.php
UTF-8
955
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use App\Eloquent\Enums\AccountTypeEnum; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Rule; class StoreAccountRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public...
true
57135aa962fb552f7047ca14cd3ab55f005df877
PHP
hyokosdeveloper/CodaPluginKit
/Coda2-Live-Plugins/Foundation for Sites.codaplugin/Contents/Resources/A82417EE-F8E4-402F-B617-376E5505D006/pagination.php
UTF-8
826
3.0625
3
[]
no_license
#!/usr/bin/php <?php $fp = fopen('php://stdin', 'r'); $i = 1; while ( $line = fgets($fp, 4096) ) { $line = trim($line); if (strlen($line) > 0 ) { $number = $line; } } fclose($fp); if (is_numeric($number * 1)) { for ( $i=1; $i<=$number; $i++ ) { $output .= '<li><a href="#">'.$i.'</a></li>'."\n"; } } if ( $...
true
4c11368fe79f766af3d378913c911cdb29020e90
PHP
xcx12/ShangC
/savechangeuserpwd.php
UTF-8
1,162
2.546875
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> </head> <body> <?php session_start(); $p1=md5(trim($_PO...
true
0d80a9d69296ed735668da1ae791a54cb93f3719
PHP
Smals-Webtech/elasticms-webtech
/src/Import/Chamber/XML/SearchActor.php
UTF-8
3,815
2.75
3
[]
no_license
<?php namespace App\Import\Chamber\XML; use App\Import\Chamber\Import; class SearchActor { /** @var Import */ private $import; private $emsLinks = []; private $types = []; public $cache = []; public function __construct(Import $import) { $this->import = $import; } public...
true
ef7e557ccc74ca718a2108d44b8de703600a039f
PHP
aldikun17/laravel_dafac
/app/Model/family_head.php
UTF-8
666
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; use App\Model\emergency as emergency; use App\Model\family_affiliated as family_affiliated; class family_head extends Model { protected $table = 'family_head'; protected $hidden = [ 'id' ]; protected $fillable = [ 'head_id', 'last_n...
true
d7392a43ba4e9004cdf29730db89ce744b103376
PHP
TrangJun/BTLWeb-1
/app/User.php
UTF-8
566
2.515625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { protected $table = 'users'; public $timestamps = true; use Notifiable; protected $fillable = [ 'username', 'password', 'name', 'gender', ...
true
41936f286b36d80432c9e81ba9cafd879213c946
PHP
atiladelcanton/teste-origo
/api/app/Origo/Contracts/Service/BuildInsertInterface.php
UTF-8
380
2.953125
3
[ "MIT" ]
permissive
<?php namespace App\Origo\Contracts\Service; use Illuminate\Database\Eloquent\Model; /** * Interface BuildInsertInterface * @package App\Origo\Contracts\Service */ interface BuildInsertInterface { /** * @param array $data * @return Model */ ...
true
14e61ca466843a2d07767cd83985113c84b78b0c
PHP
emiliancole/gbxml-php-xmlwriter
/gbxml-php-v01/RectangularGeometry.trait.php
UTF-8
1,174
2.9375
3
[]
no_license
<?php /** // gbxml-php-xmlwriter // RectangularGeometry class extends the PolyLoop class for gbXml Green Building XML. // startTagName open the gbXml tag element and set its attibutes. // endTagName close the gbXml tag element. // writeTagName open the tag element, set its attributes, set content, and close it. */ //i...
true
174f6e21f47c230563123ae4cf83569fb092515f
PHP
jose-few/tiptongarage
/setup/databaseSETUP.php
UTF-8
1,698
2.734375
3
[]
no_license
<?php include '../db_info.php'; $con = mysqli_connect($DATABASE_HOST, $DATABASE_USER, $DATABASE_PASS, $DATABASE_NAME); if ( mysqli_connect_errno() ) { exit('Failed to connect to MySQL: ' . mysqli_connect_error()); } $sql = "CREATE TABLE admin ( id INT(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY, username VARCHAR(20)...
true
db590e94c41878bc899d753b1bdcf36eb48c71b2
PHP
Oktopost/Serialization
/src/Serialization/Exceptions/InvalidJsonException.php
UTF-8
276
2.78125
3
[]
no_license
<?php namespace Serialization\Exceptions; class InvalidJsonException extends \Exception { public function __construct($json) { parent::__construct( 'Could not decode json: "' . json_last_error_msg() . '", from string: ' . $json, json_last_error(), null); } }
true
62bfa492611e4cebf410630d429c4551e90fb13b
PHP
jasonlewicki/perfect-build
/Effects/VoidStaff.php
UTF-8
348
2.5625
3
[]
no_license
<?php namespace PerfectBuild\Effects; class VoidStaff extends \PerfectBuild\Effects\Effect{ // Constructor public function __construct($option_arr) { parent::__construct("Void Staff"); $this->duration = false; $this->basic_effects_arr['magic_resistance_penetration_percent'] = 0.35; $thi...
true
e0ac7025a408b76c9ecdc8a3296c7cfeb715e206
PHP
shayrm/PHP_backup_course
/PhpCourse/PhPCourseSession_08/1-rectangleClass.php
UTF-8
680
4.1875
4
[]
no_license
<?php /* Declare the Rectangle class. * This class should include the width & height properties. * In addition, this class should include a constructor that allows instantiating it sending two arguments * (the width and the height). * Your script should include a simple test for this class. */ class rectangle...
true
97443977c21a76a8ce9440b1621fbfdd2138021d
PHP
AlanTann/laravel_social_login
/app/Http/Controllers/Auth/ResetPasswordController.php
UTF-8
2,687
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Auth; use DB; use Auth; use App\User; use App\Http\Controllers\Controller; use App\Services\AuthenticationService; use Illuminate\Foundation\Auth\ResetsPasswords; use Illuminate\Http\Request; use Illuminate\Http\Response; class ResetPasswordController extends Controller { /* ...
true
427b3468375130f5881c3f19dd5d89d1d0207007
PHP
itrex-group/lara-quiz
/src/LaraQuiz/Models/SessionAnswerValue.php
UTF-8
1,230
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace LaraQuiz\Models; use Illuminate\Config\Repository; use Illuminate\Container\Container; use Illuminate\Database\Eloquent\Relations\BelongsTo; /** * @property int $id * @property int $survey_session_answer_id * @property string value * * @property-read SurveySessionAnswer ...
true
e11b3317226724fc48df010f666027fce26582f6
PHP
badgerlooplogistics/badgerloop_logistics_webApp
/login.php
UTF-8
2,869
2.578125
3
[]
no_license
<?php session_start(); require_once("includes/database.php"); // if (isset($_GET['action'])) { if ($_GET['action'] == "logout") { unset($_SESSION['login']); } } // if form is submitted if ($_SERVER['REQUEST_METHOD'] == "POST") { $email = mysqli_real_escape...
true
6bc1ef370a94fc23fcd65045cda8fc619cb6675f
PHP
Herondil/GameWeek2017Page
/www/games/Humanity_s_Evasion/text3.php
UTF-8
187
2.71875
3
[ "WTFPL" ]
permissive
<?php $fichier3 = fopen('text3.txt', 'r+'); $ligne3 = fgets($fichier3); $ligne3+=1; fseek($fichier3, 0); fputs($fichier3, $ligne3); fclose($fichier3); echo $ligne3; ?>
true
eea8788c748bfb0072b1b78bf4eba63274ef3593
PHP
chrisgherbert/gravatar-search
/app/DotComSite.php
UTF-8
1,427
2.5625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Support\Facades\DB; class DotComSite extends Site { protected $api_response_page_class = 'App\DotComApiResponsePage'; protected $url_class = 'App\DotComUrl'; protected function save_comments_data_page($data){ // No data? Not sure why this would ever happen, but it seems to...
true
7844051541000f093c668554b4120b1ce603f02b
PHP
nachoiar/Trabajo-Practico-WEB2
/Controller/IngresoController.php
UTF-8
1,062
2.609375
3
[]
no_license
<?php require_once "./Model/IngresoModel.php"; require_once "./View/IngresoView.php"; class IngresoController { private $model; private $view; function __construct(){ $this->model = new IngresoModel(); $this->view = new IngresoView(); } function logout(){ session_start()...
true
75d73f8d38d2d6a44bd1a8f53b8e9d129b6def51
PHP
squirrelphp/entities
/src/Builder/CountEntries.php
UTF-8
1,121
2.96875
3
[ "MIT" ]
permissive
<?php namespace Squirrel\Entities\Builder; use Squirrel\Entities\RepositoryReadOnlyInterface; use Squirrel\Queries\Builder\BuilderInterface; /** * Count query builder as a fluent object - build query and return number */ class CountEntries implements BuilderInterface { /** * @var array<int|string,mixed> W...
true
d01ea5f14aa3485b6ef32d7380049d1280203783
PHP
AnasMostefaoui/psalm
/tests/PureAnnotationTest.php
UTF-8
3,536
2.59375
3
[ "MIT" ]
permissive
<?php namespace Psalm\Tests; use const DIRECTORY_SEPARATOR; class PureAnnotationTest extends TestCase { use Traits\InvalidCodeAnalysisTestTrait; use Traits\ValidCodeAnalysisTestTrait; /** * @return iterable<string,array{string,assertions?:array<string,string>,error_levels?:string[]}> */ pub...
true
3e8588ee7e5e916bc2fc51ba159cf3fa19009973
PHP
evandro-morini/PHPUnit-Refactor-Test
/src/OrderFileHandler.php
UTF-8
1,695
2.625
3
[]
no_license
<?php namespace Orders; class OrderFileHandler implements FileHandlerInterface { public static function write($result, $order) { if(!empty($result) && !empty($order->getOrderId())) { if ($order->isValid()) { $lines = explode("\n", $result); $lineWithoutDebu...
true
9dde2f3b135fe598e315c72d30d9cb02255ea3c4
PHP
nelbe/DWES
/EjerciciosPHP/Capitulo4/ejercicio10.php
UTF-8
1,995
3.546875
4
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <h5>Escribe un programa que calcule la media de un conjunto de números positivos introducidos por teclado. A priori, el programa no sabe cuántos números se introducirán. El usuario indicará que ha terminado de introducir los datos ...
true
30fa25054aa719f02fcce89cfbe22513532f70f5
PHP
severinmueller/edugate
/application/controllers/Courses.php
UTF-8
4,734
2.609375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Courses extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('course_model'); $this->load->helper('url_helper'); $this->load->helper('form'); $this->load->library('form_validation'); $this->load->helper('t...
true
73562d81695bdd53d43ecd58c413ea11a938cfcd
PHP
rrnainggolan/exclaim
/database/seeds/ExpenseTypeSeeder.php
UTF-8
894
2.71875
3
[]
no_license
<?php use Illuminate\Database\Seeder; use Carbon\Carbon; class ExpenseTypeSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $expenseTypes = [ [ 'name' => 'Transportation', 'description' ...
true
ea402b24119902fc9ab491648c6ca811eb959e20
PHP
ViennaC/amateur-chefs
/register.php
UTF-8
2,938
2.765625
3
[]
no_license
<?php session_start(); if(!isset($_SESSION['loggedIn'])){ $_SESSION['loggedIn'] = false; } function checkUsername($name) { $file = fopen("passwd.txt", "r"); while (!feof($file)){ //read lines and create the array $line = fgets($file); $parts = explode(':', $line); if(trim($parts[0])==trim($nam...
true
be2c5c399da1798c48ee602830d9eeca7a1b75bb
PHP
efrenrz/programa
/database/migrations/2015_08_27_002218_create_oferta_table.php
UTF-8
716
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateOfertaTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('oferta',function(Blueprint $table){ $table-...
true
49feeb52bef6f69c8a0b83129970ba582f7fae41
PHP
dlin-me/very_old_projects
/unimarket/classes/Env.class.php
UTF-8
974
2.90625
3
[]
no_license
<?php /** * * @version $Id$ * @copyright 2007 */ class Env{ //Site info public static function sites(){ return array("VIC"=>"VIC", "NT"=>"NT", "QLD"=>"QLD", "NSW"=>"NSW", "SA"=>"SA", "TAS"=>"TAS", "WA"=>"WA"); } public static function getSite(){ $sites = self::...
true
1d086448b2e02c5c07952371515be65184be6322
PHP
danielCavalcanti553/lojavirtual-programador-web
/www/DAO/DAOCarrinho.php
UTF-8
451
2.8125
3
[]
no_license
<?php namespace LOJA\DAO; use LOJA\Model\Item; use LOJA\Model\Carrinho; use LOJA\Model\Produto; class DAOCarrinho{ public function addItem(Item $item){ array_push($this->lista,$item); } public function removeItem($id){ $item; foreach($this->lista as $item){ if($item->getProduto()->getId()===$id){ ...
true
cbbcff90802c38d72c5dd74ea571296ab98e263c
PHP
aquaruiz/PHP-Web-Development-Basics
/Defining Classes - Exercise/Encapsulation/PizzaCalories/index.php
UTF-8
1,197
3.28125
3
[]
no_license
<?php spl_autoload_register(); $input = readline(); list($_, $pizzaName, $numberToppings) = explode(" ", $input); if ($numberToppings < 1 || $numberToppings > 10) { echo ("Number of toppings should be in range [0..10]."); die(); } if (empty($pizzaName) || strlen($pizzaName) > 15) { echo ("Pizza name should...
true
e16c8ff172c173f992145149fe57a2248d7aa535
PHP
williamalnama/jdevsuite
/components/com_jdeveloper/admin/models/migration.php
UTF-8
4,861
2.578125
3
[]
no_license
<?php class ModelMigration extends JModel { /** * configu */ private $config = null; /** * */ private $path = null; public function __construct($config) { parent::__construct(array()); $this->config = $config; $this->path = $this->config->getProjectPath('migrations'); } /** * * @retu...
true
b52f59f0f5479137e4531310a43f7913b97ad230
PHP
Ecodev/my-ichtus
/server/Application/Service/Invoicer.php
UTF-8
6,263
2.625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Application\Service; use Application\DBAL\Types\BookingStatusType; use Application\DBAL\Types\BookingTypeType; use Application\Model\Account; use Application\Model\Bookable; use Application\Model\Booking; use Application\Model\Transaction; use Application\Model\TransactionLin...
true
7560ea1c57621b8c8db2ac54dad84ee8528a4e10
PHP
Poil/docmgr
/docmgr/apilib/lib/config/keyword.php
UTF-8
5,664
2.828125
3
[]
no_license
<?php /** admin class for managing keywords and their options */ class CONFIG_KEYWORD extends CONFIG { private $keywordId; public function ___construct() { //only admins can be here if (!PERM::check(ADMIN)) { $this->throwError(_I18N_PERMISSION_DENIED); return false; } if ($this->apidata["keyw...
true
d5787deb39bfb2cec35e6b9929a5fe11dfd0fe7a
PHP
jurgb/php_project
/ajax/getReservations.php
UTF-8
1,024
2.640625
3
[]
no_license
<?php //Process ajax call include_once('../class/reservaties.class.php'); include_once('../class/tafelindeling.class.php'); $tafel = new Tafelindeling(); $res = new Reservatie(); session_start(); $feedback['error'] = array(); if ($tafel->Check($_POST['tafel']) == "exists") { //controleer of er een update wordt v...
true
b7ce8179dce13947bd4a6706d9060c8a8e4b0d4b
PHP
amirzac/design_patterns
/src/Structural/Adapter/Interfaces/Notification.php
UTF-8
163
2.625
3
[]
no_license
<?php declare(strict_types=1); namespace app\Structural\Adapter\Interfaces; interface Notification { public function send(string $title, string $message); }
true
c77a83bf34ee08e1c66c3d13e7766cfff2d3a831
PHP
MiguelJimenez/DWES
/TEMA3/Ejemplos_Tema 3_DWES/Matrices/Ejemplo_ordenarMatriz.php
UTF-8
154
2.9375
3
[]
no_license
<?php $colores=array("b"=>"green", "r"=>"blue", "d"=>"red"); ksort($colores); foreach ($colores as $clave=>$valor){ echo ("$clave=>$valor"); } ?>
true
1a49190c0d9ba150b489f3a2755bbbac43c80dd4
PHP
sky8652/laravel-cms
/app/Helpers/CommonHelper.php
UTF-8
1,943
2.75
3
[]
no_license
<?php /** * 获取所有路由信息 */ if(!function_exists('getRouteInfo')){ function getRouteInfo($string) { $inFo = request()->route()->getAction(); return $inFo[$string]; // } } /** * 获取控制器和方法 */ if(!function_exists('getAction')){ function getActionAndMethod() { $actions = getRouteInfo('controller'); list($clas...
true
2bd85f6de2f16403d55b59478de36ff2ab80e8e2
PHP
EmmanuelleGay/NestiECommerce
/app/Entities/IsTagged.php
UTF-8
624
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Entities; use App\Models\RecipeModel; use App\Models\TagModel; class IsTagged extends BaseEntity { /** * getRecipes * * @param mixed $idRecipe * @return array */ public function getRecipes($idRecipe) : array { $recipeModel = new RecipeMode...
true
aabda6aa204f323bef797b155056bd76db5ad77a
PHP
wellnight/leetcode
/dichotomy/167.php
UTF-8
2,870
3.796875
4
[]
no_license
<?php /** * 167. 两数之和 II - 输入有序数组 * 给定一个已按照升序排列的整数数组numbers,请你从数组中找出两个数满足相加之和等于目标数target 。 * 函数应该以长度为 2 的整数数组的形式返回这两个数的下标值。 * numbers 的下标 从 1 开始计数 ,所以答案数组应当满足 1 <= answer[0] < answer[1] <= numbers.length 。 * 你可以假设每个输入只对应唯一的答案,而且你不可以重复使用相同的元素。 * * Example: * 1、输入:numbers = [2,7,11,15], target = 9 输出:[1,2] 解释:...
true
fdc1603bb13b2be4a1c141815b0dbca9293985dd
PHP
DanJ210/PHP
/New1.php
UTF-8
378
2.53125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Testing This</title> </head> <body> <?php $Fname = $_POST['FName']; /* $LName = $_POST['LName']; $gender = $_POST['gender']; $sports = $_POST['sports']; $education = $_POST['education']; echo "Hello, ".$FName." "; ...
true
67f4540ea9d27a65ded43420281acd1aad301966
PHP
dthe223/Shedule-Website
/phpscripts/members.php
UTF-8
2,360
2.875
3
[]
no_license
<?php define('DB_SERVER', 'localhost'); define('DB_USER', 'root'); define('DB_PASS', 'pass123'); define('DB_NAME', 'members'); class membership{ function signup($uname, $pword, $vpword){ if ($pword != $vpword){ return "Passwords do not match."; } $connection = new mysqli(DB_SERVER, DB_USER, DB_P...
true
77f0728ea1ca1d350789b31f262438bcc9a7c38e
PHP
TeaPress/TeaPress
/module/TeaBlog/test/TeaBlogTest/Model/PostTest.php
UTF-8
8,136
2.875
3
[]
no_license
<?php namespace TeaBlogTest\Model; use TeaBlog\Model\Post; use PHPUnit_Framework_TestCase; class PostTest extends PHPUnit_Framework_TestCase { protected $post_id; protected $title; protected $short_description; protected $description; protected $thumb; protected $url_key; ...
true
e12869075e1cf4362cbbff7538a7572281791976
PHP
mboljar/array-expression-engine
/test.php
UTF-8
307
2.84375
3
[]
no_license
<?php require __DIR__ . '/vendor/autoload.php'; $expression = ['concat', ['get', 'first'], ['value', ' '], ['get', 'last']]; $evaluator = \ArekX\ArrayExpression\Evaluator::create(); $result = $evaluator->run($expression, ['first' => 'John', 'last' => 'Snow']); // returns 'John Snow' echo $result;
true
bcf6e41ad888653f172d598e3c983752947e17ca
PHP
RealGero/AgriHigala
/app/SRP.php
UTF-8
745
2.515625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; class SRP extends Model { protected $table ="srp"; protected $primaryKey = "srp_id"; protected $guarded = []; public function product() { return $this->belongsTo('App\Product','product_id','pr...
true
526be58b0c4e332f609bb2a4d01664ebba6301df
PHP
ahmeali/talk
/app/Event_Speeches.php
UTF-8
634
2.515625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Event_Speeches extends Model { protected $table = "event-speeches"; protected $fillable = ["title","event_id","desc","youtube_url"]; /** * @return \Illuminate\Database\Eloquent\Relations\BelongsTo * speech belong to one event ...
true
a60c19f020635918cfdd50cda7fc3ff97699a490
PHP
jryanconklin/epicodus-php-car
/Car.php
UTF-8
2,905
3.3125
3
[]
no_license
<?php class Car { private $make_model; private $price; private $miles; private $picture; //Class Constructor function __construct($car_make, $car_price, $car_miles, $car_picture = "/img/car.jpg" ) { $this->make_model = $car_make; $this->price = $car_price; $this->miles ...
true
720f3589a6e0802d148f9b7c248e28bd64772d1a
PHP
ofeliperodrigues/simple-router
/core/Request.php
UTF-8
1,175
2.96875
3
[]
no_license
<?php namespace Core; class Request { public array $header; public string $method; public string $uri; public array $params; public array $body; public function __construct() { $this->header = getallheaders(); $this->method = $_SERVER['REQUEST_METHOD']; $this->ur...
true
872512ecc3f0212dac57930dbea44e7f7d8a497d
PHP
tigunov-it/php1
/lesson3/q5/index.php
UTF-8
135
2.703125
3
[]
no_license
<?php function underscore($text) { return str_replace(' ', '_', $text); } echo underscore("Век живи - век учись");
true
92aa571f198eb381049ca4ffa90063f8b5a91af1
PHP
ronv/news
/custom/views/about/index.tpl.php
UTF-8
2,020
2.703125
3
[ "BSD-3-Clause" ]
permissive
<?php $count = 0; $today = Array(); $week = Array(); $month = Array(); $older = Array(); $now = time(); foreach ($items as $item) { $age = ($now - $item->get_date('U')) / (60*60*24); if ($age < 1) { $today[] = $item; } elseif ($age < 7) { $week[] = $item; } elseif ($...
true
5747925ad11007bc506ac811859e281f8b1fcdb7
PHP
xXRyzen/DragonCore-no-Update-
/src/hola/shop/ShopUpdate.php
UTF-8
2,267
2.515625
3
[]
no_license
<?php namespace hola\shop; use pocketmine\{Server,Player}; use pocketmine\level\Level; use pocketmine\scheduler\Task; use pocketmine\utils\Config; use pocketmine\math\Vector3; use hola\Main; use hola\shop\{ShopEntity,ShopEntity1,ShopEntity2,ShopEntity3}; class ShopUpdate extends Task { public function __c...
true
5e232a2d90ae11f8ebabe4798453d434ed9109df
PHP
mirko911/gsm-serverinfo
/plugins/serverinfo/serverinfo.php
ISO-8859-1
6,408
2.625
3
[]
no_license
<?php /** * GSManager * * This is a mighty and platform independent software for administrating game servers of various kinds. * If you need help with installing or using this software, please visit our website at: www.gsmanager.de * If you have licensing enquiries e.g. related to commercial use, please contact u...
true
323fbf7f24e7c20ff02950154226e646a6cf9f63
PHP
informaciontecnologica/alqui
/ajax_php_file.php
UTF-8
4,547
2.8125
3
[]
no_license
<?php function VerificarFile(){ $validextensions = array("jpeg", "jpg", "png"); $temporary = explode(".", $_FILES["file"]["name"]); $file_extension = end($temporary); if ((($_FILES["file"]["type"] == "image/png") || ($_FILES["file"]["type"] == "image/jpg") || ($_FILES["file"]["type"] == "image/jpeg") ) && ($_FILES[...
true
d1261040ec18afb897196783be95861c192b990c
PHP
DanielaB17/ADSI2142329b
/PORTAFOLIO/CRUD/vista/index.php
UTF-8
2,012
2.875
3
[]
no_license
<?php include '../modelo/conexion.php'; $sentencia = $bd->query("SELECT * FROM usuarios;"); $usuarios = $sentencia->fetchAll(PDO::FETCH_OBJ); /*fetchAll guardar en formato de objeto FETCH_OBJ sea de tipo objeto*/ // print_r($contacto); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset...
true
6c6f7ff72833b7ee0bd3db444dee07c765f732ea
PHP
cafett/copyanni
/src/copyanni/model/job/Healer.php
UTF-8
2,900
2.671875
3
[ "MIT" ]
permissive
<?php namespace copyanni\model\job; use copyanni\TypeList; use copyanni\item\Bloodbag; use game_chef\api\GameChef; use pocketmine\entity\Effect; use pocketmine\entity\EffectInstance; use pocketmine\item\Item; use pocketmine\item\ItemIds; use pocketmine\math\Vector3; use pocketmine\Player; class Healer extends Job ...
true
bf5fbc23e1cc09f11533d1c3d1dbee29e67ae3d3
PHP
zunme/kfund
/pnpinvest/plugin/filemanager/class/FM_Explorer.php
UTF-8
9,200
2.953125
3
[]
no_license
<?php /** * This code is part of the FileManager software (www.gerd-tentler.de/tools/filemanager), copyright by * Gerd Tentler. Obtain permission before selling this code or hosting it on a commercial website or * redistributing it over the Internet or in any other medium. In all cases copyright must remain intact....
true
d4006fbc3cf25d238bfe2423063698edd20ecd4c
PHP
iddekingej/xmlview
/src/Engine/XMLClassParser.php
UTF-8
8,666
2.828125
3
[]
no_license
<?php declare(strict_types=1); namespace XMLView\Engine; use XMLView\Engine\Parser\ObjectNode; use XMLView\Base\HashMap; use XMLView\Engine\Alias\AliasManager; use XMLView\Engine\Parser\ParseData; use XMLView\Base\Base; /** * XML files uses a kind of 'bean' technology. Each node is converted to a object. * nested n...
true
9e26620d43ac3cd9dfc94d70f701efcecbc70056
PHP
lateamexpress/medpharmacom-vitrine
/app/Http/Controllers/HomeController.php
UTF-8
4,796
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class HomeController extends Controller { // testing affichage public function returnView() { return view('vitrine/home'); } // Rss testing public function index() { $rss = $this->lit_rss("http://www.lequotidien...
true
3dbd8055fdfb489fb0d7a3b0637217c4aa08e858
PHP
OptimusCrime/youkok2
/youkok2/src/Biz/Services/Mappers/Admin/AdminElementMapper.php
UTF-8
1,549
2.5625
3
[ "MIT" ]
permissive
<?php namespace Youkok\Biz\Services\Mappers\Admin; use Youkok\Biz\Exceptions\ElementNotFoundException; use Youkok\Biz\Exceptions\GenericYoukokException; use Youkok\Biz\Services\Mappers\ElementMapper; use Youkok\Biz\Services\UrlService; use Youkok\Common\Models\Element; class AdminElementMapper { private ElementMa...
true
9681a3280adea3d8bb05cc717e34cdf239976df1
PHP
evgeniy2194/twilio_test
/src/AppBundle/Command/BulkSendSms.php
UTF-8
5,685
2.828125
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace AppBundle\Command; use AppBundle\Entity\SmsProcessor; use AppBundle\Service\TwilioService; use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\EntityRepository; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\I...
true
7ee6ad439c1876883a6a0f87d08403b3208245f2
PHP
StvnMThomas/ToDo-Application
/InsertClass.inc
UTF-8
365
2.53125
3
[]
no_license
<?php class Insert { private $connection; function __construct($connection){ $this->mysqli = $connection; } function Query($newItem){ $sqlQuery = "INSERT INTO tbl_todo_list(TaskName) VALUES(?)"; $sqlStatement = $this->mysqli->prepare($sqlQuery); $sqlStatement->bind_param("s", $newItem); ...
true
6a52e26d55928194934d0d4065e3f0d059cb0d30
PHP
noresources/ns-php-sql
/src/Syntax/SmartCompare.php
UTF-8
2,211
2.890625
3
[ "MIT" ]
permissive
<?php /** * Copyright © 2020 - 2022 by Renaud Guillard (dev@nore.fr) * Distributed under the terms of the MIT License, see LICENSE * * @package SQL */ namespace NoreSources\SQL\Syntax; use NoreSources\Container\Container; use NoreSources\Expression\ExpressionInterface; use NoreSources\Expression\Set; use NoreSour...
true