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
ccb8bf4021e3931936e9564f3b86db06ea5fecce
PHP
dark0fire/class
/app/DataTables/xpsFoldsheetDataTable.php
UTF-8
2,509
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\DataTables; use App\Models\xpsFoldsheet; use Yajra\Datatables\Datatables; use Illuminate\Contracts\View\Factory; class xpsFoldsheetDataTable extends baseDataTable { /** * Get the query object to be processed by dataTables. * * @return \Illuminate\Database\Eloquent\Builder|\Ill...
true
af31cfb5032b1b4b384819277f17788be308016a
PHP
lixing1359199697/swoft
/app/WebSocket/WssModule.php
UTF-8
1,403
2.578125
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
<?php declare(strict_types=1); /** * Created by PhpStorm. * User: Administrator * Date: 2019/8/21 0021 * Time: 13:44 */ namespace App\WebSocket; use Swoft\Http\Message\Request; use Swoft\Http\Message\Response; use Swoole\WebSocket\Frame; use Swoole\WebSocket\Server; use Swoft\WebSocket\Server\Annotation\Mapping\...
true
1a79dcc4abfb1686d97a45c62e305f0c3c1b0d67
PHP
mikeshiyan/process-builder
/src/ProcessBuilder.php
UTF-8
448
2.765625
3
[ "MIT" ]
permissive
<?php namespace Shiyan\ProcessBuilder; /** * Process builder for arbitrary applications. */ class ProcessBuilder extends BaseProcessBuilder { /** * ProcessBuilder constructor. * * @param string $app * Application name. * @param string|null $cwd * Working directory to use by process. */ ...
true
f4d76b53d942555d4e86c0ff78cd90e33af23173
PHP
nipuns11/Online-Course-learning-database
/includes/viewSection.php
UTF-8
3,733
2.734375
3
[]
no_license
<?php require("common.php"); // SQL statement to view all from course $q = $_GET["q"]; // SQL statement to view all from course $query = " SELECT * FROM section WHERE course_code='".$q."' "; try { // tries to execute the query against the database $stmt ...
true
18abc5a3c76dd0bce6c2326985a5f2a7c4fef2a0
PHP
kushal369/E-commerce-site
/app/models/usermodel.php
UTF-8
1,684
2.78125
3
[]
no_license
<?php class UserModel extends Model { // public function __construct() // { // parent::__construct(); // } // public function hello() // { // $this->hello(); // } public function updatePassword($user_id, $password) { $sql = "UPDATE user SET password='{$password}' WHERE user_id='{$...
true
5c30d198bf5b08339eaebc113275443f97a28096
PHP
ControlledChaos/upfront
/library/class_ufront_ufc.php
UTF-8
3,430
2.953125
3
[]
no_license
<?php require_once "class_upfront_ufc_utils.php"; class Upfront_UFC { /** * @var array Theme colors */ private static $_theme_colors; /** * @var string color in hex/rgb/rgba */ private static $_color; /** * @var string ufc */ private static $_ufc; private static $_theme_color_count; /** * ...
true
0437fd3eb949fc7d1e29e8666f90e71855e61907
PHP
f/pinata
/lib/pinata.php
UTF-8
1,936
2.640625
3
[]
no_license
<?php include 'class/Pinata.php'; Pinata::getInstance(); #routes function get($pattern, $condition_or_callback, $callback = NULL) { Pinata::addPath('GET', $pattern, $condition_or_callback, $callback); } function put($pattern, $condition_or_callback, $callback = NULL) { Pinata::addPath('PUT', $pattern, $condition_o...
true
f04ee68f2c4e078ef9ae843ea57e8c20a13fe242
PHP
Herringway/Misc-PHP-Trash
/asciitest.php
UTF-8
1,103
2.828125
3
[]
no_license
<?php echo <<<EOT <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>ASCII Test</title> <style type="text/css"><!-- body { font-size: 1px; line-height: 1px; } --></style> </head> <body><div> EOT; $file = (isset($_GE...
true
7c4e610a8d0fcd707e7697a808503e9eea19d36e
PHP
Dgame/php-time
/src/Unit/Hours.php
UTF-8
1,491
3.109375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Dgame\Time\Unit; final class Hours extends AbstractTimeUnit { public const HOURS_PER_DAY = 24; public const HOURS_PER_WEEK = 168; public const HOURS_PER_MONTH = 730.8; public const HOURS_PER_YEAR = 8760; public function inSeconds(): Seconds { ...
true
8e02bd45de9e7232c4ca9fdca935dc56a3b58f95
PHP
weretyczx/vardumper
/src/Tracker.php
UTF-8
1,318
2.890625
3
[]
no_license
<?php namespace Weretyczx\Vardumper; class Tracker { /** * Debug info * @var array */ protected $debug = []; protected $functions = ['dd', 'd']; public function __construct() { // Get trace $this->debug = $this->debugInfo(); } /** * trace in...
true
73e49b360fd0c3a1812af1a97ad2a373203e271d
PHP
danibeca/quind-back
/app/Models/Security/User.php
UTF-8
2,188
2.671875
3
[]
no_license
<?php namespace Agilin\Models\Security; use Agilin\Utils\Notifications\ResetPasswordNotification; use Illuminate\Auth\Authenticatable; use Illuminate\Database\Eloquent\Model; use Illuminate\Auth\Passwords\CanResetPassword; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Contr...
true
041db87b968a2ac422157b1a84c8e0f7cbaa6852
PHP
tanya1oberemok/Guest-s-Book
/app/Http/Controllers/HomeController.php
UTF-8
1,647
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Group; use App\Models\User; use Illuminate\Http\Request; class HomeController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middleware('auth'); } ...
true
aaa9c5d2fda9fd067e3d291413dc123060f9a7d1
PHP
garethellis36/advent-of-code-2015
/src/Day14/Reindeer.php
UTF-8
2,555
3.5
4
[]
no_license
<?php namespace Day14; class Reindeer { /** * @var string */ private $name; /** * @var int */ private $speed; /** * @var int */ private $durationOfFlight; /** * @var int */ private $restTime; /** * @var int */ private $point...
true
0fcbfb899d5420523012d189edf5b603cee94db3
PHP
shadow3002/starsci-produksi
/app/Plugin/Setup/Console/Command/DbDumpShell.php
UTF-8
8,627
2.703125
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
<?php App::uses('AppShell', 'Console/Command'); App::uses('Inflector', 'Utility'); App::uses('ConnectionManager', 'Model'); App::uses('NumberLib', 'Tools.Utility'); if (!defined('BACKUPS')) { define('BACKUPS', APP . 'files' . DS . 'backup' . DS); } if (!defined('CHMOD_PUBLIC')) { define('CHMOD_PUBLIC', 0770); } if (...
true
b0fd22f963fbd4054be952f237ae12b586c5b4c5
PHP
mafengwo/operation
/ko/web/Event.php
UTF-8
981
2.78125
3
[]
no_license
<?php /** * Event * * @brief: 给对象绑定事件 * * @package ko\Web * @author: zhangchu */ class Ko_Web_Event { private static $s_aEventObj = array(); public static function On($group, $name, $callback = null) { $obj = self::_OGetEventObj($group); $obj->oOn($name, $callback); } public static function Once($g...
true
238beffc7a3d2ce82cacd34c2224503ea6f6eb2e
PHP
dasmania03/siref-federios
/app/Representante.php
UTF-8
1,154
2.578125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Representante extends Model { protected $table = 'representante'; protected $primaryKey ='id_representante'; public $timestamps = false; protected $fillable = [ 'identificacion', 'apellido', 'nombre', ...
true
9961f6941f957c6a286f547cfcdc6ad1d4fb5850
PHP
rahmatramadh/TubesPAMRekamMedis
/php-server/web/index.php
UTF-8
1,231
2.75
3
[]
no_license
<?php header("Access-Control-Allow-Origin: *"); ?> <html> <p>This is index page</p> <?php include 'dbconfig.php'; function pg_connection_string_from_database_url() { extract(parse_url($_ENV["DATABASE_URL"])); return "user=$user password=$pass host=$host dbname=" . subst...
true
3d66636731a13ca00dfce3c4663d7d34226c54c9
PHP
mubassirhayat/kapow
/core/class/Mail.php
UTF-8
9,495
2.859375
3
[]
no_license
<?php class KPMail { private $instance = null; public static function init( $options = array() ) { return new self( $options ); } private $from = null; private $subject = ''; private $to = null; private $cc = n...
true
45bf4449c717786763de3c35430356ad1ab7ad1c
PHP
BiBiDan/yii2shop
/console/migrations/m180308_033745_create_mune_table.php
UTF-8
720
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Handles the creation of table `mune`. */ class m180308_033745_create_mune_table extends Migration { /** * {@inheritdoc} */ public function safeUp() { $this->createTable('mune', [ 'id' => $this->primaryKey(), 'name'=>$this->strin...
true
4b784198194ff71a20d4cc5d01ad1197879c8e1c
PHP
EdoKrajcir/Ulozenka_API_reader
/src/Controller/BranchController.php
UTF-8
2,255
2.671875
3
[]
no_license
<?php // src/Controller/BranchController.php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use App\Entity\BranchModel; use App\Controller\ApiController;...
true
0948ffc57b234546ceb29d1e1e4192e5b849c3bc
PHP
maximl337/HouseBazaar
/app/Property.php
UTF-8
2,795
2.5625
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Property extends Model { protected $fillable = [ 'street', 'city', 'zip', 'state', 'country', 'price', 'description', 'user_id', 'bedrooms', 'bathrooms', 'siz...
true
8304e2cb7c71b336afeae4dabca09b7dca3e866e
PHP
bug-or-feature/orca
/src/Components/Compiler/Compiler.php
UTF-8
2,480
2.84375
3
[ "MIT" ]
permissive
<?php namespace Orca\Components\Compiler; use Orca\Services\Directory\DirectoryService; use Twig\Environment; use Twig\Loader\FilesystemLoader; /** * @copyright 2020 dasistweb GmbH (https://www.dasistweb.de) */ class Compiler { /** * @var array */ private $templateDirectories; /** * @...
true
9fb08b10668c889e8319b28dbc8980245160406b
PHP
kaspernj/knjphpfw
/knjobjects/class_exampleobject.php
UTF-8
1,070
2.59375
3
[ "Apache-2.0" ]
permissive
<? class folder extends knjdb_row{ static $table = "folders"; function __construct($id, $data){ parent::__construct(gDB(), "folders", $id, $data); } static function addNew($arr){ gDB()->insert($arr); return getSharedOb("folder", gDB()->getLastID()); } static function getList(){ $return...
true
4ec639e8a20e5386916f5b8232c104fe48affce1
PHP
DripsPHP/HTTP
/src/Get.php
UTF-8
483
2.609375
3
[ "MIT" ]
permissive
<?php /** * Created by Prowect * Author: Raffael Kessler * Date: 21.02.2016 - 12:30. * Copyright Prowect. */ namespace Drips\HTTP; use Drips\DataStructures\DataCollection; /** * Class Get. * * $_GET als objektorientierte Implementierung - ermöglicht einen sichereren * Zugriff. */ class Get extends DataColl...
true
3300d0d7b8004da0cfdaa5fb79e7b93dcca23e80
PHP
dungphanxuan/laravelapp
/app/Models/Customer.php
UTF-8
953
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * @property integer $id * @property string $created_at * @property string $updated_at * @property string $deleted_at * @property string $name * @property string $phone * @property string $email * @property integer $age * @property integ...
true
ee671d1a11abe4fb3c394ccb24e92e262abca952
PHP
barthuttinga/ldaptools
/spec/LdapTools/BatchModify/BatchCollectionSpec.php
UTF-8
3,294
2.53125
3
[ "MIT" ]
permissive
<?php /** * This file is part of the LdapTools package. * * (c) Chad Sikorra <Chad.Sikorra@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace spec\LdapTools\BatchModify; use LdapTools\BatchModify\Batch; use Ldap...
true
59a6af81f1926edcfe303a17ff96c885b0ecef63
PHP
muthupandi1992/Gazelle_EMS
/inc/create_employee.php
UTF-8
716
2.75
3
[]
no_license
<?php require 'employee_arrays.php'; $raw_firstName = $_POST['firstname']; $raw_lastName = $_POST['lastname']; $raw_jobTitle = $_POST['jobtitle']; $raw_salary = $_POST['salary']; $raw_email = $_POST['email']; require 'clean_data.php'; require 'assign_department'; ...
true
8ae9a3db38761103b19ab679b2d2c03a3b4b07cd
PHP
MS-13-XB/LMSCF_Marko-Stancevic-CR11
/cr11_markoStancevic_petadoption/home_admin_small_ani.php
UTF-8
3,511
2.765625
3
[]
no_license
<?php #for each file in CRUD, add this part of code (from ob_start() until exit) ob_start(); session_start(); require_once 'actions/db-connect.php'; if( !isset($_SESSION['admin' ]) && !isset($_SESSION['user']) ) { header("Location: startSite.html"); exit; } if (isset($_SESSION["user"])) { header("Locati...
true
2a41194099a7375970501cc8c95a032726111ea1
PHP
ampproject/amp-toolbox-php
/src/Html/LengthUnit.php
UTF-8
4,094
2.953125
3
[ "Apache-2.0" ]
permissive
<?php namespace AmpProject\Html; /** * Unit of a length. * * This interface defines the available units that can be recognized in HTML and/or CSS dimensions. * * @see https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Values_and_units * * @package ampproject/amp-toolbox */ final class LengthUn...
true
0c6209590685b9d0c92c3802e62c61b94c6fe792
PHP
claremontdesign/zbase
/src/Utility/RemoteResource/XML.php
UTF-8
2,041
2.8125
3
[]
no_license
<?php namespace Zbase\Utility\RemoteResource; /** * RemoteXML * * Description of RemoteXML * @package Component */ use Zbase\Exceptions\CurlException; use Zbase\Exceptions\XmlException; /** * RemoteXML * * Description of RemoteXML */ class Xml extends \Zbase\Utility\RemoteResource { /...
true
6ff19a9771bec2dab692ade9252a08f0662ac750
PHP
dangngoclinh247/quanaotreemhanoi
/controllers/admin/products_type.class.php
UTF-8
4,810
2.5625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Liam Dang * Date: 10/12/2015 * Time: 4:02 PM */ namespace controllers\admin; use library\Alert; use library\Func; use models\Prot; class products_type extends Admin_Controllers { const ITEM_PER_PAGE = 25; public function __construct() { parent::__co...
true
9bef1705f4012e22aee529825b54f2d683d00ea7
PHP
LaboratoryGA/metweather
/classes/MetweatherComponent.php
UTF-8
6,014
2.65625
3
[ "WTFPL" ]
permissive
<?php /* * Copyright (C) 2015 Nathan Crause <nathan at crause.name> * * The file MetweatherComponent.php is part of Metweather * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation;...
true
8f226e5342b58395ff1724d4bfe9659d76437c1d
PHP
reuvenlevy1/CS-490
/4-06-2018/Every File/php/backend_test1.php
UTF-8
863
3.359375
3
[]
no_license
<?php //Build an associative array, Json_encode() it and echo/return the array to frontend_test1.php //Input given from frontend_test1.php------------------------------------------------------------------------------- //if(isset($_POST['username'], $_POST['password'])){ //Runs if 'username...
true
f148736eadd4fe5ebc33f68e002c3892d5f2e2aa
PHP
mndeto/dnsc-hris
/app/Models/EmployeeAccumulatedLeave.php
UTF-8
714
2.546875
3
[ "MIT" ]
permissive
<?php namespace DNSCHumanResource\Models; use Illuminate\Database\Eloquent\Model; class EmployeeAccumulatedLeave extends Model { protected $fillable = ['sick_leave', 'vacation_leave']; public function employee() { return $this->belongsTo(Employee::class); } public function total() {...
true
59b7ae976b7793c9d3b532fbe0a17a7b77a83cab
PHP
falgun/validation
/tests/Rules/AlphaNumTest.php
UTF-8
912
2.71875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Falgun\Validation\Tests\Rules; final class AlphaNumTest extends AbstractRuleTestHelper implements RuleTestInterface { public function testBlankData() { $this->validator->select('name')->alphaNum(); $this->performTest(['name' => ''], ['name' => ['Alpha...
true
75fce7104cbcfbf3ba0718757e7f983ea3c75651
PHP
electric-eloquence/fepper-drupal
/backend/drupal/core/lib/Drupal/Core/Theme/ThemeInitializationInterface.php
UTF-8
1,848
2.6875
3
[ "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-other-copyleft", "GPL-2.0-or-later", "GPL-2.0-only", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace Drupal\Core\Theme; use Drupal\Core\Extension\Extension; /** * Defines an interface which contain theme initialization logic. */ interface ThemeInitializationInterface { /** * Initializes a given theme. * * This loads the active theme, for example include its engine file. * * @para...
true
5eb6c96df49a6911f51242ee5a4f1afd59e9775e
PHP
tomalexander/singleplayerdrinkinggames
/backend/web_root/vote.php
UTF-8
778
2.921875
3
[ "BSD-3-Clause" ]
permissive
<?php include "games.php"; include "users.php"; /* * Adds a vote to the designated game. * * @param game_id The id of the game the user is voting for. * @param uuid The id of the user doing the voiting. * @param vote The kind of vote being made. +1 is an upvote, -1 is a downvote */ function main() { $game_i...
true
abc0934f6b84d9d57d28f80d62e7012b1fbcaa8f
PHP
lintangqurota/Pemrograman-website
/pertemuan 4/praktikum2(3).php
UTF-8
1,868
2.78125
3
[]
no_license
<?php require 'rumus.php'; ?> <html> <head> <title>praktikum</title> </head> <body> <h2>Form Hitung Volume Kubus</h2> <h3>Isi Data:</h3> <form action="" method="POST" enctype="multipart/form-data"> <table> <tr> <td>Sisi</td> <td>:</td> ...
true
fbebcf7056eeb7ddf86a57da1940e0a14da535ea
PHP
designpatterns/designpatterns
/state/php/example_delivery/delivery_usage.php
UTF-8
474
2.6875
3
[ "Unlicense" ]
permissive
<?php require 'delivery.php'; use \DesignPatterns\State\Example\Delivery as Example; $delivery = new Example\Delivery(new Example\Processing); // Warehouse echo 'The package is in ' . $delivery->getCurrentLocation() . " right now\n"; $delivery->goNext(); // On the way echo 'The package is in ' . $delivery->getCurr...
true
52f3ebf7a481bd7a0394fd5128d78d1af5d85d17
PHP
JustinLaureano/gpp
/application/libraries/functions.php
UTF-8
1,364
2.828125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Functions { public function check_access_rights() { if (isset($_SESSION['userid']) && isset($_SESSION['userrights'])) { switch ($_SESSION['userrights']) { case $_SESSION['userrights'] == 'administ...
true
966323f918069256db32014cdd454631f4787cbe
PHP
abordin/LaravelCMS
/app/Http/Requests/StoreAdmin.php
UTF-8
1,179
2.625
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Support\Facades\Auth; class StoreAdmin extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return A...
true
007715c26dc7c9a5ee245cd02ba6020d9b4e8dfb
PHP
abhinavbhanyara/chat
/signup.php
UTF-8
4,815
2.703125
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" href="signup.css"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="https://fonts.googleapis.com/css?family=Fredoka+One" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?fami...
true
8f833171b6b41287a0ea8c88fa7dd038d23a6b05
PHP
ksmt88/vue-practice
/app/app/Services/MovieService.php
UTF-8
3,469
2.875
3
[]
no_license
<?php /** * 動画操作. */ namespace App\Services; use App\Movie; use App\Repository\MovieRepository; class MovieService { /** * @var MovieRepository */ private $movieRepository; public function __construct(MovieRepository $movieRepository) { $this->movieRepository = $movieRepository; ...
true
cbad713659a547979328c8621dd7d4b3987bb901
PHP
duncan3dc/rector
/src/Rector/Contrib/PHPUnit/SpecificMethod/AssertInstanceOfComparisonRector.php
UTF-8
2,995
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Rector\Rector\Contrib\PHPUnit\SpecificMethod; use PhpParser\Node; use PhpParser\Node\Expr\Instanceof_; use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Identifier; use Rector\Node\NodeFactory; use Rector\NodeAnalyzer\MethodCallAnalyzer; use Rector\NodeChanger\IdentifierR...
true
f78a961837ace80664767bd69c49bff279bbd41c
PHP
DatabaseAsAService/dfe-console
/app/Console/Commands/Daily.php
UTF-8
6,316
2.546875
3
[]
no_license
<?php namespace DreamFactory\Enterprise\Console\Console\Commands; use DreamFactory\Enterprise\Common\Commands\ConsoleCommand; use DreamFactory\Enterprise\Console\Enums\TaskOperations; use DreamFactory\Enterprise\Database\Models\JobResult; use DreamFactory\Enterprise\Services\Utility\Deactivator; use Symfony\Component\...
true
597b2eb07529b22ad55b756d4cc6cbd8d26d87fc
PHP
cleomattei/projet4
/pages/admin/categories/add.php
UTF-8
629
2.59375
3
[]
no_license
<?php $table = App::getInstance()->getTable('Category'); //si des données ont été sauvegadée je les garde en parametre if(!empty($_POST)){ $result = $table->create([ 'titre' => $_POST['titre'] ]); if($result){ // on redirige vers la page d'édition quand l'article a été créé header('Locatio...
true
b642e11cbc0c267c83caee807c399b0ed644d3fa
PHP
AwesomeTeamPlayer/users-service
/src/GetUserEndpoint.php
UTF-8
1,974
2.75
3
[]
no_license
<?php namespace Api; use Adapters\Exceptions\UserDoesNotExistException; use Api\Exceptions\InvalidErrorCodeException; use Api\Validators\EmailAddressValidator; use Api\Validators\UsersDataValidator; use Application\UserUpdater; use Domain\UsersRepositoryInterface; use Domain\ValueObjects\Email; use Domain\ValueObject...
true
a901910c2def2ba057200ab3e9d425643e69b555
PHP
y-labs/objectmanager
/app/Http/Controllers/ItemController.php
UTF-8
3,489
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Item; class ItemController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $items = Item::all(); return view('b...
true
9c52954ac978b838240fda928c37889bc8dd2c8d
PHP
dhirajpatra/usermanagement
/src/Domain/Model/User/User.php
UTF-8
1,904
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Domain\Model\User; use App\Domain\Model\Groupuser\Groupuser; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * Class User * @ORM\Entity * @ORM\Table(name="us...
true
a6632a8f97fb4c1e36fd36a4c8138200c8b4948e
PHP
thienkimlove/viemgan2
/app/Post.php
UTF-8
2,724
2.671875
3
[ "MIT" ]
permissive
<?php namespace App; use Carbon\Carbon; use Cviebrock\EloquentSluggable\SluggableInterface; use Cviebrock\EloquentSluggable\SluggableTrait; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Str; use Webpatser\Uuid\Uuid; class Post extends Model implements SluggableInterface { use SluggableTrait; ...
true
e8ed1543cb375c960efb1a5a3405ce8009b55fb9
PHP
anaalazaro/IngenieriaSoftware2
/HSH3/controladores/buscarSub.php
UTF-8
1,523
2.578125
3
[]
no_license
<?php //2 botones: consultar por id(si se conoce) o consultar por subastas abiertas ?><?php include("../modelos/conexion.php"); $conexion=conectar(); $id= $_POST['id']; function existe($id,$conexion){ $existe= "SELECT * FROM subasta WHERE id_subasta='$id' AND fecha_fin is null"; $resultado1= mysqli_query($conex...
true
adea2e7acda84395c7d1dd3bf9be015695d1b753
PHP
peralzega/heis
/test2.php
UTF-8
637
2.765625
3
[]
no_license
<table> <?php include "connect.php"; $currDate = date('Y-m-d'); $i = 10; while ($i<=22) { $select1 = "SELECT * FROM transaksi WHERE PlayDate='2015-05-05' AND PlayStart=$i AND Field='Semen'"; $query1 = mysqli_query($con, $select1); $row1 = mysqli_num_rows($query1); if ($row1 > 0) { $fetch = mysqli_fetch_array($q...
true
a0342abcfb51b558b9e900dfe7d5667973df8624
PHP
MechaChen/20190705phpLab_DD101
/exercise/23(���P)/04expression.php
UTF-8
648
2.921875
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>計價</title> </head> <h2>計價</h2> <body> <div> <table border="1"> <tr> ...
true
e53505ac2297b862e333fb50a8f5cae81f3a0b35
PHP
fracz/refactor-extractor
/results/BootstrapCMS--CMS/3a0c96e0d4d83d7849fb6b93100bdef0ca4853fa/after/TraitHasManyPosts.php
UTF-8
793
2.59375
3
[]
no_license
<?php namespace GrahamCampbell\BootstrapCMS\Models\Relations\Common; trait TraitHasManyPosts { public function posts() { return $this->hasMany('GrahamCampbell\BootstrapCMS\Models\Post'); } public function getPosts($columns = array('*')) { $model = 'GrahamCampbell\BootstrapCMS\Models\Post'...
true
bd79199cf1020ab321de61cc4c3a118b0828e4f6
PHP
pratishshr/Aawaaj
/admin/controllers/Admin.php
UTF-8
3,035
2.8125
3
[]
no_license
<?php include_once(ROOT_PATH."admin/system/model/Admin_Model.php");?> <?php include_once(ROOT_PATH."admin/system/repository/adminrepository.class.php");?> <?php require_once(ROOT_PATH."admin/core/Auth_Controller.php");?> <?php class Admin extends Auth_Controller{ private $adminrepository; public function __const...
true
b3c05c4353b21b065b6ef91761920ec926ab9405
PHP
jroaming/MyProjects
/PWPOP - My Wallapop (PHP-Slim-Twig app)/src/controller/RegisterController.php
UTF-8
6,960
2.671875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: selde * Date: 18/04/2019 * Time: 13:20 */ namespace SallePW\SlimApp\controller; use Psr\Container\ContainerInterface; use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\UploadedFileInterface; us...
true
c302184114f3933c7e35867aa8aecb8c3b9362c0
PHP
ben-yixin/BookingWebsite
/TaxiBooking/assign.php
UTF-8
868
2.5625
3
[]
no_license
<!--assign.php This file updates the status of bookings where the input code matches a booking code @author Ben Zhang 15904358--> <?php require_once("/home/dvt2758/public_html/conf/settings.php"); $conn = mysqli_connect($host, $user, $pswd, $dbnm); if(!$conn){ echo "<p>Unable to connect to server</p>"; } //cod...
true
d3d3513989ad6a4715f601b14039e378cd299ed7
PHP
stefanogali/Schools-Students-App
/includes/functions.php
UTF-8
835
3.046875
3
[]
no_license
<?php include_once('connection.php'); include_once('classes.php'); //get school id from index page if(!empty($_POST["id"])){ $id = $_POST["id"]; $school = new School; $school_name = $school->get_school_name($id); echo '<h3 class = "school-names">Students at ' . $school_name['school_name'] . '</h3>'; $school_...
true
cd99e8fb401b9bdd106f58f068982a06253c7632
PHP
thomaslarsson/PriorityQueue
/src/ThomasLarsson/PriorityQueue/PriorityQueueFactory.php
UTF-8
1,267
3.109375
3
[]
no_license
<?php namespace ThomasLarsson\PriorityQueue; /** * Returns PriorityQueues sorted in order specified * * Order maintained for nodes with equal priority on dequeue * * @author Thomas Maurstad Larsson <thomas.m.larsson@gmail.com> * @version 1.0 * * @license http://URL MIT-license */ use ThomasLarsson\PriorityQ...
true
960f3f354d43447e9658a02a9877b793326862ca
PHP
Jonatasth/Maestro02
/application/models/cursos_model.php
UTF-8
474
2.65625
3
[]
no_license
<?php namespace application\models; class cursos_model extends \model{ public function __construct(){ parent::__construct(); $this->_tabela = "curso"; } public function select(){ $sql = "SELECT C.*, F.funcionario as professor FROM curso AS C INNER JOIN funcionario as F ON (F.id = C.pr...
true
6c60b7af12e04d87793eb2fe600015a47c1aa44a
PHP
dudan1/WeddingPlanIt
/PHP_database_insert/cust_update.php
UTF-8
1,078
2.59375
3
[]
no_license
<?php session_start(); require_once('db.php'); // Check connection if ($connection === false) { die("Error: Could not connect. " . mysqli_connect_error()); } $session_email = $_SESSION['name']; $new_firstname = mysqli_real_escape_string($connection, $_POST['first_name']); $new_surname = mysqli_real_escape_string...
true
96c256343afd5672d8544299c27782a1fd31ba73
PHP
otherlibrary/SiteCostCalculator
/wsitecc/dom.php
UTF-8
576
2.609375
3
[]
no_license
<?php function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_UR...
true
541086b6c0434624792830e935f3ad14c9bfe4a1
PHP
TELstatic/alaska
/app/Admin/Forms/LoanForm.php
UTF-8
1,521
2.640625
3
[]
no_license
<?php namespace App\Admin\Forms; use App\Admin\Repositories\Loan; use Dcat\Admin\Widgets\Form; class LoanForm extends Form { /** * Handle the form request. * * @param array $input * * @return mixed */ public function handle(array $input) { $url = current(explode('?',...
true
620a45b02be30933c821abd6c542784584f8dc17
PHP
phpner/sql.ru
/app/Controllers/UserController.php
UTF-8
1,347
2.8125
3
[]
no_license
<?php namespace App\Controllers; use App\Db; use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Writer\Xlsx; class UserController { public function index($poset = []) { $columbs = $_POST['tables']; $pdo = Db::getInstance(); $date = $pdo->getAllData($columbs); ...
true
d70c74ded99d9365eee83857b96dd3bda122cae4
PHP
muhammadnur200798/biasiswa
/config.php
UTF-8
753
2.703125
3
[ "MIT" ]
permissive
<?php /** * Database connection setup */ if (!$connection = new Mysqli("localhost", "root", "", "beasiswa")) { // if (!$connection = new Mysqli("mysql.idhostinger.com", "u361711216_bea", "u361711216_bea", "u361711216_bea")) { echo "<h3>ERROR: Koneksi database gagal!</h3>"; } /** * Page initialize */ if (isset($...
true
48f1c701333ef13bf8695025b25fc69b05aa1847
PHP
Kris1992/Chat
/src/Services/ModelValidator/ModelValidator.php
UTF-8
2,333
2.953125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Services\ModelValidator; use Symfony\Component\Validator\Validator\ValidatorInterface; use Symfony\Component\Form\{FormInterface, FormError}; use Symfony\Component\Validator\ConstraintViolationList; /** * Validator for model data */ class ModelValidator implements Mod...
true
0932d0d011b21575a0a5a82b91ddf7b9f1c800a3
PHP
SauloJCF/GSA-API
/Model/Animal_model.php
UTF-8
1,576
2.890625
3
[]
no_license
<?php namespace Gsi_api\Model; use Gsi_api\dao\connection_factory\Connection_factory; class Animal_model extends Connection_factory { private $id; private $name; private $birthDate; private $specie; private $sex; private $img; private $user; private $status; public function __cons...
true
cdb32383e38e4cfd37654cc32f8e154ade58aab7
PHP
HafizulIslam06/WT_D_Final
/Lab_2/index.php
UTF-8
1,177
2.71875
3
[]
no_license
<?php include 'header.php'; include 'db_config.php'; if($conn) { $query= "insert into users values(NULL,'rahim','rahim123','12364')"; // if(mysqli_query($conn,$query)) // { // echo "row inserted"; // } // else // { // ...
true
487b60db722c3827e435e45ebc1c3175ecfeaaa2
PHP
infodanish/cex_task
/adminpanel/application/libraries/Excel.php
UTF-8
3,200
3.015625
3
[ "MIT" ]
permissive
<?php // @@Author : Vinod Kumar Sharma class Excel { private $excel; public function __construct() { // initialise the reference to the codeigniter instance require_once APPPATH.'third_party/PHPExcel.php'; $this->excel = new PHPExcel(); } public function load($path) { ...
true
1765360b8dd345c900d8156a55d95ced8b43503e
PHP
lwaxana/sercom-TFE
/src/SERCOM/AppBundle/Entity/Tag.php
UTF-8
3,548
2.546875
3
[]
no_license
<?php namespace SERCOM\AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Tag * * @ORM\Table(name="tag") * @ORM\Entity(repositoryClass="SERCOM\AppBundle\Entity\Repository\TagRepository") */ class Tag { /** * @var integer * @ORM\Column(name="tag_id", type="integer", nullable=false) * @OR...
true
8094b76eb5afab602674b3542d58936f777d35eb
PHP
sumpygump/apricot
/lib/Apricot/Application/ViewLayout.php
UTF-8
4,555
2.859375
3
[ "MIT" ]
permissive
<?php /** * Apricot Application View Layout * * @package Apricot */ namespace Apricot\Application; use Apricot\View; /** * Application Application View Layout * * @uses Apricot\View * @package Apricot * @author Jansen Price <jansen.price@gmail.com> * @license http://www.opensource.org/licenses/mit-license....
true
18ec22e8c546f5230b1dbb097427d5ee35fcdf75
PHP
FredFerri/OscarsPlatform
/models/Questions.php
UTF-8
2,473
2.703125
3
[]
no_license
<?php namespace Models; use Doctrine\DBAL\Types\Type; use Doctrine\ORM\Mapping as ORM; /** * @Entity */ class Questions extends Model { /** * @Column(name="id", type="integer") * @Id * @GeneratedValue(strategy="AUTO") */ public $id; /** * @Column(name="cont...
true
69ffc2d56bc7c6ad24d27deb5d43ae40b8e0b4a0
PHP
luochaovg/oil-bundle
/Module/Form/Entity/Traits/Blur.php
UTF-8
433
2.515625
3
[ "MIT" ]
permissive
<?php namespace Leon\BswBundle\Module\Form\Entity\Traits; trait Blur { /** * @var string */ protected $blur; /** * @return string */ public function getBlur(): ?string { return $this->blur; } /** * @param string $blur * * @return $this */ ...
true
fa5cef95a182a03df10f69287b5bd8044adf3e1b
PHP
whosonfirst/whosonfirst-www-boundaryissues
/www/include/lib_api_output_jsonp.php
UTF-8
3,379
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php loadlib("http_codes"); ################################################################# function api_output_ok($rsp=array(), $more=array()){ $callback = api_output_jsonp_ensure_valid_callback(); api_output_send($rsp, $callback, $more); } #############################################################...
true
67d229fea1671efbd163f309f1c420a15e196ef4
PHP
AndreyKit/UnitTest-1
/public/index.php
UTF-8
346
3.125
3
[]
no_license
<?php include "../vendor/autoload.php"; // use App\Str; use App\Сonversion; // $result = new Str(); // echo ($result->comparel("a", "a")) * 1; // echo "<br>"; $age = new Сonversion(); try { // echo $age->convAge(160*365); echo $age->convAge(3000); } catch (Exception $e) { echo " Ошибка: ", $e->getM...
true
eca53f8f2800bbc55d2c26f53e794b6e05aa2dcc
PHP
guttanitin/samplewebsite
/userAcct.php
UTF-8
2,632
2.921875
3
[]
no_license
<?php include 'azure_connection.php'; function is_valid_email($connections, $mail){ $echeck="SELECT count(*) as 'Count' FROM users WHERE email = '$mail'"; $echk=sqlsrv_query($connections, $echeck); while($row = sqlsrv_fetch_array($echk, SQLSRV_FETCH_ASSOC)){ $count = $row['Count']; } ...
true
facea0a04a0cd8554a87a7f13b3e3176c6f6ad22
PHP
Profile-exe/CRUDboardsite
/classes/db.class.php
UTF-8
1,680
3.203125
3
[]
no_license
<?php // connect to database $pdo = DB::connect(); class DB { public static function connect() { // database server information $db_server = '127.0.0.1'; // 127.0.0.1 로 하면 localhost 보다 훨씬 빠름 why?? $db_dbname = 'crudboardsite'; $db_username = 'root'; $db_password = '11...
true
0e2d5ffbb0b05af05cd3ec6ff0a567afbcde4791
PHP
isun-dev/store
/app/Http/Controllers/Controller.php
UTF-8
2,210
2.71875
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Routing\Controller as BaseController; use Illuminate\Http\Request; class Controller extends BaseControll...
true
985ca0d128c7a9aad6562373404a11dcee42d492
PHP
eycreative-dev/temel-php-dersleri-ve-uygulamlar
/veritipleri.php
UTF-8
273
3.28125
3
[]
no_license
<?php // İnteger --> Tam Sayılar (10,20,30,40) // Float --> Ondalıklı Sayılar (11.23,26,33,49) // String --> Düz Yazı // Boolean --> Mantıksal İfadeler (1 veya 0 Doğru veya Yanlış) // Array --> Dizler // Object --> Nesneler $x = 1; var_dump($x); ?>
true
7f43ea6a0e4c98d16423f05d6c395de050d9a728
PHP
mbonneau/sshkey
/tests/SSHKeyTest.php
UTF-8
746
2.515625
3
[]
no_license
<?php namespace SSHKey\Tests; use PHPUnit\Framework\TestCase; use SSHKey\SSHKey; class SSHKeyTest extends TestCase { public function testReadingTestKey() { $contents = file_get_contents(__DIR__ . '/testkey'); $key = SSHKey::fromOpenSshKey($contents); $this->assertEquals('ssh-ed25519...
true
0f9157a8274a5abc6bd035ac18996472efd53168
PHP
Tienda-deportiva/change_factur
/controller/Carrito/CarritoController.php
UTF-8
3,375
2.546875
3
[]
no_license
<?php include_once '../model/Carrito/CarritoModel.php'; class CarritoController{ public function getInsert(){ $obj=new CarritoModel(); $sql="SELECT * FROM detalle_factura_producto"; $detalles=$obj->consult($sql); include_once '../view/Carrito/insert.php';...
true
b2779014704a9d9f343bd3a9e84849def3c95584
PHP
rojanneo/inventory
/helpers/url.php
UTF-8
282
2.65625
3
[]
no_license
<?php if (!function_exists('redirect')) { function redirect($urlpath = '') { header("Location: " . URL . $urlpath); } } if (!function_exists('CurrentURL')) { function CurrentURL() { return 'http://' . SERVER_NAME . $_SERVER['REQUEST_URI']; } }
true
0fac66eb2234545ba784a861d11fbcf34fca9141
PHP
lurodriguezalfaro/ejerciciosPHP
/tp2_backend.php
UTF-8
1,564
3.953125
4
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <h3>Validar que sea un número positivo</h3> <?php echo "Inicio del pr...
true
c6d5c67ab1818afd93f11fc13d30ae7aab6a4829
PHP
mrsvette/jejajanan
/protected/models/ExtensionMeta.php
UTF-8
3,493
2.703125
3
[]
no_license
<?php /** * This is the model class for table "{{core_extension_meta}}". * * The followings are the available columns in table '{{core_extension_meta}}': * @property string $id * @property string $client_id * @property string $extension * @property string $rel_type * @property string $rel_id * @property strin...
true
705787037d213be6c1b74fbb05fa47b67f67b026
PHP
martamoragues/playground
/src/Application/UseCase/ShowUsersUseCase.php
UTF-8
395
2.6875
3
[]
no_license
<?php namespace App\Application\UseCase; use App\Domain\User\UserRepository; class ShowUsersUseCase { /** * @var UserRepository */ private $userRepository; public function __construct(UserRepository $userRepository) { $this->userRepository = $userRepository; } public funct...
true
72e35a1f82747981135a2dd924d773a1298b8939
PHP
dron817/yandex-dialogs-php
/examples/template_action.php
UTF-8
1,241
2.546875
3
[ "Apache-2.0" ]
permissive
<?php /* PHP библиотека для разработки навыков Яндекс.Алисы Author: Sergey Avdeev <avdeevsv91@gmail.com> URL: https://github.com/avdeevsv91/yandex-dialogs-php */ include_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'vendor/autoload.php'; use YandexStation\YandexDialog; $alice = new YandexDialog(); // Все действ...
true
591121ab471de09e442f50a6a3020da5ad9d03b5
PHP
seans888/H-Iris
/advanced/apps/common/models/ListSubscriberAction.php
UTF-8
2,654
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php defined('MW_PATH') || exit('No direct script access allowed'); /** * This is the model class for table "{{list_subscriber_action}}". * * The followings are the available columns in table '{{list_subscriber_action}}': * @property integer $action_id * @property integer $source_list_id * @property string $...
true
7a4c55f8b33f39245f96ab84a350806d6268b381
PHP
meghna221/cms
/registration.php
UTF-8
2,433
2.515625
3
[]
no_license
<?php include "includes/db.php"; ?> <?php include "header.php"; ?> <?php include "includes/nav.php"; ?> <?php if(isset($_POST['submit'])) {$username = $_POST['username']; $email = $_POST['email']; $password = $_POST['password']; $username=mysqli_real_escape_string($con,$username); $password=mysqli_re...
true
45ba330d35170a03fbbf697a6f2cf8df76786fae
PHP
Just-Man/PHP
/Lection6/Homework_5/Task_10.php
UTF-8
905
3.5625
4
[]
no_license
<?php /** * Created by PhpStorm. * User: just * Date: 21.11.15 * Time: 21:17 */ /* * Задача 10: * Да се състави програма, която по даден низ връща друг, * символите, на който са получени като към всеки код на символ * от ASCII таблицата е добавеното числото 5 и е записан * новополучения симво...
true
62fc814f4e788f3b11b7a0e4e6dfc0254fac9ffb
PHP
ye-man/initsListing
/views/display.php
UTF-8
2,390
2.59375
3
[]
no_license
<?php require_once '../classes/init.php'; $_db = DB::getInstance(); $user = new User(); if ($_db) { $id = makeIdFromUrl(); $bizID = "bi.biz_id = $id"; $results = $_db->query($_db->getCustomQuery($bizID)); $normalizedResults = rewriteRows($results->results()); } ?> <for...
true
fafa30f3d552942afcab1aa9d4a8826b175c7859
PHP
gurzaf/YoutubeUser
/Session.php
UTF-8
984
2.75
3
[]
no_license
<?php session_start(); /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of Session * * @author gurzaf */ class Session { public static function registrarToken($token){ $_SESSION["token"] = $token; header("Location: ".$_S...
true
a13a0e471787eb235f399a94dc4c67845337a8d4
PHP
jeandev84/darwin-cms
/src/validationRules/ValidateEmail.php
UTF-8
350
2.78125
3
[]
no_license
<?php class ValidateEmail implements ValidationRuleInterface{ function validateRule($value) { if (!filter_var($value, FILTER_VALIDATE_EMAIL)) { return false; } return true; } function getErrorMessage() { return "Email format i...
true
3b1a28106594d2d72829e95d9a248188750d314e
PHP
xemlock/zefram-svn
/Zefram/Controller/Action/Unit/Form.php
UTF-8
6,341
2.53125
3
[]
no_license
<?php abstract class Zefram_Controller_Action_Unit_Form extends Zefram_Controller_Action_Unit_Abstract { protected $_form; protected $_buildXmlResponse; public function __construct(Zend_Controller_Action $controller, Array $options = array()) { if (isset($options['form'])) { $this...
true
9cf9c7aaa9294dd4891ce2a6ea0cb7ae4010ec16
PHP
pavlishinnikita/framework
/src/Database/DoctrineQuery.php
UTF-8
1,322
2.890625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: nikita * Date: 13.10.17 * Time: 13:53 */ namespace Framework\Database; use Doctrine\DBAL\Connection; use Doctrine\DBAL\Query\QueryBuilder; /** * Класс для работы с базой данных посредством Doctrine 2 * Class DoctrineQuery * @package Framework\Database */ class Doctr...
true
1e428513f0e42bc34ee64bbedce8b3355bbef9be
PHP
rsentry/php-api
/examples/sales_items/find.php
UTF-8
703
2.734375
3
[ "MIT" ]
permissive
<?php require_once('../../lib/RSentry.php'); $api = new RSentry('testkey'); //if you just pass an id, will request a lookup by id try { $salesitem = $api->getSalesItems('5f3602b7-707f-40e2-b4c3-1dd7a13ed4f1'); echo "Sales Item found: " . $salesitem->name . " \n"; } catch (RSentryException $e) { echo "Exception: {$e-...
true
dfeafb705366bf60343a889f0773e4e82f9ec36c
PHP
maximeroma/php-rpgmgch
/Vegetable.php
UTF-8
676
3.015625
3
[]
no_license
<?php require_once 'Product.php'; //attribut Product : idP, name, price class Vegetable extends Product{ private $_productorName; private $_expiresAt; public function get_productorName(){ return $this->_productorName; } public function set_productorName($_productorName){ retur...
true
9c96ad2df1687ea03cdea8bff39b0b4772a02f12
PHP
GoPlaceIn/siacc
/teste/importar.php
UTF-8
1,136
3.0625
3
[]
no_license
<?php //--utf8_encode -- function Main() { $filename = "C:\\temp\\areas.txt"; $handle = fopen($filename, "r"); $linhas = file($filename); $verifica = true; for ($x=0; $x < count($linhas); $x++) { $dados = explode('#',$linhas[$x]); if (substr_count($linhas[$x], "#") == 2) { $matrizDeDados[] = $...
true
9e0f127777f0bbb3b8935d375c7b934cf79a17bd
PHP
surya3997/outer_join
/includes/session.php
UTF-8
4,299
2.640625
3
[]
no_license
<?php session_start(); function db_query($findArray, $option) { try { $mng = new MongoDB\Driver\Manager("mongodb://localhost:27017"); $query = new MongoDB\Driver\Query($findArray, $option); $rows = $mng->executeQuery("outerJoin.USERS", $query); return $r...
true
3c6bcdc889c98bf44858ccb246270518fce9e5ee
PHP
gideonpeters/UPSCHOOL
/upschool-backend/app/Http/Controllers/ContinuousAssessmentController.php
UTF-8
3,208
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Semester; use Illuminate\Http\Request; use App\ContinuousAssessment; class ContinuousAssessmentController extends Controller { public function index($id) { // $continuous_assessments = ContinuousAssessment::whereCourseId($id)->get(); retu...
true
09acfe7037a159f4242504176c33ff954f086fb3
PHP
multijump/plaid
/src/OldTimeGuitarGuy/Plaid/Plaid.php
UTF-8
2,316
2.9375
3
[ "MIT" ]
permissive
<?php namespace OldTimeGuitarGuy\Plaid; /** * The main entry point for the Plaid API Client * * https://plaid.com/docs/api/ */ class Plaid { /** * The available Plaid services * * @var array */ protected $services = [ 'auth' => Services\Auth::class, 'info' => Services\I...
true