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
e7116af5825f939157bc602a8c497f10c45c0724
PHP
macckenzie/paxb
/tests/Resources/Beans/Address.php
UTF-8
920
2.671875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Jeidison\PAXB\Tests\Resources\Beans; use Jeidison\PAXB\Attributes\XmlElement; use Jeidison\PAXB\Attributes\XmlTransient; use Jeidison\PAXB\Attributes\XmlType; #[XmlType(propOrder: ["number", "street", "id"])] class Address { #[XmlTransient] private string $id; #[XmlElement("street")] ...
true
d6920d9141a639bc3a2b4ce8c8a946af894a8e1c
PHP
medaqueno/boilerwork-kernel
/src/Boilerwork/Jobs/JobScheduler.php
UTF-8
3,130
2.609375
3
[]
no_license
#!/usr/bin/env php <?php declare(strict_types=1); namespace Boilerwork\Jobs; use Boilerwork\Container\IsolatedContainer; use Boilerwork\Persistence\Adapters\Redis\RedisClient; use Boilerwork\Server\IsProcessInterface; use DateTime; use GO\Job; use GO\Scheduler; use OpenSwoole\Process; /** * We are using GO\Schedu...
true
e09445e0df18878bea85d8035000f69f0dd4b5de
PHP
tecbay/my-tiny-mvc-project
/app/controllers/OrderController.php
UTF-8
2,591
2.640625
3
[]
no_license
<?php use Rakit\Validation\Validator; class OrderController { /** * @throws ErrorException */ public function home() { $orders = new Order(); $orders = $orders->all(); view( 'pages.home', compact( 'orders' ) ); } /** * @throws ErrorException */ public function contact() { view( 'pages.contact...
true
78a247ef869ea77f698d668702411bec118062c0
PHP
kamisiuu/Nettsteder
/lipski.no_0.1/inkl/leggtilarbeidssted.php
UTF-8
1,752
2.734375
3
[]
no_license
<?php session_start(); if(!isset($_SESSION['loggedin'])){ //if login in session is not set header("Location: loginn.php"); } ?> <?php $servernavn = "localhost"; $brukernavn = "root"; $passord = "LuPa4(!195"; $dbnavn = "arbeidstimer"; $bruker_id = $_SESSION["bruker_id"]; // skap tilkobling $tilkobling = new mysqli...
true
5235c3536f198e26aba2c10bd1e7d8878b5fabdd
PHP
lekurs/cms_gindre
/src/UI/Action/Emailing/SendEmailAction.php
UTF-8
1,693
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: bidule * Date: 2019-03-11 * Time: 12:57 */ namespace App\UI\Action\Emailing; use App\Domain\Form\SendEmailFormCreation; use App\Domain\Handler\Interfaces\SendEmailCreationFormHandlerInterface; use App\UI\Action\Interfaces\SendEmailActionInterface; use App\UI\Responder\In...
true
9ab23e72b7774d68daee52ba3256a798cf7d7a0d
PHP
chuckrut/practicas
/ejercicios/ejercicio3.php
UTF-8
236
3.109375
3
[]
no_license
<?php //Aqui se usa print print "Comentario de linea<br>"; #Aqui se usa print() print ('Comentario tipo shell<br>'); /*Aqui echo * y luego echo() */ echo 'Comentario de '; echo ("multiples lineas");
true
1ee87a00d927463145288abd4eeb7643850a079a
PHP
Steve-VE/todolist
/php/functions.php
UTF-8
3,059
3
3
[]
no_license
<?php // Ajoute une valeur à un fichier JSON function add_to_json( $text, $url="assets/json/datalist.json"){ // Partie décodage $array_data = []; $array_data = load_json( $url ); if( $text != "" && $text != false && $text != null ){ $valid = true; foreach($array_data as &$data){ ...
true
9a44402a007f4ef80774b1e79b420224a9f50729
PHP
nojimage/lg-code-jp
/src/Decorator/Entity/DefaultEntityDecorator.php
UTF-8
992
2.6875
3
[]
no_license
<?php namespace Nojimage\LocalGovCode\Decorator\Entity; use Nojimage\LocalGovCode\City; use Nojimage\LocalGovCode\LocalGovCodeObject; use Nojimage\LocalGovCode\LocalGovCodeObjectInterface; use Nojimage\LocalGovCode\Prefecture; use Nojimage\LocalGovCode\Ward; /** * DefaultEntityDecorator */ class DefaultEntityDecor...
true
814a7e9147e36a7cc5a07d009a1f701e22cffb9b
PHP
Brightchu/sciznz
/application/libraries/SAE_Email.php
UTF-8
1,950
2.5625
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); // ------------------------------------------------------------------------ /** * CodeIgniter Email Class for SAE * * Build on the top of SAE native mail service. * TODO: support attachment * * @package CodeIgniter * @subpackage Libraries ...
true
685a1a09f9128bf3c5af092ae8827c139eca0cfb
PHP
saket2408/WhisperIt
/feed/showlike.php
UTF-8
1,714
2.609375
3
[]
no_license
<?php include "../header.php"; ?> <?php $sql= "select * from user where user_id= {$_SESSION['user_id']}"; $result= mysqli_query($con, $sql); $row = mysqli_fetch_assoc($result); ?> <div class="col-xs-3 profile"> <?php if($row['profile_pic']==null) { echo '<img class="image" src="../uploads/defaultuser.jpg" wi...
true
79295e0f5ae68660fdbcce6e8655d37c6ebbf175
PHP
Formula9/Framework
/Nine/Database/Connections.php
UTF-8
6,381
2.953125
3
[ "MIT" ]
permissive
<?php namespace Nine\Database; use Aura\Sql\ExtendedPdo; use Nine\Exceptions\DBCannotRemoveCachedConnection; use Nine\Exceptions\DBConnectionNotFound; use Nine\Exceptions\DBDuplicateConnection; use Nine\Library\Lib; use PDO; /** * @package Nine * @version 0.1.0 * @author Greg Truesdell <odd.greg@gmail.com> */ cl...
true
97ba4e1fe979f516232594f517f8b70f2e83ce14
PHP
arif-lukman/webdev
/cooperation/dataperusahaanadmin/dp_daftarrekeningbank.php
UTF-8
2,291
2.546875
3
[]
no_license
<?php include "koneksiDB.php"; include "../libraryproc.php"; session_start(); $id = $_GET["uid"]; //query buat ngambil nama field $colQuery = "SHOW columns FROM daftar_rekening_bank WHERE FIELD = 'No' or FIELD = 'Bank_Name' or FIELD = 'Branch' or FIELD = 'Acc_Name' or FIELD = 'Acc_Number' or FIELD = 'Currency'"...
true
5b007417064433ffecab197090745d84f5254c8b
PHP
SmolSoftBoi/epickris.com
/application/Libraries/Yql.php
UTF-8
739
2.890625
3
[]
no_license
<?php namespace App\Libraries; /** * Yahoo query language. * * @package App\Libraries */ class Yql { /** * @var string Base URL. */ protected static $base_url = 'http://query.yahooapis.com/v1/public/yql?env=http://datatables.org/alltables.env'; /** * Query. * * @param string ...
true
ad1c3ca4376b4448961172bae4b1ccd74b80bb63
PHP
czim/laravel-cms-models
/tests/Strategies/ListColumn/DateTest.php
UTF-8
2,150
2.78125
3
[ "MIT" ]
permissive
<?php namespace Czim\CmsModels\Test\Strategies\ListColumn; use Czim\CmsModels\Strategies\ListColumn\Date; use Czim\CmsModels\Test\Helpers\Models\TestPost; use Czim\CmsModels\Test\TestCase; use DateTime; /** * Class DateTest * * @group strategies * @group strategies-listcolumn */ class DateTest extends TestCase {...
true
6d772be6170b818e29bd89292035c2a56ce78828
PHP
sin5678/admin.rapoo.com
/app/Models/Proxy.php
UTF-8
988
2.578125
3
[]
no_license
<?php namespace App\Models; use App\Models\Base; use Illuminate\Database\Eloquent\SoftDeletes; class Proxy extends Base { /** * The database table used by the model. * * @var string */ protected $table = 'proxy'; /** * The database table used by the model. * * @var stri...
true
56ee9fc562cf7ba5789326aeedcdbc46f815b8b5
PHP
borodulin/Router
/src/Collection/RouteTreeItem.php
UTF-8
2,852
2.890625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Borodulin\Router\Collection; final class RouteTreeItem implements \Serializable { /** * @var RouteTreeItem[] */ private $children = []; /** * @var RouteTreeItem[] */ private $expressions = []; /** * @var RouteItem[] */ p...
true
f78fa5199ac92bba7ae8466c524b8efe1733f3a5
PHP
kettanaito/epsi
/meta.php
UTF-8
999
3.15625
3
[]
no_license
<?php /* Shorthand declaration */ function render_meta($metas) { $tags = []; /* Loop through each meta tag */ foreach ($metas as $meta) { /* Properties are required */ if (!empty($meta)) { $tag = ['<meta']; /* Loop through each property */ foreach ($meta as $property => $value) { array_push($tag...
true
3aed2d27084ab2a3b0ff03cc61371bd5581e3b22
PHP
PatGibson/Online-Movie-Ticket-Service
/customer_homepage.php
UTF-8
1,609
2.96875
3
[]
no_license
<?php session_start(); error_reporting(0); ?> <!DOCTYPE html> <html> <head> <h1> Hello <?php echo $_SESSION["fname"]; ?> ! </h1> </head> <body> <?php require_once('connectDatabase.php'); if($_SERVER["REQUEST_METHOD"] == "GET"){ $_SESSION["Title"] = $_GET["movieTitle"]; $_SESSION["fname"] = $_GET["fname"]; $_S...
true
91d6827c354804f48316d6930540867e5e4f6ffb
PHP
codehaiku/Thrive-Intranet
/install/table.php
UTF-8
2,474
2.71875
3
[]
no_license
<?php /** * * This file implements our install script for projects * and task table. Runs on plugin activation. * * @package ThriveIntranet * @since 1.0 */ // @reference <https://codex.wordpress.org/Creating_Tables_with_Plugins> define( 'THRIVE_TASKS_TABLE', 'thrive_tasks' ); define( 'THRIVE_COMMENTS_TABLE...
true
6a7d7cf57734c72370458bb5ea49cedb4f77aeb7
PHP
pirogok/frodo
/app/Models/Account.php
UTF-8
6,202
2.875
3
[ "MIT" ]
permissive
<?php /** * class Account extends Model * * Model for Account * */ namespace App\Models; use Illuminate\Database\Eloquent\Model; use App\Models\Twitter; use DB; class Account extends Model { /** * private $twitter * * instance twitter */ private $twitter = NULL; /** * private funct...
true
2c089bcab095e95d659777962ff9239f48b8f1ce
PHP
bobchi/god-pro
/bao/code/f1.func.php
UTF-8
98
2.828125
3
[]
no_license
<?php function showAge(){ echo 'tutu \'s is 2.5'; } function gender(){ echo 'baby girl'; }
true
95dc66ee951f2b68a9f87e09ff206bfd2ca02604
PHP
skmorshed75/verum_wp_theme
/plugins/verum-companion/widgets/verum-recent-posts-widget.php
UTF-8
4,827
2.671875
3
[]
no_license
<?php // Class 4.25 // Adds widget: Verum Latest Post class Verumlatestpost_Widget extends WP_Widget { function __construct() { parent::__construct( 'verumlatestpost_widget', esc_html__( 'Verum Latest Post', 'verum' ), array( 'description' => esc_html__( 'Latest Post', 'verum' ), ) // Args ); } priva...
true
4372a11c0eb16880692717fb8dcd53f68230f29e
PHP
vsushkov/connect-extension-magento2
/Model/Transaction/TransactionManager.php
UTF-8
2,400
2.609375
3
[ "MIT" ]
permissive
<?php namespace Ingenico\Connect\Model\Transaction; use Magento\Framework\Api\FilterBuilder; use Magento\Framework\Api\SearchCriteriaBuilder; use Magento\Sales\Api\TransactionRepositoryInterface; use Magento\Sales\Model\Order\Payment; use Magento\Sales\Model\Order\Payment\Transaction; /** * Class TransactionManager...
true
b8ec464f9158dd670dd5335613164e3af56da972
PHP
avesty/avesty
/show.php
UTF-8
1,426
2.640625
3
[]
no_license
<!DOCTYPE html> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <style type="text/css"> table.db-table { border-right:1px solid #ccc; border-bottom:1px solid #ccc; } table.db-table th { background:#eee; padding:5px; border-left:1px solid #ccc; bord...
true
819c2253a29aef73176a78b0237b642e13bb3283
PHP
a-romald/angular-crud-token-authentication
/backend/note/detail.php
UTF-8
819
2.609375
3
[]
no_license
<?php require_once '../config.php'; require_once '../sql.php'; $token = !empty($_GET['token']) ? htmlspecialchars($_GET['token']) : null; $db = Sql::app(); //User $user = $db->selectOne("SELECT id FROM user WHERE token = '$token'"); $user_id = $user['id']; $id = (int) $_GET['id']; if (!empty($id)) { $note = $db->s...
true
0a89c0e98459cd347b9510f121a6c5236b4bc36f
PHP
walissonfederal/facilita_gestor
/_boleto_pdf/php-boleto-pdf-master/src/Simonetti/Boleto/CodigoBarras.php
UTF-8
495
2.5625
3
[ "MIT" ]
permissive
<?php namespace Simonetti\Boleto; use Simonetti\Boleto\Util\Substr; use Simonetti\Boleto\Util\UnidadeMedida; use Picqer\Barcode\BarcodeGeneratorPNG; /** * Class CodigoBarras * @package Simonetti\Boleto */ class CodigoBarras { public function gerar(Boleto $boleto) { $generator = new BarcodeGenerato...
true
185c15f7a989f7ddaac9eb431fe0904f94cbcee0
PHP
diaz2691/DogStay
/DogStayWebapp/addLocation.php
UTF-8
2,275
2.59375
3
[]
no_license
<?php session_start(); if (!isset($_SESSION['ownerId'])){ header("Location: logout.php"); } if (isset($_POST['updateForm'])) { //the update form has been submitted require 'dbConnection.php'; $dbConn = getConnection(); $sql = "INSERT INTO locations (address, city, state, zipcode, ownerId, price, ...
true
2784f47cd8a41f002e9e64f4a7ec72480efbb41b
PHP
yehudah/online
/inc/DB.php
UTF-8
1,751
2.875
3
[]
no_license
<?php namespace Dashboard; class DB { use Singleton; private $users = []; private function __construct() { $this->refreshDB(); } public function __call($name, $arguments) { self::get_instance()->{$name}($arguments); } private function refreshDB() { $db_p...
true
7b7422a9041147595c58c57d2927d68ee618e7b4
PHP
drthomas21/PHP-Webserver
/framework/driver/database/BaseDatabaseDriver.php
UTF-8
1,078
3.0625
3
[ "MIT" ]
permissive
<?php namespace Framework\Driver\Database; abstract class BaseDatabaseDriver { const DRIVER_MYSQL = "Mysql"; private static $arrInstances = array(); public static function getInstance(string $driver = self::DRIVER_MYSQL,string $key = "default"): BaseDatabaseDriver { $classname = ucfirst($driver)."Driver"; if(!...
true
ca7416726bad9487e6c71249e1576f20d12feac1
PHP
raulpc64/imprimir_ticket_fs
/lib/TicketCustomLines1.php
UTF-8
1,199
2.828125
3
[ "MIT" ]
permissive
<?php class TicketCustomLines1 { private $position; public function __construct($position) { $this->position = $position; } public function saveCustomLines($data) { $customLines = array_filter($data); if ($customLines) { $this->storeCustomLines(json_encode($customLines)); return...
true
e480dce2f8f298ba8e3ea57e9073dbbde6f01703
PHP
chittipong/yii2basic
/models/Products.php
UTF-8
2,008
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; use yii\helpers\ArrayHelper; use yii\helpers\Url; /** * This is the model class for table "{{%products}}". * * @property integer $id * @property string $name * @property string $detail * @property string $photo * @property integer $types_id * * @property Types $types */...
true
bd2e72d57510c31dc832a6969208e28395b55946
PHP
spotweb/spotweb
/vendor/phpcompatibility/php-compatibility/PHPCompatibility/Sniffs/ParameterValues/NewHTMLEntitiesEncodingDefaultSniff.php
UTF-8
3,157
2.71875
3
[ "LGPL-3.0-only", "LGPL-2.1-or-later" ]
permissive
<?php /** * PHPCompatibility, an external standard for PHP_CodeSniffer. * * @package PHPCompatibility * @copyright 2012-2019 PHPCompatibility Contributors * @license https://opensource.org/licenses/LGPL-3.0 LGPL3 * @link https://github.com/PHPCompatibility/PHPCompatibility */ namespace PHPCompatibility...
true
ede9f85faacfd51e80a76c8126ff830adef279bf
PHP
ankur-dronstudy/apilivetutoring_repo1
/app/Http/Controllers/ListController.php
UTF-8
2,355
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\models\Subscriber; use Illuminate\Http\Request; use DB; use App\models\PaperSubject; use App\models\ContactUs; use Validator; class ListController extends Controller { public function __construct() { } public function __destruct() { } ...
true
68270f9a486886f7e8ab3179b2c5be67515e2fea
PHP
rafapaulino/HotmartPHPApi
/src/HotmartUserInfo.php
UTF-8
790
3.078125
3
[]
no_license
<?php namespace Hotmart; use Hotmart\HotmartRequest; class HotmartUserInfo { private $_url; private $_request; public function __construct(string $url) { $this->_url = $url . '/user_info'; $this->_request = new HotmartRequest; } public function getUserInfo(string $token): arr...
true
0780939074971e91babc5fbc97c8a35cba2ae04a
PHP
KavishkaGunathilaka/Enstitute
/classes/Session.class.php
UTF-8
1,704
3.40625
3
[]
no_license
<?php require_once("User.class.php"); require_once("Student.class.php"); require_once("Tutor.class.php"); class Session { private User $user; private String $errMsg; private String $successMsg; private static Session $instance; private bool $loggedIn; private function __construct(){ $t...
true
c4f3168fd25a5a2220b841e706a810c7b7cfdd06
PHP
mfaizanshaikh1/sabrina
/plugins/subscriptio/classes/emails/rp-sub-renewal-order-email.class.php
UTF-8
2,687
2.546875
3
[]
no_license
<?php // Exit if accessed directly defined('ABSPATH') || exit; // Load dependencies require_once 'rp-sub-email.class.php'; /** * Renewal Order Email * * @class RP_SUB_Renewal_Order_Email * @package Subscriptio * @author RightPress */ class RP_SUB_Renewal_Order_Email extends RP_SUB_Email { /** * Const...
true
d2657a79a51f67266898fab2587c08cc5331a851
PHP
azuya/kohana-simple-api
/classes/Core/API/Model.php
UTF-8
2,806
2.859375
3
[ "MIT" ]
permissive
<?php defined('SYSPATH') OR die('No direct script access.'); abstract class Core_API_Model { /** * @var string Model name */ protected $_name; /** * @param string|null $name * @return static * @throws API_Model_Exception */ public static function factory($name) { ...
true
fb248e1e2478f6bd3b20d7defbe55aaf1d32c56a
PHP
habibdevsy/connectByDependencyInjection
/get_data.php
UTF-8
578
2.6875
3
[]
no_license
<?php include('connect.php'); class Get_data{ private $dbConnect; function __construct(ConnectInterface $dbConnect ){ $this->dbConnect = $dbConnect; $sql = "SELECT * FROM user"; $res= $this->dbConnect->conn->query($sql); if($res->num_rows > 0){ $result['statu...
true
52466cfaf3e8189da8c1fda3ecaf480a3c221451
PHP
sanmark/quotesharp-api
/app/models/Category.php
UTF-8
2,068
2.6875
3
[]
no_license
<?php class Category extends Eloquent { public function getCategoriesForHtmlSelect () { $categories = $this -> orderBy ( 'name' , 'ASC' ) -> get ( ['id' , 'name' ] ) ; $maxIndex = count ( $categories ) ; $categories[ $maxIndex ] = ['id' => '0' , 'name' => 'Root Category' ] ; return $categories ; } ...
true
cd57ac42ae20e130de6082d1e2cc5fd746e6cfb7
PHP
TommyTeaVee/VirtualSoundGallery
/login/uploadwork.php
UTF-8
10,736
2.609375
3
[]
no_license
<?php session_start(); $author = $_POST['author']; $name = $_POST['name']; $description = $_POST['description']; $year = $_POST['year']; $place = $_POST['place']; $id - $_POST['id']; if ($_SESSION["user_rights"]==2) { $exhibition = $_SESSION["user_exhibitionId"]; } else {$exhibition = $_PO...
true
4e42449888ae922a46db7f2f7f7da0cfac02b90b
PHP
fardous80/wp-plugin-boilerplate
/src/Database/QueryBuilder.php
UTF-8
7,790
2.65625
3
[]
no_license
<?php namespace App\Database; class QueryBuilder{ protected $db = null; protected $table = null; protected $data = []; protected $condition = null; protected $values = []; protected $fields = ['*']; protected $model = null; protected $order_by = ''; protected $limit = null; protected $page = 1; ...
true
56c318a13a8d61b5bc6f7eb1af6a190fc34616ff
PHP
qiwi3268/Expertise
/Tables/Docs/Relations/section_documentation_1.php
UTF-8
2,342
3.046875
3
[]
no_license
<?php namespace Tables\Docs\Relations; use Lib\Exceptions\DataBase as DataBaseEx; use Lib\DataBase\ParametrizedQuery; /** * Таблица: <i>'doc_section_documentation_1'</i> * * Отношения таблицы документа раздела с дочерними и * родительскими элементами * */ final class section_documentation_1 { /** * ...
true
ac00bf7bc006761564eac33b50766964504fa43d
PHP
beebo021/Jarvis-SmartHome-433Mhz
/www/api/v1/Things/ThingFactory.php
UTF-8
929
2.765625
3
[]
no_license
<?php require_once 'Things/Actuators/ActuatorFactory.php'; require_once 'Things/Sensors/SensorFactory.php'; require_once 'Things/Others/Area.php'; class ThingFactory { function thingWithData($data) { $kind = $data["kind"]; if ($kind=="Actuator") { $factory = new ActuatorFactory(); $thing = $factory->th...
true
d78da25d771109781384e687ed086af6693694c5
PHP
adeleval/PHP-MySQL
/cours/tp.php
UTF-8
521
2.578125
3
[]
no_license
<!doctype html> <html lang="fr"> <head> <meta charset="utf-8"> <title>Mot de passe</title> </head> <body> <?php if (!isset($_POST['mdp'])) { ?> <h1> Authentification</h1> <form action="tp.php" method="post"> <p> <label>Mot de passe</label> : <input type="password" name="mdp" /> <input type="...
true
c9f10376571de5508516caaa07327d9246761a9e
PHP
MartinEGonzalez95/UNQBicame
/tests/Unit/Controllers/Web/AulasControllerTest.php
UTF-8
4,505
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: gaston * Date: 11/06/18 * Time: 20:28 */ namespace Tests\Unit\Controllers\Web; use App\Aula; use App\Materia; use App\Sector; use App\Cursada; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\WithoutMiddleware; use Tests\TestCase; cla...
true
72f9b8c58bf8a430c174ddd3a3bcd9fbcdea97b7
PHP
bpolaszek/psr7-request-matcher
/tests/DummyTransferMatcher.php
UTF-8
586
2.5625
3
[ "MIT" ]
permissive
<?php namespace BenTools\Psr7\RequestMatcher\Tests; use BenTools\Psr7\TransferMatcherInterface; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; class DummyTransferMatcher implements TransferMatcherInterface { /** * @param RequestInterface $request * @param ResponseInter...
true
cd777d523d23235e12565ac71fca8d54984f1f43
PHP
1985701132/blog
/models/User.php
UTF-8
3,174
3.046875
3
[]
no_license
<?php namespace models; use PDO; class User{ public $pdo; public function __construct() { $this->pdo = new PDO('mysql:host=127.0.0.1;dbname=blog','root',''); $this->pdo->exec('SET NAMES utf8'); } public function add($email,$password) {...
true
1d10803603a6606292d8cbc1a920ede6db826bf5
PHP
Akopean/Yii2-Start-Kit
/common/form_fIelds/InputField.php
UTF-8
274
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\form_fields; trait InputField { private $codename = 'checkbox'; public function __construct() { var_dump('FormItemConstructor'); } public function createContent( $options) { return $this->codename; } }
true
97cbed12c1f144f5d66cc2208ceb0d233e3d7afb
PHP
usemarkup/OEmbedBundle
/Client/ClientInterface.php
UTF-8
735
2.640625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Markup\OEmbedBundle\Client; use Markup\OEmbedBundle\Exception\OEmbedUnavailableException; use Markup\OEmbedBundle\OEmbed\OEmbedInterface; use Markup\OEmbedBundle\Provider\ProviderInterface; /** * An interface for the transport layer (at a high level). **/ interface ClientInterface { /** * ...
true
33fdf7b7b17e810eb4b88024ceff8fa5424e1897
PHP
zcbenz/yacci
/lib/YaccToken.php
UTF-8
738
3.609375
4
[ "MIT" ]
permissive
<?php /** * Represents one token */ abstract class YaccToken { /** * @var string */ public $lexeme; /** * @var int */ public $line; /** * @var int */ public $position; /** * @var mixed */ public $value; /** * Initializes instance ...
true
6d52040c30b0fddd627caa6559eea20b6f9b4ba8
PHP
oliveiranoel/videoplayer
/php/data.php
UTF-8
2,888
2.921875
3
[]
no_license
<?php /*************************************************************************************************************** * * This file contains all classes that have something to do with * the data that is being displayed on the application. * *********************************************************************...
true
5e6f1285993d05670b92438a030079a34871d034
PHP
chunriiin/f01_07_kadai08
/select_02.php
UTF-8
2,833
2.796875
3
[]
no_license
<?php session_start(); // getで送信されたidを取得 $id = $_GET['id']; echo "GET:".$id; $userid=$_SESSION['userid']; //1. DB接続します include('functions.php'); $pdo=db_conn(); //2.データ登録SQL作成,指定したidのみ表示する $stmt = $pdo->prepare('SELECT * FROM gs_bm_table as b JOIN gs_like_table as l ON b.userid = l.userid WHERE b.id=:id'); $st...
true
d9ebb37aecd2b36ecb494a34c828d1b95481e49d
PHP
aurorahttp/aurora
/src/Http/Codec/Stream/InputStream.php
UTF-8
796
2.6875
3
[ "MIT" ]
permissive
<?php namespace Aurora\Http\Codec\Stream; /** * The input stream can only be written. * * @package Aurora\Http\Codec\Stream */ abstract class InputStream extends ResolveStream { public function isSeekable() { return false; } public function seek($offset, $whence = SEEK_SET) { ...
true
e45df5105c37f6f740b8c4139fc3b7d25745a085
PHP
jonathascbrito/old_works
/Ticket_Message/app/Model/TicketType.php
UTF-8
1,807
2.71875
3
[]
no_license
<?php /** * TicketType * * Define o modelo tickettype. Este modelo representa os tipos de tickets do * módulo helpdesk. */ class TicketType extends AppModel { /** * Define a tabela utilizada para guardar os dados do modelo. * @var string */ public $useTable = 'tickets_types'; /** ...
true
7252973ee5e842df396c35254900426132dbd16c
PHP
hou1202/ltc
/application/common/model/Notice.php
UTF-8
2,247
2.515625
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: Hou-ShiShu * Date: 2018/1/8 * Time: 15:12 */ namespace app\common\model; use think\Model; use think\Db; class Notice extends Model { public static $tableName = 'think_notice'; //开启时间自动写入 protected $autoWriteTimestamp = true; //取值时间显示 protected funct...
true
c2e911fe7688bebcde3620cdbd05bd48c94d412e
PHP
rbferreyra/grupo-a-desafio-backend
/app/Services/StudentService.php
UTF-8
858
2.96875
3
[]
no_license
<?php namespace App\Services; use App\Contracts\StudentInterface; class StudentService { private $repository; public function __construct(StudentInterface $repository) { $this->repository = $repository; } public function getStudents(int $perPage, string $keywords = null) { r...
true
01d01b5ad0277c62478aff71d65a21f99bdcd7d6
PHP
jirayudech/basic_php
/php_basic/anime_list.php
UTF-8
3,252
2.796875
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="<php? echo 'UTF-8';?>"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/...
true
eea2704bd78c5d97a7e4a4cf43f39fcaaf0c0934
PHP
pangxieke/cookbook
/8.6.php
UTF-8
1,564
2.78125
3
[]
no_license
问题: 想要构造一个在查询字符串中包含名/值对的链接 方案: 使用http_build_query()函数 [php] <?php $vars = array( 'name' => 'Oscar the Grouch', 'color' => 'green', 'favorite_punctuation' => '#' ); $query_string = http_build_query($vars); $url = 'muppet/select.php?' . $query_string; // muppet/select.php?name=Oscar+the+Grouch&color=green&favo...
true
4d1da849bd338f1a708debc1f625f549458c668a
PHP
gilvanmachado/teste
/index.php
UTF-8
157
2.6875
3
[]
no_license
<?php echo "hello word!!!"; echo "olá mundo!!" echo"Todo aprendizado de linguagem de programação deve ser inciado com hello word ou ola mundo"; ?>
true
5ce79c07952195cd0c74d1805eea05c43b1936e9
PHP
RomanPolev/homeTasks
/burgers/scripts/admin/index.php
UTF-8
1,218
2.8125
3
[]
no_license
<?php // Коннект к БД $link = mysqli_connect("db", "bitrix", "123", "bitrix"); // Обработка ошибки подключения if (!$link) { print("Ошибка: Невозможно подключиться к MySQL " . mysqli_connect_error()); } $result = mysqli_query($link, "SELECT * FROM users"); echo "<table style='border: 1px solid black;'><caption>...
true
89fc7b13497a30ab5f9a5ca59fdece8ed860f758
PHP
StAResComp/ris2csv
/ris2csv.php
UTF-8
6,000
3.015625
3
[ "Apache-2.0" ]
permissive
<?php // map RIS fields to CSV fields // keys longer than 2 letters are not RIS fields $map = array('A1' => 'Author', 'primary_author' => 'Primary author', 'presentation_authors' => 'Presentation authors', 'author_count' => 'Author count', 'T1' => 'Title', 'JF' => 'Journal', 'Y1' => 'Year', ...
true
58dbfc6c8dd45a39473d24f676be40dfb00ee8c0
PHP
srivinod/uber-api
/public/index.php
UTF-8
3,644
2.703125
3
[]
no_license
<?php ini_set('display_errors', true); require __DIR__ . '/../vendor/autoload.php'; require_once '../include/DbHandler.php'; use Slim\App; // Use the PSR-7 HTTP Messages interfaces use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ResponseInterface as Response; ...
true
6d114731cecdc2a5ab4326e31395d62dcae404d2
PHP
andersonSinaluisa/Employed
/ApiCompany/class/conf/PermisoAccion.php
UTF-8
1,829
2.703125
3
[]
no_license
<?php require_once('./core/mainModel.php'); class PermisoAccion extends MainModel{ private $idconf_permiso_accion; private $nombre; private $estado; private $id_rol; public function __construct() { } public function setData($idconf_permiso_accion,$nombre,$estado,$id_rol) ...
true
367bd2c199ac9251b3183116a7eec6951208227d
PHP
Centril/bbman
/db/mysqli.php
UTF-8
5,859
3.015625
3
[ "Unlicense", "LicenseRef-scancode-public-domain" ]
permissive
<?php /*-------------------------------------------- | file = db/mysqli.php | description : A database class | -------------- | copyright = (C) 2005 The Magicasoft Group | email = support@magicasoft.net *-------------------------------------------*/ class DB { var $host; // The hostname var $user; // The username v...
true
b898556c31a9e980414340243d5e27d9e3e6582d
PHP
aequasi/BlackJack
/src/Card.php
UTF-8
2,929
3.1875
3
[ "MIT" ]
permissive
<?php /** * This file is part of php-blackjack * * (c) Aaron Scherer <aequasi@gmail.com> * * This source file is subject to the license that is bundled * with this source code in the file LICENSE */ namespace Aequasi\BlackJack; /** * @author Aaron Scherer <aequasi@gmail.com> */ class Card { /** * @...
true
9bae56c641ca9ed99c3511376f80fae366954540
PHP
Grandman/php_volga_it
/csv/save.php
UTF-8
253
2.78125
3
[]
no_license
<?php try{ $fp = fopen('test.csv', 'w'); $values = $_POST['value']; foreach ($values as $fields) { fputcsv($fp, $fields); } fclose($fp); echo "сохранено"; } catch(Error $e){ echo "не удалось сохранить"; } ?>
true
6a8f01036894e55951f330cf3c0969e7a119a6a2
PHP
robertodugim/Feelings-Store
/src/api/base/Products.php
UTF-8
1,948
3.234375
3
[]
no_license
<?php namespace API\Base; use API\File\FileStorageFactory; /** * List of Products in the storage * * @package API\Base */ class Products{ /** * @var string Should contain filename with path. default value: "basic/products.json" */ private $filename = "basic/products.json"; /** * @var array Should c...
true
ab81485b2cd6cadddb904251b81fd956e17b9436
PHP
dserov/beejee_test
/lib/Http.class.php
UTF-8
1,768
2.625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: MegaVolt * Date: 03.03.2021 * Time: 11:17 */ class Http { public static function header_code_verbose($code) { switch ($code): case 200: return '200 OK'; case 201: return '201 Created'; case...
true
942b2e40197819d57bb3dd39cd93bfe0fee3bd8c
PHP
941xinye/api
/backend/models/ApiReturn.php
UTF-8
877
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; class ApiReturn { public $state; public $message; public $type; public $jump_url; public $no_set; public $is_empty; public $count; public $data; /** * 获取实例 * @param int $state * @param string $message * @param string $jump_url * ...
true
efef981a8c2ef659d5897687f24075007d1bba99
PHP
kublaj/php-schema.org-model
/examples/full/DeliveryChargeSpecification.php
UTF-8
968
2.765625
3
[ "MIT" ]
permissive
<?php namespace SchemaOrg; /** * Delivery Charge Specification * * @link http://schema.org/DeliveryChargeSpecification */ class DeliveryChargeSpecification extends PriceSpecification { /** * Applies to Delivery Method * * @var DeliveryMethod The delivery method(s) to which the delivery charge o...
true
1327b25bf467741fbf1c579681f3298b559834da
PHP
Vaalyn/BRG-Meetup-System
/src/Service/Factory/Flysystem/FlysystemFactory.php
UTF-8
469
2.546875
3
[ "Apache-2.0" ]
permissive
<?php namespace BronyRadioGermany\Meetup\Service\Factory\Flysystem; use League\Flysystem\Filesystem; class FlysystemFactory { /** * @param array $config * * @return \League\Flysystem\Filesystem */ public static function create(array $config): Filesystem { $adapter = new \ReflectionClass($config['adapter'...
true
4aa43930b110bdbee21c65539a8a6cc03120ad5a
PHP
fbraem/kwai-api
/tests/Core/Domain/WeekdayTest.php
UTF-8
216
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); use Kwai\Core\Domain\ValueObjects\Weekday; it('can create a weekday', function () { $weekday = Weekday::from(1); expect($weekday) ->toEqual(Weekday::MONDAY) ; });
true
ff4fa41c6e07dc218bda71e2de27723d08fc7684
PHP
ssa-group-lab/MagentoPerformanceWorkshop
/app/code/Webinar/RemoteData/Block/Rank.php
UTF-8
1,244
2.78125
3
[]
no_license
<?php declare(strict_types=1); namespace Webinar\RemoteData\Block; use Magento\Framework\View\Element\Template; use Webinar\RemoteData\Api\Data\RankInterface; use Webinar\RemoteData\Api\RankProviderInterface; /** * Manages output of the ranking. */ class Rank extends Template { /** * @var RankInterface[]|...
true
a808dc370cbabf31aba5a251ac0b64559ee09a2a
PHP
lukasz-duda/ArchitectureSample
/SalesInteractors/AddOrderUseCase.php
UTF-8
612
2.796875
3
[]
no_license
<?php namespace SalesInteractors; use Boundaries\UseCase; class AddOrderUseCase implements UseCase { private $orderGateway; function setOrderGateway($orderGateway) { $this->orderGateway = $orderGateway; } function getOrderGateway() { return $this->orderGateway; } function ex...
true
b62e6b54937c82cbff7f6cda57fe73a1e17ee76b
PHP
Nabile01/Projet-G-tes
/P. GITES/selectsearch.php
UTF-8
3,563
2.75
3
[]
no_license
<?php require_once "connect.php"; require_once "classes/class.booking.php"; require_once "classes/class.lodge.php"; //🍺🍺🍺 JSON $test = json_decode(file_get_contents("php://input"), true); $j = 0; $q = ''; foreach ((array)$test as $data => $key) { if (!empty($data)) { $k = ''; $nb = count($key...
true
6685fd9a3e553c9472e04c2893ba1367c8461611
PHP
FriendsOfCXML/cxml-php
/src/CXml/Model/Country.php
UTF-8
563
2.9375
3
[ "MIT" ]
permissive
<?php namespace CXml\Model; use JMS\Serializer\Annotation as Ser; class Country { /** * @Ser\XmlAttribute * @Ser\SerializedName("isoCountryCode") */ private string $isoCountryCode; /** * @Ser\XmlValue(cdata=false) */ private ?string $name = null; public function __construct(string $isoCountryCode, s...
true
c05ad6af10c232ecb2003bcf1f728b5d8ada1077
PHP
Satima19/codephp62
/ifphp.php
UTF-8
272
2.734375
3
[]
no_license
<?php $score = 40; if( $score >= 80 ){ echo "A"; }else if( $score >= 70 && $score < 80 ){ echo "B"; }else if( $score >= 60 && $score < 70 ){ echo "D"; }else if( $score >= 50 && $score < 60 ){ echo "D"; }else{ echo "คุณสอบตก"; } ?>
true
f11bddda13346bee3c550fa184093501a4565c0c
PHP
0x9d8e/test01
/Core/StupidCache.php
UTF-8
1,313
2.921875
3
[]
no_license
<?php namespace Core; class StupidCache extends Singleton { //Чтобы не читать файл лишний раз private $memory = []; public function get($key) { if(!isset($this->memory[$key])) $this->memory[$key] = $this->unserialize($this->read($key)); return $this->memory[$key]; } ...
true
caaf78960d51620360a32e80142c6d17a79fa131
PHP
humbug/php-scoper
/specs/special-keywords/self-parent-return-type.php
UTF-8
4,375
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of the humbug/php-scoper package. * * Copyright (c) 2017 Théo FIDRY <theo.fidry@gmail.com>, * Pádraic Brady <padraic.brady@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed ...
true
1581aa539eb927e9b523e81bbf5fc8f3413a6e05
PHP
fezfez/codeGenerator
/src/CrudGenerator/Generators/Parser/Lexical/Condition/DependencyCondition.php
UTF-8
2,140
2.796875
3
[ "MIT" ]
permissive
<?php /** * This file is part of the Code Generator package. * * (c) Stéphane Demonchaux <demonchaux.stephane@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace CrudGenerator\Generators\Parser\Lexical\Condition; ...
true
9997127ea66ee5da184826fa50e11b2e9521ac85
PHP
owenlmg/wechat
/app/Controllers/WechatController.php
UTF-8
5,582
2.75
3
[]
no_license
<?php /** * Created by PhpStorm. * User: owenl * Date: 2018-11-12 * Time: 11:27 */ namespace Controllers; use Psr\Container\ContainerInterface; class WechatController { protected $app; protected $pdo; private $appId; private $appSecret; private $token; public function __construct(Cont...
true
1b51389620a7f604d95f316ff7d81f2728748e27
PHP
Deltaphish/WSP_Joakim
/login-handler.php
UTF-8
1,020
2.515625
3
[]
no_license
<?php // Tar emot Username och Password från login.php // Om Username och Lösenord stämmer med databasen så sänds användaren vidare till home.php // Annars sänds så kommer användaren tillbaks till login.php if(!empty($_POST['username']) && !empty($_POST['password'])){ $sqli = new mysqli('localhost','j','portal',...
true
28e229b13ff0d497f088790a3c20867bdef0c759
PHP
pixelcollective/acorn-settings-widgets
/src/Widgets.php
UTF-8
2,453
2.625
3
[ "MIT" ]
permissive
<?php namespace TinyPixel\Settings; // WordPress use function \add_action; use function \register_widget; use function \unregister_widget; // Illuminate framework use \Illuminate\Support\Collection; // Roots use \Roots\Acorn\Application; // Internal use \TinyPixel\Settings\Traits\WidgetIds; /** * Widgets * * @...
true
0bb120cdfbfd1d6b3ba932da7ec3a63d7a35be32
PHP
happydev3/hotel-manager-codeigniter
/supplier/admin/helpers/common_helper.php
UTF-8
6,686
2.609375
3
[]
no_license
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); if(!function_exists('s3Upload')) { function s3Upload($tar_file='',$localpath='',$s3_name='vacaymenow.com') { if($tar_file!=''){ $seg = explode("/", $tar_file); $bucket = $s3_name; $file_name = basename($tar_fil...
true
498e264e1c64f685a4f078c68aedbd235dcf865e
PHP
hsldymq/payment-lib
/src/Alipay/TradeQuery.php
UTF-8
2,068
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Archman\PaymentLib\Alipay; use Archman\PaymentLib\Alipay\Config\OpenAPI\CertConfigInterface; use Archman\PaymentLib\Alipay\Config\OpenAPI\PKConfigInterface; use Archman\PaymentLib\Alipay\Traits\OpenAPIExtendableTrait; use Archman\PaymentLib\Alipay\Traits\OpenAPIParameterTrait...
true
4de2377d272a6d278d637229137895cfda13f510
PHP
7kgame/php-common
/src/Security/Cookie.php
UTF-8
978
2.953125
3
[ "MIT" ]
permissive
<?php namespace QKPHP\Common\Security; class Cookie { private static $path = '/'; private static $domain = ''; public static function getCookie($name) { if(isset($_COOKIE[$name])) { return $_COOKIE[$name]; } else { return null; } } public static function setCookie($name, $value, $e...
true
20a85ec3c860d1d1540c833798c3a5948528852c
PHP
sanzhar73ismailov/sustdev
/project/prev_temp/comment.php
UTF-8
2,280
2.515625
3
[]
no_license
<?php include("blocks/bd.php"); if(isset ($_POST['author'])) {$author=$_POST['author'];} if(isset ($_POST['text'])) {$text=$_POST['text'];} if(isset ($_POST['pr'])) {$pr=$_POST['pr'];} if(isset ($_POST['subcom'])) {$subcom=$_POST['subcom'];} if(isset ($_POST['id'])) {$id=$_POST['id'];} if(isset ($subcom)) { if(i...
true
87b5f9c3deedf1685b17d35a0262294071357bea
PHP
checkrobin/WebshopconnectLive
/samples/example1.php
UTF-8
1,546
2.515625
3
[]
no_license
<?php /**************************************** * * * EXAMPLE 1: * * ----------------------------------- * * How to get the AUTH TOKEN * * * * @author David Tschische * * @copyright (c) 2...
true
c3f5417deffa6c3b4713f19167756f772fadf8ce
PHP
deviousdodo/RPC
/Regex.php
UTF-8
3,363
2.96875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Copyright (c) 2007, Gheorghe Constantin-Adrian. All rights reserved. * * Code licensed under the BSD License: * http://adrian.lastdot.org/license.txt */ /** * Regular expressions class * * Please note that all the regexes below are aproximations, all of them are * considered "good enough" for m...
true
09131452bededca9827c9525d269da2ff9e3ff6f
PHP
henderjon/clever-php-sdk
/src/CleverStudent.php
UTF-8
729
2.65625
3
[]
no_license
<?php namespace Clever; class CleverStudent extends CleverObject { const BASE_URL = "students"; function getDistrict(array $query = []){ return $this->getObjects(static::CLEVER_DISTRICT, $query); } function getSections(array $query = []){ return $this->getObjects(static::CLEVER_SECTION, $query); } funct...
true
00c1c359bcf38c9af4d933164abc6bbc97473006
PHP
siliconhill/calendar
/app/presenters/SecuredPresenter.php
UTF-8
1,044
2.6875
3
[]
no_license
<?php abstract class SecuredPresenter extends BasePresenter { const LOGIN_LINK = ':Login:'; protected function startup() { $ref = $this->getReflection(); if ($ref->hasAnnotation('Secured')) { if ($this->user->isLoggedIn()) { $resource = $this->getResource(); $privilege = $this->act...
true
8df428299dd590f15366ac5e8d88005daec7a315
PHP
chumarrento/faculdade-z-api
/database/migrations/2020_12_01_100617_create_disciplines_students_table.php
UTF-8
940
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateDisciplinesStudentsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('dis...
true
de622f841fc4229440532c356e5f768670ed759c
PHP
cfdevalle/EDI-III-CLINICAS
/collection/CollectionAgenda.php
UTF-8
529
2.75
3
[]
no_license
<?PHP class CollectionAgenda{ public function getHorarios($usuario){ //usuario,password,nombre,apellido,rol $db=new DataBaseConnector(); $db->conectar(); $consulta='SELECT * FROM agenda WHERE usuario="'.$usuario.'"'; $result=mysql_query($consulta); $db->desconectar(); $vec=array(); $i=0; if (fals...
true
72ab74485ed356a583beb9c8c3d3ec60ca9dba51
PHP
leocaraballo/tpfinal-basededatos
/vistas/tecnico.php
UTF-8
2,562
2.625
3
[]
no_license
<?php if (isset($_GET['enviar'])) { # code... Tecnico::Crear($_GET['dni'],$_GET['matricula'],$_GET['nombre'],$_GET['apellido'],$_GET['telefono'],$_GET['direccion']); //($DNI, $Matricula, $Nombre, $Apellido, $Telefono, $Direccion) } $tecnicos = Tecnico::RetornaTodosLosTecnicos(); //$empresas = EmpresaProvee...
true
ce424e0b325acebab184d1485057848bcab1a8af
PHP
janyanisanjay/Ticket-Raising-System
/application/views/User/user_home.php
UTF-8
1,419
2.671875
3
[ "MIT" ]
permissive
<?php include_once("header.php"); ?> <html> <head></head> <body> <?php $result=$users->result_array(); // print_r($result); // echo $result[0]['user_first_name'] ?> <h1>User : <?php // echo $result[0]['user_first_name']; ?> ...
true
b4ea77d99e159ea30826bb128cd6aa3745d6dfbb
PHP
Felix9821/php
/codigo_version_2.php
UTF-8
3,081
3.796875
4
[]
no_license
<html> <head> <title> My first php code </title> </head> <body> <?php echo "<strong> hello world2; </strong>" ?> </body> </html> <?php //prueba introduccion-comentario echo"prueba"; echo "prueba2"; echo "prueba3"; /* prueba comentario de multiple lineado */ ?> <php?...
true
a8136e260e015ebad2ed888a1af48ab6308bf822
PHP
karimmorel/php-designpatterns
/structural/facade/IncrediblyComplexeService.php
UTF-8
191
2.65625
3
[]
no_license
<?php namespace Designpatterns\Structural\Facade; class IncrediblyComplexeService { public function execute() { echo 'Incredibly complexe service processing.<br/>'; } }
true
6582af774b043c1ddb066b8821dc94721d248e57
PHP
guitarbeerchocolate/singlesiteusermanager
/classes/config.class.php
UTF-8
1,406
3.046875
3
[]
no_license
<?php class config { public $values = NULL; private $file = NULL; private $fileLocation = NULL; function __construct($file = NULL) { if($file != NULL) { $this->fileLocation = 'classes/'.$file.'.ini'; } else { $this->fileLocation = 'classes/config.ini'; } $tempArr = array(); $...
true
2f2eb925fb09913e5e54860cca46ebaa7835be94
PHP
amalanuradha-cmd/nilanka-next
/laravel/app/Http/Controllers/Auth/LoginController.php
UTF-8
3,441
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Providers\RouteServiceProvider; use Illuminate\Foundation\Auth\AuthenticatesUsers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Carbon\Carbon; use Lcobucci\JWT\Parser; use DB; use Laravel\Socialite\Facades...
true
d4f5a7f7a31152962a1073916c96096ee7449d78
PHP
a406299736/dl
/m/LinkModel.class.php
UTF-8
2,050
2.609375
3
[]
no_license
<?php /** * 【梦想cms】 http://www.lmxcms.com * * 友情链接模块 */ defined('LMXCMS') or exit(); class LinkModel extends Model{ public function __construct() { parent::__construct(); $this->field=array('*'); $this->tab=array('link'); } //获取链接列表 public function getData($limit=''...
true