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
5404d98927ef0e289d21808d2271aa38a16efd0c
PHP
krystal-framework-modules/Chat
/Controller/Chat.php
UTF-8
3,063
2.5625
3
[]
no_license
<?php namespace Chat\Controller; use Site\Controller\AbstractSiteController; use Krystal\Stdlib\VirtualEntity; final class Chat extends AbstractSiteController { /** * Renders chat page * * @param array $vars Page variables * @return string */ private function renderChat(array $vars)...
true
d9c34fc960bfffc15634d66e3802d6e8497b80ff
PHP
yuanlingzhi/interview
/interview/service/like_service.php
UTF-8
1,269
2.578125
3
[]
no_license
<?php include_once "../include/DatabaseClass.php"; function updateLike($u, $q, $a, $l) { $uname=$u; $q_id=$q; $a_id=$a; $like=$l; $uname=addslashes($uname); $q_id=addslashes($q_id); $a_id=addslashes($a_id); $like=addslashes($like); $db=new database(); $db->connect(); ...
true
ce54bfde097296b63f5691703392817a6e8042db
PHP
starplatinum3/ctgu_safe_system
/ctgu/models/Project.php
UTF-8
2,228
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "project". * * @property int $id * @property string $project_name 项目名称 * @property string $person_liable 责任人 * @property string $contact 联系方式 * @property int $project_type 项目类型 * @property string $address 详细地址 * @property int $regi...
true
86f113b5574250d66a813bedde4dd71d72bf958b
PHP
tranluong/luonggiacar
/web/app/themes/luonggiacar/lib/ajax.php
UTF-8
2,498
2.53125
3
[ "MIT" ]
permissive
<?php function luongwp_send_message_callback() { $nonce = $_POST['form-id']; $full_name = $_POST['contact_name']; $email = $_POST['contact_email']; $phone = $_POST['contact_phone']; $content = $_POST['contact_content']; if ( empty( $nonce ) || ! wp_verify_nonce( $nonce, 'luongwp-contact' ) || empt...
true
20713d6f6e737f9729b225026c4aba3fbb0e5f59
PHP
krundikovil1995/Labs
/Лаба 3/3/check.php
UTF-8
1,969
3.03125
3
[]
no_license
<?php $year = isset($_POST['date']) ? $_POST['date'] : '2019'; $year = "{$year}-01-01"; $begin = new DateTime($year); $end = new DateTime($year); $end->modify('+1 year'); $interval = new DateInterval('P1M'); $daterange = new DatePeriod($begin, $interval, $end); $result = []; $count = $begin->format('W'); foreach ($...
true
36ff048be19c2be8dd2f12a850d5533680f01d74
PHP
CMKoge/Online-Examination-System--eZyQuiz
/includes/classes/candidate.php
UTF-8
817
2.875
3
[]
no_license
<?php class Candidate { private $_db; public function __construct(){ $this->_db = Database::getInstance(); } public function create($fields=array()){ if (!$this->_db->insert('`candidate`', $fields)) { throw new Exception("Error Occur While Adding Candidate"); } } public ...
true
a1a0c5677e73e9f3e0a4fdd8646888f4a2d4dd14
PHP
opacopac/navplan2
/src/php/Navplan/User/Persistence/Service/DbUserPointRepo.php
UTF-8
3,526
2.6875
3
[]
no_license
<?php declare(strict_types=1); namespace Navplan\User\Persistence\Service; use Navplan\Common\Domain\Model\Extent2d; use Navplan\Common\Domain\Model\Position2d; use Navplan\System\Domain\Model\IDbResult; use Navplan\System\Domain\Service\IDbService; use Navplan\User\Domain\Service\IUserPointRepo; use Navplan\User\Per...
true
91d21cef96f776a0892eb5c609cb663a524966b0
PHP
mehicdado/payroll_case_study
/src/Core/CommissionedClassification.php
UTF-8
1,085
2.828125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: damirmehic * Date: 01.06.18 * Time: 07:58 */ namespace PayrollCaseStudy\Core; class CommissionedClassification implements PaymentClassification { private $salary; private $commissionRate; private $salesReceipts; /** * CommissionedClassification cons...
true
60373acc938a2b293b54761a1bde0210105c4f9e
PHP
Sudhir2518/csimarital
/app/Http/Controllers/EdufieldController.php
UTF-8
2,501
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Edufield; use Illuminate\Http\Request; class EdufieldController extends Controller { public $edufields; public function index() { return view('dashboard.edufields.index',[ 'edufields' => Edufield::all(), ]); } /** ...
true
249b49340160f7e26c1ef3cc29c2dbcfe6dc5c60
PHP
TimothyDJones/scout-tracker
/app/models/Scout.php
UTF-8
3,494
2.53125
3
[ "MIT" ]
permissive
<?php //namespace ; use Illuminate\Database\Eloquent\Model as Eloquent; class Scout extends Person { public function ranks() { return $this->belongsToMany('Rank', 'award_scout', 'scout_id', 'award_id') ->withPivot('date_completed', 'approver_id', 'date_board_of_review', 'date_sm_conf'...
true
f9710e8b43279e7335bfccddf0104334a02bc70b
PHP
RC2K7/CSE405
/Assignments/Track2/page_views.php
UTF-8
672
2.875
3
[]
no_license
<?php // Establish Database Connection try { $dbh = new PDO("mysql:host=localhost;dbname=track2", "rc2k7"); $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $stmt = $dbh->prepare("UPDATE pageviews SET counter = counter + 1"); $stmt->execute(); $stmt = $dbh->...
true
0ca614998d98cd219a2a5b54e49ff68e9cf53086
PHP
asfmacdude/wed
/communicore/support/db_system_config.php
UTF-8
7,514
2.796875
3
[]
no_license
<?php /* * db_system_config * * Database object for the online database system_config * * */ defined( '_GOOFY' ) or die(); include_once('db_common.php'); class db_system_config extends db_common { public $options; public $db; public function __construct($options=array()) { $this->setOptions($options); ...
true
73e716349d448bef09728055e7aaaf7e786ca173
PHP
qqqwed/DesignPatterns
/Behavioral/Observer/DemoOne/EmailSender.php
UTF-8
505
2.9375
3
[]
no_license
<?php /** * Description: 具体观察者[Concrete Observer] 邮件发送类 * Created by Martini * DateTime: 2019-07-04 13:58 */ namespace DesignPatterns\Behavioral\Observer\DemoOne; class EmailSender implements \SplObserver { public $resultString; public function update(\SplSubject $subject) { if (func_num_args() === 2) { ...
true
089b72b643d9ac093d6d0adba7f62f66bff64139
PHP
Fengtianhe/luyoukaoshi
/Admin/Lib/Action/AttachAction.class.php
UTF-8
2,109
2.5625
3
[]
no_license
<?php /** * 附件上传控制器 */ /** * */ import('ORG.Util.UploadFile'); class AttachAction extends CommonAction { function index(){ $model = M('Attach'); $attach_list = $model->select(); $this->assign('list',$attach_list); $this->display(); } function add(){ $this->display(); } function sta...
true
bfb457613c8080966d79b17a7dae3f162020c17d
PHP
charlesjackson261/cs313php
/assignments/04.03.PHP-Database.php
UTF-8
934
2.703125
3
[]
no_license
<?php // protect internal pages from being viewed, this gains access to those pages. define('CS313', true); require_once('../lib/config.php'); if ($debug) { echo '<pre>' . print_r($db, true) . '</pre>'; } // get a list of tables $statement = $db->query("show tables;"); $rows = $statement->fetchAll(PDO::FETCH_AS...
true
326ad67660101aa0cc04e08ab836c1659d67938c
PHP
mikitu/phpdatechallenge
/tests/DateValidatorTest.php
UTF-8
1,813
2.53125
3
[]
no_license
<?php class DateValidatorTest extends PHPUnit_Framework_TestCase { protected $dateFormatMatcherMock; protected $validator; protected $dateFormatMatcherWrongMock; public function tearDown() { Mockery::close(); } public function setUp() { $this->dateFormatMatcherMock = \...
true
df7941e6f3418df21346a77cc45edcf0943e4a4d
PHP
stratus-meridian/apigee-kickstart-drupal8-drops
/vendor/consolidation/site-alias/src/SiteAlias.php
UTF-8
2,986
2.59375
3
[ "MIT" ]
permissive
<?php namespace Consolidation\SiteAlias; use Consolidation\Config\Config; use Consolidation\Config\ConfigInterface; use Consolidation\Config\Util\ArrayUtil; use Consolidation\SiteAlias\Util\FsUtils; /** * An alias record is a configuration record containing well-known items. * * @see SiteAliasInterface for documen...
true
193ccd2b15bece255f70db76cafa6d4fb251ed49
PHP
DRDeveloppeur/DRWork
/app/DRWork/AbstractRepository.php
UTF-8
255
2.609375
3
[]
no_license
<?php namespace DRWork; use DRWork\Core\Database\DatabaseMysql; abstract class AbstractRepository { protected $pdo; public function __construct() { $connect = new DatabaseMysql(); $this->pdo = $connect->getPDO(); } }
true
758d8eebba727e4caf042ebf22f67ac937ca9f48
PHP
AlvinL33/TownHunt
/TownHunt API v1.1/includes/DBConnect.php
UTF-8
638
3.1875
3
[ "Apache-2.0" ]
permissive
<?php /* * By Alvin Lee * Establishes a connection with the database */ class DBConnect{ private $connection; function __construct() { } function connect() { $host_name = "[HOST NAME]"; $database = "[DATABASE]"; $user_name = "[USERACCOUNT]"; ...
true
a2a6c124cc74d48a056a7b678f3c876d44a0f21e
PHP
janickiy/booking
/app/Services/External/ReservationKit/src/Modules/Galileo/Model/Response/Parser/FareInfoParser.php
UTF-8
1,980
2.640625
3
[]
no_license
<?php namespace ReservationKit\src\Modules\Galileo\Model\Response\Parser; use ReservationKit\src\Modules\Galileo\Model\Entity\FareInfo as GalileoFareInfo; class FareInfoParser { public static function parse($FareInfoXml) { $fareInfo = new GalileoFareInfo(); // Ключ-идентификатор $far...
true
41b669df421fe2dc05808e1a269ae1b44986580d
PHP
efureev/response-actions
/src/Actions/Event.php
UTF-8
585
2.671875
3
[]
no_license
<?php declare(strict_types=1); namespace ResponseActions\Actions; /** * @method static static make(string $event, array $params = []) */ class Event extends AbstractAction { use WithParams; public function __construct( protected string $event, array $params = [] ) { $this->para...
true
363e39189ca4ed3274760cc9e112eab310f9b11b
PHP
IrhamMaulani/rak-buku-web
/app/Http/Resources/BookItem.php
UTF-8
708
2.53125
3
[]
no_license
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class BookItem extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array */ public function toArray($request) { ret...
true
5940ae77e8117f2f0e3ced9353ab62ef830d4750
PHP
scriptzteam/nZEDb
/misc/testing/Dev/test-nntp.php
UTF-8
982
2.515625
3
[]
no_license
<?php // To troubleshoot what's actually on usenet. require_once dirname(__FILE__) . '/../../../www/config.php'; $cli = new \ColorCLI(); if (!isset($argv[2]) || !is_numeric($argv[2])) { exit($cli->error("\nTest your nntp connection, get group information and postdate for specific article.\n\n" . "php $argv[0] alt....
true
bd1eef83afcb82473c589c8f6ffe0fb7d5051e0d
PHP
PY-git-code/webtrain
/frontend/function.php
UTF-8
1,808
2.53125
3
[]
no_license
<?php //顯示Details,addToCart function product_show($id){ include 'db_con.php'; $product_id=$id; $sql="select * from product where id='$product_id'"; $result = $conn ->query($sql); if($result->num_rows>0){ $i=0; while($row = $result -> fetch_assoc()){ echo ' ...
true
55257a9450507f8d9badb243ad6b9470463d53a7
PHP
OpenBuildings/jam
/classes/Kohana/Jam/Validator/Rule.php
UTF-8
905
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php defined('SYSPATH') OR die('No direct script access.'); /** * Jam Validatior Rule * * @package Jam * @category Validation * @author Ivan Kerin * @copyright (c) 2011-2012 Despark Ltd. * @license http://www.opensource.org/licenses/isc-license.txt */ abstract class Kohana_Jam_Validator_Rule { p...
true
1d572ed182adba056ffcd9d54aab9d4e1451b868
PHP
timspro/webdreamt
/src/WebDreamt/Component/Wrapper/Data/Form/InputSelect.php
UTF-8
1,687
3.0625
3
[]
no_license
<?php namespace WebDreamt\Component\Wrapper\Data\Form; use WebDreamt\Component\Wrapper\Data\Form; use WebDreamt\Component\Wrapper\Select; /** * A class that allows one to either select an element in the database or create a new one. * This is mostly intended to work with other forms. */ class InputSelect extends ...
true
c6c7106ddf736b979a27b0cee5df2ee4f573c980
PHP
kokiBit/zend
/module/Admin/src/Admin/Model/TypeMstTable.php
UTF-8
1,941
2.65625
3
[]
no_license
<?php namespace Admin\Model; use Zend\Db\TableGateway\TableGateway; use Zend\Db\Sql\Sql; use Zend\Db\Adapter\Adapter; class TypeMstTable { protected $tableGateway; public function __construct(TableGateway $tableGateway) { $this->tableGateway = $tableGateway; $this->adapter = new Adapter(array( 'driver'...
true
fa3df3598861be44febc2876e5ba0957e3f01a35
PHP
kutla/shop
/Core/DB.php
UTF-8
403
2.84375
3
[]
no_license
<?php namespace Core; class DB { private static $db; public static function Instance() { if (self::$db == null) { self::$db = self::get(); } return self::$db; } private static function get() { $db = new \PDO('mysql:host=localhost;dbname=shop_products', 'root', ''); $db->exec("SET NAMES UTF8"); ...
true
8b304e2b64fadd44f378b6259fe425aca5416a0d
PHP
marielaures/finance
/public/sell.php
UTF-8
3,082
3.171875
3
[]
no_license
<?php // Quote controller // include helpers require_once("../includes/config.php"); require_once("../includes/helpers.php"); // if user reached page via GET (as by clicking a link or via redirect) if ($_SERVER["REQUEST_METHOD"] == "GET") { //Mettre la requête SELECT dans "GET"...
true
0cfd6570bea6893345ff2aca5d9333df15b1fc3f
PHP
Germandf/PetFinder
/app/helpers/auth.jwt.helper.php
UTF-8
2,718
2.765625
3
[]
no_license
<?php require_once('vendor/autoload.php'); require_once('app/config.php'); use Firebase\JWT\JWT; class AuthJwtHelper { private $encrypt; function __construct() { $this->encrypt = ['HS256']; } public function getUser(){ $bearer = $this->getBearerToken(); if($bearer == null){ ...
true
59b7d1fe69ac6f1b4e349a70fc398dbb58fd9164
PHP
HondaZhan/DesignPatterns
/Factory.php
UTF-8
781
3.765625
4
[]
no_license
<?php /** * 工厂模式 */ abstract class Employee{ abstract function continueToWork(); } class Sales extends Employee{ private function makeSalaPlan(){ echo "sales <br>"; } public function continueToWork(){ $this->makeSalaPlan(); } } class Market extends Employee{ private function makeProductPrice(){ echo "...
true
d50f055a6939de4346fec9a80dc71dcaa1a551fc
PHP
albertocortesmartinez110/proyecto_tareas
/modelo/objeto_usuario.php
UTF-8
1,445
3.078125
3
[]
no_license
<?php class objeto_usuario{ private $nombres; private $apellidos; private $id_usuario; private $correo; private $contraseña; /** * @return mixed */ public function getContraseña() { return $this->contraseña; } /** * @param mixed $contraseña */ pu...
true
8302f476ad053bb2832618e3dab364d6612a97c0
PHP
Naki/pvpgn-plain-to-sql2-format-converter
/example/index.php
UTF-8
359
2.546875
3
[]
no_license
<?php // Load class require_once(dirname(__FILE__) . "/../pvpgn_plain_to_sql2.class.php"); // Options $options = array( 'convert_clans' => false, 'convert_teams' => false, 'pvpgn_absolute_path' => dirname(__FILE__) . "/server/" ); // Constructor $plain_to_sql2 = new pvpgn_plain_to_sql2($options); // Generate SQL ...
true
837ea047d6413927f70c29597d6a0b1c9d2d0916
PHP
LuisPuppi15/ot
/module__/Sistema/src/Sistema/Service/AutenticacionService.php
UTF-8
1,622
2.765625
3
[]
permissive
<?php namespace Sistema\Service; use Sistema\Entity\Perusuario; use Zend\Authentication\AuthenticationService as ZendAuthenticationService; class AutenticacionService extends ZendAuthenticationService { /** * This method makes sure that we always get a User-object * we can call methods on. In case of a non-auth...
true
ad009ba1813f8570df7e7ab9d2fdb14da2f2cd92
PHP
fallm09/ApiRest
/entities/Employer.php
UTF-8
4,126
2.65625
3
[]
no_license
<?php use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; /** * @ORM\entity @ORM\table(name="employer") **/ class Employer { /** @ORM\Id @ORM\Column(type="integer") @ORM\GeneratedValue **/ private $id; /** * @ORM\Column(type="string") */ p...
true
2d66566d4dca4566a46c2350dc8977cdcf85af28
PHP
foxcodenine/small-projects
/009_myAdmin/app/Model/Client.php
UTF-8
13,495
2.921875
3
[]
no_license
<?php namespace app\Model; use app\Model\Trait\TraitSearch; use app\Model\DBConnect; use Exception; use PDO; use PDOException; use JsonSerializable; class Client implements JsonSerializable { private $id; private $title; private $firstname; private $lastname; private $idCard; private $compa...
true
8f98dfb9749d0472f143746556385fca4538a3cb
PHP
KennethVDS/logs-php
/src/handler/Exceptionlog.php
UTF-8
922
3.140625
3
[]
no_license
<?php class FileExistException extends Exception { } class FileReadException extends Exception { } //catch nested to different $filename = 'D:Exception.txt'; try { try { $text = file_get_contents($filename); if ($text === false) { throw new Exception(); } } c...
true
9b46a8452db6802dbed2f30a4ecf80a4bff5b6c8
PHP
stardot/bbcmicro.co.uk
/web/admin_authors_details.php
UTF-8
3,119
2.765625
3
[]
no_license
<?php require('includes/admin_session.php'); require_once('includes/config.php'); require_once('includes/admin_db_open.php'); require_once('includes/admin_menu.php'); show_admin_menu(); $id=null; $msg=''; # GET params means want to edit a name ... if (isset($_GET['id']) && is_numeric($_GET['id'])) { $id=intval($_GE...
true
e2e104575f6d7d80fe64b3966c342c2b5f677f4d
PHP
ponchicken/lsphp
/lesson4/task3.php
UTF-8
477
3.953125
4
[]
no_license
<?php // #1 $numbers = []; for ($i=0; $i<50; $i++) { $numbers[] = mt_rand(1, 100); } // #2 $csv = fopen("numbers.csv", "w"); fputcsv($csv, $numbers); fclose($csv); // #3 $csv = fopen("numbers.csv", "r"); $array = fgetcsv($csv, 0 , ','); print_r($array); fclose($csv); $even = 0; echo "<hr>$even "; foreach ($ar...
true
3a967ada54c4f6ec341705ab2f62e60b2613fa36
PHP
Stolz/php-stubs
/res/php/bc/functions/bcadd.php
UTF-8
283
3.125
3
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
<?php /** * Add two arbitrary precision numbers * * @phpstub * * @param string $left_operand * @param string $right_operand * @param int $scale * * @return string The sum of the two operands, as a string. */ function bcadd($left_operand, $right_operand, $scale = NULL) { }
true
df7cacb63a5312e5e00c795ce866b49e495f8013
PHP
IshtiaqueNafis/PHP-REPO
/8.1_PHPDATABASE simple crud/readfromserver.php
UTF-8
534
2.78125
3
[]
no_license
<?php include ("db.php"); include ("INC/header.php"); ?> <div class="container text-center"> <?php while ($row = mysqli_fetch_row($result)) // used while loop to read the data from the table print_r($row) /* * Array ( [0] => 1 [1] => nafis [2] => Pokemon1234 ) Array ( [0] => 3 [1] => nafis [2...
true
a3e8af11d5bb2ed72946e12cbe771c794a5ff4fa
PHP
Poulpy/Web
/tp1_web/ex23display.php
UTF-8
1,114
3.1875
3
[]
no_license
<?php $file = "archive.csv"; if (file_exists($file)) { $pointeur=fopen($file,"r"); echo "<table border='1' cellpading='5'>"; echo "<tr><th>Taux</th><th>Capital</th><th>Nombre de Mois</th><th>Total</th></tr>"; $f = file($file); $c = count($f); if ($c > 5)// s'i...
true
08bf52221797a108d60b194e169129f9023e8bb8
PHP
123lens/postnl-rest-api-client
/src/Messages/Requests/NearestLocationsRequest.php
UTF-8
5,342
2.8125
3
[ "MIT" ]
permissive
<?php namespace Budgetlens\PostNLApi\Messages\Requests; /** * Nearest Locations Request * * ### Example * <code> * $request = $client->locations()->nearestLocations(); * $request->setCountryCode('NL') * $request->setPostalcode('1000AA') * $request->setDeliveryOptions(['PG']); * $respo...
true
8c1d64dfe7300c0e9a11ef5f06a14992fff62722
PHP
thl13-uakron/DBM-sp2020
/ezChat-test/PHP/getLastValidChannel.php
UTF-8
1,385
2.875
3
[]
no_license
<?php # This script finds and returns the ID of the last channel the user visited that # they still have access to, either within a specified room or across the whole site # initialize result array $ajaxResult = array(); # get connection to mysql database include "dbAccess.php"; $db = get_db_connection(); if ($db) {...
true
067d4a45e7d298f63ea02f9917fee5d8d603d56d
PHP
seniorhw/shopApi
/app/Http/Middleware/CheckPhoneCode.php
UTF-8
807
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; class CheckPhoneCode { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle(Request $request, Closure $n...
true
1530f2fdaa702b07cbec71967c122b68a03e666b
PHP
Elbullazul/school-manager
/Database/Managers/courses_registrations_manager.php
UTF-8
1,470
2.703125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: crime * Date: 2018-05-07 * Time: 14:25 */ namespace Database\Managers; use Objects\Factories\courses_registrations_factory; use Database\Repositories\courses_registrations_repository; class courses_registrations_manager extends manager { public function __construct()...
true
2073879da6c9feb3d7cf998c2d43ff0098739e6b
PHP
aluaargon/DWES
/funcionesArrays/sort2.php
UTF-8
1,980
3.8125
4
[]
no_license
<!DOCTYPE html> <html lang="es"> <head> <meta charset="utf-8"> <title>Arrays</title> <meta name="author" content="Aaron"> </head> <body> <?php $termperaturasMes = "30, 25, 27, 42, 26, 31, 35, 25, 24, 36, 26, 25, 37, 27, 34, 30, 25, 27, 42, 26, 31, 35, 25, 24...
true
9a69597af39156931eae6919ec44f63618b88427
PHP
ingenious-sides/blog2.0
/blog-ingenious_sides/admin/functions/settings.func.php
UTF-8
5,063
2.609375
3
[]
no_license
<?php function email_taken($email){ /*je cré une fionction pour vérifier si adresse email est prise */ global $db; /*connexion à la bdd*/ $e = ['email' => $email]; /*je créé un tablea $e qui va prendre le champs email*/ $sql = "SELECT * FROM admins WHERE email = :email"; /*reprend l'ensemble des champs...
true
954478322ffce4587c1f62b3aecf953f32361885
PHP
eliaslourenco/prova-clf
/app/Models/Customer.php
UTF-8
740
2.859375
3
[]
no_license
<?php namespace app\Models; class Customer implements Entity { public $id; public $entityName; public function __construct() { $this->id = '002'; $this->entityName = 'customer'; } function insert(array $row ){ $_SESSION['db'][$this->entityName][trim($row[1])] = $th...
true
a916b5fe9341a99c5ea325b2f3b85a64c09ad3fe
PHP
miculprogramator/mpfirewall
/firewall.php
UTF-8
7,790
3.03125
3
[]
no_license
<?php /** * @Package: Micul-Programator.ro firewall * @Author: Marian * @$Date: 06/08/2014 * @Contact: contact@micul-programator.ro * @$Rev: 1 */ class Firewall { private $_protection = array( '_ENTITIES' => FALSE, '_XSS' => FALSE, '_RFI' => FALSE, '_SQLI' => FALSE, ); private $_detection = a...
true
8d9b420309ce224fad406b26ee8ad30054e8d50b
PHP
wagnert/TechDivision_ServletContainer
/src/TechDivision/ServletContainer/Modules/DirectoryModule.php
UTF-8
5,540
2.671875
3
[]
no_license
<?php /** * TechDivision\ServletContainer\Modules\DirectoryModule * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * * PHP version 5 * * @category Appserver ...
true
7a4417e3a68ffa9667267bdff43f4d68b43c7251
PHP
bhushanmahangare/Leetcode
/PHP/0057_insert-intervals.php
UTF-8
2,268
3.296875
3
[ "MIT" ]
permissive
<?php /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= * 57. Insert Intervals * * Medium * * Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). * * You may assume that the intervals were initially sorted acc...
true
b43f13ec259d321aa7908c16f84f0696cbaf88ad
PHP
doganoo/PHPAlgorithms
/src/Datastructure/Various/Enum.php
UTF-8
2,961
3.5
4
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * MIT License * * Copyright (c) 2018 Dogan Ucar * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation t...
true
57487e27d4955fad8481d1d478ed7510fcc7de05
PHP
ngiramolaulia/itc240-2014
/in-class/litterbox-olympics/index.php
UTF-8
1,661
2.6875
3
[]
no_license
<!doctype html> <head> <title>Neko's Calorie Count</title> <style> a { padding:10px; } </style> </head> <html> <body> <!--<a href="?sort=activity"> Activity </a><a href="?sort=calories_burn">Calories Burned</a>--> </body> <html> <?php include ("password.php"); $mysql = new mysqli("localhost", "lngira01", $litterbox_p...
true
86b5736898239b86e4bb251ca4bb546642e3a7d1
PHP
agleevtimur/db-course
/prepared-statement/sql_generate.php
UTF-8
514
2.6875
3
[]
no_license
<?php $standard = "begin;\n"; $prepared = "begin;\nprepare my_ps (integer, varchar) as insert into prepared_statement.prepared values ($1, $2);\n"; for($i = 0; $i < 100; $i++) { $str = bin2hex(random_bytes(7)); $standard .= "insert into prepared_statement.standard values($i, '$str');\n"; $prepared .= "execute my_p...
true
c51c0b9167000facad8fccb75f021e68307583ff
PHP
DioBrandoPB/P4_Barbara_Paul
/src/controller/FrontController.php
UTF-8
1,353
2.6875
3
[]
no_license
<?php namespace App\src\controller; use App\src\DAO\ArticleDAO; use App\src\DAO\CommentDAO; use App\src\model\View; class FrontController { private $articleDAO; private $commentDAO; private $view; public function __construct() { $this->articleDAO = new ArticleDAO(); ...
true
44f2fbc2965ed1ecb0e31e51b4c56fa000d70e5c
PHP
Tiago-israel/ingressos.com
/database/seeds/RoleTableSeeder.php
UTF-8
530
2.640625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Model\Role; class RoleTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $roleAdmin = new Role(); $roleAdmin->name = "admin"; $roleAdmin->description = "administrado...
true
61ddc9121034bcaf0d74f5db65fc63389e2c0fd6
PHP
wpromaggie/epro_maggieyu
/api/www/protected/models/account_tasks/default_tasks.rs.php
UTF-8
1,275
2.515625
3
[]
no_license
<?php class mod_account_tasks_default_tasks extends mod_account_tasks_tasks { function __construct($layout_id=0) { $this->layout = new layouts(array('id' => $layout_id)); } function build() { //Select branch nodes $branch_info = db::select(" SELECT id, parent_id, child_order, type, text FROM ...
true
7a6263abc5d2e80cd28fb0d68a84e897440df906
PHP
d1am0nd/wp
/app/Console/Commands/CheckWikiaUrls.php
UTF-8
1,519
2.6875
3
[]
no_license
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use App\Repositories\Transformers\CardRepository; class CheckWikiaUrls extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'urls:wikia'; /** * The c...
true
2bf32ac26548f89b3c0254db0fe1c8d510ff0746
PHP
szymach/talesweaver
/src/Application/Query/Scene/ScenesPage.php
UTF-8
956
3.0625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Talesweaver\Application\Query\Scene; use Talesweaver\Domain\Book; use Talesweaver\Domain\Chapter; final class ScenesPage { /** * @var int */ private $page; /** * @var Book|null */ private $book; /** * @var Chapter|null */ ...
true
47d1c8e66a096564204787da282db80a7e6a2c16
PHP
rabdev89/expense-manager
/app/Components/Base/Repositories/BaseRepositoryInterface.php
UTF-8
654
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Components\Base\Repositories; use Illuminate\Database\Eloquent\Model; interface BaseRepositoryInterface { public function create(array $attributes); public function update(array $attributes) : bool; public function all($columns = array('*'), string $orderBy = 'id', string $sortBy = ...
true
a13ee3e98689bd52033f9b767fffc69b9e3c1ecb
PHP
riluo/yaf_company_job
/library/ZuoYeah/Entity/Company.php
UTF-8
1,051
2.671875
3
[]
no_license
<?php namespace ZuoYeah\Entity; use Gram\Domain\Entity\EntityBase; use Gram\Domain\Entity\EntityInterface; use Gram\Domain\Entity\LifeCycleInterface; use Gram\Domain\Entity\ValidatorInterface; use Respect\Validation\Validator as V; /** * Class Admin * @package ZuoYeah\Entity */ class Company extends EntityBase im...
true
d83ca6a16c6e0dc3129aa7af110ae1803ccdb686
PHP
mathiasjakobsen/jira-github-issues
/tests/JiraMarkdownTest.php
UTF-8
3,730
2.5625
3
[]
no_license
<?php require_once __DIR__ . '/../jira_markdown.php'; class JiraMarkdownTest extends \PHPUnit_Framework_TestCase { public function testParse() { $markdown = toMarkdown(<<<JIRA h1. Biggest heading h2. Bigger heading h1. Biggest heading h2. Bigger heading h3. Big heading h4. Normal heading h5. Small h...
true
44ef614d2f7aef52ebde4d3429be3f1ef626f9fe
PHP
robertpop/NS
/admin/pages/examples/list.php
UTF-8
781
2.578125
3
[]
no_license
<?php $todo = isset($_GET['todo']) ? $_GET['todo'] : null; switch ($todo){ case 'delete': $exampleCat = new ExampleCategories($_GET['id']); if ($exampleCat->id){ $players = ExamplePlayers::getAllFromCat($_GET['id']); foreach ($players as $player){ $player->delete(); } $ex...
true
e869bf479be5b04ca5d5f74cdc368125d79ed08a
PHP
deStrO/steam-condenser
/php/lib/steam/community/l4d/L4DMap.php
UTF-8
1,901
3.109375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * This code is free software; you can redistribute it and/or modify it under * the terms of the new BSD License. * * Copyright (c) 2009, Sebastian Staudt * * @author Sebastian Staudt * @license http://www.opensource.org/licenses/bsd-license.php New BSD License * @package Steam Condenser (PHP...
true
7bda631a94b15bba56605461b488da9b8340db0e
PHP
frankt117/angular-laravel-app
/app/controllers/UserPrivilegesController.php
UTF-8
2,015
2.6875
3
[]
no_license
<?php class UserPrivilegesController extends \BaseController { /** * Display all privileges. * * @return Response */ public function index($userId) { //$input = Input::all(); //$this->print_pre($input); $privileges = Privilege::where('user_id', $userId) ->get(); $privArr = [];...
true
d39eda431843949a8b738f3642f80d5c5a5ab5f7
PHP
arima-ryunosuke/php-functions
/src/Package/filesystem/file_suffix.php
UTF-8
1,200
3.140625
3
[]
no_license
<?php namespace ryunosuke\Functions\Package; // @codeCoverageIgnoreStart // @codeCoverageIgnoreEnd /** * ファイル名にサフィックスを付与する * * pathinfoに非準拠。例えば「filename.hoge.fuga」のような形式は「filename」が変換対象になる。 * * Example: * ```php * that(file_suffix('filename.ext', '-min'))->isSame('filename-min.ext'); * that(file_suffix('filen...
true
471b9f6e6cf03d04b21d3fb8a79fa84ee7a55044
PHP
icepoke/swooleyaf
/libs_frame/DB/Connectors/BaseConnect.php
UTF-8
1,028
3.078125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: 姜伟 * Date: 2021/2/23 0023 * Time: 14:15 */ namespace DB\Connectors; /** * Class BaseConnect * * @package DB\Connectors */ abstract class BaseConnect { /** * 数据库标识 * * @var string */ protected $dbTag = ''; /** * 数据库名称 * * ...
true
d2439a41c01b02d0a5ea90914b6f8b81a64fdd40
PHP
Gwestphal/aprovacao
/usuario/index.php
UTF-8
1,202
2.546875
3
[]
no_license
<?php include_once '../cabecalho.php'; include_once 'Usuario.php'; $usuario = new Usuario(); $aUsuario = $usuario->recuperarDados(); // print_r($aUsuario);die; ?> <h4 class="center">Usuários</h4> <table class="highlight centered"> <thead> <tr> <th>Ações</th> <th>Nome...
true
6fb55f5603f4d14bb2aced6b62f20a6d698baed7
PHP
aliel/PHP-Language-Detection
/src/koe/pld/NGramClassifier.php
UTF-8
2,383
3.21875
3
[]
no_license
<?php namespace koe\pld; class NGramClassifier extends Classifier { //Relative to the package's root const DB = 'etc/ngrams.json'; private $defaults = array( 'depth' => 1000, 'ngMin' => 1, 'ngMax' => 4, ); public function __construct($file = '', $defaults = array()) { parent::__construct($file ? : $th...
true
fe4556038464853abd4cf5f241f0cab88a866513
PHP
fstanchese/corporativo
/corporativo/model/AgendaAss.class.php
ISO-8859-1
1,534
2.578125
3
[]
no_license
<?php require_once ("../engine/Model.class.php"); class AgendaAss extends Model { //Mapeamento da tabela do Banco de Dados public $table = 'AgendaAss'; public $attribute = array(); public $calculate = array(); ...
true
0a41f897560d22b664eb074f4bbeb5a89890b018
PHP
wwb382899012/oil_new
/protected/ddd/domain/entity/value/Quantity.php
UTF-8
955
3.03125
3
[]
no_license
<?php /** * Created by youyi000. * DateTime: 2018/2/27 9:56 * Describe: */ namespace ddd\domain\entity\value; use ddd\Common\Domain\BaseValue; use ddd\Common\Domain\IValue; class Quantity extends BaseValue { /** * 数量 * @var float */ public $quantity; /** * 单位 * @var ...
true
2bc6d16ac9a3249d808e27421a42395b23793c39
PHP
Ehsanul6112/Summer_2020_Webtech
/Project_files/profile features/RegCheck.php
UTF-8
1,911
2.796875
3
[]
no_license
<?php if(isset($_POST['submit'])) { $userName = $_POST['userName']; $fullName = $_POST['fullName']; $gender = $_POST['gender']; $email = $_POST['email']; $pass = $_POST['pass']; $repass = $_POST['repass']; if($userName == "" || $fullName == "") { header('location: registrationForm.php?er...
true
f40ec477795855a78acf9828d256b534d0871ff2
PHP
gt90nh12/web-aprendizaje
/app/Http/Controllers/TecCadenaController.php
UTF-8
4,789
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator, Hash, Auth; use App\TecCadena; use App\Archivo; use Carbon\carbon; class TecCadenaController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Respo...
true
9a16923f0b75418f975f194ccd3c8428ddcff43a
PHP
alpakih/uin-project-v2
/database/seeds/UsersAccessSeeder.php
UTF-8
3,168
2.609375
3
[ "MIT" ]
permissive
<?php use App\Models\Menu; use App\Models\Role; use App\Models\RoleMenu; use App\Models\User; use Illuminate\Database\Seeder; class UsersAccessSeeder extends Seeder { public function __construct() { $this->roleModel = new Role; $this->roleMenuModel = new RoleMenu; $this->userModel = ne...
true
7d090b740ca2b028f091a6f0898d9f92a7345f44
PHP
VladimirKuzmin/php-nosqlite
/src/NoSQLite/Serializer/PHP.php
UTF-8
242
2.625
3
[]
no_license
<?php namespace NoSQLite\Serializer; class PHP extends AbstractSerializer { public function serialize($data) { return serialize($data); } public function unserialize($data) { return unserialize($data); } }
true
84ca428ca5dc6a2481252d2b12b82d2fb5e6f456
PHP
BacLuc/php_course
/01_First_Lecture/08_even_more_exercises.php
UTF-8
14,149
3.734375
4
[ "MIT" ]
permissive
<?php require_once '../includes/include.php'; $exerciceSheet = new ExerciceSheet("08", "More Exercises"); //----------------------------------------------------------------------------------------------------------------------------------- /* * BEGIN DESCRIPTION In this exercise sheet, we do everything we learned a...
true
d693314c47765cd26c4f8706101654cd685e7e47
PHP
hendrikmaus/spas
/src/Hook/HelloFailRequest.php
UTF-8
545
2.65625
3
[ "MIT" ]
permissive
<?php /** * How a hook can tag a request as failed */ namespace Hmaus\Spas\Hook; use Hmaus\Spas\Event\BeforeEach; class HelloFailRequest extends Hook { public function setup() { $this->dispatcher->addListener(BeforeEach::NAME, function(BeforeEach $event) { $this->onBeforeEach($event); ...
true
af8e08490565780f7783585d6f640d28b09741f1
PHP
ShivamMathwad/ReadWithMe
/public/admin_login.php
UTF-8
3,063
2.78125
3
[]
no_license
<?php include("./templates/header.php"); ?> <style> <?php include("./stylesheets/admin_login.css"); ?> </style> <nav class="navbar navbar-expand-lg navbar-light bg-light"> <div class="container"> <a class="navbar-brand" href="#">ReadWithMe</a> <div class="collapse navbar-collapse" id="navbarSu...
true
93a427360cde6d9aa9012213e60d60eb591ba5ed
PHP
lawrencegarcia/DarkBlackCapstone
/app/Http/Controllers/ExpenseController.php
UTF-8
9,449
2.640625
3
[]
no_license
<?php namespace App\Http\Controllers; use Carbon\Carbon; use Illuminate\Http\Request; use App\Expense; use App\ExpenseItem; use App\Sale; use Illuminate\Support\Facades\Auth; use DB; class ExpenseController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\...
true
16bd63f5c4c92d2c9d817162a79fd01bcb9084fb
PHP
vernayloic/sdk-php-shop
/src/Mirakl/MMP/FrontOperator/Request/Shop/Document/DeleteShopDocumentRequest.php
UTF-8
1,334
2.65625
3
[]
no_license
<?php namespace Mirakl\MMP\FrontOperator\Request\Shop\Document; use Mirakl\MMP\Common\Request\Shop\Document\AbstractDeleteShopDocumentRequest; /** * (S33) Delete document associated to a shop * * Example: * * <code> * * <?php * require 'vendor/autoload.php'; * * use Mirakl\MMP\FrontOperator\Client\FrontOper...
true
54f31a6d015c14508e125ab8f616e9dbb7781bbb
PHP
BenjaminDiaz/PHP-OOP-AJAX-Calculator
/CalculatorController.php
UTF-8
736
2.9375
3
[]
no_license
<?php /** * */ function my_autoloader($class) { include 'classes/' . $class . '.php'; } spl_autoload_register('my_autoloader'); $c = new Calculator(); $data = $_GET; if (isset($data['firstOperand']) && isset($data['secondOperand'])) { $operands = array($data['firstOperand'], $data['secondOperand']);...
true
c3d3b5c9ab3b7052c37e09055867bfa4d62b6aa0
PHP
orgabor/wordpress-plugin
/src/Query/QueryFactory.php
UTF-8
2,941
2.578125
3
[]
no_license
<?php namespace Justimmo\Wordpress\Query; use Justimmo\Api\JustimmoApi; use Justimmo\Api\JustimmoNullApi; use Justimmo\Cache\NullCache; use Justimmo\Model\EmployeeQuery; use Justimmo\Model\Mapper\V1\BasicDataMapper; use Justimmo\Model\Mapper\V1\EmployeeMapper; use Justimmo\Model\Mapper\V1\ProjectMapper; use Justimmo\...
true
d0328e230a2215edc6ea720833a72c1669de13cb
PHP
antonioheitor/projeto_final
/admin/scripts/sc_new_tribo_admin.php
UTF-8
6,599
2.75
3
[ "MIT" ]
permissive
<?php session_start(); if (isset($_SESSION["id"])) { $USER_ID = $_SESSION["id"]; } require_once "../connections/connection.php"; $target_dir = "../../uploads/"; $target_file = $target_dir . basename($_FILES["img_grupo"]["name"]); $uploadOk = 1; $imageFileType = strtolower(pathinfo($target_file, PATHINFO_EXTENSIO...
true
2e54f0b193e8b6f31a02aad63768de0ac94d065b
PHP
NawafCraft/WorldChat
/src/WorldChat/Main.php
UTF-8
486
2.59375
3
[]
no_license
<?php namespace WorldChat; class Main extends \pocketmine\plugin\PluginBase implements \pocketmine\event\Listener{ public function onEnable(){ $this->getServer()->getPluginManager()->registerEvents($this , $this); } public function onChat(\pocketmine\event\player\PlayerChatEvent $event){ $event->setCancel...
true
42bed3859370ec847b3305be79d6703255339878
PHP
fiestazzz/php.course
/USM(User-Managment_System)/versione_professore/src/entity/User.php
UTF-8
1,710
3.0625
3
[]
no_license
<?php namespace salvatorebotta\usm\entity; class User { private $userId; private $firstName; private $lastName; private $email; private $dataNascita; public function __construct($firstname , $lastname , $mail , $birthday) { $this->firstName=$firstname; $this->lastName=$lastn...
true
6628d9edde07ad5dccd80b5446001356eaf29447
PHP
avlisesolrac/PHP
/8.Operador-De-Atribuicao.php
UTF-8
399
4.03125
4
[]
no_license
<?php /*Operadores de Atribuição*/ #echo "<br>"; $a = 50; $b = 20; #$c = $a + $b; #$c = $a - $b; #$c = $a * $b; #$c = $a / $b; #print "$c"; /*Operadores de Atribuição, pode ser assim: */ #$a += $b; Soma #$a -= $b; Subtração #$a *= $b; Multiplicação #$a /= $b; Divisão #$a %= $b; Mod ou resto da divisão $a .= $b; # ...
true
8c266d77cbb89525430c7c646df1bdc3ab463b86
PHP
AmrMounirAbdelfattah/T-Express
/database/migrations/2020_01_27_113818_create_add_sub_categories_table.php
UTF-8
837
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateAddSubCategoriesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('add_su...
true
97ea628abf034b87b9f4cf5c5c44fdcb13ad535e
PHP
lozzd/PagerdutyPHP
/pagerduty.php
UTF-8
6,547
2.8125
3
[]
no_license
<?php # Feel free to tweak this to your preferred timezone or let your OS take care of it date_default_timezone_set('America/New_York'); include_once('timeago.php'); # The base URL... Everyone has their own subdomain, set yours here. $baseurl = "https://yourcompany.pagerduty.com/api/v1/"; # Define your teams list h...
true
fc392e1e67e8a3c30f153b5c6cc775789c7188b8
PHP
simao-coutinho/blog
/src/Components/BlogList.php
UTF-8
1,199
2.515625
3
[]
no_license
<?php namespace SimaoCoutinho\Blog\Components; use Illuminate\View\Component; use SimaoCoutinho\Blog\Models\Blog; use SimaoCoutinho\Blog\Models\BlogCategoryDescription; use SimaoCoutinho\Blog\Models\BlogCategoryRelationship; class BlogList extends Component { /** * Get the view / contents that represent the...
true
13c409072581ebca7e413c9527b1c4ba5cad4358
PHP
Juscostajr/mais-saude
/app/model/Tipo.php
UTF-8
1,047
2.703125
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace App\Model; /** * Description of Tipo * * @author usuario */ /** * @Entity * @Table(name="CLASSE") */ class T...
true
e7679726f1df7313fe7457529ec8485050cd09c3
PHP
hellojunlin/16you2
/16you2018-11-5/16you/common/models/Refund.php
UTF-8
1,787
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "{{%refund}}". * * @property integer $id * @property integer $uid * @property integer $Unique_ID * @property string $username * @property integer $refund_time * @property string $transaction_id * @property string $gamename * @p...
true
40fbe607058bbaefbaa5f2f3d63c704012ba6d95
PHP
VVIkon/prosto
/framework/OperController.php
UTF-8
1,600
2.546875
3
[ "MIT" ]
permissive
<?php namespace framework; use framework\Controller; use framework\FlyRoute; //require_once('FlyRoute.php'); class OperController extends Controller { /** сортировка * "id": [12,5,3,11,4,9,1,10,2,6,8,7] * @param $params * @return string */ public function actionSort($params) { ...
true
822d2c3e0794fdc53c71c922ca67fea7b196f8a3
PHP
fglueck/perf
/perf.php
UTF-8
602
3.125
3
[ "MIT" ]
permissive
<?php class perf { private $times = []; private $start = null; public function start() { $this->start = microtime(true); } public function stop(string $label) { $this->times[$label] = microtime(true) - $this->start; } public function report() { asort($this->times, S...
true
14f5256db56452216b55ee614f4af63b6bfd2c76
PHP
vherus/php-framework-decoupling-bootstrap
/src/app/Framework/Middleware/Stratigility/ErrorHandler.php
UTF-8
1,002
2.578125
3
[]
no_license
<?php namespace Vherus\Framework\Middleware\Stratigility; use Interop\Http\ServerMiddleware\DelegateInterface as IDelegate; use Interop\Http\ServerMiddleware\MiddlewareInterface; use Psr\Http\Message\ResponseInterface as IResponse; use Throwable; use Vherus\Framework\Middleware\Stratigility\Logging\ErrorLogger; use V...
true
3d2877679b92d1d856103dafacf1d190c3e42b8c
PHP
KKKARLOS/PHP
/AsesorCompras2/modelos/canuncio.php
UTF-8
8,586
2.859375
3
[]
no_license
<?php require_once("CBBDD.php"); class CAnuncio extends CBBDD{ // Definimos atributos //https://phpdelusions.net/pdo_examples/connect_to_mysql public $idanuncio; public $nombre; public $foto; public $precio_venta; public $urlportalventa; public $idsitioweb; public $email; public $precio_co...
true
7d7fe41adee79ec540933a781296040e0c0f601e
PHP
dropdevcoding/talk-adr
/demo-prototype-advanced/web/index.php
UTF-8
3,053
2.515625
3
[]
no_license
<?php require __DIR__ . '/../vendor/autoload.php'; use bitExpert\Adrenaline\Adrenaline; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ResponseInterface; use bitExpert\Adrenaline\Responder\JsonResponder; use bitExpert\Adroit\Responder\Resolver\ContainerResponderResolver; use bitExpert\Adrenaline...
true
36dfdecf217290434092d426ee72e32fa05306a5
PHP
brunocbatista/clean_architecture_labs
/lumen_test/adapter/Controller/Port/HttpResponse.php
UTF-8
221
2.5625
3
[ "MIT" ]
permissive
<?php namespace Adapter\Controller\Port; interface HttpResponse { public function sendOk(): object; public function sendData($responseData): object; public function sendError($code, $message): object; }
true
9b79b342dacf7d327021525f9c023e25224f08dd
PHP
maks1db/trainings
/server/Database/Db.php
UTF-8
1,916
2.984375
3
[]
no_license
<?php //Адрес сервера баз данных: 195.128.120.144 //База данных: maks1db_73017_3 //Логин: maks1db_73017_3 //Пароль: PDnE2XgSRm require_once "DbConnect.php"; class Db{ protected $pdo; public function __construct(){ $options = array( PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,...
true
26417555007b091c3eedcb2051b16a01e387bf62
PHP
casimiroarruda/curso-php-drc
/aulas/03-functions/exercicio_aula3.php
UTF-8
1,118
3.359375
3
[ "MIT" ]
permissive
<?php $arrozBase = 2.69; $feijaoBase = 7.68; $leiteBase = 1.99; const ORCAMENTO = 75; function listaDeCompras($arroz, $feijao, $leite) { $totalArroz = $arroz * 3; $totalFeijao = $feijao * 5; $totalLeite = $leite * 12; $total = $totalArroz + $totalFeijao + $totalLeite; return $total; } function est...
true