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
2aaf1cc06ec689b95d82d756d3aee39dd41a12f5
PHP
kafei123/coffeephp
/coffee/coffee/Loader.php
UTF-8
6,883
2.953125
3
[]
no_license
<?php // +---------------------------------------------------------------------- // | CoffeePHP // +---------------------------------------------------------------------- // | Author: 咖啡屋少年 <a710292863@qq.com> // +---------------------------------------------------------------------- namespace coffee; class Loader { ...
true
78a5a5026f05b5389c7472052eb644300914c4d9
PHP
30020744/SCP_Arun
/scp/connection.php
UTF-8
2,733
2.8125
3
[]
no_license
<?php // Create Database credential variables $user = "a3002074_arun"; $password = "9496621963@arun"; $db = "a3002074_scp"; // Create php db connection object $connection = new mysqli('localhost', $user, $password, $db) or die(mysqli_error($connection)); // Get all data from the...
true
38f03b704fffbd09e45bff439a584052e535a39c
PHP
mneuhaus/Famelo.Bean
/Resources/Private/Beans/Model/Methods/Set.php
UTF-8
189
2.828125
3
[]
no_license
<?php class Set { /** * Sets the __name__. * * @param __type__ $__name__ */ public function set__Name__($__name__) { $this->__name__ = $__name__; } }
true
80d669fc5410f66c39d6de7ce5fad24c7513d276
PHP
RenDaRen/firstGit
/topic/十进制转二进制.php
UTF-8
743
3.875
4
[]
no_license
<?php /** * 1. 十进制整数转换为二进制整数 十进制整数转换为二进制整数采用"除2取余,逆序排列"法。具体做法是:用2整除十进制整数,可以得到一个商和余数;再用2去除商,又会得到一个商和余数,如此进行,直到商为0时为止,然后把先得到的余数作为二进制数的低位有效位,后得到的余数作为二进制数的高位有效位,依次排列起来。 */ function Dec2Bin($dec) { if (!is_int($dec)) return false; $bin = ''; while ($dec>1) { $bin .= $dec%2;//余数 ...
true
f2decd37a90b744aeb6f08c6b854a4a3df7f414c
PHP
monitotxi/PointsRedistribution
/src/App.php
UTF-8
2,276
3.5625
4
[]
no_license
<?php namespace PointsRedistribution; include '../vendor/autoload.php'; class App { const NUMBER_OF_ITEMS = 5; private $pointsNeeded; public function __construct(PointsNeeded $pointsNeeded) { $this->pointsNeeded = $pointsNeeded->calculate(self::NUMBER_OF_ITEMS); } /** * 5 items...
true
63671e6748242632913d40a232bb6a2a53ca7e4e
PHP
slayfer-dev/Challenges-sol
/Programming/Codeabbey/085/KOR_Ryat.php
UTF-8
699
2.828125
3
[]
no_license
<!--Author KOR_Ryat--> $handle = fopen("./data.txt", "r"); list($count,$deg) = explode(' ',fgets($handle,65536)); for($i=0;$i<$count;$i++){ list($name,$x,$y) = explode(' ',fgets($handle,65536)); $r = sqrt($x*$x+$y*$y); $theta = getdeg($x,$y) + $deg; $x = round($r*cos(deg2rad($theta)),10); $y = round...
true
499871fb04aefee0070d62c4d398174bde318a94
PHP
aursedy/school-management
/School management/login.php
UTF-8
1,833
2.546875
3
[]
no_license
<?php require_once("classes/DBConnection.php"); require_once("classes/login.php"); $errorLogin = $errorHeslo =$errorMsg= ''; if($_SERVER['REQUEST_METHOD']=="POST"){ if(!empty($_POST['login']) && !empty($_POST['heslo'])){ $con = new Login(); $errorMsg = $con->loginAttempt($_POST['login'],$_POST['heslo']...
true
299784ab23d663ac8153492789dee19ceee0b20a
PHP
EventSourcingLaravel/AggregateAwareProjectionEngine
/src/Stubs/AggregateRootIdStub.php
UTF-8
436
2.546875
3
[]
no_license
<?php namespace Robertbaelde\ProjectionEngine\Stubs; use EventSauce\EventSourcing\AggregateRootId; class AggregateRootIdStub implements AggregateRootId { public function __construct(public string $id) { } public function toString(): string { return $this->id; } public static fun...
true
829bc9fbbf238171006903ff8f2be18a49e25dcd
PHP
joachimdieterich/laravel-curriculum-adminlte3
/app/Http/Controllers/ReferenceController.php
UTF-8
2,157
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Reference; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; class ReferenceController extends Controller { /** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Re...
true
d3148b4b8eb52e88ec5ba2c538e83bf2f890bb7f
PHP
logdef/e-tahta_crm
/app/Http/Controllers/Backend/LectureController.php
UTF-8
5,459
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Backend; use App\Http\Controllers\Controller; use App\Lessons; use App\Schools; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; class LectureController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\R...
true
6b1ff6e488339fad7229eb7e4495b104a73addb9
PHP
jmc076/GolgoFramework
/Private/Modules/GFStarterKit/EntitiesLogic/UserManagementLogic/PermissionsLogic.php
UTF-8
1,037
2.625
3
[ "Apache-2.0" ]
permissive
<?php namespace Modules\UserManagement\EntitiesLogic; use Controllers\ExceptionController; use Modules\GFStarterKit\Entities\UserManagement\Permissions; class PermissionsLogic extends UserManagementLogicCRUD { public function getEntity() { return new Permissions(); } public function read($dataArray) { $retu...
true
3340ed439e5d6cf43265837e59918dadc2c87fe2
PHP
DigitalState/Core
/src/Acl/Migration/Version0_17_0.php
UTF-8
2,484
2.515625
3
[ "MIT" ]
permissive
<?php namespace Ds\Component\Acl\Migration; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; /** * Class Version0_17_0 * * @package Ds\Component\Acl */ final class Version0_17_0 extends AbstractMigration { /** * Up migration * * @param \Doctrine\DBAL\Schema\Schema $s...
true
830b20756b5fd066b6f9cbe217b5293a9325d1fe
PHP
M1nuit/TMSIAB
/SERVER/DedicatedServer/MistralAseco81/plugins/mistral.quit.php
UTF-8
489
2.578125
3
[]
no_license
<?php Aseco::addChatCommand("quit", "quit the game, leaving a message"); function chat_quit($aseco, $command) { $message = $command['params']; $player = $command['author']; $player->mistral['quit'] = "quit"; $login = $player->login; $nickname = $player->nickname; $message=$nickname.'$z$s{#message} left the b...
true
516891a21e903f2f80586aa95d56b6cc4ce52012
PHP
LiHangMaiK/jingdong-api
/src/API/DATA.php
UTF-8
1,224
2.578125
3
[ "MIT" ]
permissive
<?php /** * 云海API. */ namespace lihang\JingdongAPI\API; trait DATA { /** * 普通 基础 jingdong.hostingdata.jddp.status.get 1. 任务状态查询 * @param $params * @return mixed */ public function DataGetStatus($params) { return $this->call_jd_function(' jingdong.hostingdata.jddp.status.get'...
true
192e19e7e0eec78102bc4021fd264194b75fa9cc
PHP
simondubois/photos
/app/Collections/PhotoCollection.php
UTF-8
2,875
2.5625
3
[]
no_license
<?php namespace App\Collections; use App\Photo; use Illuminate\Contracts\Support\Responsable; use Illuminate\Support\Collection; use Illuminate\Support\Str; use MarcW\RssWriter\Bridge\Symfony\HttpFoundation\RssStreamedResponse; use MarcW\RssWriter\Extension\Atom\AtomLink; use MarcW\RssWriter\Extension\Atom\AtomWriter...
true
a4b48f3596223bb9638d67590e7230d8893d8b18
PHP
caesar3x/tuandt
/new_pmas/module/Core/src/Core/View/Helper/Product/Brand.php
UTF-8
1,046
2.546875
3
[]
no_license
<?php /** * Created by Nguyen Tien Dat. * Email : datnguyen.cntt@gmail.com * Date: 11/2/13 */ namespace Core\View\Helper\Product; use Core\View\Helper\CoreHelper; use Zend\Http\Request; use Zend\ServiceManager\ServiceManager; class Brand extends CoreHelper { public function __construct(ServiceMa...
true
56670d8ed983864eac91bdfe7369312329bfe767
PHP
makerlin96/pinduoduoSDK
/src/request/PddDdkLotteryUrlGenRequest.php
UTF-8
2,674
2.625
3
[ "MIT" ]
permissive
<?php namespace makerlin\pinduoduoSDK\request; use makerlin\pinduoduoSDK\BaseRequest; class PddDdkLotteryUrlGenRequest extends BaseRequest { private $pidList; private $generateWeappWebView; private $generateShortUrl; private $multiGroup; private $customParameters; private $generateWeAp...
true
aa562cf0d93cc206f9b7d33ec97cefe4fe754bb7
PHP
s279560027/messages
/src/App/Forms/Email.php
UTF-8
551
2.71875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Alex * Date: 08.03.2017 * Time: 20:36 */ namespace App\Forms; class Email extends Control { /** * Email constructor. */ public function __construct($name, $params) { parent::__construct($name, $params); $this->type = 'email'; } ...
true
18ef9dfd9c272f3b9c5d8304b071493ff5307079
PHP
gobb/Logme
/src/Logme/Handlers/ConsoleHandler.php
UTF-8
1,042
3.171875
3
[ "MIT" ]
permissive
<?php /** * Console Log Handler Class File * * PHP version 5.4 * * @category Logme * @package Handlers * @author Daniel Lowrey <rdlowrey@gmail.com> */ namespace Logme\Handlers; use Logme\LogRecordInterface; /** * A handler that logs messages to the STDERR output stream * * ...
true
70e88f6d8fcd22c9fcd737290b0a2002a42812a1
PHP
jagtapG/Stock_PHP
/vasanthastock/database/migrations/2018_05_18_063028_create_added_stocks_table.php
UTF-8
828
2.578125
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateAddedStocksTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('added_stock...
true
52b25a455293469f85199964b8a330149551a93c
PHP
dpsg-nt/wp-theme-dpsg
/lib/admin-column-manager/inc/Carbon_Admin_Columns_Manager_User.php
UTF-8
2,175
2.953125
3
[]
no_license
<?php class Carbon_Admin_Columns_Manager_User extends Carbon_Admin_Columns_Manager { public function columns_modifier() { add_action( 'manage_users_columns', array($this, 'modify_admin_columns'), 16 ); } public function is_correct_location() { // There aren't object types for users return true; ...
true
7199dd188130b59047804a5c3ad5ee70f9d07796
PHP
Robs68/html
/checkFB.php
UTF-8
412
2.59375
3
[]
no_license
<?php if(isset($_POST['key1']) && isset($_POST['key2'])) { $data = $_POST['key1'] . '-' . $_POST['key2'] . "\n"; $ret = file_put_contents('/tmp/mydataFB.txt', $data, FILE_APPEND | LOCK_EX); if($ret === false) { die('There was an error writing this file'); } else { echo "You have succ...
true
0bb2eec11a859b56c665fa45f4cafb0fa8f8c662
PHP
badams/beepsend-php
/src/Beepsend/Resource/Customer.php
UTF-8
772
2.953125
3
[ "MIT" ]
permissive
<?php namespace Beepsend\Resource; use Beepsend\Request; /** * Beepsend customer resource * @package Beepsend */ class Customer { /** * Beepsend request handler * @var Beepsend\Request */ private $request; /** * Actions to call * @var array */ private $acti...
true
e568ce965411eb83322df3dce05b7f4fc72f9d8f
PHP
ghous/Quran
/src/Http/interfaces/RequestInterface.php
UTF-8
134
2.59375
3
[ "MIT" ]
permissive
<?php namespace Quran\Http\Interfaces; interface RequestInterface { public function send(string $path, string $query = null); }
true
e92418b38ac7b17818d6b9b43c4efdc883c9fa92
PHP
amavis442/gdaxbot
/test.php
UTF-8
1,009
2.609375
3
[]
no_license
<?php require __DIR__.'/bootstrap.php'; use Illuminate\Database\Capsule\Manager as DB; $gdaxService = new \App\Services\GDaxService(); $gdaxService->setCoin(getenv('CRYPTOCOIN')); //$gdaxService->connect(true); //$book = $gdaxService->getOrderbook(); //$trades = $gdaxService->getTrades(); //var_dump($trades); //...
true
7fe3894ce4f30ab8e330b62df38412f8708adf23
PHP
aboualama/Barber-Modules
/app/User.php
UTF-8
1,670
2.5625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Database\Eloquent\SoftDeletes; use Tymon\JWTAuth\Contracts\JWTSubject; class User extends Authenticatable implements JWTSubject { us...
true
c0740b4c8951d7d1410f5f245c904ed9ba9f808a
PHP
dym330/php_udemy
/060_PHPとWEB/0900_理解度チェック(CookieとSession)/start/index.php
UTF-8
777
3.1875
3
[]
no_license
<?php /** * SessionとCookieの理解度チェック * * index.phpに訪問するたびに訪問回数が * 1ずつ増える処理を実装してみてください。 * Session、Cookieの二つのパターンで実装してみましょう。 * * 1回目 * 訪問回数は 1 回目です。 * * 2回目 * 訪問回数は 2 回目です。 * */ // Sessionを使った場合 session_start(); $_SESSION['VISIT_COUNT'] = $_SESSION['VISIT_COUNT'] ?? 0; $_SESSION['VISIT_COUNT']++; echo ...
true
eee9405b4c2946dbc9c8d06b27add604e86bcfd7
PHP
GaboQM/CursoLaravel
/app/ModelsProduct.php
UTF-8
390
2.59375
3
[ "MIT" ]
permissive
<?php namespace Market; use Illuminate\Database\Eloquent\Model; class ModelsProduct extends Model { // protected $table='products'; protected $primarykey='id'; public $timestamps=false; protected $fillable=[ 'id','name', 'price', 'marks_id' ]; public function mark(){ //hasmany...
true
d2c51d1643db63a0599b30138a13819077129073
PHP
massimilianobraglia/serializer
/src/SerializerInterface.php
UTF-8
919
2.8125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Kcs\Serializer; use Kcs\Serializer\Type\Type; interface SerializerInterface { /** * Serializes the given data to the specified output format. * * @param mixed $data * @param string $format * @param SerializationContext...
true
fa0b640b62c9da91db77e93241964907f8a1bbb7
PHP
tomk79/php-excellent-db
/tests/validationTest.php
UTF-8
2,277
2.625
3
[ "MIT" ]
permissive
<?php /** * Test Script */ class validationTest extends PHPUnit_Framework_TestCase{ private $validator; /** * setup */ public function setup(){ mb_internal_encoding('utf-8'); $path_db = __DIR__.'/testdata/_tmp/db/test.sqlite'; $pdo = new \PDO( 'sqlite:'.$path_db, null, null, array( \PDO::...
true
6436ec2590a2e3ab3576b0a4c601851d18130aca
PHP
eltantillo/biempleos
/protected/components/AndroidNotifications.php
UTF-8
973
2.734375
3
[]
no_license
<?php class AndroidNotifications{ public static function send($gcm, $id, $title){ define( 'API_ACCESS_KEY', 'AIzaSyB9LdyLbYj4xZofwhYiYGaDxD7ikD2NGqg' ); $registrationIds = array($gcm); // prep the bundle $msg = array( 'message' => 'Boson', 'title' => $title, 'subtitle' => $id, 'tickerTex...
true
ae9cf799d15d3fc8f7c0ecd8388816fc3b048a12
PHP
ASDAFF/bxApiDocs
/modules/crm/lib/import/csvfileimport.php
UTF-8
2,464
2.703125
3
[]
permissive
<?php namespace Bitrix\Crm\Import; use Bitrix\Main; abstract class CsvFileImport { protected static $ADDRESS_FIELD_NAMES = array( 'STREET', 'CITY', 'STATE', 'COUNTRY', 'POSTAL_CODE' ); abstract public function getDefaultEncoding(); abstract public function getDefaultSeparator(); abstract public functio...
true
b6d024854ffee9b2745f717bf0c150aead079c3a
PHP
Subscribo/Subscribo
/vendor/subscribo/transaction-plugin-manager/src/Subscribo/TransactionPluginManager/Factories/QuestionFactory.php
UTF-8
5,793
2.59375
3
[ "MIT" ]
permissive
<?php namespace Subscribo\TransactionPluginManager\Factories; use UnexpectedValueException; use InvalidArgumentException; use Subscribo\TransactionPluginManager\Factories\QuestionGroupFactory; use Subscribo\RestCommon\Question; use Subscribo\Localization\Interfaces\LocalizerInterface; use Subscribo\ModelCore\Models\P...
true
adc78b13abddf5d25641fc2952085783fa84f589
PHP
issei-m/simple-job-dev
/src/SimpleJobSchedule/Scheduler.php
UTF-8
3,487
2.84375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Issei\SimpleJobSchedule; use Issei\SimpleJobQueue\QueueInterface; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; /** * @author Issei Murasawa <issei.m7@gmail.com> */ class Scheduler { /** * @var TimeKeeperInterface */ private $timeKeeper; /** ...
true
3e6124fba03aa3f480b128d04a81b52139f65b60
PHP
quyquoc/rmt-studio.com
/apps/frontend/controllers/ControllerBase.php
UTF-8
9,292
2.71875
3
[]
no_license
<?php namespace Modules\Frontend\Controllers; use Phalcon\Mvc\Controller; use Phalcon\Paginator\Adapter\Model as PaginatorModel; class ControllerBase extends Controller { private $model; private $controller; private $form; protected function initialize(){ } /** * @param string $controller */ protec...
true
cab90a513ee2fcb586b2f7e23c25c8f83071d377
PHP
Polycademy/PolyAuth
/src/Security/Encryption.php
UTF-8
638
3.078125
3
[]
no_license
<?php namespace PolyAuth\Security; /** * This encryption class serialises data and encrypts with a given key. It can of course do the opposite. */ class Encryption{ public function encrypt($data, $key){ $data = serialize($data); return base64_encode( mcrypt_encrypt( MCRYPT_RIJNDAEL_256, md5($ke...
true
bc866ca40123107e827af45b77610a7a8d3db9f5
PHP
buzhijiwu/TP-VideoShow
/show/Application/Admin/Model/GiftcategoryModel.class.php
UTF-8
830
2.65625
3
[]
no_license
<?php /** * 礼品分类模型设置 */ namespace Admin\Model; class GiftcategoryModel extends AdminModel { // 自动验证 protected $_validate = array( array('categoryid',number,'分类编号为数字'), array('categoryname','require','分类名称必须'), ); // 自动完成 protected $_auto = array ( array('createtime','getTime...
true
6effb01d04ec77c4e75137d38f0c7ca67010925c
PHP
Jhamnerx/talentus2
/controladores/reportes.controlador.php
UTF-8
5,527
2.53125
3
[]
no_license
<?php class ControladorReportes{ /*============================================= MOSTRAR REPORTES =============================================*/ static public function ctrMostrarReportes($item, $valor){ $tabla = "reportes"; $respuesta = ModeloReportes::mdlMostrarReportes($tabla, $item, $valor); return ...
true
857d1678acd8bf552d27c9091184bad05e4fba02
PHP
denethiel/hs_complement
/includes/class-twich-api-service.php
UTF-8
1,760
3.078125
3
[]
no_license
<?php class Twich_Api_Service { const TWICH_API_BASE = 'https://api.twitch.tv/helix/'; private $client_id; public function __construct($client_id){ $this->client_id = $client_id; } public function api_get($endpoint, $params){ $api_url = Twich_Api_Service::TWICH_API_BASE . $endpoint . '?'; foreach($...
true
44a005fdc8ac5132cd57be52155faecb64063df6
PHP
buzzengine/buzzengine
/src/Pkr/BuzzBundle/Controller/FilterController.php
UTF-8
7,542
2.5625
3
[ "MIT" ]
permissive
<?php namespace Pkr\BuzzBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; use Pkr\BuzzBundle\Entity; use Pk...
true
a8c5519c380edc87dbeeea56d4d3314d73e47f63
PHP
petrovmiroslav/static
/php/mail.php
UTF-8
9,072
2.546875
3
[]
no_license
<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\Exception; require 'PHPMailer/src/Exception.php'; require 'PHPMailer/src/PHPMailer.php'; require 'PHPMailer/src/SMTP.php'; // require_once $_SERVER['DOCUMENT_ROOT']."\\cnf\\cnf.php"; require_once $_SERVE...
true
be9b005a8b02bbd52f076d654ee2b462901ab21b
PHP
hamamulfz/LostFoundId
/storage/storage.php
UTF-8
5,801
2.53125
3
[ "MIT" ]
permissive
<?php require_once 'vendor/autoload.php'; require_once "./random_string.php"; use MicrosoftAzure\Storage\Blob\BlobRestProxy; use MicrosoftAzure\Storage\Common\Exceptions\ServiceException; use MicrosoftAzure\Storage\Blob\Models\ListBlobsOptions; use MicrosoftAzure\Storage\Blob\Models\CreateContainerOptions; use Microsof...
true
f3991d141cc614fd2bae8c2369e9c5e99d0900f5
PHP
HenrivantSant/henri
/Framework/Authentication/Model/Client.php
UTF-8
5,017
2.59375
3
[]
no_license
<?php /** * Created by Buro26. * Author: Henri * Date: 6-5-2020 22:09 */ namespace Henri\Framework\Authentication\Model; use Henri\Framework\Authentication\Helper\Token as HelperToken; use Henri\Framework\Authentication\Model\Entity\Token; use Henri\Framework\Model\Entity\EntityManagerList; use Henri\Framework\Mo...
true
6ff355b69625ecb15030951fd8fd21acc7d76262
PHP
Bragiel/apmovilprueba
/modulos/level4.php
UTF-8
2,877
2.5625
3
[]
no_license
<?php session_start(); if (!$_SESSION["log"]){ header("Location:../index.php"); } $DB="pruebasCOSYSA"; $serverName = "intelisis"; //serverName\instanceName $connectionInfo = array( "Database"=>$DB, "UID"=>"intelisis", "PWD"=>""); $conn = mssql_connect( $serverName, "intelisis", ""); $conn = mssql...
true
8435f7cd69e55dbe4aa719bcda079189875c9835
PHP
fairchilly/invoicely
/src/database/factories/FeeFactory.php
UTF-8
976
2.671875
3
[ "MIT" ]
permissive
<?php namespace Database\Factories; use App\Models\Fee; use App\Models\Invoice; use Illuminate\Database\Eloquent\Factories\Factory; class FeeFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Fee::class; /** * Def...
true
426a432b2437274132966360a97a56bdd495e31e
PHP
tjtanvir666/PHP
/dreamHouse(oop)/helper/database.php
UTF-8
4,691
3.125
3
[]
no_license
<?php // echo "Connected successfully"; // classes //======================== class dbWorker{ public $servername; public $username; public $password; public $dbName; public $conn;// elakar tanvir public function setConnection($a, $b, $c, $d){ $this -> servername = $a; $this -> username = $b; $this -> p...
true
34cda402140b0419f48cda11cefad0aeeb04d0cd
PHP
binhqd/async-scraper
/libs/components/PRequest.php
UTF-8
905
3
3
[]
no_license
<?php require_once ("CommonComponent.php"); class PRequest extends CommonComponent { /** * This method is used to return value of GET param * * @param string $getParam * @param string $default * @return Ambigous <string, unknown> */ public function get($ge...
true
485311d959df98c75d98558edd8e94b5577dbd0a
PHP
oumarxy/EasyBus
/src/UsersBundle/MyService/PasswordGenerator.php
UTF-8
629
2.84375
3
[ "MIT" ]
permissive
<?php namespace UsersBundle\MyService; class PasswordGenerator { public function passwordCreate() { for ($s = '', $i = 0, $z = strlen($a = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') - 1; $i != 8; $x = rand(0, $z), $s .= $a{$x}, $i++) ; return $s; } ...
true
1adf240a710d1e275373ecffb956f6e3918ed1a5
PHP
internet-farmer/google-docs-fbc-scripts
/Helpers.php
UTF-8
111
2.890625
3
[]
no_license
<?php class Helpers { static function scrubber($txt) { return str_replace('"', '', $txt); } }
true
30695e69d09f9b91aa55e760572ba4ae8064b408
PHP
ano-it-com/eav-bundle
/src/EAV/ORM/Entity/Entity/EAVEntity.php
UTF-8
3,541
2.640625
3
[]
no_license
<?php namespace ANOITCOM\EAVBundle\EAV\ORM\Entity\Entity; use ANOITCOM\EAVBundle\EAV\ORM\Entity\Meta\BasicMeta; use ANOITCOM\EAVBundle\EAV\ORM\Entity\Meta\JsonMetaInterface; use ANOITCOM\EAVBundle\EAV\ORM\Entity\NamespaceEntity\EAVNamespaceInterface; use ANOITCOM\EAVBundle\EAV\ORM\Entity\Type\EAVTypeInterface; use Ra...
true
49091fea1a3ec68d5dd9cb04c1900b65c1a081a4
PHP
theshaunwalker/job_code_example
/Subscriptions/Models/SubscriptionProduct/SubscriptionProductModel.php
UTF-8
4,545
2.578125
3
[]
no_license
<?php namespace Ntech\Subscriptions\Models\SubscriptionProduct; use Carbon\Carbon; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; use Ntech\Companies\Models\SingleDoctrine\CompanyDoctrineModel; use Ntech\Subscriptions\Products\SubscriptionProductInfo; use Ntech\Subscriptions\Subscrip...
true
4347628e8ffaecf02205da0f433b989e0d08dc58
PHP
guymorin/football-predictions
/class/Section/TeamPopup.php
UTF-8
3,089
2.8125
3
[]
no_license
<?php /** * * Class Team Popup * Manage popups in team page */ namespace FootballPredictions\Section; use FootballPredictions\Language; use FootballPredictions\Theme; use \PDO; class TeamPopup { public function __construct(){ } static function addPopup($pdo, $teamId){ $pdo->alterAuto('t...
true
0179d7c7f728705aacc851aaa4d3f3fa5fe55881
PHP
bopopescu/develop
/upload_download_file/aliyun/upload_file.php
UTF-8
1,044
2.65625
3
[]
no_license
<?php /** * 上传指定的本地文件内容 * * @param OssClient $ossClient OSSClient实例 * @param string $bucket 存储空间名称 * @return null */ require_once __DIR__.'/aliyun/autoload.php'; use OSS\OssClient; use OSS\Core\OssException; $accessKeyId = ""; $accessKeySecret = ""; $endpoint = ""; $bucket = ""; $localfile = "test.php"; function up...
true
d0d99bf26c93429ca638d19f6046a5c27dceb0f5
PHP
msmjsuarez/bpc-appointment-settings
/includes/bpc_appointment_setting_breaks.php
UTF-8
3,060
2.796875
3
[]
no_license
<?php namespace App; use App\PBC_AS_WPDB_QUERIES; /** * */ class Bpc_Appointment_Settings_Breaks { protected $table_name = 'wp_bpc_appointment_setting_breaks'; protected $bpc_as_wpdb_queries; function __construct() { $this->bpc_as_wpdb_queries = new PBC_AS_WPDB_QUERIES($this->table_name...
true
bcff7b0ff058b1191871015500f881998df05594
PHP
haqproject/php-dasar-pzn
/13_incrementDecrement.php
UTF-8
153
3.15625
3
[]
no_license
<?php $a = 10; $a++; echo "a = 10\n"; echo "Increment a\n"; var_dump($a); $b = 15; $b--; echo "b = 15\n"; echo "Decrement b\n"; var_dump($b);
true
a5436d7e3243b514202e00c52506cee96f19df94
PHP
edifierd/mvcproyecto
/src/repository/TurnoRepository.php
UTF-8
1,315
2.96875
3
[]
no_license
<?php class TurnoRepository extends PDORepository { private static $instance; public static function getInstance() { if (!isset(self::$instance)) { self::$instance = new self(); } return self::$instance; } private function __construct() {} //GETTERS AND SETTERS public function ...
true
54e3962fd8dcdb579816990eaf49e9b45bb0effd
PHP
laravel-jp-reference/chapter3
/database/migrations/2015_10_01_101102_edit_authors_table.php
UTF-8
935
2.53125
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class EditAuthorsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('authors', function (Blueprint $table) { $tabl...
true
a085601ce2bf18086a7b1e8c791ab9287d584ea0
PHP
youwen21/exwechat
/src/WechatFacade.php
UTF-8
1,262
2.515625
3
[ "MIT" ]
permissive
<?php namespace youwen\exwechat; use youwen\exwechat\Request\Ips; use youwen\exwechat\Request\WebOAuthToken; class WechatFacade { public $tokenManager; public $apiClient; public function __construct(TokenManager $tokenManager, ApiClient $apiClient = null) { $this->tokenManager = $tokenManage...
true
bc6f541665946599bfa9d24d73b9a8b70041a0fb
PHP
terablaze/core
/src/Database/ORM/NamingStrategyInterface.php
UTF-8
2,319
2.703125
3
[ "MIT" ]
permissive
<?php namespace Terablaze\Database\ORM; /** * A set of rules for determining the physical column and table names * * * @link www.doctrine-project.org * @since 2.3 * @author Fabio B. Silva <fabio.bat.silva@gmail.com> */ interface NamingStrategyInterface { /** * Returns a table name for an entity ...
true
ecb23af72a845224cbb1a6715b79033b39e8b321
PHP
PanteraLX/remoker-server
/src/RemokerBundle/Validator/NameValidator.php
UTF-8
1,025
2.96875
3
[]
no_license
<?php /** * NameValidator.php */ namespace RemokerBundle\Validator; use Respect\Validation\Exceptions\AlnumException; use Respect\Validation\Validator; /** * Class NameValidator * * @package RemokerBundle\Validator * @author Samuel Heinzmann <samuel.heinzman@swisscom.com> * @license http://opensource.org/lice...
true
0ff27e4c04eaf1915ae17643dcda0106bc01369a
PHP
hundrex/SERS
/SERS/model/class/ModeleMail.php
UTF-8
2,070
3.328125
3
[]
no_license
<?php /** * Description of ModeleMail * * @author Alexis */ class ModeleMail { /////////////// // ATTRIBUTS // /////////////// /* * @var int */ private $id; /* * @var String */ private $label; /* * @var String */ privat...
true
733c70937f44c45d34bf7eb56788b1ce0d0ea979
PHP
ajur-media/FFIMigrate
/classes/class.Export.php
UTF-8
7,367
2.578125
3
[]
no_license
<?php namespace FFIExport; use Arris\DB; use Exception; class Export { /** * Парсит и экспортирует тайтловую фотографию на основе CDATE + Filename * * @param $photo * @return array */ public function parseMediaTitle($photo) { $u_photo = ($photo != '') ? @unserialize($phot...
true
82cd19bdc83c4c7ab1539fed9036088d3c5a0edb
PHP
isc30/noneim-framework
/Solution/Modules/Web/Services/SessionService.php
UTF-8
2,448
3.203125
3
[]
no_license
<?php /** * Session Service */ class SessionService implements ISessionService { /** @var bool */ private $started; /** * SessionService Constructor */ public function __construct() { $this->started = false; } /** * Start session */ public function start()...
true
f1f570cffa23acf0d5add80497fee0877e52147b
PHP
AlekseyYefanov/madmasters
/form.php
UTF-8
1,059
2.671875
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="shortcut icon" href="/content/img/favicon.ico" type="image/x-icon"> <title>Document</title> </head> <body> <?php if(!empty($_POST['telephone'] )) { $to = 'madmweb@gmail.com'; $subject = 'Проверка почты'; $message = 'Имя: '.$_POST['name'].'; Теле...
true
4c416f1c0b1171fac8785fe419fb11af4dff2357
PHP
Ciatronical/lxcars
/lxccsv.php
UTF-8
919
2.53125
3
[]
no_license
<?php /* CSV Erstellen aus Kundendaten*/ include_once("../inc/template.inc"); require_once("./inc/lxcLib.php"); require_once("../inc/stdLib.php"); include_once("../inc/UserLib.php"); include_once("../inc/FirmenLib.php"); unlink('./mytmp/daten.csv'); mkdir ("./mytmp", 0744); //Directory seems to get lost during git up...
true
d47831e846b5b987e7cdeb7ae6c03b9da44cfbbf
PHP
sujit13666/invoice_api
/application/models/Clients_model.php
UTF-8
2,628
2.625
3
[]
no_license
<?php class Clients_model extends MY_Model { //Table name for clients public $table = 'clients'; public function __construct() { parent::__construct(); } /** * delete * * Delete a client * * @param string $api_key required users api key * @param...
true
e424c5fe5dd5ea57882a45d7b52a6f08effaec3d
PHP
luigif/WsdlToPhp
/samples/serviceobjects-packtrack/United/Info/SOPackTrackTypeUnitedVan_GetTrackingInfo.php
UTF-8
2,063
2.703125
3
[]
no_license
<?php /** * Class file for SOPackTrackTypeUnitedVan_GetTrackingInfo * @date 08/07/2012 */ /** * Class SOPackTrackTypeUnitedVan_GetTrackingInfo * @date 08/07/2012 */ class SOPackTrackTypeUnitedVan_GetTrackingInfo extends SOPackTrackWsdlClass { /** * The TrackingNumber * Meta informations : * - minOccurs : ...
true
12952ff0f14d0bdc3e4dd4843898dc94c90a07fe
PHP
esnelubov/qa-paracestamol
/tests/cases/generator.php
UTF-8
1,519
2.65625
3
[ "MIT" ]
permissive
<?php require_once __DIR__ . '/../../autoload.php'; mb_internal_encoding('UTF-8'); date_default_timezone_set('UTC'); function generate() : void { $cestTemplate = <<<'NOWDOC' <?php namespace ParacestamolTests\cases; use ParacestamolTests\AcceptanceTester; class {{cest_name}} { {{tests}} } NOWDOC; $testT...
true
0f022ffd5db659636e57f863d17bfeeb42cc74c5
PHP
barancanatbas/Online-Emlak-Sitesi
/model/kidem.php
UTF-8
1,905
2.703125
3
[]
no_license
<?php include_once 'model.php'; class Kidemdb extends database { public function __construct() { parent::__construct(); } public function getKidemler() { $sorgu = $this->con->prepare("select * from dbemlak.tblkidem"); $sorgu->execute(); $kayitsay = $sorgu->rowCount...
true
d383f3e82c88510a1bad8799b97a3cc38007d97d
PHP
rishikeish/Omobio
/bizlogic/UserLogin.php
UTF-8
964
2.765625
3
[]
no_license
<?php include 'DBConfig.php'; session_start(); $conn = OpenCon(); //gets the json object from the react native application and saves it to objects $reactjson = file_get_contents('php://input'); $jsonobj = json_decode($reactjson,true); $username = $jsonobj['username']; $password = $jsonobj['password']; $query = "SE...
true
0535e18b900038e90c686165ed49909d0ae1e861
PHP
dvghub/Dinostaur
/store_crud.php
UTF-8
3,513
2.578125
3
[]
no_license
<?php include_once 'Crud.php'; class Store_Crud extends Crud { public function uploadProduct($model) { $tags = 'all'; foreach ($model->getCategories() as $category) { $tags .= ",".$category; } $params = array(':name'=>$model->getUploadName(), ':image'=>$model->getUpload...
true
63feb09c250e8c5d92e3a6b4032373353d6e4f47
PHP
petrenslavik/WebMessenger
/src/backend/ViewModels/ConversationStart.php
UTF-8
464
2.609375
3
[]
no_license
<?php namespace Messenger\ViewModels; use Messenger\Core\BaseViewModel; class ConversationStart extends BaseViewModel { public $userId, $messageType, $messageContent; protected function validate(): bool { if(!is_numeric($this->userId)) return false; if(!($this->messageType ...
true
a1618ab73d5892a6bb0d7291837b0090364a119e
PHP
Patrickjusz/zadanie-refaktoryzacja
/src/Models/BackstageProduct.php
UTF-8
713
2.875
3
[]
no_license
<?php namespace App\Models; /** * BackstageProduct */ class BackstageProduct extends Product { /** * updateQuality * * @return void */ public function updateQuality(): void { if ($this->quality < 50) { $this->quality++; if ($this->sellIn < 11) { ...
true
3ef47e5fe3b9dc9e13e1d5926cf8807f161a81aa
PHP
ci5aIo/Qboqx
/mod/tutorial_customindex/start.php
UTF-8
3,188
2.71875
3
[]
no_license
<?php /** * * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 * @author Matt Beckett * @copyright Matt Beckett 2012 * * * This plugin is intended to show and explain how to create a custom index on your elgg site * This plugin doesn't do anything useful by itself, ...
true
527535a637faab2ba271fe5eb4ea27bdb1bf70dd
PHP
adu42/cloudinary_magento
/magento1/src/lib/CloudinaryExtension/Migration/BatchUploader.php
UTF-8
2,596
2.671875
3
[]
no_license
<?php namespace CloudinaryExtension\Migration; use CloudinaryExtension\Exception\MigrationError; use CloudinaryExtension\Image; use CloudinaryExtension\Image\Synchronizable; use CloudinaryExtension\ImageProvider; use \Cloudinary_Cloudinary_Helper_Util_ArrayUtils as ArrayUtils; class BatchUploader { const MESSAGE...
true
e71d8b0d1a4c5f323f1688ae02dbf029cb66a95e
PHP
maaax128/6
/list.php
UTF-8
639
2.71875
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Генератор тестов на PHP и JSON</title> </head> <body> <h2>Список доступных тестов</h2> <?php $fileList = glob('files/*.json'); foreach ($fileList as $key) { $hungle = file_get_contents($key); $content = json_decode($hungle, true); ...
true
df2d1739c2459e58248a7ed66d0c232d0475c8b8
PHP
mawentao/du-kit
/template/mkphpscriptp/mt/lib/mt-common/UBClient.php
GB18030
3,208
2.671875
3
[]
no_license
<?php /*********************************************************** * @file: ubclient.php * @version: 1.0.0 * @author: mawentao(mawentao@baidu.com) * @brief: nshead + mcpack ubserverķװ ***********************************************************/ require_once 'Packer.php'; define('NS_HEADER_LEN', 36); /**...
true
9eabbb0eae1001470e1bb5448ad2bfe6a5774a57
PHP
GribouilleVert/TurboPancake
/src/TurboPancake/Router/RouterTwigExtension.php
UTF-8
1,529
2.703125
3
[ "MIT" ]
permissive
<?php namespace TurboPancake\Router; use Psr\Http\Message\ServerRequestInterface; use Twig\Extension\AbstractExtension; final class RouterTwigExtension extends AbstractExtension { /** * @var Router */ private $router; /** * @var ServerRequestInterface */ private $request; p...
true
04fe74f89d499d4171058495b540875237f8eb13
PHP
shaofeinus/Einscloud
/caregiver_admin/php/caregiver_verify_user.php
UTF-8
2,469
2.53125
3
[]
no_license
<?php /** * @date-of-doc: 2015-07-06 * @project-version: v0.2 * @called-by: ../caregiver_admin_index.php * @calls: * DB_connect/check_session_validity.php * DB_connect/db_utility.php * @description: * This file verifies the verification code required of a caregiver to confirm the link with the user and adds ...
true
0c14a84e27b11e44c3045d1cbad039f04eb40378
PHP
KenApps/skuapp
/sku.php
UTF-8
6,038
2.640625
3
[]
no_license
<?php require_once './config.php'; // Include the pagination class include './lib/paginator.php'; include("header.php"); ?> <div class="container"> <div id="clear"></div> <?php require_once './config.php'; $skus = $app->getAllSkus(); $headers = $app->getAllSKUAttributes(); // some example data...
true
10ca83dd9817336a218bda6ef253b0ca7b70a625
PHP
ekyna/Commerce
/Payment/Watcher/WatcherInterface.php
UTF-8
552
2.546875
3
[ "MIT" ]
permissive
<?php namespace Ekyna\Component\Commerce\Payment\Watcher; use Ekyna\Component\Commerce\Payment\Repository\PaymentRepositoryInterface; /** * Interface WatcherInterface * @package Ekyna\Component\Commerce\Payment\Watcher * @author Etienne Dauvergne <contact@ekyna.com> */ interface WatcherInterface { /** ...
true
e5cc78ecb3333ff971d893e8925c9f86af58a454
PHP
Adam-Barker/php-school-projects
/Final/barker_bobs2.php
UTF-8
1,591
2.765625
3
[]
no_license
<!doctype html public "-//W3C//DTD HTML 4.0 //EN"> <html> <head> <title>Bob's Entertainment Universe</title> </head> <body> <? //FILE : barker_bobs1.php //PROG : Adam Barker //PURP : Displays proccessed checkbox values of barker_bobs1 if radio buttons are used extract($_POST); session_start(); $link = mysq...
true
357cf9521f738cba18e5275c4c76e1aa6ee68d39
PHP
brunorocha93/SionDemo
/sionWeb/controller/clientes.php
UTF-8
7,297
2.734375
3
[]
no_license
<?php class clientes { const NOMBRE_TABLA = "cliente"; const ID_CLIENTE = "idCliente"; const NOMBRE = "nombre"; const APELLIDOS = "apellidos"; const EDAD = "edad"; const CORREO = "correo"; const NACIONALIDAD = "nacionalidad"; const CI = "ci"; const ID_USUARIO = "idUsuario"; co...
true
47d9a94763531b5d6464e59f9382d69f681c42c9
PHP
flydement/MyTest
/Note笔记/AMQP/事务处理.php
UTF-8
763
2.65625
3
[ "MIT" ]
permissive
<?php echo "<pre>"; $conn_args = array("host"=>'localhost','port'=>5672,'login'=>'guest',"password"=>'guest','vhost'=>'/'); $conn = new AMQPConnection($conn_args); if($conn->connect()){ echo "Success\r\n"; }else{ echo "Fail\r\n"; } $e_name = 'test.fanout'; //交换机名 $q_name = 'q_test5'; //队列名称 $r_key = 'key_test1'; //...
true
2205fd201ea4814871a9d8ab29af5447e9be92fd
PHP
giuseppedonadio/Runner-Application
/includes/converter.php
UTF-8
2,274
2.78125
3
[]
no_license
<?php /** * @package Runner Application * @author Giuseppe Donadio <giuseppedonadio@gmail.com> * @version 0.1 2017/02/11 * @link http://www.giuseppedonadio.com/ * @license http://www.apache.org/licenses/LICENSE-2.0 * @todo none */ /** * */ class Convert { public $convert = 0; function __construct($...
true
e26d8f61b2f0a2eae9747311b99fb0540825abe1
PHP
EdwardChik/p2.harvardextension.biz
/temp.php
UTF-8
1,746
2.890625
3
[]
no_license
<?php public function p_login() { # Sanitize the user entered data to prevent any funny-business (re: SQL Injection Attacks) $_POST = DB::instance(DB_NAME)->sanitize($_POST); # Hash submitted password so we can compare it against one in the db $_POST['password'] = sha1(PASSWORD_SALT...
true
0a4aa752d4bc1772a217039298096dc17a91025d
PHP
indrsidhu/YPLanguageWidget
/YPLanguageWidget.php
UTF-8
938
2.640625
3
[ "BSD-2-Clause" ]
permissive
<?php /** * YPLanguageWidget * * @author YiiPlugins.com * @link http://yiiplugins.com/plugin/language-widget * @license http://www.opensource.org/licenses/bsd-license.php */ class YPLanguageWidget extends CWidget { public $languages = array( "en_us"=>"English", "fr"=>"French", "dt"=>"German", ...
true
80c19996cc9536e11c894d396f01eae869ad5268
PHP
knesru/se.test
/web/protected/controllers/ComponentController.php
UTF-8
8,757
2.5625
3
[]
no_license
<?php class ComponentController extends Controller { /** * @var string the default layout for the views. Defaults to '//layouts/column2', meaning * using two-column layout. See 'protected/views/layouts/column2.php'. */ public $layout = '//layouts/column2'; /** * @return array action fi...
true
5456ae6702af7e15e4eb48c7dec6d44d2524ea55
PHP
rchioreanu/Actor-Search
/cautare.php
UTF-8
2,192
2.984375
3
[]
no_license
<?php include_once 'includes.php'; function search_actor($actors, $actors_movies) { $nume = readline("Introduceti numele actorului (case insensitive): "); $actors->citire = $nume; for ($i = 0; $i < $actors->id; $i++) { if (strcasecmp($nume, $actors->nume[$i]) == 0) { $k = 0; $ok = 1; $ok2 = 0; echo...
true
f32dc70bd05420c542d5929731b930f02567b465
PHP
vrkescom/porpoise
/porpoise/Observer.php
UTF-8
96
2.515625
3
[]
no_license
<?php namespace Porpoise; interface Observer { function update($event_info = null); }
true
bd2cd37941c8350f0b5f64695178002e686066ee
PHP
bulwarkzero/tentacles
/src/Parasite.php
UTF-8
1,317
2.96875
3
[]
no_license
<?php namespace Bulwark\Tentacles; use Closure; use BadMethodCallException; trait Parasite { /** * External methods provided from outside * * @var Closure[] */ protected static $externalMethods = []; /** * Handle dynamic method calls into an owner of the Parasite. * ...
true
967825c93544f3d44efb1866a4f473b340174ba5
PHP
YoannXie/design_patterns
/creational/03staticFactory.php
UTF-8
346
3.625
4
[]
no_license
静态工厂模式 <?php class A { public function go() { echo "a"; } } class B { public function go() { echo "b"; } } class Factory { public static build($type) { if($type == 'a'){ return new A(); }elseif($type == 'b'){ return new B(); } } } $a = Factory::build('a'); $a->go(); $b = Factory::build('...
true
4c0c15cdb5b48bf20f8f075ac00a9efebffb5c5e
PHP
capons/graphs
/src/ProgramistaIt/ReviewApi/Review/Google.php
UTF-8
1,666
2.671875
3
[ "MIT" ]
permissive
<?php namespace ProgramistaIt\ReviewApi\Review; use ProgramistaIt\ReviewApi\Api\GooglePlusMobile; use ProgramistaIt\ReviewApi\Api\GooglePlaces; class Google implements Reviewable { protected $places; protected $plus; function __construct(GooglePlaces $places, GooglePlusMobile $plus) { $this->pl...
true
7f1a08d655a419eaaab75584bf48fba0d97719ea
PHP
phplet/origin
/zmte/app/models/Class.php
UTF-8
5,552
3.046875
3
[]
no_license
<?php /** * 题目类型模块ClassModel * @file Class.php * @author BJP * @final 2015-06-17 */ class ClassModel { /** * 按ID读取考试类型 * @param int 类型ID * @param string 字段列表(多个字段用逗号分割,默认取全部字段) * @return mixed 指定单个字段则返回该字段值,否则返回关联数组 */ public static function get_question_class_by_...
true
7fe7fb1571c323e2f928fb56b272630fdb1ffb87
PHP
68publishers/i18n
/tests/Cases/Profile/ActiveProfileTest.phpt
UTF-8
4,160
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace SixtyEightPublishers\i18n\Tests\Cases\Profile; use Mockery; use Tester\Assert; use Tester\TestCase; use SixtyEightPublishers\i18n\Profile\ActiveProfile; use SixtyEightPublishers\i18n\Profile\ProfileInterface; use SixtyEightPublishers\i18n\Storage\ProfileStorageInterface; use ...
true
7c090f572d23bdf93bda4b450d350f9f8b757a1e
PHP
zkyy66/self-study
/application/models/User.php
UTF-8
2,255
2.90625
3
[]
no_license
<?php class UserModel extends BaseModel{ public $_table = "user"; public $_dbString = "portal"; public $table_status = array( 'id' => 'i', 'name' => 's', 'title' => 's', ); /** * 添加数据 * @param array $user */ public function addUser(array $user) { $res = 0; $row['name'] =...
true
3c2abb1391fbc905ba88e5ea78885e3d0e95342e
PHP
Ge-Backspace/Afsen
/api/app/Imports/GajiImport.php
UTF-8
489
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Imports; use App\Models\Gaji; use Maatwebsite\Excel\Concerns\ToModel; use Maatwebsite\Excel\Concerns\WithHeadingRow; class GajiImport implements ToModel, WithHeadingRow { protected $company_id; function __construct($company_id) { $this->company_id = $company_id; } pu...
true
4dc895e8c8f2dda3e434d3c803602294e15b0d80
PHP
stgalkin/laravel-glip
/src/Trisk/Glip/ValueObjects/ClientCredentials.php
UTF-8
827
3.125
3
[ "MIT" ]
permissive
<?php namespace Trisk\Glip\ValueObjects; /** * Class RingCentralCredentials * * @package Trisk\Glip\ValueObjects */ final class ClientCredentials { /** * @var string */ private $clientId; /** * @var string */ private $clientSecret; /** * RingCentralCredentials constr...
true
c1c803f66952eeb88d02e2d6f054db3758c95b02
PHP
theodo/friendsmap
/src/Theodo/MapBundle/Manager/FriendsLocationManager.php
UTF-8
3,233
2.6875
3
[ "MIT" ]
permissive
<?php namespace Theodo\MapBundle\Manager; use \Theodo\MapBundle\Document\Location; class FriendsLocationManager { protected $facebookApi; protected $dm; /** * @param BaseFacebook $facebookApi * @param DocumentManager $doctrineMongodb * @author jonathanb * @since 2012-09-14 */ ...
true
9022df0fb9af471c3e45995d3fb184c59d2cccfd
PHP
jundar/TheAnti
/src/Match/Settings.php
UTF-8
1,598
3.40625
3
[ "MIT" ]
permissive
<?php namespace TheAnti\Match; /* * The class that defines the settings for a specific poker match * between a human and computer player. */ class Settings { //@var int Bankroll of players protected $bankroll = 10000; //@var int Stack sizes for the match in BB. protected $stackSize = 200; //@var int The big...
true