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
6a93c7656393afa71321583f36cbb86fb3df8f73
PHP
paulchubatyy/mconv
/lib/Measure/Weight/Kilogram.php
UTF-8
240
2.75
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * @author Paul Chubatyy <xobb@citylance.biz> */ namespace Measure\Weight; use Measure\Unit; class Kilogram extends Unit { const NAME = 'kilogram'; const RATE = 1000; protected $fastRates = array( Gram::NAME => 1000, ); }
true
d2c3c20f2c85ead8b6f2e240634c231d1236a11d
PHP
YMindY/PVPGradingGo
/src/org/hypergo/PVPGradingGo/Grading/GetRankCommand.php
UTF-8
1,925
2.765625
3
[]
no_license
<?php namespace org\hypergo\PVPGradingGo\Grading; use pocketmine\event\Listener; use pocketmine\command\ { Command, CommandSender, PluginCommand, CommandExecutor }; class GetRankCommand implements CommandExecutor{ private $main; public function __construct($main){ $this->main = $main; ...
true
351ce9f7ff05ce3595171cea60b520146f3c520f
PHP
butterfly-project/form
/tests/unit/Stub/SmsWithGetters.php
UTF-8
388
2.734375
3
[ "MIT" ]
permissive
<?php namespace Butterfly\Component\Form\Tests\Stub; class SmsWithGetters { protected $phone; protected $body; public function __construct($phone, $body) { $this->phone = $phone; $this->body = $body; } public function getPhone() { return $this->phone; } ...
true
dbb552f7bb8eb23da12d2160881bf701ca3cd1b9
PHP
akharwar/php
/sql/profilepage.php
UTF-8
3,927
2.703125
3
[]
no_license
<?php include 'header.php'; $username = $DOB = $Firstname = $Lastname = $AdmissionNo = ""; static $Password = ""; static $Email = ""; $sql = "SELECT * FROM userdetail WHERE EmailID = '".$_SESSION['login_user']."'"; $detail = mysqli_query($conn,$sql); if (mysqli_num_rows($deta...
true
8ac825db37d0bd487ab24f848fde60409c66dc01
PHP
jalder/UPnP
/examples/upnp.everything.php
UTF-8
523
2.65625
3
[ "MIT" ]
permissive
<?php require(dirname(__FILE__).'/../../../autoload.php'); use jalder\Upnp\Upnp; $upnp = new Upnp(); print('searching...'.PHP_EOL); $everything = $upnp->discover(); if(!count($everything)){ print_r('no upnp devices found'.PHP_EOL); } foreach($everything as $device){ //print_r($device); //uncomment to se...
true
fc0e1d6757ede1deda6c58584945cbf3d6328590
PHP
nedzof/vinesi
/service/LeaseServiceImpl.php
UTF-8
1,912
2.890625
3
[]
no_license
<?php namespace service; use dao\LeaseDAO; use domain\Lease; use http\HTTPException; class LeaseServiceImpl { public function createLease(Lease $lease) { $leaseDAO = new LeaseDAO(); return $leaseDAO->create($lease); } public function readLease($leaseId) { $leaseDAO = n...
true
b57dc6b92a45d7f107b4e9a762cc10eef176dfd2
PHP
RyanHarpham/Shopping_Catalog
/finalproject-RyanHarpham/model/Person.php
UTF-8
1,096
3.21875
3
[]
no_license
<?php class Person { private $fName; private $lName; private $alias; private $email; private $password; function __construct($fName, $lName, $alias, $email, $password) { $this->fName = $fName; $this->lName = $lName; $this->alias = $alias; $this-...
true
8218a44c7f7340de959fa6aad1644941258873dd
PHP
zoomcharts/mysql-service
/service.php
UTF-8
1,681
2.765625
3
[]
no_license
<?php include "config.php"; $mysqli = new mysqli($mysql_host, $mysql_user, $mysql_pass, $mysql_database); if (isset($_REQUEST["unit"])){ $unit = isset($_REQUEST["unit"])?$_REQUEST["unit"]:"d"; $from = isset($_REQUEST["from"])?$_REQUEST["from"]:null; $to = isset($_REQUEST["to"])?$_REQUEST["to"]:null; ...
true
adfc0c980233ee9b6e7d5ca92b4732287003f551
PHP
OnroerendErfgoed/kvd
/test/tests/domain/KVDdom_MapperFactory.test.php
UTF-8
1,556
2.53125
3
[ "MIT" ]
permissive
<?php Mock::generate( 'KVDdom_Sessie'); class genericConnection{ public function exec( $sql ) { return true; } } class TestOfMapperFactory extends UnitTestCase { private $_sessie; private $_mapperFactory; function setUp( ) { $this->_sessie = new MockKVDdom_Sessie( $this ...
true
fd2dbc73e662770db21cd081ba04b3c38f01592a
PHP
cryvelge/framework
/app/Library/SingletonTrait.php
UTF-8
343
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Library; trait SingletonTrait { /** * @var static */ protected static $instance; /** * @return static */ public static function instance() { if (is_null(static::$instance)) { static::$instance = new static; } return stat...
true
850bd1b88f55fe0e98f74d5ae211713f0fda2759
PHP
decole/planka-php-sdk
/src/Views/Factory/List/ListDtoFactory.php
UTF-8
926
2.734375
3
[]
no_license
<?php declare(strict_types=1); namespace Planka\Bridge\Views\Factory\List; use Planka\Bridge\Contracts\Factory\OutputInterface; use Planka\Bridge\Traits\DateConverterTrait; use Planka\Bridge\Views\Dto\List\ListDto; final class ListDtoFactory implements OutputInterface { use DateConverterTrait; /** * @...
true
74f4772fc9d4271c8a2ab2c3fecc9877ec7ec374
PHP
abnersoares/rockbuzz
/Api/AddUser.php
UTF-8
883
2.734375
3
[]
no_license
<?php require_once '../Config/AutoLoad.php'; class API_AddUser { public function __construct ( $data = null ){ $this->data = $data; } public function execute(){ $rule = [ 'name' => $this->data['name'], 'email' => $this->data['email'], 'password' => $this->data['password'] ]; $validate = Valida...
true
ca480c55bfeb74f0187872f7769eede137cab391
PHP
Gurubachan/hrms_atreya
/application/views/Designation/designationVeiwDetails.php
UTF-8
2,536
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php if($result!=false){ foreach ($result as $r) { if($r->isactive == "t"){ $isactive = "Active"; }else{ $isactive = "Not Active"; } if($r->updatedat ==""){ $updatedat = "<span style='color:red'>No Updated Yet</span>"; }else{ $...
true
cbc2fa91f6f31f7306cce22c443befda8bab6a98
PHP
lucbories/LibApt
/libapt-server-0.9.5/php/L0-core/api/class_named.php
UTF-8
2,010
3.1875
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
<?php /** * @file class_named.php * @brief Base class for named objects * @details ... * @see * @ingroup L0_CORE * @date 2012-11-18 * @version 0.9.x * @author Luc BORIES * @copyright Copyright (C) 2011 Luc BORIES All rights reserved. * @license Apache License Version 2.0,...
true
95fcdf2501ab9c01a9feefe981c135bb8fc1cf26
PHP
MadeHQ/silverstripe-gutenberg-editor
/src/Blocks/Image2Block.php
UTF-8
2,981
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace MadeHQ\Gutenberg\Blocks; use SilverStripe\Assets\Image; use SilverStripe\Assets\File; use SilverStripe\ORM\ArrayList; use SilverStripe\View\ArrayData; class Image2Block extends BaseBlock { /** * @config * @var int */ private static $width = 800; /** * @config * ...
true
14c183fa48329051fe951ce984bafe4e666f0aee
PHP
KesGroom/vacunas-PHP
/database/factories/EPSFactory.php
UTF-8
1,325
2.8125
3
[ "MIT" ]
permissive
<?php namespace Database\Factories; use App\Models\EPS; use Illuminate\Database\Eloquent\Factories\Factory; class EPSFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = EPS::class; /** * Define the model's default ...
true
9756e4718778f12ae10f830a7e17ce3d2659c3c7
PHP
thummper/Team20
/helpdesk/submitTicket.php
UTF-8
8,613
2.90625
3
[]
no_license
<?php /* submitTicket.php This file is passed an array containing all information needed to create a ticket in the database. If certain conditions are met, specialists will be auto assigned to the ticket based on their workload/ specialisation. Made by: Aron, Dennis */ include("config.php"); $totalTickets; $...
true
3187f8c351042772ea382dfb6a132431bf667684
PHP
ThinhDoIX/WebsiteMovies
/View/addProduct.php
UTF-8
1,571
2.640625
3
[]
no_license
<?php require_once('../Controller/MovieController.php'); $name = $_POST['name']; $description = $_POST['description']; $trailer = $_POST['trailerUpload']; $year = $_POST['year']; $timeline = $_POST['timeline']; $director = $_POST['director']; $category = $_POST['category']; $stars = $_POST['stars']; $imageU...
true
6da62ad735dc3a2c0e328eac846de057548c3e78
PHP
neekekul/Barger-Insurance
/app/Http/Controllers/RegistrationController.php
UTF-8
2,688
2.96875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\User; use App\Mail\WelcomeToBarger; use Illuminate\Support\Facades\Mail; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Hash; use App\Http\Requests\RegistrationRequest; class RegistrationController extends Controller { // /** * Create a ...
true
27b6957e6f3d43cdc5262f0f6569006ed65537b6
PHP
leithdm/art-gallery
/app/database/migrations/2015_02_13_192611_create_arts_table.php
UTF-8
5,020
2.53125
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateArtsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('artists', function (Blueprint $table) { $table->increments('id'...
true
82aa764e371689e5c2e64f81c3630eef84cf52dc
PHP
donaldjohn/lease
/app/modules/vehicle/OldtonewController.php
UTF-8
3,297
2.53125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: zhaoyindi * Date: 2018/5/16 * Time: 19:33 */ namespace app\modules\vehicle; use app\models\service\Vehicle; use app\models\service\VehicleUsage; use app\modules\BaseController; class OldtonewController extends BaseController { /** * 查询老系统车辆信息 * @return \Pha...
true
c4db9438f7bcf898686b30613d145bc7fe98464b
PHP
Refuge89/aowow
/setup/tools/CLISetup.class.php
UTF-8
13,537
2.609375
3
[]
no_license
<?php if (!defined('AOWOW_REVISION')) die('invalid access'); if (!CLI) die('not in cli mode'); class CLISetup { const CHR_BELL = 7; const CHR_BACK = 8; const CHR_TAB = 9; const CHR_LF = 10; const CHR_CR = 13; const CHR_ESC = 27; ...
true
86a483e5ce219c14a11852be0c63945e875dd6c4
PHP
rahulyhg/shrekcms
/mimula/system/application/models/blogs.php
UTF-8
5,421
2.65625
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * * Modelo de blogs * * @package mulapress * @author Srdperu | Juan Alberto * @version Version 1.0 */ // ------------------------------------------------------------------------ /** * Modelo de blogs * * * @package mulapres...
true
6d64b5d9ea193447a14f426fa59abc085382d84f
PHP
habbes/opss
/app/views/_templates/paper-details.php
UTF-8
756
2.78125
3
[]
no_license
<?php /** * @var Paper */ $paper = $data->paper; ?> <div> <div> <span class="font-bold">Title</span><br> <?= $paper->getTitle()?> </div> <div> <span class="font-bold">Principle Researcher</span><br> <?= $paper->getResearcher()->getFullname()?> </div> <div> <span class="font-bold">Co-Authors</span><br>...
true
308d71612a754df580d1ba6d783dc6d8fe699675
PHP
thanhtuyen/code_api
/application/models/Can_model.php
UTF-8
1,831
2.890625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * The Can model * Handle the functions for lock table * @author ThinhNH * */ class Can_model extends Enjin_Model { private $_canTable = 'can_candidates'; private $_canCandidateId = 0; /** * construct */ public function __construct() { parent::__construct(); } private function updateFlag...
true
ea40bf8b61142e565ac713dcff011c6b80dfc96a
PHP
EdgardoCuellar/PUFF
/db_pages/db_3.php
UTF-8
3,733
2.59375
3
[]
no_license
<?php session_start(); include("../src/secure.php"); include("../src/profile.php"); $profile_info = profile($_SESSION['id']); $time_start = microtime(true); include '../src/db_connect.php'; $bdd->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sth = $bdd->query("SELECT name, country FROM (...
true
8c198f705dc2cb76cd79e06bbe305c3ba6a7d1c6
PHP
Barunaindra/Baruna-Indrakesuma
/oop.php
UTF-8
3,619
3.390625
3
[]
no_license
<?php class kendaraan { var $jumlahRoda; var $warna; var $bahanBakar; var $harga; var $merek; var $tahunPembuatan; function statusHarga() { if ($this->harga >50000000) $status = 'Mahal'; else $status = 'Murah'; return $status; } function dapatSubsidi() { if($this->bahanBakar == Premium && $this->t...
true
23bc5d352538d0f3989b336fa31361f585450152
PHP
hormoneGroup/easys_phalcon
/composer/vendor/phalcon/devtools/ide/3.2.4/Phalcon/Http/Response/HeadersInterface.php
UTF-8
291
2.53125
3
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
<?php namespace Phalcon\Http\Response { interface HeadersInterface { public function set($name, $value); public function get($name); public function setRaw($header); public function send(); public function reset(); public static function __set_state($data); } }
true
aac5875a73caef19c127ef1a06d7a6da077b4077
PHP
jSeird/phpFinTS
/lib/Fhp/DataElementGroups/SignatureAlgorithm.php
UTF-8
944
2.828125
3
[ "MIT" ]
permissive
<?php namespace Fhp\DataElementGroups; use Fhp\Deg; class SignatureAlgorithm extends Deg { const SIG_ALGO_USAGE_OSG = 6; // Owner Signing (OSG) const SIG_ALGO_DES = 1; const SIG_ALGO_RSA = 10; const OPERATION_MODE_CBC = 2; const OPERATION_MODE_ISO_9796_1 = 16; const OPERATION_MODE_ISO_9796_...
true
cd7041d3f449e9c7fc5c6073924e69a50427c253
PHP
ethelfajardo/BRSFMS
/app/Models/Message.php
UTF-8
816
2.515625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "CC0-1.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
<?php /** * Created by Reliese Model. * Date: Sun, 15 Oct 2017 18:14:51 +0800. */ namespace App\Models; use Reliese\Database\Eloquent\Model as Eloquent; /** * Class Message * * @property int $id * @property string $content * @property int $senderID * @property int $receiverID * @property \Carbon\Carbon $...
true
a7a6c4ee74e59a462ef05c0604b2a2b474ce4365
PHP
mathieu-bonhommeau/manage-moles-TAV
/src/Entity/Cu.php
UTF-8
2,458
2.5625
3
[]
no_license
<?php namespace App\Entity; use App\Repository\CuRepository; use Doctrine\Common\Collections\ArrayCollection; use Symfony\Component\Serializer\Annotation\Groups as Groups; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; use Symfony\Component\Validator\Constraints as Assert; use Doctrine\Common\Collect...
true
96aa09a66a71d8f7727476cbf6e63b4476d7a18c
PHP
enrigen/monologcsv
/src/Monolog/Handler/CsvHandler.php
UTF-8
2,530
2.90625
3
[]
no_license
<?php namespace Enrigen\Monolog\Handler; use Monolog\Formatter\FormatterInterface; use Monolog\Formatter\LineFormatter; use Monolog\Formatter\NormalizerFormatter; use Monolog\Handler\StreamHandler; /** * Stores to a csv file * * Can be used to store big loads to physical files and import them later into another s...
true
0fbc767bc700a8b9f3374360c54bc963ed5f97f2
PHP
lixufeng1992/YJPM
/Lib/Model/EmployerDao.class.php
UTF-8
4,549
2.546875
3
[]
no_license
<?php import("@.Model.CommonDao"); class EmployerDao extends CommonDao { // 插入用户数据 // 返回-1表示插入失败 成功则返回表中的id号 public function add($employer_number, $name, $entrytime, $company_entrytime, $birthday, $companyid, $departmentid, $gender, $deploma, $political_state, $positionid, $salaryid, $id_number, $phon...
true
3bcc9d87bcbbc0434e62c80e410f0e96eba7225d
PHP
OpenClassrooms/ServiceProxy
/src/Interceptor/Contract/AbstractInterceptor.php
UTF-8
5,272
2.703125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace OpenClassrooms\ServiceProxy\Interceptor\Contract; use OpenClassrooms\ServiceProxy\Annotation\Annotation; use OpenClassrooms\ServiceProxy\Handler\Contract\AnnotationHandler; use OpenClassrooms\ServiceProxy\Handler\Exception\DuplicatedDefaultHandler; use OpenClassrooms\ServiceP...
true
46f1cba430ac5f5054700ee540ea13c66b0a84cb
PHP
bdogan/php-database-tools
/src/PhpDatabaseTools/Mysql.php
UTF-8
6,038
3.0625
3
[]
no_license
<?php namespace PhpDatabaseTools; class Mysql { /** * @var resource Database resource */ private $db; private $config; /** * Connect to the database. * @param str[] config */ function connect($config) { $this->config = $config; if (($this->db = @mysql_pconnec...
true
b2cadc71da8dfeabf01dc7599d4b1bd77830ba44
PHP
YaKem/blog-symfony
/src/Controller/NewsletterController.php
UTF-8
906
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Controller; use App\Entity\Newsletter; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Routing\Annotation\Route; class News...
true
9e258243dae408bb3d983bca65f4196418f08ba2
PHP
yosmellopez/comercio
/src/Liip/ImagineBundle/Imagine/Data/DataManager.php
UTF-8
1,747
2.84375
3
[ "MIT" ]
permissive
<?php namespace Liip\ImagineBundle\Imagine\Data; use Liip\ImagineBundle\Imagine\Data\Loader\LoaderInterface, Liip\ImagineBundle\Imagine\Filter\FilterConfiguration; class DataManager { /** * @var FilterConfiguration */ private $filterConfig; /** * @var string|null */ private $...
true
64395a2ff88ab86abb5979441661afc589bf506f
PHP
WouterVeen/TrengoSDK
/src/Api/Traits/QuickActions.php
UTF-8
2,726
2.921875
3
[ "MIT" ]
permissive
<?php namespace TheCodeBakery\Trengo\Api\Traits; use Api\Trengo; /** * Trait QuickActions * * @package App\Domain\Services\Trengo\traits */ trait QuickActions { abstract public function sendRequest(string $url, string $method = Trengo::GET, array $body = []); abstract public function returnResponse(\Psr...
true
5f771169b28b6830a9c02aaca6019340be2e16e0
PHP
fz20140409/ks-platform
/app/Http/Controllers/Admin/BaseController.php
UTF-8
985
2.71875
3
[]
no_license
<?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Http\Controllers\Controller; /** * 后台抽象控制器 * Class BaseController * @package App\Http\Controllers\Admin */ class BaseController extends Controller { protected $page_sizes=array();//定义每页显示几条数组 protected $page_size=10;////定义...
true
839729427870c13b40fac00e62a9da83b48ebf76
PHP
cubaguest/CubeCMS
/lib/form/filter/form_filter.class.php
UTF-8
762
2.609375
3
[]
no_license
<?php /** * Třída pro implementaci filtru aplikujícího na formulářová element * * @copyright Copyright (c) 2008-2009 Jakub Matas * @version $Id: $ VVE6.0.0 $Revision: $ * @author $Author: $ $Date: $ * $LastChangedBy: $ $LastChangedDate: $ * @abstract Třída pro vytvoření fitru */ cl...
true
abd853e0e7170b51be6d8451db13550b759b3c62
PHP
wingzero0/EventMe
/ActivitySuggestion/PhpClass/keyword.php
UTF-8
4,531
2.859375
3
[]
no_license
<?php require_once __DIR__ . '/../utility.php'; require_once CONNECTIONPATH . "/connection.php"; class Keyword{ protected $mysqli; public function __construct($sqlObj = NULL){ if ($sqlObj != NULL){ $this->mysqli = $sqlObj; }else{ global $g_mysqli; $this->mysqli = $g_mysqli; } } public funct...
true
c8b1451aa5c93baec05305bf3ac083a9da75691d
PHP
Kyteo/PariNolas
/Admin/visionnerCommandes.php
UTF-8
4,038
2.71875
3
[]
no_license
<?php ?> <html> <head> <title>Version administrateur: visionnement inventaire</title> <meta charset="UTF-8"> <link href="design.css" type="text/css" rel="stylesheet" /> </head> <body> <hr><span class="voirCommandes"><img src="pn-logo-petit.png" alt="PariNolas logo"><br></span><hr> <div class="vo...
true
d53158a4976ffe5cc822fb3cc0062dd9edd05448
PHP
AchillesLe/OurWebsite
/Shoesmarket/app/Receipt.php
UTF-8
919
2.703125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * @property int $id * @property int $idseller * @property int $idemployee * @property string $namepackage * @property int $newquantity * @property float $money * @property string $created_at * @property string $updated_at * @property Employee ...
true
10b9d0d6282efbe0b896f20d4877b7f8cd70f066
PHP
syedhamzahussain/fitts_quiz
/includes/class-fitts-quiz.php
UTF-8
5,440
2.609375
3
[]
no_license
<?php /** * Main File For The Frontend stuff. * * @package fitts-plugin * @since Date: 8-25-2020 */ if ( ! defined( 'ABSPATH' ) ) { return; } if ( ! class_exists( 'Fitts_Quiz' ) ) { /** * Main Class For Fitts Quiz. */ class Fitts_Quiz { /** * Constructor Function. */ public function __construc...
true
b8a8745b55c81804b3f630335de08b6829ba25ad
PHP
TheRealMarcusChiu/PHPMasterExample
/src/third.party/test/mockery.v.phpunit/mockery/PartialMocksTest.php
UTF-8
693
3.15625
3
[]
no_license
<?php class ReturningValuesTest extends PHPUnit_Framework_TestCase { protected function tearDown() { \Mockery::close(); } function testSimpleReturnValue() { // Mockery $mockeryMock = \Mockery::mock(Greeter::class) ->shouldAllowMockingProtectedMethods() ->makePartial(); $mockeryMock->shouldReceive('...
true
eea9a942d9a438a3641990fb4cc8e24485cc97a6
PHP
NourEldin275/WordPressAPISymfonyBundle
/src/NourEldin275/WordPressAPISymfonyBundle/Service/ApiHandler.php
UTF-8
743
2.84375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Nour Eldin * Date: 1/20/2017 * Time: 5:21 PM */ namespace NourEldin275\WordPressAPISymfonyBundle\Service; class ApiHandler { private $wordpress_url; public function __construct($url) { $this->setWPURL($url); } /** * Used in the construc...
true
2053d39fd3513739a539f363fbddb72c387ee86e
PHP
brpauwels/weekly-meal
/src/Projection/User/UserReadModel.php
UTF-8
683
2.6875
3
[]
no_license
<?php declare(strict_types=1); namespace App\Projection\User; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name="projection_user") */ class UserReadModel { /** * @ORM\Id * @ORM\Column(type="string") * @ORM\GeneratedValue(strategy="NONE") */ private string $id; ...
true
16d449455bc8586ef9ce0bb3d1ff627e72a8238f
PHP
ithsc/wordpress
/php/07_loops.php
UTF-8
678
3.59375
4
[]
no_license
<?php $counter = 0; // while($counter < 10) { // echo $counter.'<br>'; // $counter++; do { echo $counter.'<br>'; $counter++; } while ($counter < 10); for ($i = 0; $i < 10; $i++) { echo $i.'<br>'; } $fruits = ["Banana", "Apple", "Orange"]; foreach ($fruits as $fruit) { echo $fruit.'<br>'; } ...
true
c67f13095ce8112530627ddc4957c393d729449e
PHP
Tamma1234/cms
/app/Masks/Products/AttributeValueMask.php
UTF-8
3,604
2.609375
3
[]
no_license
<?php namespace App\Masks\Products; use App\Models\AttributeValue; use Crazy\Magic\Mask; class AttributeValueMask extends Mask { // xem thêm ExampleMask /** * thêm các thiết lập của bạn * ví dụ thêm danh sách cho phép truy cập vào thuộc tính hay gọi phương thức trong model * hoặc map vs các qu...
true
f746bc66b76bac995b46e49bbd83458cca626f17
PHP
assadullahchaudhry/crm-api-2
/bootstrap/helpers.php
UTF-8
3,191
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Http; use App\Models\OAuthClient; use App\Models\User; function getRandomId() { return abs(crc32(uniqid())); } function bcrypt($str) { return app('hash')->make($str); } function uuid() { return Ramsey\Uuid\v4(); } function getFileSize($bytes, $decimal = 2) { $...
true
de577d22d85f882da9ae67777ac3023a05713c7d
PHP
Stolz/php-stubs
/res/php/maxdb/functions/maxdb-get-host-info.php
UTF-8
256
2.53125
3
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
<?php /** * Returns a string representing the type of connection used * * @phpstub * * @param resource $link * * @return string A character string representing the server hostname and the connection type. */ function maxdb_get_host_info($link) { }
true
a7db446e1a17dc2eed09be7f42592f20dc3d68c0
PHP
Runalyze/Runalyze
/tests/inc/core/View/RpeColorTest.php
UTF-8
1,185
2.59375
3
[]
no_license
<?php namespace Runalyze\Tests\View; use Runalyze\View\RpeColor; class RpeColorTest extends \PHPUnit_Framework_TestCase { public function testEmptyObject() { $object = new RpeColor(); $this->assertNull($object->value()); $this->assertEquals('transparent', $object->borderColor()); ...
true
29bc4c5bcf17e0289600558948097c8ead7b37af
PHP
lgoldstien/orno-tasks
/modules/Api/src/Api/Model/TaskModel.php
UTF-8
1,400
2.890625
3
[]
no_license
<?php namespace Api\Model; use Orno\Db\Query; class TaskModel { protected $query; protected $task; public $result; public function __construct( Query $query ){ $this->query = $query; } public function getAll() { $this->query->prepare("select * from tasks")->...
true
f10433e1f5069276a3385399fed658c1e5ce984c
PHP
jekamell/SimpleDtoBundle
/EventListener/ExceptionListener.php
UTF-8
2,898
2.53125
3
[ "MIT" ]
permissive
<?php namespace Mell\Bundle\SimpleDtoBundle\EventListener; use Psr\Log\LoggerInterface; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent; use Symfony\Component\HttpKernel\Exception\HttpException; /** ...
true
e4f5a122d2c27d7e010075f53008c5011235e251
PHP
DewHunt/vintage
/application/views/reports/periodic_sales_details_report/periodic_sales_details_table.php
UTF-8
5,615
2.53125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php $periodic_report_view_by_date; $total = 0; foreach ($periodic_report_view_by_date as $periodic_report) { $total += (double) $periodic_report->total_amount; } ?> <table class="table table-striped" style="width: 100%" id="details-table"> <thead class="thead-default"> <tr> ...
true
e0abb2053233d2aff9441d2edb7bd4051495a983
PHP
ACM-UCI/acmuci.com
/adm/create_location.php
UTF-8
2,721
2.65625
3
[]
no_license
<?php define('IN_SITE', true); require_once 'adm_common.php'; include_once APP_ROOT . 'models/Location.php'; if (isset($_GET['id'])) $bldg_id = filter_var($_GET['id'], FILTER_SANITIZE_NUMBER_INT); if (isset($_POST['create']) || isset($_POST['update'])) { if (!empty($_POST['bldg_id'])) $bldg_id = filter_var($_POS...
true
9c7c7b82340b4bd73864ac2e900a6e0526ac8f62
PHP
miamibc/joker-telegram-bot
/src/Parser/Video.php
UTF-8
1,087
2.71875
3
[ "MIT" ]
permissive
<?php /** * Telegram Bot API parser for Joker * * @package joker-telegram-bot * @author Sergei Miami <miami@blackcrystal.net> */ namespace Joker\Parser; /** * This object represents a video file. * @see https://core.telegram.org/bots/api#video * * @method string file_id() Identifier for this file, which can ...
true
5175a67c276d02bd61278da9366e779750a7d84e
PHP
wajaja/sf-opi
/src/OP/PostBundle/Event/PostEvent.php
UTF-8
442
2.703125
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace OP\PostBundle\Event; use Symfony\Component\EventDispatcher\Event; class PostEvent extends Event { /** * The message * @var MessageInterface */ private $post; public function __construct(array $data) { $this->post = $data; } /** * Returns the messa...
true
224165d20f126b4dc8a1fb5398b6e008ceef55f9
PHP
DiegoTorresYnca/SistemaHotel
/core/app/model/ReferidosData.php
UTF-8
877
2.8125
3
[]
no_license
<?php class ReferidosData { public static $tablename = "referido"; public static function obtenerReferidos(){ $sql = "SELECT * FROM ".self::$tablename; $query = Executor::doit($sql); return Model::many($query[0],new ReferidosData()); } public function insertReferido(){ $sql = "INSERT INTO ".self::$tablen...
true
f4e30cba49eafaa50beca36adda04809737a0e79
PHP
addeye/peminjaman-
/admin/gedung/gedung.form.php
UTF-8
871
2.625
3
[]
no_license
<?php // panggil file koneksi.php include "../../koneksi/conn.php"; // buat koneksi ke database mysql // tangkap variabel id_mhs $id_gedung = $_POST['id']; // query untuk menampilkan dosen berdasarkan id_mhs $data = mysqli_fetch_array(mysqli_query($sqli,"SELECT * FROM gedung WHERE ID_GEDUNG= '$id_gedung'...
true
eeae3be19f79934419583404f161eed7583e9f96
PHP
HiannP/Senai
/GABINETEC/Administrador/Inserir/tb_insert_produto.php
UTF-8
2,091
2.59375
3
[]
no_license
<?php $sql = "SELECT * FROM tb_Categorias"; include "../conexao.php"; $categorias = $conn -> prepare($sql); $categorias -> execute(); $conn = null; $sql1 = "SELECT * FROM tb_Marcas"; include "../conexao.php"; $marcas = $conn -> prepare($sql1); $marcas -> execute(); $conn = null; ?> <!DOCTYPE html> <html ...
true
0fa4bb609addc2c70931923c139e2934224324af
PHP
bva100/cms
/src/Cms/CoreBundle/Services/Api/ApiException.php
UTF-8
7,967
2.5625
3
[ "MIT" ]
permissive
<?php /** * User: Brian Anderson * Date: 9/2/13 * Time: 5:03 PM */ namespace Cms\CoreBundle\Services\Api; use Symfony\Component\HttpKernel\Exception\HttpException; use RuntimeException; class ApiException extends HttpException { public function __construct($code, $format, $customMessage = null) { ...
true
034051adbea35fd3a01f52284ff6b351197ab968
PHP
nitrolovsky/dnserver1
/database/migrations/2016_09_21_082245_create_duties_table.php
UTF-8
1,087
2.59375
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; class CreateDutiesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { ...
true
28ad589aaaea42dda757d96080267efba5a73b0f
PHP
jo3ydigital/crud-superheroes-php
/search/index.php
UTF-8
2,486
3.125
3
[]
no_license
<?php /** * Simple CRUD endpoint * @author Joey Digital * @version v1.0 | 2017-07-18 * @return JSON messages with the format: * * { "response": "0" } * { "response": "1" } * * If the query fails, MySQL will return 0. * However, we can return anything that we want for specific use cases, etc. */ # TESTING T...
true
d4afcd390d92bb8bea0c1be71468f88f3ca761de
PHP
MontealegreLuis/php-testing-tools
/ewallet/src/Adapters/Laminas/Application/InputValidation/LaminasInputFilter.php
UTF-8
1,203
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * PHP version 7.4 * * This source file is subject to the license that is bundled with this package in the file LICENSE. */ namespace Adapters\Laminas\Application\InputValidation; use Application\InputValidation\InputFilter; use Laminas\Filter\StringTrim; use Laminas\Filter\ToFlo...
true
3e3626e1dabdcbd7a5c7fb19077fe6d8b26799ff
PHP
geovanymantilla/Cokeboss
/Panaderia/modelo/objetos/inventario_producto.php
UTF-8
2,014
3.140625
3
[]
no_license
<?php /** *class CLiente *@autor:Henry Geovanny Ortega Mantilla *@date: 2019/01/10 *@version:1.0 */ class inventario_producto { private $id_producto; private $id_inventario; private $fecha_inventario; private $cantidad_inv_producto; private $descripcion; private $e...
true
70651aa51d010e2248d5de87209423350ba9d6ad
PHP
BeerIS/api1
/index.php
UTF-8
1,368
2.65625
3
[]
no_license
<?php use \Psr\Http\Message\ServerRequestInterface as Request; use \Psr\Http\Message\ResponseInterface as Response; require 'vendor/autoload.php'; $app = new \Slim\App; $app->get('/', function(){ echo "Hello World"; }); $app->get('/hello',function(Request $req,Response $res){...
true
ad8c85d82ab467ed965b53335493e4d6da8eb3d3
PHP
sysvyz/anaN
/src/Tree/ConstantNode.php
UTF-8
615
2.875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: angus * Date: 28.07.16 * Time: 23:58 */ namespace AnaN\Tree; use AnaN\Tree\Interfaces\ConstantNodeInterface; use AnaN\Tree\Interfaces\VisitorInterface; class ConstantNode extends AbstractDerivableNode implements ConstantNodeInterface { private $value; /** * Constan...
true
b650abb55f9e7e45d29d136461869e9e605b7484
PHP
bjbjbjbj/qiushengke
/qsk-match/app/Models/LiaoGouModels/SportBettingBd.php
UTF-8
1,002
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Models\LiaoGouModels; use Illuminate\Database\Eloquent\Model; class SportBettingBd extends Model { protected $connection = 'liaogou_lottery'; public $timestamps = false; static public function saveDataWithWinData($wbd,$has_result){ $sportBetting = SportBettingBd::where('num',...
true
8bcdd472cff1090c69dfe44aefebab7be48d898b
PHP
KeitaSugiyama/otonari_asp
/include/extends/ConceptCheck.php
SHIFT_JIS
4,509
3.234375
3
[]
no_license
<?php /** @brief RZvgNXB @details XNvg̃RZvg𖞂ĂȂꍇɗOX[܂B */ class ConceptCheck { private static $ExceptionName = 'InvalidQueryException'; ///<X[ONX /** @brief X[OύXB @exception InvalidArgumentException $name_ ɋ󕶎w肵A܂ $name_ NX‚ȂꍇB @param $name_ ONXB */ private static fu...
true
d641ece1ac233b330a23ba338900012325beca7d
PHP
wycrash/bitrix-classes
/Exchange/Test.php
UTF-8
906
2.5625
3
[ "Apache-2.0" ]
permissive
<?php namespace App\Exchange1C; class Test extends Exchange { private $exchangeType = 'products'; private $exchangePathFrom1c; private $exchangePathTo1c; private $exchangePathTo1cLatest; public function __construct(string $exchangePath, $params = []) { $this->exchangePathFrom1c = $ex...
true
be368ee8ebd35a5ffa578cddba7c88aa60e07cd5
PHP
neomerx/core
/src/Models/Language.php
UTF-8
2,149
2.71875
3
[]
no_license
<?php namespace Neomerx\Core\Models; use \Carbon\Carbon; /** * @property int id_language * @property string name * @property string iso_code * @property-read Carbon created_at * @property-read Carbon updated_at * * @package Neomerx\Core */ class Language extends BaseModel { /** Model tab...
true
8427dc68608373b2404f5d048d006aef2ac62203
PHP
ashrafsayed2018/tweety-app
/app/Http/Controllers/ProfileController.php
UTF-8
1,990
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\User; use Illuminate\Http\Request; use Illuminate\Validation\Rule; use Illuminate\Support\Facades\Storage; class ProfileController extends Controller { public function show(User $user) { $tweets = $user->tweets()->latest()->paginate(50); return vie...
true
c751e379972ed862556bbc7ea0d04ffdd2565da8
PHP
rodrigopedra/record-processor
/src/ProcessorBuilder.php
UTF-8
2,198
2.75
3
[ "MIT" ]
permissive
<?php namespace RodrigoPedra\RecordProcessor; use Illuminate\Contracts\Container\Container; use Psr\Log\LoggerAwareInterface; use Psr\Log\LoggerInterface; use RodrigoPedra\RecordProcessor\Concerns\Builder; use RodrigoPedra\RecordProcessor\Contracts\ProcessorStage; class ProcessorBuilder implements LoggerAwareInterfa...
true
6be1cf289a04b110ae401d013d6a55bef405ba96
PHP
skipify/vitexframework
/vitex/helper/attribute/parser/ParseDataInterface.php
UTF-8
2,652
2.75
3
[ "MIT" ]
permissive
<?php namespace vitex\helper\attribute\parser; /** * 解析注解数据存储结果的实体接口 * @package vitex\helper\attribute\parser */ interface ParseDataInterface { /** * 设置注解 * @return \ReflectionAttribute */ public function getAttribute(): \ReflectionAttribute; /** * 获得注解 * @param \ReflectionA...
true
bf36357735c63af4586ca2c096d228a8d6911178
PHP
lpslpsl/phpcrmdjt
/src/14/demo14_19.php
UTF-8
644
3.0625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: $lps * Date: 2017/6/13 * Time: 11:15 */ class demo14_19 { private $type; private function __get($name) { if (isset($this->$name)){ echo "变量name的值为" . $name; }else{ echo "变量".$name.".未定义初始化为0"; $this->$name = 0; } } ...
true
fdd2ec998dbd0305b73f0396fb7db2db8d334dce
PHP
boiko-m/currency
/models/Currency.php
UTF-8
1,451
3.15625
3
[]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "currency". * * @property int $id * @property string $name * @property string $rate */ class Currency extends \yii\db\ActiveRecord { /** * {@inheritdoc} */ ...
true
10c6a71a35801e88011e71703e0bf4063213a000
PHP
nandymandy1/nuxt-wp-mysql-docker
/wordpress/plugins/wordpress-seo/src/deprecated/frontend/schema/class-schema-webpage.php
UTF-8
1,515
2.578125
3
[ "MIT", "GPL-1.0-or-later", "GPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-other-copyleft" ]
permissive
<?php /** * WPSEO plugin file. * * @package WPSEO\Frontend\Schema */ use Yoast\WP\SEO\Generators\Schema\WebPage; /** * Returns schema WebPage data. * * @deprecated 14.0 * * @since 10.2 */ class WPSEO_Schema_WebPage extends WPSEO_Deprecated_Graph_Piece { /** * The date helper. * * @var WPSEO_Date_Hel...
true
7142a5ac3d3932a0f05b51b5da1da2de0cb1c74b
PHP
stefna/secrets-manager
/packages/psr-6-provider/src/Psr6Provider.php
UTF-8
2,598
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Stefna\SecretsManager\Provider\Psr6; use Cache\TagInterop\TaggableCacheItemInterface; use Psr\Cache\CacheItemInterface; use Psr\Cache\CacheItemPoolInterface; use Stefna\SecretsManager\Provider\ProviderInterface; use Stefna\SecretsManager\Values\Secret; final class Psr6Provide...
true
de178acda32f31d26f405e85db47317641f6c0b8
PHP
daviti/PHP
/sample||.php
UTF-8
1,259
2.671875
3
[]
no_license
​<html>​ <head>​ <title></title>​ <link type="text/css" rel="stylesheet">​ <style>​ table, td { border: 1px solid black; padding: 10px; } table { border-collapse: collapse; margin: 50px; } h1 { margin: 50px; } table th { border: 1px solid black; font-size: 20px; ...
true
7ffbe100d5671da45b8b001bd30b7ff8fce94400
PHP
fain182/wibbo
/src/Wibbo/Entity/Organization.php
UTF-8
390
3
3
[]
no_license
<?php namespace Wibbo\Entity; class Organization { public $id; public $name; public function __construct($name, $id = null) { $this->name = $name; $this->id = $id; } public function getName() { return $this->name; } public static function fromRow($row) ...
true
6e4caa5073308f8d0f18fbd0af6905f8d5ce1be4
PHP
nitish-mca/road
/coexpression/draw_network.php
UTF-8
8,593
2.578125
3
[]
no_license
<?php $host = 'localhost'; $dbname = 'test'; $username = 'root'; $password = 'JustD01t!'; // include function files for this application require_once('../RAD_fns.php'); $conn = mysqli_connect($host, $username, $password, $dbname); //create short variable names $genelist = $_POST['genelist']; $cutoff = $_POST['cutoff...
true
97bc7b055595445c28fae9244286815d88471ea6
PHP
auliaguss/ProjectSip_Aulia
/database/seeds/PermissionTableSeeder.php
UTF-8
604
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use Spatie\Permission\Models\Permission; class PermissionTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $permissions = [ 'role-list', 'role-create', ...
true
bbf89e36402df96fc81e476420a65eaaab88da9d
PHP
dallincoons/settings-laravel
/src/Services/SettingsSyncer.php
UTF-8
1,813
2.5625
3
[]
no_license
<?php namespace SMST\SettingsLaravel\Services; use SMST\Settings\Repository\SettingsRepository; use SMST\Settings\Setting; use WSNYC\ClassFinder\ClassFinder; class SettingsSyncer { /** * @var SettingsRepository */ private $repository; public function __construct(SettingsRepository $repository)...
true
716fdae556461510eb8acb8a144fe07b9123ea7b
PHP
laurenashley205/Database-Term-Project
/createRSO.php
UTF-8
2,649
2.53125
3
[]
no_license
<?php include_once 'header.html'; if(!isset($_SESSION["pid"])){ header("location: signup.php"); exit(); } ?> <div class="welcome-screen"> <h2>Create a new RSO</h2> </div> <div class="form-sheet"> <form action="createRso.inc.php" method="POST"> <input type="text" name="name" placeholder="RSO Name"> <br><br> ...
true
58f5c26c3768ebb93b57342dc3771d8a28f22b4a
PHP
shreejan-regmi01/PHP-Project2
/functions/functions.php
UTF-8
2,545
2.9375
3
[]
no_license
<?php function loadFromTemplate($nameOfFile, $templateVariables){ extract($templateVariables);//extract all the variables in array ob_start();//start of content buffer require $nameOfFile;//importing file $pageContent = ob_get_clean();//stopping content buffer and storing in variable return $pageContent;//r...
true
2fc2227cd5b5dc2069c5db5add8c7e965e97612a
PHP
ivantxo/shop_api
/src/Authentication/ProtectedRoute.php
UTF-8
1,020
2.796875
3
[]
no_license
<?php namespace App\Authentication; use App\Core\JsonResponse; use Firebase\JWT\JWT; use Psr\Http\Message\ServerRequestInterface; final class ProtectedRoute { /** * @var string $jwtKey */ private $jwtKey; /** * @var callable */ private $middleware; public function __const...
true
26ac4fb7137bb4e55fc3bab3b1f05c3543d752d5
PHP
ssekar1/Section-2-Team-4-master
/www codes/duke backup file/loginoriginal.php
UTF-8
3,029
2.5625
3
[]
no_license
<?php /* comments goes here !!! */ $debug = false; session_start(); include ("headHTML.html"); $error=''; // variable to hold error message if (isset($_POST['submit'])) if (empty($_POST['loginId']) || empty($_POST['password'])) $error = "Username or Password is invalid"; else { // Define $username ...
true
3843828269ca9c1e02279cb277d71a75949ca030
PHP
nicosli/sr_pago_project
/app/Http/Controllers/PricingController.php
UTF-8
5,100
2.671875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Http\Controllers\CacheController; use Illuminate\Support\Facades\Cache; use Illuminate\Http\Request; use App\Models\Addresses; use Validator; class PricingController extends Controller { /** * Retrieve gas pricing * * @param \Illuminate\Http\Request...
true
477b523423e25c0a3d08c1ae9676a91d376e8c98
PHP
oussemos/malicious_removal
/remove.php
UTF-8
1,035
2.921875
3
[]
no_license
<?php //Enter it as it is and escape any single quotes //Replace Malicious Code $find='Malicious Code'; echo findString('./',$find); function findString($path,$find){ $return=''; ob_start(); if ($handle = opendir($path)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..")...
true
03c2e051bdd5b75da27ba922fe29cdb36d2271f9
PHP
sarifjaman/ecom
/admin/views/add-category-view.php
UTF-8
958
2.578125
3
[]
no_license
<?php $obj_adminback = new adminBack(); if (isset($_POST['ctg_btn'])) { $ret_msg = $obj_adminback->add_category($_POST); } ?> <h2>Add Category</h2> <br> <?php if (isset($ret_msg)) { echo $ret_msg; unset($ret_msg); } ?> <form action="" method="post"> <div class="form-group"> <label for="ctg-nam...
true
f8ffd9a33715a59d97fc1391faf4c62f2315c745
PHP
alexdebril/feed-io-extended-rss
/src/FeedIo/Feed/Item/MediaInterface.php
UTF-8
8,201
2.828125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of the feed-io package. * * (c) Alexandre Debril <alex.debril@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace FeedIo\Feed\Item; /** * Describe a Media in...
true
ce6f0495f222674075383405b1966665a65213f8
PHP
569616226/youqikangapi
/app/Containers/QuestionDetail/UI/API/Transformers/QuestionDetailTransformer.php
UTF-8
1,024
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Containers\QuestionDetail\UI\API\Transformers; use App\Containers\QuestionDetail\Models\QuestionDetail; use App\Ship\Parents\Transformers\Transformer; class QuestionDetailTransformer extends Transformer { /** * @var array */ protected $defaultIncludes = [ ]; /** ...
true
c450d635e12204985938d3830cd4b7d2ff6d7106
PHP
notnavindu/PHP-Basic-Cheat-Sheet
/ex4.php
UTF-8
158
3.453125
3
[]
no_license
<!DOCTYPE html> <html> <body> <?php $C = 30; $D = 50; if($C > $D){ echo "C is the largest"; }else { echo "D is the largest"; } ?> </body> </html>
true
b44531cd2000e2e04b3326aac00bd4415265ede0
PHP
posokhov/registration
/core/models/Voopsc/DataReciver.php
UTF-8
692
2.9375
3
[]
no_license
<?php namespace Voopsc; /** Class which get different data as config, data array and other from files * */ class DataReciver { // function __construct() // { // // code... // } /** Get data from file by $filepath and return it as array * * @para...
true
c83a0e6b8ee6e026c1952f1e91fb2db7d9ff6969
PHP
jssellars/ECommerceApp
/wrapper-tool/app/Classes/EcommerceWrapper.php
UTF-8
2,039
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Classes; class EcommerceWrapper implements EcommerceInterface { private $config = array(); //public $ecommerceClient; /** * get object instance. * * @return void */ public function __construct() { //$this->ecommerceClient = new ecommerceClient(); } public function setConfi...
true
9f622d02689ff46e1d53df269ed363e5178e02d1
PHP
jjkong15/gitsample
/wp-content/plugins/TotoNews/proxy.php
UTF-8
581
2.671875
3
[]
no_license
<?php header('Content-type: application/xml'); //Build the URL in the proxy, this is a security thing $theCountry=$_REQUEST['geo']; $theURL= 'https://news.google.com/news/feeds?q=' . $_REQUEST['keywords'] . '&output=rss'; if(!empty($theCountry)){ $theURL.="&geo=".$theCountry;} //$theURL=str_replace("!!", "&", $theURL...
true
b21265180cb06889cf8b4771d66c0e9c818fc747
PHP
luobobaozi/HC
/Server/GameServer/codeGen2/xcodegen/XEnum.php
UTF-8
436
2.90625
3
[]
no_license
<?php /** * @author LiangZhixian * 2010-09-24 */ class Emember { var $name; var $value; }; class XEnum { var $name; var $members; var $member_codes; public function genDetails() { $this->member_codes = $this->genMemberCode(); } private function genMemberCode() { $s = ''; foreach($this...
true
51e65699a504ee9adcc1418b40cfee5a9862baab
PHP
01-08cnweb/BTL_CNWeb
/activate.php
UTF-8
874
2.625
3
[]
no_license
<?php include 'connect.php'; // check first if record exists $sql = "SELECT userid FROM users WHERE verification_code = '".$_GET['code']."' and status = '0'"; $result = mysqli_query($conn, $sql); if(mysqli_num_rows($result)>0){ // update the 'status' field, from 0 to 1 (unverified to ve...
true
83a1ffaaf490d4a53538b58734e1a2cd25680038
PHP
chrnelson/bth_oophp
/src/route/tarning.php
UTF-8
2,102
2.5625
3
[]
no_license
<?php /** * Dice game specific routes. */ //var_dump(array_keys(get_defined_vars())); $app->router->any(["GET", "POST"], "tarning", function () use ($app) { $data = [ "title" => "Tärningsspel 100", ]; // Set the session if (session_status() == PHP_SESSION_NONE) { session_name("dicega...
true