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
44ee376375806982d619691be8d98427fca7fd1b
PHP
MAMinhaz/portfolio
/app/Models/Blog.php
UTF-8
655
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use App\Models\Blog_category; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Database\Eloquent\Factories\HasFactory; class Blog extends Model { use HasFactory; use SoftDeletes; protected $fillable = [ "title", ...
true
28a24f2bbcf3754d6f8f8371c00c47a280958ac9
PHP
faraamcode/gallery_system
/test.php
UTF-8
781
2.59375
3
[]
no_license
<?php $dbuser="root"; $dbpass=""; $host="localhost"; $dbname = "srms"; $dbh = mysqli_connect($host, $dbuser, $dbpass, $dbname); class Check{ public function rediect($string){ if($string==='new'){ header("Location:class9.php"); } ...
true
e55de41a107d0e29fc8da465b05df65c4d0af993
PHP
interfaceuser/ortodont
/database/migrations/2018_12_11_144408_feedback.php
UTF-8
1,033
2.53125
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class Feedback extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('feedback', function (Blue...
true
9b8f039497c16b2f3ccf38b299ef42820ba9ceeb
PHP
irynaperesypko/lesson2
/index.php
UTF-8
1,770
3.390625
3
[]
no_license
<?php echo "Получить остаток деления 7 на 3=" . (7 % 3) . "<br/>"; echo "Получить целую часть сложения 7 и 7,15=" . (int)(7 + 7.15) . "<br/>"; echo "Получить корень из 25=" . sqrt(25) . "<br/>"; echo "<hr><br/><br/>"; $str = 'Десять негритят пошли купаться в море'; echo "Получить четвертое слово из фразы $str = "; $s...
true
5498e0052eeaf4d02b1170bc36678f4b9fffb524
PHP
pitch7900/BlindTest
/app/Database/Playlist.php
UTF-8
1,875
2.84375
3
[ "Apache-2.0" ]
permissive
<?php namespace App\Database; use Illuminate\Database\Eloquent\Model; use SimpleXMLElement; use App\Database\PlaylistTracks; /** * Class Track for Illuminate (DB) queries */ class Playlist extends AbstractModel { public $timestamps = true; protected $table = 'playlist'; protected $primaryKey = 'id'; ...
true
9fc6666bd00eefbe8e67a13edde01a013fdd99b1
PHP
p1r0/MuffinZ
/Bs/Auth/Adapter.php
UTF-8
1,148
2.765625
3
[]
no_license
<?php class Bs_Auth_Adapter implements Zend_Auth_Adapter_Interface { private $_username; private $_password; /** * Sets username and password for authentication * * @return void */ public function __construct($username, $password) { $this->_username = $username; $this->_pa...
true
e3ce1b49883d71ccb4f97fecda101b71854d4659
PHP
Dandywahyudin/pw2021_203040109
/PemrogramanWeb/pertemuan2/Pertemuan2.php
UTF-8
714
3.546875
4
[]
no_license
<!-- Penulisan php --> <html> <body> <?php echo"Hello world"; print"Sedang belajar PHP"; ?> </body> </html> <!-- standaroutput --> <html> <body> <title>contoh Echo dan Print</title> </head> <body> <?php echo "teks ini dengan perintah echo"; ?> <br /> <?ph...
true
b37c2c1f32bb1ddae073742b0a7bd3c4ea249198
PHP
braiba/livetextadventures
/_framework/objects/DBObject.php
UTF-8
20,298
3.125
3
[]
no_license
<?php /** * Class representing a record in the database. * @author Thomas * * @property int|string $id The unique identifier for this record. If the record has multiple fields in its primary key they will be hyphen-separated. */ abstract class DBObject implements ArrayAccess { const RES_FAILED = 0; ...
true
b5b0223893539a8ccc6d9d5947bf40cbcbd3cba2
PHP
jdoliveira579/projetobd
/torneio_to_database.php
UTF-8
5,549
2.828125
3
[]
no_license
<?php session_start(); /*if (!isset($_SESSION['logged'])) { header('Location: torneio.php'); exit(); }*/ if (isset($_SESSION['username'])) { $username = $_SESSION['username']; } else if(isset($_SESSION['user_username'])) { $username = ...
true
b1c2b5db5885680901d4fa75e3232c1da1db01a0
PHP
hjoruhjoru/lumen-graphql
/vendor/youshido/graphql/src/Parser/Ast/Interfaces/FieldInterface.php
UTF-8
692
2.515625
3
[ "MIT" ]
permissive
<?php /** * Date: 03.11.16 * * @author Portey Vasil <portey@gmail.com> */ namespace Youshido\GraphQL\Parser\Ast\Interfaces; use Youshido\GraphQL\Parser\Ast\Argument; interface FieldInterface extends LocatableInterface { /** * @return string */ public function getName(); /** * @retur...
true
df492c8ad4db03e7e6b7c6527c6482cb97bcfcc0
PHP
igorspl/tech-task
/app/src/AnimalServant.php
UTF-8
1,099
3.25
3
[ "MIT" ]
permissive
<?php /** * AnimalServant.php * * PHP version 7.0 * * AnimalServant class, provides treat method for Animal * * @author Igor S <igor.shp@i.ua> */ namespace App\Zoo; use App\Zoo\animals\Animal; /** * @class AnimalFactory */ class AnimalServant { /** * @var array */ private $abilityObjects...
true
482f4b2e13f56d5bd359fc3877fde326efd8a506
PHP
peareye/osc2017dynamic
/app/Models/ReviewMapper.php
UTF-8
1,887
2.859375
3
[]
no_license
<?php /** * Review Mapper */ namespace App\Models; class ReviewMapper extends DataMapperAbstract { protected $table = 'review'; protected $tableAlias = 'r'; protected $modifyColumns = array('title', 'content', 'content_html', 'who', 'review_date', 'approved', 'rating', 'email', 'token'); protected $d...
true
65d165edd8c34604909c325eea92d21c975e921e
PHP
jryanconklin/epicodus-php-playground
/test.php
UTF-8
551
3.984375
4
[]
no_license
<?php //Check Out Sleep $seconds = 3; while ($seconds > 0) { echo $seconds . " "; sleep(1); $seconds = $seconds - 1; } //Punctuation Stripper $whatToStrip = array("?","!",",",";"); $test = "Hi! Am I here?"; echo $test."\n\n"; echo str_replace($whatToStrip, "", $test); //Ping Pong Using Range foreach(ran...
true
79236dd1650f3dd236fa461de19f175ed53b3f94
PHP
AntonStoeckl/sf2bundlebuilder
/src/Mvs/SampleBundle/BizModel/Product.php
UTF-8
949
2.84375
3
[ "MIT" ]
permissive
<?php namespace Mvs\SampleBundle\BizModel; use Mvs\SampleBundle\Repository\ProductRepositoryInterface; class Product { /** @var \Mvs\SampleBundle\Repository\ProductRepository */ protected $productRepository; /** * The constructor. * * @param ProductRepositoryInterface $repository */ ...
true
8720db75bf423bd6e000fe864480bfbdaaf489af
PHP
onursimsek/php-redis
/src/Commands/Connections/ClientCaching.php
UTF-8
850
2.6875
3
[ "Unlicense" ]
permissive
<?php declare(strict_types=1); namespace PhpRedis\Commands\Connections; use PhpRedis\Commands\ArgumentativeCommand; use PhpRedis\Commands\Command; use PhpRedis\Commands\Normalizable; use PhpRedis\Traits\HasArguments; use PhpRedis\Traits\Stringify; use PhpRedis\Traits\ToArray; /** * Class ClientCaching * * @link ...
true
c272d7c03e9a70086b0b763865dead8c6f6bbe54
PHP
AnyaKotyuk/simtech
/ch1/getFormInfo.php
UTF-8
1,133
2.6875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Anya * Date: 15.03.2017 * Time: 21:19 **/ $first_name = trim($_REQUEST['first_name']); $last_name = trim($_REQUEST['last_name']); $email = trim($_REQUEST['email']); $facebook_url = str_replace('facebook.org', 'facebook.com', trim($_REQUEST['facebook_url'])); $twitter_id = t...
true
4d95045245cdec42cb22aa5e6636a99f619ad14b
PHP
madebykrol/iflvg
/yogi/framework/utils/Object.php
UTF-8
176
2.515625
3
[]
no_license
<?php namespace yogi\framework\utils; class Object { /** * @return \ReflectionClass; */ public function getClass() { return new ReflectionClass(get_class($this)); } }
true
180b042397fd12a29c970ebc88f4ceec9ed5ab3a
PHP
fastsitephp/fastsitephp
/website/app_data/sample-code/home-page-en-examples.php
UTF-8
163,820
2.953125
3
[ "MIT", "CC-BY-4.0" ]
permissive
<?php // This is a working route file with many examples that runs from [home-page-en.php] // When running from a local environment the URL of a route will look like this: // http://localhost:3000/FastSitePHP/website/app_data/sample-code/home-page-en.php/examples // This file is also used as the source of code for ...
true
febf9cf51de695a28b2bad8c31fb259ebe63c6e2
PHP
miscbits/spendtracker
/app/Http/Controllers/JWTAuthenticateController.php
UTF-8
1,642
2.71875
3
[]
no_license
<?php namespace App\Http\Controllers; use JWTAuth; use Illuminate\Http\Request; use Tymon\JWTAuth\Exceptions\JWTException; class JWTAuthenticateController extends Controller { /** * Get a validator for an incoming registration request. * * @param array $data * @return \Illuminate\Contracts...
true
3d4d259ae17888614c3e252a586456c31f9ba2bc
PHP
pkkann/framework
/draft3/app/modules/login/LoginModel.php
UTF-8
463
2.921875
3
[]
no_license
<?php class LoginModel extends BaseModel { public function findUser($username) { $sql = " SELECT `id`, `name`, `username`, `password` FROM `user` WHERE `username` = :username LIMIT 1 "; $stmt = $this->db->prepare($sql); $stmt->bindParam(":username", ...
true
ccd939e4753549eae81e63c75d7bd5eb104f53fc
PHP
phpinnacle/ensign
/src/Exception/InvalidYield.php
UTF-8
724
2.53125
3
[ "MIT" ]
permissive
<?php /** * This file is part of PHPinnacle/Ensign. * * (c) PHPinnacle Team <dev@phpinnacle.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types = 1); namespace PHPinnacle\Ensign\Exception; use Amp\Promise; ...
true
7e7193d83bdd293c7b6ff29c4ff7ad7115853a64
PHP
jon-ht/api-platform-cqrs-es
/src/Domain/User/Repository/GetUserCredentialsByEmailInterface.php
UTF-8
315
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Domain\User\Repository; use App\Domain\User\ValueObject\Email; interface GetUserCredentialsByEmailInterface { /** * @return array{0: \Ramsey\Uuid\UuidInterface, 1: string, 2: string} */ public function getCredentialsByEmail(Email $email): array; }
true
a77c58e983561d2db7411a70517cf7fd4ce1c09a
PHP
stayAmbition/coyote
/app/Http/Middleware/RedirectIfMoved.php
UTF-8
1,016
2.703125
3
[ "MIT" ]
permissive
<?php namespace Coyote\Http\Middleware; use Closure; use Coyote\Repositories\Contracts\ForumRepositoryInterface as Forum; use Illuminate\Http\Request; class RedirectIfMoved { /** * @var Forum */ private $forum; /** * @param Forum $forum */ public function __construct(Forum $forum...
true
5f90d921df05ef14586d36b293c00a494432803d
PHP
stvvt/ef
/core/Tree.class.php
UTF-8
4,518
2.546875
3
[]
no_license
<?php /** * Клас 'core_Tree' - Изглед за дърво * * * @category ef * @package core * @author Milen Georgiev <milen@download.bg> * @copyright 2006 - 2012 Experta OOD * @license GPL 3 * @since v 0.1 * @link */ class core_Tree extends core_BaseClass { /** * ...
true
0834c095ed585d9fd12528dd09c927148acb0180
PHP
whiterook6/check-in
/src/middleware/CatchValidationException.php
UTF-8
545
2.75
3
[]
no_license
<?php namespace Checkin\Middleware; use Closure; use Checkin\Exceptions\ValidationException; class CatchValidationException { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * * @return mixed */ public function handle($request, Closure $next)...
true
85dead1cdefd6a038bcbca22b45eb57afad82863
PHP
bouplusbou/42-ft_minishop
/inc/functions_user.php
UTF-8
7,404
3.109375
3
[]
no_license
<?php /* * * Check if a user exists in the database * * @param array $data The array with the unserialize data * @param string $mail Mail ot check * @param string $passwd if set it'll also check if the passwd is correct * @return bool * */ function check_user_existance($data, $mail, $passwd...
true
1eb27b83f9983e6a5c84043a3b346c520a7c02e5
PHP
octommerce/courier
/classes/CourierManager.php
UTF-8
1,754
2.828125
3
[]
no_license
<?php namespace Octommerce\Courier\Classes; use ApplicationException; use Http; class CourierManager { use \October\Rain\Support\Traits\Singleton; /** * @var array couriers */ protected $couriers = []; /** * Initialize this singleton. */ protected function init() { } ...
true
3dea5bd242bd1422cda32e9b77e15fc638e612c7
PHP
openactive/dataset-site-template-php
/src/TemplateRenderer.php
UTF-8
11,749
2.5625
3
[ "MIT" ]
permissive
<?php namespace OpenActive\DatasetSiteTemplate; use Mustache_Engine; use OpenActive\DatasetSiteTemplate\Meta; use OpenActive\Exceptions\InvalidArgumentException; use OpenActive\Helpers\JsonLd; use OpenActive\Helpers\Str; use OpenActive\Models\OA\BookingService; use OpenActive\Models\OA\DataDownload; use OpenActive\Mo...
true
60cde7f6e6de6faba60f09faac78b5927a418411
PHP
alexander-vit/it-univer
/zad3-backend.php
UTF-8
256
2.546875
3
[]
no_license
<?php $hip = isset($_POST["hip"])?(int)$_POST["hip"]:""; $smuz = isset($_POST["smuz"])?(int)$_POST["smuz"]:""; if (($hip>0)and($smuz>0)) { $drink = (int)($smuz/$hip); print ($drink); } else { print ("Некорректные данные"); } ?>
true
b59869033606832413ce4ecb6af4fe7848080354
PHP
ha7001/girlscouts
/cpt_submission.php
UTF-8
1,052
2.703125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: domoniquedixon * Date: 4/12/16 * Time: 12:23 AM */ require_once 'auth.php'; require_once 'db.php'; if ($_SERVER["REQUEST_METHOD"] == "POST") { global $db; $record = json_decode($_POST['record'], JSON_NUMERIC_CHECK); $user = $_SESSION['pid']; $stmt = $db...
true
7db3d10b0157efeb42362a1e91b884e1cc1ead00
PHP
yangzhiweiga/pageWeb
/obj/lib/Images/ImageThumb.php
UTF-8
6,151
2.953125
3
[ "MIT" ]
permissive
<?php namespace lib\Images; use Cross\Exception\CoreException; /** * @Auth: wonli <wonli@live.com> * Class ImageThumb */ class ImageThumb { /** * 剪切后图片宽度 * * @var int */ protected $width; /** * 剪切后图片高度 * * @var int */ protected $height; /** * 文件路径 ...
true
9baae2e6bc95e21f407dfc58263fa5ba7f18b696
PHP
Jhonatan-1504/brindando-ayuda-a-julio
/api/libs/model.php
UTF-8
3,132
3.21875
3
[]
no_license
<?php class Model { private $db, $array, $where, $table; function __construct($table) { $conexion = new Database(); $this->db = $conexion->connect(); $this->table = $table; } /*--------------------------------------------*/ /* HELPER */ /*--------------------------------------------*/ /*...
true
be78cac86f07d79f754ca94e1bfd868831de9988
PHP
mityay2004/delight-im-auth
/src/Auth.php
UTF-8
76,556
2.53125
3
[ "MIT" ]
permissive
<?php /* * PHP-Auth (https://github.com/delight-im/PHP-Auth) * Copyright (c) delight.im (https://www.delight.im/) * Licensed under the MIT License (https://opensource.org/licenses/MIT) */ //todo clear expired tokens from users_confirmation, users_remembered, users_reset, users_throttling namespace Delight\Auth; ...
true
fb9119380126ab03c0fa4f0e08e8ed1d30adadb8
PHP
coursera-ricardor/Nord62
/app/Http/Controllers/Access/userController.php
UTF-8
15,816
2.65625
3
[]
no_license
<?php namespace App\Http\Controllers\Access; use Illuminate\Http\Request; use App\Http\Controllers\Controller; // Example using Gate use Illuminate\Support\Facades\Gate; use App\User; use App\Profile; // @todo: Add the Spatie Package use Spatie\Permission\Models\Role; use Spatie\Permission\Models\Permission; /* ...
true
9939c5d2ed51f1b1c6b3ed589894ff631b5d3d65
PHP
alefesampaio502/food
/app/Libraries/Autenticacao.php
UTF-8
2,361
2.90625
3
[ "MIT" ]
permissive
<?php namespace App\Libraries; /* Essa classe cuida da parte da autenticação da aplicação *Descição */ /** * */ class Autenticacao { private $usuario; public function login(string $email, string $password){ $usuarioModel = new \App\Models\UsuarioModel(); $usuario = $usuarioModel->buscaUsuarioPorEmai...
true
4dc8763f3209be56f445bd860b7ebb2884345770
PHP
marykrisv/new-norm
/API SAMPLE/pharmtech/api/location/delete-location.php
UTF-8
1,667
2.703125
3
[]
no_license
<?php //Headers header('Access-Control-Allow-Origin: *'); header('Content-Type: application/json'); header('Access-Control-Allow-Methods: PUT'); header('Access-Control-Allow-Headers: Access-Control-Allow-Headers,Content-Type, Access-Control-Allow-Methods, Authorization, X-Requested-With'); include_once '../../config/D...
true
8ac71ecfb0d45beb7c1fb320144a736d79b9f612
PHP
jwsanchez/practicas
/modulo1/pages/coches.php
UTF-8
422
3.546875
4
[]
no_license
<?php class Coche{ public $modelo; public $color; public $precio; public function crearCoche(){ return "el modelo ".$this->modelo ." viene con el color ".$this->color." con un valor de ".$this->precio; } } $masda = new Coche(); $masda ->modelo = 'Masda 323'; ...
true
49f1f02c293bacd7e8eaacd7d307d51eaf8c160b
PHP
nayeonk/itp303-fall-2020-12pm
/lect16-php-mysqli/search_form.php
UTF-8
5,362
3.0625
3
[]
no_license
<?php // ----- STEP 1: Establish a DB connection $host = "303.itpwebdev.com"; $user = "nayeon_db_user"; $password = "uscItp2020!"; $db = "nayeon_song_db"; // Create an instance of mysqli class and pass in the credentials. // When an instance is created, it automatically attempts to connect to this database with the...
true
27fdc096624bb1659f55fcaa36113e1829190037
PHP
Cperbony/code-education-editora
/database/migrations/2017_11_08_023804_create_acl_data.php
UTF-8
1,062
2.546875
3
[ "MIT" ]
permissive
<?php use CodeEduUser\Models\Role; use CodeEduUser\Models\User; use Illuminate\Database\Migrations\Migration; class CreateAclData extends Migration { /** * Run the migrations. * * @return void */ public function up() { $roleAdmin = Role::create([ 'name' => config('c...
true
a5f6e3418fd3c9bc2f146ec2463223f08836d6ea
PHP
Chocobann986/umitest
/sys-temp/updates/appointment/classes/components/appointment/notifier.php
UTF-8
10,567
2.8125
3
[]
no_license
<?php use UmiCms\Service; /** Класс уведомлений */ class AppointmentNotifier { /** @var appointment $module */ public $module; /** * Отправляет почтовое уведомление о новом заказе менеджеру * @param AppointmentOrder $order заказ * @return array * @throws Exception */ public function sendNe...
true
dabc55a0d008aef6958a9bb75d01af2c2f8f9d08
PHP
andrewroth/c4c_intranet
/modules/site_NavBar/objects_da/NavBarLinksManager.php
UTF-8
6,974
2.875
3
[]
no_license
<?php /** * @package NavBar */ /** * class RowManager_NavBarLinksManager * <pre> * Manages the actual links on the NavBar. * </pre> * @author Johnny Hausman */ class RowManager_NavBarLinksManager extends RowManager { //CONSTANTS: /** The name of the DB Table this class manages. */ const DB_TABLE = 'na...
true
5de2e6e5ac78299ffdf912077aae85ec91386827
PHP
khandillu96/All-By-Dilshad-
/3-All In One By Dilshad/6-PHP/4-Loop/project/1-project simple/tp.php
UTF-8
225
3.15625
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <?php $rem; $rev=0; $a=153; $n=$a; while($n>=1) { $rem=$n%10; $rev=$rev+$rem*$rem*$rem; $n=$n/10; } echo $rev; ?> </body> </html>
true
f11fc5d8af19695771b512d9823558d98f18d202
PHP
acegiak/docstyle
/live.php
UTF-8
6,499
2.65625
3
[]
no_license
<?php include_once __DIR__ . '/vendor/autoload.php'; require_once('menu.php'); session_start(); use mikehaertl\wkhtmlto\Pdf; if(isset($_GET['id'])){ $fileId = $_GET['id']; $_SESSION['fileId'] = $fileId; }else if(isset($_SESSION['fileId'])){ header('Location: live.php?id='.$_SESSION['fileId']); }else{ echo '<div ...
true
d3644c86e5b08437031e8e91d86205ded6b1f422
PHP
ahmeda8/AttHackSep2012
/DriveDryWeb/php/lib/MySQL.php
UTF-8
3,076
2.90625
3
[]
no_license
<?php class MySQL { static private $db; static function connect($log='', $pass='', $dbhost='', $dbName=''){ if( is_null(self::$db) ){ self::$db = mysql_connect($dbhost, $log, $pass) or die(mysql_error() ); mysql_select_db($dbName, self::$db) or die(mysql_error() ); } return self::$db; ...
true
b1267b9194e547339c1d34ed500d6f50177967a8
PHP
tiagodevweb/lab-mailgun-zf3
/src/CodeEmailMKT/Domain/Service/AuthInterface.php
UTF-8
468
2.8125
3
[]
no_license
<?php namespace CodeEmailMKT\Domain\Service; use CodeEmailMKT\Domain\Entity\User; interface AuthInterface { /** * @param $email * @param $password * @return bool */ public function authenticate($email, $password): bool ; /** * @return bool */ public function isAuth(): ...
true
dcc643cdad66c50568e2c922aff9b3f4bcedf3b4
PHP
Ldnz/uno-game-on-symfony
/src/Domain/Fabric/PlayerFabric.php
UTF-8
1,332
3.03125
3
[]
no_license
<?php namespace App\Domain\Fabric; use App\Domain\Ai\AiInterface; use App\Domain\Entity\AiPlayer; use App\Domain\Entity\Pile; use App\Domain\Entity\Player; use App\Domain\Entity\RealPlayer; use App\Domain\Game; use App\Domain\PlayerInteraction\InteractionInterface; class PlayerFabric { /** * @param Pile $pi...
true
9c6a9ff57cd399f33fa5e7b508ab452c2ddace60
PHP
miqui1995/jonas
/radicacion/radicacion_salida/src-php/pdf.php
UTF-8
1,262
2.609375
3
[]
no_license
<?php // var_dump($_POST); require_once 'dompdf/lib/html5lib/Parser.php'; require_once 'dompdf/lib/php-font-lib/src/FontLib/Autoloader.php'; require_once 'dompdf/lib/php-svg-lib/src/autoload.php'; require_once 'dompdf/src/Autoloader.php'; // Recibe por POST el nombre del archivo temporal $nombre_archivo = $_POST['nomb...
true
81119fcde336f489963fc445e6353371c042ac99
PHP
KatoYuta298/HP
/preview.php
UTF-8
3,118
2.703125
3
[]
no_license
<html> <head> <meta name="viewport" content="width=320, height=480, initial-scale=1.0, minimum-scale=1.0, maximum-scale=2.0, user-scalable=yes" /> </head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>スケジュール帳</title> </head> <body> <h1>イベント希望状況</h1> <table border=1> <tr> <td>...
true
71c9cd6a5f21fa2fd1a7fe7a540e27b4d690bce0
PHP
KiranGopalakrishnan/Tripbuilder
/public/test.php
UTF-8
1,424
2.90625
3
[]
no_license
<?php ini_set("display_errors",1); //TODO: To be removed from the production build error_reporting(E_ALL); //TODO: To be removed from the production build require_once '../src/classes/class.database.php'; $lines = file("./airports.dat"); $rows = array(); $row_pivot = -1; $data=null; foreach ($lines as $line) { ...
true
ec1d08b97c7504f29d148f7fa5d5729e27557625
PHP
ultrapowerpie/payyop
/addUser.php
UTF-8
1,690
2.6875
3
[]
no_license
<html> <head> <title>Registering...</title> </head> <body> <?php //get variables $username = $_POST["username"]; $pass = $_POST["pass"]; $email = $_POST["email"]; //get variables from readDB.php include ("readUsers.php"); //add users now if ...
true
1ebb57feb87a57053392ce4d8fc761baf56fd0ec
PHP
BPMspaceUG/Object-Relationship-Manager
/bcknd/authenticate.php
UTF-8
1,191
2.75
3
[]
no_license
<?php // TODO read from database function getPasswordForUser($username) { $error = 0; $dbhandle = new SQLite3("./users.db"); $stm = "SELECT password from users where username = \"$username\""; $res = $dbhandle->query($stm); $e = $dbhandle->lastErrorMsg(); if (!$res) die("Cannot execute statemen $e t. ...
true
db06a3f4fd1dacf654279b539485824d7cf29804
PHP
KaRtON325/FunctionalTours
/app/Enums/AdminActions.php
UTF-8
418
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Enums; use BenSampo\Enum\Enum; /** * @method static static Help() * @method static static TourFind() * @method static static TourCreate() * @method static static HotelFind() * @method static static HotelCreate() */ final class AdminActions extends Enum { const Help = '0'; const Tour...
true
a0cd4e0b4ad52fd04e1f15854c113a1cdf375119
PHP
MarcoMaffei/cuz
/esercizi/spiegazione.php
UTF-8
726
3.109375
3
[]
no_license
<?php anno Di Nascita $anno_nascita = 1973; $anno_attuale = date ('Y'); se un termine è seguito da una parentesi tonda, è una funzione. quando vi è DATE, la funzione restituirà la data, che varia a seconda della modalità di scrittura. $eta = $anno attuale_attuale -$anno_nascita; echo $eta; array $person...
true
c9311d585d9873aa3ddfaf57370f31b9bf8783cd
PHP
josegacode/reviewsControl
/app/model/signUp.php
UTF-8
684
2.546875
3
[]
no_license
<?php include("connection.php"); if( isset($_POST['name']) && isset($_POST['email']) && isset($_POST['passCheck1']) ) { // Gets data from client request $userName = $_POST['name']; $email = $_POST['email']; $password = $_POST['passCheck1']; ...
true
f54536a23b81a6b05496f91b34b2ebf790f8ee48
PHP
newtron50/viva-visitor-volunteer-system
/includes/del_fam.php
UTF-8
1,163
2.71875
3
[ "MIT" ]
permissive
<?php include('../connect.php'); include('../functions/session.php'); include('../functions/header.php'); $fam_grp=$_GET['fam']; if ($_GET['d']=='y') { echo '<br><br><center><div style="width:80%"><br><br>'; $wipeout_family = "DELETE FROM people where family_grp= $fam_grp"; mysqli_query( $conn, $wipeout_family ); ech...
true
4cfd742fe8a23bc3c8097036f6483a3dbb471a02
PHP
fgbernardez/uphighsapiscebu
/application/models/SubjectModel.php
UTF-8
3,939
2.828125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php // 200 - Success // 201 - created // 203 - warning / exist // 204 - error class SubjectModel extends CI_Model{ private $response; public function checkSubjectExist( $data ){ $que_check = $this->db->where($data)->get("subjects"); return $que_check; } public functio...
true
bab8fef0a8bb8f8a792cef2f7d7ea4ffc5d4d508
PHP
carbontwelve/fediverse-poll-bot
/app/Emoji.php
UTF-8
1,168
2.65625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace App; use Eloquent; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Relations\HasMany; /** * App\Emoji * * @property int $local_id * @property int $server_id * @property string $shortcode * @property string $url * @property ...
true
613f7ca666b049c170240dae91f54d99fe5c73e1
PHP
hello-omny/yii2-payment-component
/src/models/Transaction.php
UTF-8
859
2.640625
3
[]
no_license
<?php namespace omny\yii2\payment\component\models; use omny\yii2\payment\component\base\BaseModel; /** * Class Transaction * @package omny\yii2\payment\component\models * * @property float $value * @property int $target_id * @property int $type * @property int $user_id * @property string $created_at */ cla...
true
badc018ce3695fa700e60da948f3f2b36d90802a
PHP
fauzanhabib/liveb2i
/live/application/models/class_member_model.php
UTF-8
9,925
2.59375
3
[ "MIT" ]
permissive
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /** * Class user_role_model * @author Apriwin Pangaribuan <apriwin@pistarlabs.com> * @author Jogi Silalahi <jogi@pistarlabs.com> */ class class_member_model extends MY_Model { // Table name in database var $table = 'cl...
true
1f31029bbb3f9ebb6b1b4b289df936837bf6943d
PHP
anniest1106/CISC332-Database-Project
/php/createTable.php
UTF-8
10,249
2.515625
3
[]
no_license
<html> <head><title>Load Car Share Database</title></head> <body> <?php /* Program: createTable.php * Desc: Creates and loads the car share database tables * with sample data. */ $host = "localhost"; $user = "anniest1106"; $password = "Smpss8406"; $database = "carshare"; $cxn = mysqli_connect($h...
true
bf0e27320f52e92b963f5857561182260263a49c
PHP
masturiano/Web_Service
/function.php
UTF-8
670
2.78125
3
[]
no_license
<?php function get_price($find) { $books = array( "java" => 299, "c" => 348, "php" => 267 ); foreach($books as $book=>$price) { if($book == $find) { return $price; break; } ...
true
40a9e8c7a91f61cf6d9e8dfddd03ebbac3d94976
PHP
alprk/Shinigami
/src/Entity/Score.php
UTF-8
1,310
2.78125
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\ScoreRepository") */ class Score { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="datetime") */ ...
true
91e2e8a92ff2aa0d902d64cde9a87142d958f153
PHP
Delabarrejulien/PHPP1
/partie4/exo4p4.php
UTF-8
688
3.703125
4
[]
no_license
<?php $a = 1; $b = 4; function test ($a,$b) { if ($a > $b) { $response = 'Le premier nombre est plus grand.'; } else if ($a < $b) { $response = 'Le premier nombre est plus petit.'; } else { $response = 'Les deux nombres sont identiques.' ; ...
true
92632557ccbf17a9cb670487b3615b17af400659
PHP
SiggiBuss/user2
/protected/modules/usr/components/Diceware.php
UTF-8
6,071
3.296875
3
[ "MIT" ]
permissive
<?php /** * @author Jan Was <jwas@nets.com.pl> * @link https://github.com/nineinchnick/diceware */ class Diceware { private $rolls; private $char_table, $special_table, $pos_table; private $word_list; private $char_str = '[["~","&","+",":","?","4"],["!","*","[",";","/","5"],["#","(","]","\"","0","6"],["$",...
true
c7cb3963ffc52a6df123f3cc0350fe07c3cd7c6e
PHP
cdpop/PHP
/introduction/word_censoring/index.php
UTF-8
543
2.96875
3
[]
no_license
<?php $find = array('alex','billy','dale'); $replace = array('a**x','b**x','d**e'); if (isset($_POST['user_input']) && !empty($_POST['user_input'])) { $user_input = $_POST['user_input']; echo $user_input_new = str_ireplace($find,$replace,$user_input); } ?> <hr> <form action = "index.php" method = "POST"> ...
true
2923ac422b392d0b06f09727ddb7fa6e60155486
PHP
pangongzi/video-tools
/src/Tools/XiGua.php
UTF-8
1,036
2.921875
3
[ "MIT" ]
permissive
<?php declare (strict_types=1); namespace Smalls\VideoTools\Tools; use Smalls\VideoTools\Exception\ErrorVideoException; use Smalls\VideoTools\Interfaces\IVideo; /** * Created By 1 * Author:smalls * Email:smalls0098@gmail.com * Date:2020/4/27 - 14:32 **/ class XiGua extends TouTiao implements IVideo { /** ...
true
b48a3d2b42708d83721bdc03cdabb5fd53993add
PHP
eclipxe13/generic-collections
/src/GenericCollections/Abstracts/AbstractMap.php
UTF-8
4,212
2.9375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace GenericCollections\Abstracts; use GenericCollections\Collection; use GenericCollections\Exceptions\ContainerNotUniqueMemberException; use GenericCollections\Exceptions\InvalidDefaultValueTypeException; use GenericCollections\Exceptions\InvalidKeyTypeException; use GenericCollections\Exceptions\InvalidV...
true
5ec6f19d11e176dee211e2a6e00e17cf22d49d81
PHP
MichaelHoughton/Validation
/Model/Behavior/ValidateBehavior.php
UTF-8
1,043
3.125
3
[ "MIT" ]
permissive
<?php class ValidateBehavior extends ModelBehavior { /** * Checks the value from the field, and another field value to ensure the values match * Returns true if match, false otherwise * * TO-DO - Allow fields outside the model to be checked, e.g. OtherModel.field * * @param object $Model * @param array $data ...
true
9298ea580223469d019226bd726a0b7845073621
PHP
dingo826/yuandax
/Application/Lib/Model/BasicInfoModel.class.php
UTF-8
3,135
2.625
3
[]
no_license
<?php /** * 基本信息 model * 2016/3/31 */ class BasicInfoModel extends Model { private $_model; public function __construct() { parent::__construct(); $this->_model = M('app_basicinfo'); } /** * 获取基本信息 * * @param int 社区id * @return array */ public function getBasicInfo($wid, $field='*') { $res =...
true
7e18a0458825adee167cc2a19d6cfa6f65c904b5
PHP
Gelonerr/PHP_Registration_Form
/html/index.php
UTF-8
3,025
2.625
3
[]
no_license
<?php //connection define('DB_SERVER', 'localhost'); define('DB_USERNAME', 'root'); define('DB_PASSWORD', ''); define('DB_NAME', 'db'); /* Attempt to connect to MySQL database */ $conn = mysqli_connect(DB_SERVER,DB_USERNAME,DB_PASSWORD,DB_NAME); // Check connection if($conn === false){ die("ERROR: C...
true
8eed2a2a25575e3c56e5f4449f2ff688ed087ffa
PHP
tqwhite/Good-Earth
/library/GE/Entity/Account.php
UTF-8
2,215
2.578125
3
[]
no_license
<?php namespace GE\Entity; /** * * @Entity * @Table(name="accounts") * @author tqii * * **/ class Account /*extends Base*/{ const tableName='accounts'; /** * @var string $id * @column(name="refId", type="string", length=36, nullable=false, unique="true") * @Id **/ private $refId; /** ...
true
4a6da13f76722d10e96b7238e7b6b9cf41d55a02
PHP
webivan1/TestWork11072021
/backend/src/Model/Quote/Test/Entities/Values/TaskTest.php
UTF-8
820
2.53125
3
[]
no_license
<?php declare(strict_types=1); namespace App\Model\Quote\Test\Entities\Values; use App\Model\Quote\Entities\Values\Task; use PHPUnit\Framework\TestCase; use Webmozart\Assert\InvalidArgumentException; class TaskTest extends TestCase { public function testString(): void { $value = new Task($param = 'T...
true
f85caca106f8d02180a5bdb1eb4a048a194884f4
PHP
infusephp/facebook
/src/migrations/20140826105659_facebook_profile.php
UTF-8
1,700
2.671875
3
[ "MIT" ]
permissive
<?php use Phinx\Migration\AbstractMigration; class FacebookProfile extends AbstractMigration { /** * Change Method. */ public function change() { if (!$this->hasTable('FacebookProfiles')) { $table = $this->table('FacebookProfiles', [ 'id' => false ]); $table->addC...
true
8d6ade82d67a467f9229c890ffac3f533195d863
PHP
pCyril/vidlis
/backend/src/AppBundle/Entity/AbstractQuery.php
UTF-8
3,116
2.59375
3
[]
no_license
<?php namespace AppBundle\Entity; use Doctrine\ORM\EntityManager; use Doctrine\ORM\NoResultException; abstract class AbstractQuery extends AbstractCache { protected $queryBuilder; private $cacheResults = false; private $lifetime = 84600; private $em; protected function __construct(EntityManag...
true
d8481224b92627435529bd50fed608b53cfead75
PHP
srgysid/frozenlab-hack112020
/web/common/helpers/MailHelper.php
UTF-8
837
2.546875
3
[]
no_license
<?php namespace common\helpers; use Yii; class MailHelper { public static function notificationUser($model, $user) { if (isset($user)) { $to = []; $to[$user['email']] = $user->fullName; self::sendNotification($model, 'ppu_notification.php', 'Вид поручения '.$model-...
true
ece60bc0a37c668da09b09c3cfa966eb6451dfc7
PHP
TriskyJR/ProjetQuizz
/BookDaBook/src/DataFixtures/BookFixtures.php
UTF-8
1,656
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\DataFixtures; use App\Entity\Book; use App\Entity\User; use App\Entity\Category; use App\Repository\BookRepository; use App\Repository\UserRepository; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Common\Persistence\ObjectManager; class BookFixtures extends Fixture { public functio...
true
58ae7a4a6ada86b771f3c0928da37ca1de5f7063
PHP
Svarog83/svassets
/src/SVApp/Repositories/Ticker.php
UTF-8
525
2.78125
3
[ "MIT" ]
permissive
<?php namespace SVApp\Repositories; use Silex\Application; use SVApp\Classes\Repository; class Ticker extends Repository { public function __construct(Application $app) { parent::__construct($app, 'SVApp\Entities\Ticker'); } /** * @param $id * @param bool $cacheAllowed * @return \SVApp\Entities\Tic...
true
e0246077a824b920e9cd5368ac3e529c3d9b8340
PHP
AngelGrigorov/PHP-Fundamentals-Softuni
/Fundamental Tasks/forceBook.php
UTF-8
1,591
3.1875
3
[]
no_license
<?php $input = readline(); $allSides = []; while ($input != "Lumpawaroo") { if (strstr($input, '|')) { list($side,$user) = explode(" | ", $input); if (!key_exists($user,$allSides)) { $allSides[$side] = []; } $exist = false; foreach($allSides as $usersArray){ ...
true
36031665d3a346a2e68a8ea9dce8111468387cbe
PHP
a-pradhan/auction_site
/src/public/timing.php
UTF-8
6,033
2.859375
3
[]
no_license
<?php require_once("../includes/db_connection.php") ?> <?php require_once("../includes/auction_functions.php") ?> <?php //validating live auctions $live_auctions = find_all_live_auctions(); while ($auction = mysqli_fetch_assoc($live_auctions)) { //Format to be used in the actual auctionStart and auct...
true
8d73d8b68eb9a9c0380c52fe0842668aeadf0dd1
PHP
mradhi/desksheet-beta
/src/System/Manager/ResourceManager.php
UTF-8
1,228
2.625
3
[]
no_license
<?php /* * This file is part of the Desksheet project. * * (c) Mohamed Radhi GUENNICHI <hello@guennichi.com> (https://www.guennichi.com) * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Desksheet\System\Manager; use Desk...
true
22a1445785c3647b3597878dc538ddbcb4e82590
PHP
AxlAdilla/Simpin
/Simpin/Infrastructure/Repository/Akun/UpdateEloquentRepository.php
UTF-8
508
2.53125
3
[ "MIT" ]
permissive
<?php namespace Simpin\Infrastructure\Repository\Akun; use App\User; use Simpin\Domain\Repository\Akun\UpdateRepository; use Illuminate\Support\Facades\Hash; class UpdateEloquentRepository implements UpdateRepository { public function update($request,$id){ $user = User::findOrFail($id); $user->us...
true
bc0703bc1bff3c788108184203fa428267ba4111
PHP
HLFer/controle-gastos
/app/Http/Controllers/RoutesController.php
UTF-8
2,556
2.765625
3
[ "MIT" ]
permissive
<?php namespace finance\Http\Controllers; use finance\Http\Requests\Route\CreateRouteRequest; use finance\Http\Requests\Route\UpdateRouteRequest; use finance\Repositories\RouteRepository; use Illuminate\Support\Facades\Session; class RoutesController extends Controller { /** * @var RouteRepository */ ...
true
ed72aa378d368ffb19a04f3043d73a26907d0337
PHP
kysela-petr/generator-kysela
/generators/app/templates/app/Admin/utils/OptionFactory/SectionOptionFactory.php
UTF-8
1,084
2.578125
3
[]
no_license
<?php namespace Admin; use Model\ModuleConst; use Model\ModuleFilter; use Model\SectionFacade; use Nette\Database\Table\Selection; use Nette\Object; /** * @author Petr Hlavac */ class SectionOptionFactory extends Object { /** @var SectionFacade */ protected $sectionFacade; /** @var ModuleFilter */ private $m...
true
f43729edb1e2b5be193ad5a73e8a1fcebe0f5c99
PHP
everaldofilho/graphql-laravel
/app/GraphQL/Queries/PostQuery.php
UTF-8
929
2.578125
3
[]
no_license
<?php declare(strict_types=1); namespace App\GraphQL\Queries; use App\Posts; use Closure; use GraphQL\Type\Definition\Type; use GraphQL\Type\Definition\ResolveInfo; use GraphQL; use Rebing\GraphQL\Support\SelectFields; use Rebing\GraphQL\Support\Query; class PostQuery extends Query { protected $attributes = [ ...
true
b81a91190f2d5f13b0b424e2f99c85fd6016600d
PHP
suhe/bdoleave
/models/Timesheet.php
UTF-8
2,188
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use yii; class Timesheet extends \yii\db\ActiveRecord { public static function tableName(){ return 'timesheet'; } public function saveTimesheet($timesheet,$statusID){ $model = new Timesheet(); $model->timesheet_status_id = $statusID;...
true
9e9235deabb0a1eada0d4b6420679753552d6723
PHP
viltit/M151
/includes/inventoryOverview.php
UTF-8
6,267
2.734375
3
[]
no_license
<?php /* Display inventory and add possibility to tranfer items to the game code has many similiarities to marketplace.php, however, it is not the same */ ini_set("display_errors", 1); if (session_status() != PHP_SESSION_ACTIVE) { session_start(); } //this is a sensible area (...
true
ba4d2f5a86271b79cd423f9d3d820c0e2c057bf2
PHP
IcyApril/object-orientedphp-book-code
/5/Observer/Feed.php
UTF-8
969
2.953125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: junade * Date: 19/03/2017 * Time: 18:39 */ class Feed implements SplSubject { private $name; private $observers = array(); private $content; public function __construct($name) { $this->name = $name; } public function attach(SplObserver...
true
91a16864d4716c86c834de3f2f44b450898d5eb2
PHP
PrimeKoboDevlopement/php-css-parser-analyser
/src/Models/CssAnalyzer/CssKeyframesAnalyzer.php
UTF-8
1,350
2.84375
3
[]
no_license
<?php namespace Wallace\Models\CssAnalyzer; class CssKeyframesAnalyzer implements CssAnalyzerInterface { private $keyframes; public function __construct(array $keyframes) { $this->keyframes = $keyframes; } public function getTotalKeyframes() { return count($this->keyframes); ...
true
f4460ccd2edfa712f6df143acb12b3159f06ff00
PHP
dlds/yii2-thepay
/src/api/TpPayment.php
UTF-8
11,667
2.78125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace dlds\thepay\api; use dlds\thepay\api\exceptions\TpInvalidParameterException; /** * Class representing one payment instance. */ class TpPayment { /** * Config containing merchant-specific configuration options. * Instance of TpMerchantConfig, passed to the TpPayment constructor. * ...
true
65a67d4960474e24372c1c9bdc6b061a80e08fcb
PHP
tmdgns110/signproject
/include/function2.php
UTF-8
2,291
2.96875
3
[]
no_license
<?php /* function2.php defines some functions that only used at web.. */ function isNewestItem($date) { $newestDate = date("Y-m-d", strtotime("-7 day")); if($date>$newestDate) // the parameter named date are newer than newestData, return true; else false; } function postImg() { print("<img src='../w...
true
a05f39e1ad515bae352d30e6b44cbf74acdf762c
PHP
jmalo34/AnagramAgain
/src/Anagram.php
UTF-8
1,403
3.546875
4
[ "MIT" ]
permissive
<?php class Anagram { private $a_word; function __construct($a_word) { $this->a_word = $a_word; } function setAword($new_a_word) { $this->a_word = $new_a_word; } function getAword() { return $this->a_w...
true
0832fcd12ebe50bfd18982b2dee96b1ce5e39424
PHP
surevine/elgg-polls
/source/mod/polls/views/default/forms/polls/edit.php
UTF-8
4,408
2.546875
3
[]
no_license
<?php /** * Polls - a polling module for Elgg * * @package polls * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 * @author Surevine Limited <elgg@surevine.com> * @copyright Surevine Limited 2010 * @link http://www.surevine.com/ */ function draw_input_box($interna...
true
0932a8c57261c89c2c45141da5a234fb3ccf241a
PHP
JonathanLebourg/clairiere
/models/connectBDD.php
UTF-8
1,215
3.28125
3
[]
no_license
<?php //on crée la classe BDD qui nous permettra de se connecter à la base données class BDD { //On crée l'attribut $BDD quo'on definit comme public pour le rendre disponible à ses enfants (les tables) public $BDD; //On crée la méthode magique __construct pour se connecter à la base de données mySQL public function...
true
98d878a4505160605901489817904bf7f06646eb
PHP
freepius/php-richtext
/src/Twig/Extension/RichtextTwigExtension.php
UTF-8
850
2.53125
3
[ "CC0-1.0" ]
permissive
<?php namespace Freepius\Twig\Extension; use Freepius\RichtextInterface; class RichtextTwigExtension extends \Twig_Extension { protected $richtext; public function __construct(RichtextInterface $richtext) { $this->richtext = $richtext; } /** * {@inheritdoc} */ public funct...
true
6614b01888bccf7b2272d998665f042a0a029d19
PHP
ojullien/Galleria
/src/library/Common/Filter/CFilters.php
UTF-8
6,031
2.9375
3
[ "MIT" ]
permissive
<?php namespace Common\Filter; /** * Filters * * This file contains a class which provides a set of commonly needed * filters. * * @package Common\Filter */ if( !defined('APPLICATION_VERSION') ) die('-1'); /** * This class provides a set of commonly needed filters. */ final class CFilters { /** Publi...
true
96182ad889c0ac3f72e040f3a0d08c7575bb9444
PHP
MosaicPHP/Mosaic
/src/Exceptions/Runner.php
UTF-8
3,324
2.84375
3
[ "MIT" ]
permissive
<?php namespace Mosaic\Exceptions; use ErrorException; use Mosaic\Contracts\Application; use Mosaic\Contracts\Exceptions\ExceptionRunner; use Mosaic\Contracts\Http\Emitter; use Mosaic\Contracts\Http\ResponseFactory; use Mosaic\Exceptions\Formatters\HtmlFormatter; use Throwable; class Runner implements ExceptionRunne...
true
2d327c7e64ac8829b18cb6caba94f1fe0b03acad
PHP
laisz/mvc-php-blog
/app/views/test.php
UTF-8
1,838
2.9375
3
[]
no_license
<?php $dsn = "mysql:dbname=db_mvc_pat; host=localhost"; $user = "root"; $pass = ""; $mydb = new Database( $dsn, $user, $pass ); $id = 1; $table = "tbl_category"; $data = array( "name" => "Education", "title" => "Education" ); $cond = "WHERE id = {$id}"; // if( $mydb->u...
true
82f0f5d639f19ba7ee015482037ce4003dd186de
PHP
Cristian1001001/BazeDeDate
/class/Product.php
UTF-8
2,143
2.953125
3
[]
no_license
<?php class Product { private $db; public function __construct(){ $this->db = new Database(); } // PRODUCTS public function getProduct($id){ $this->db->query('select * from products where ProductID=:id'); $this->db->bind('id',$id); return $this->db->single(); } ...
true
2c56ee1238d429a8b6bcb7bee90c6640651536f1
PHP
vuchkov/quantum-php-project
/modules/Api/Middlewares/Forget.php
UTF-8
1,723
2.546875
3
[ "MIT" ]
permissive
<?php namespace Modules\Api\Middlewares; use Quantum\Libraries\Validation\Validation; use Quantum\Exceptions\ExceptionMessages; use Quantum\Middleware\Qt_Middleware; use Quantum\Http\Response; use Quantum\Loader\Loader; use Quantum\Http\Request; class Forget extends Qt_Middleware { private $ruels = [ 'e...
true
c8ee3bb11fc167ed373c900720b8ee3ce604023b
PHP
falcon758/lavaliteposts
/src/Notifications/PostWorkflow.php
UTF-8
7,570
2.65625
3
[ "MIT" ]
permissive
<?php namespace Postbuffer\Channels\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Postbuffer\Channels\Models\Post as PostModel; class PostWorkflow extends Notification implemen...
true