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
5fe259b55ff6ae46d5682d2cc43442aa8ed72bd5
PHP
PlatinumYi/attendance
/back-end/rest/app/Http/Controllers/EmployeeController.php
UTF-8
1,933
2.59375
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Employee; use Illuminate\Http\Request; class EmployeeController extends Controller { public function addEmployee( Request $request ){ $work_number = $request['work_number'] ; if( Employee::hasWorkNumber($work_number)){ $result = $this->js...
true
8881340c7a4876fa5ac509c0001adc009f56288d
PHP
scrxped/parser
/Bundle/ViatecParserBundle/Entity/ParserViatecSettings.php
UTF-8
1,259
2.6875
3
[]
no_license
<?php namespace Onixcat\Bundle\ViatecParserBundle\Entity; /** * ParserViatecSettings */ class ParserViatecSettings { /** * @var int */ private $id; /** * @var string */ private $viatecLogin; /** * @var string */ private $viatecPassword; /** * Get id...
true
d9ae0b338b1cc260adad294c3a51c88ccfd73614
PHP
CLSystems/cd-api-client
/src/CLSystems/Clickdealer/Api.php
UTF-8
1,287
2.828125
3
[]
no_license
<?php namespace CLSystems\Clickdealer; use GuzzleHttp\Client; class Api { const BASE_URI = 'https://partners.clickdealer.com/affiliates/api/1/offers.asmx'; /** * @var int */ private $affiliateId; /** * @var string */ private $apiKey; /** * @var Client */ private $client; ...
true
1dfaf2cb2624dd10af3852f1f9df9108a8bb6831
PHP
leafsphp/leafAPI
/Config/Command/GenerateModelCommand.php
UTF-8
3,346
2.78125
3
[ "MIT" ]
permissive
<?php namespace Config\Command; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputOption; use Il...
true
336185531102d311af3ee58789d219fb2eced697
PHP
slowback1/fastlingo-server
/user/preferences/get/index.php
UTF-8
1,555
2.796875
3
[]
no_license
<?php class PrefGet { private $db; public function __construct() { include '../../../config/db.php'; $this->db = new Data(); if($this->db->verifyToken()) { $id = $this->db->getUserId(); if(!$id) { echo json_enc...
true
bcc9628cd0e02e17315268b2b8dd15e107cff22d
PHP
csrui/CakePHP-OAuth2-Server-Plugin
/Controller/OAuth2ServerController.php
UTF-8
1,676
2.59375
3
[ "WTFPL", "MIT" ]
permissive
<?php class OAuth2ServerController extends OAuth2ServerAppController { public $uses = array( 'OAuth2Server.OAuth2ServerClient', 'OAuth2Server.OAuth2ServerCode', 'OAuth2Server.OAuth2ServerToken', 'User' ); /** * isAuthorized() callback. * Allow anonymous access to all actions of this controller. */ p...
true
de6b195502637843d971b9e792d689081ed86d50
PHP
owentaaffe/A1_bisque
/classes/EarlyBirdMenu.class.php
UTF-8
1,823
3.203125
3
[]
no_license
<!-- A class for EarlyBird menu. This gets data from an array menuArrays.php file in the content/menu folder. --> <?php // include functions.php function in content/function folder include_once "content/menu/menuArrays.php"; class EarlyBird { // get_early_bird_menu method public function get_early_bird_menu...
true
e4f94878fb7238a7fff19f1eefbf6c30bad1587c
PHP
snzk/PHP_Crawl_Janis
/crawl_janis.php
UTF-8
2,692
3.15625
3
[]
no_license
<?PHP $sw = false; $genreURL = ''; //各ジャンルのアーティスト表示ページ $buffer = ''; //HTMLソースから取得した1行分のソース $startpos = 0; //文字列検索で取得するアーティスト名の始点(/の位置) $slapos = 0; //文字列検索で取得するアーティスト名の終端(/の位置) $artist = ''; //文字列から取得したアーティスト名 $sw = false; //抽出対象行かどうかの判定スイッチ //ジャンルURLをまとめたtxtを読み込む $contents = @file('janis_genre.txt'); //書き込み用のtextファ...
true
0d240162e6b977ba5cbc257afa461f961c3af325
PHP
carono/etxtru-api
/src/request/TasksArchiveRequest.php
UTF-8
1,328
2.53125
3
[]
no_license
<?php /** * This class is generated using the package carono/codegen */ namespace carono\etxtru\request; class TasksArchiveRequest extends \carono\etxtru\RequestAbstract { /** * Возвращает список архивных заказов текущего пользователя, только для заказчика. * * @param \carono\etxtru\config\TasksArchiveListT...
true
2edcc6e6605832765fdb2a4f06be1e1bd3c6b7f6
PHP
teon-tech/saludsa_one
/app/Console/Commands/PaymentVerificationCommands.php
UTF-8
1,405
2.65625
3
[]
no_license
<?php namespace App\Console\Commands; use App\Repositories\SubscriptionRepository; use Carbon\Carbon; use Illuminate\Console\Command; class PaymentVerificationCommands extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'payment...
true
410dfb616ce18bafa3ba1a7ed3ce4590b62bb26c
PHP
juancarllos88/modulo_php
/exercicio/sistema/Classes/Conexao.php
UTF-8
528
2.921875
3
[]
no_license
<?php namespace Classes; use PDO; class Conexao { private $conexao; public function __construct($conexao) { $this->conexao = $conexao; } public static function getInstance() { $instancia = new Conexao(new PDO('mysql:host=localhost:3306;dbname=php_unipe','root','php_unipe'))...
true
2be01411fdf0fed4307e9d453296c79138f1008c
PHP
gmoqa/transbank-service
/src/Service/TransactionService.php
UTF-8
1,381
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Service; use Transbank\Webpay\Configuration; use Transbank\Webpay\Webpay; /** * Class TransactionService * @package App\Service * @author Guillermo Quinteros <gu.quinteros@gmail.com> */ class TransactionService { /** * @var [] */ private $settings; /** * Transactio...
true
634d5fe13b991221db0589a7a4b704e097f72afd
PHP
ello42/web-app-main
/Group-6-Project-main/section2.php
UTF-8
2,189
2.546875
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> Exam </title> <link rel="stylesheet" href="style.css" type="text/css" /> </head> <body style="background-color: #303030; color:white;"> <div c...
true
e2da808479e2e62be501f476de64967ded58090c
PHP
ngenyi/solarBench
/www/api/DB_ConnectionString.php
UTF-8
1,349
3.0625
3
[]
no_license
<?php require_once('dependencies.php'); class DB_ConnectionString implements interfaceConnectionString { private $instanceMySQLConnection; private $instanceOfDB; public function __construct($username,$password,$host,$db) { $instanceOfDB = new MySQLConnection(); $this->instanceMySQLConnection = $i...
true
6daceadcb7f28b72b52de93cb63ecbf850895496
PHP
krillzip/playground
/php/nano3/code/framework/NApplication.php
UTF-8
1,294
2.625
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of NApplication * The NApplication class handles the execution order of a request. * @author krillzip */ class NApplication { private static $_instance = NULL; protected $_controll...
true
051b984234781cde1b5a237f83cee087dfbda2e8
PHP
chipvlz/localstellars
/application/libraries/vendor/bitpay/php-client/src/Bitpay/Math/RichArbitraryPrecisionIntegerMath.php
UTF-8
19,422
2.734375
3
[ "Apache-2.0", "MIT" ]
permissive
<?php /** * @license Copyright 2011-2014 BitPay Inc., MIT License * see https://github.com/bitpay/php-bitpay-client/blob/master/LICENSE */ namespace Bitpay\Math; class RichArbitraryPrecisionIntegerMath { const HEX_CHARS = '0123456789abcdef'; /** * @param String $a Numeric String * @param String $...
true
4a8f3fbad018d2abbe5a7ae4016ca8bf8441a57c
PHP
caseyamcl/easyasset
/src/CompiledAsset/AsseticAsset.php
UTF-8
1,781
2.84375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * EasyAsset Library * * @license http://opensource.org/licenses/MIT * @link https://github.com/caseyamcl/easyasset * @version 1.0 * @package caseyamcl/easyasset * @author Casey McLaughlin <caseyamcl@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that w...
true
ec01ed9567f55160b22f4616847a975006b55a8c
PHP
ajunlonglive/sync-invoker
/src/Client.php
UTF-8
868
2.703125
3
[ "Apache-2.0" ]
permissive
<?php namespace EasySwoole\SyncInvoker; class Client extends AbstractClient { private $sock; private $timeout; private $maxPackageSize; public function __construct(string $sock, float $timeout, int $maxPackageSize) { $this->sock = $sock; $this->timeout = $timeout; $this...
true
b67fdd44e73c22eba0a5bdd34b2cd4d0ac4d2c27
PHP
DrRoach/templator
/regex/FindEndWhile.php
UTF-8
246
2.890625
3
[]
no_license
<?php class FindEndWhile { public static function run($line) { if(preg_match_all('/(?<start>.*){{\s*endwhile;\s*}}(?<end>.*)/', $line, $matches)) { return Parse::run($matches); } return false; } }
true
4983d86add470e0474d84723e9ce95153cb194f3
PHP
Gordarg/SF
/Controller/MyController.People.php
UTF-8
4,192
2.859375
3
[ "MIT" ]
permissive
<?php trait People { /** * PeopleGET * * List the posts * * @return void */ function PeopleGET() { $this->CheckLogin('admin'); // Check login // Ask database for data $Model = $this->CallModel("Person"); $Rows = $Model->GetAllPeople(); ...
true
5d05a2d3ab98b84e55866b352ef31a1020561985
PHP
javierborreguero/ADADT_AppGestionDatos
/Ficheros_PHP/leePeliculas.php
UTF-8
1,434
3.015625
3
[]
no_license
<?php /* Fichero que gestiona la conexion con la base de datos */ require 'bbdd.php'; /* * Se mostrará siempre la información en formato json para que se pueda leer desde un html (via js) * o una aplicación móvil o de escritorio realizada en java o en otro lenguajes */ $arrMensaje = array(); // En este array el ...
true
103d3ce069c103a96dfdc868b5fa73753a3ea70f
PHP
Sadicko/laradash
/app/models/Learner.php
UTF-8
397
2.625
3
[]
no_license
<?php class Learner extends \Eloquent { // Add your validation rules here public static $storeRules = [ 'identifier' => 'required|min:1', 'name' => 'required|min:1' ]; public static $updateRules = [ 'identifier' => 'min:1', 'name' => 'min:1' ]; protected $fillable = ['identifier', 'name']; publ...
true
c58d83b1a81bb77e8a54017bf3b350447ed054e0
PHP
pauline-rdc/GSB-Web-PPE
/verifConnection.php
UTF-8
1,347
2.515625
3
[]
no_license
<?php session_start(); $vis_matri_session = $_SESSION['id']; $nom_session = $_SESSION['nom']; include('include/connexionBase.php'); echo $login = $_POST['nom']; $mdp = $_POST['mdp']; // Vérification des identifiants $req = $bdd->query("SELECT * FROM visiteur WHERE VIS_NOM='$login'"); $donnees = $req->f...
true
8d62840093f49cc4a7ac5fa79ceead6304c9d27a
PHP
JackF007/dmeOpen_PHP
/application/modules/auth_panel/helpers/template_helper.php
UTF-8
521
2.78125
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); if( !function_exists('page_alert_box') ) { function page_alert_box( $type = '',$title = '',$message = '') { $_SESSION['page_alert_box_type'] = $type; $_SESSION['page_alert_box_title'] = $title; $_SESSION['page_alert_box_message'...
true
2bfc64a0ce3c09aa9f20d0ab735c6e7d573dcea6
PHP
luciuz/grammatista-server
/app/app/Lib/Markdown/Tags/LinkTag.php
UTF-8
811
3.15625
3
[ "MIT" ]
permissive
<?php namespace App\Lib\Markdown\Tags; /** * Class LinkTag * @package App\Lib\Markdown\Tags */ class LinkTag extends AbstractTag { /** @var string|null */ private $tail; /** * @return string */ public static function getTagName(): string { return 'a'; } /** * @p...
true
9beef530859232cd8592605822ef4b37e698bd16
PHP
fromsomebodyelse/flare-craft
/src/services/ReportService.php
UTF-8
2,528
2.703125
3
[]
no_license
<?php namespace creativeorange\craft\flare\services; use Composer\InstalledVersions; use Craft; use craft\helpers\App; class ReportService { public function appInfo() { $info = [ 'PHP version' => App::phpVersion(), 'OS version' => PHP_OS . ' ' . php_uname('r'), 'D...
true
18c9896858697ae92c1ca9959c61da5ec4ab07c5
PHP
maysie0110/SWE-Project
/CncBkbchart.php
UTF-8
2,555
2.84375
3
[]
no_license
<?php require './vendor/autoload.php'; require_once './Convertor2.php'; require './.config.php'; require_once './DbManager.php'; $con=new Database($HOST, $DBNAME, $DBUSERNAME, $DBPASSWORD); //get data of Cnc and BKB tests from the dbmanager $data=$con->CncBkbData(); $dataPoints1=[]; $dataPoints2=[]; $linePoints1= arr...
true
8087c2231cfed6278533993618af98699bbeb3ea
PHP
odeskanuchaudhary/vida
/widgets/vida-team-member.php
UTF-8
7,917
2.59375
3
[]
no_license
<?php class ViDA_Team_Member extends WP_Widget { // constructor function vida_team_member() { $widget_ops = array('classname' => 'vida_team_member_widget', 'description' => __( 'Display a member info.', 'vida') ); parent::__construct(false, $name = __('ViDA: Team Member', 'vida'), $widget_ops); $this-...
true
fe39d40755e23e37a186671ec16b5dbfae72dcc0
PHP
Blendlight/mystore
/includes/php/functions.php
UTF-8
17,078
3
3
[]
no_license
<?php class Product { public $id=''; public $name=''; public $category=''; public $category_id=''; public $description=''; public $price=''; public $stock=''; public $dateAdded=''; public $country=''; public $country_id=''; public $images = array(); public function __construct($conx=null, $row=null) { ...
true
490c88d6e803d4fb1b9132549df4d3c69d476b8f
PHP
RodrigoBarrios88/farasi
/ROOT/CPBIBLIOTECA/html_fns_biblioteca.php
UTF-8
26,370
2.515625
3
[]
no_license
<?php include_once('../html_fns.php'); function tabla_categorias($codigo){ $ClsBib = new ClsBiblioteca(); $result = $ClsBib->get_categoria($codigo,'',1); if(is_array($result)){ $salida = '<table class="table table-striped" id="tabla" width="100%" >'; $salida.= '<thead>'; $salida.= '<tr>'; $salida.= '<th c...
true
d5203642606d7439e914658c6b6e721c09033bea
PHP
LinkItONEDevGroup/LASS
/IASS/IASS_BASIC/IASS_Server/html/form1/jpgraph/Examples/inyaxisex2.php
UTF-8
1,368
2.9375
3
[ "MIT" ]
permissive
<?php // content="text/plain; charset=utf-8" require_once ('jpgraph/jpgraph.php'); require_once ('jpgraph/jpgraph_line.php'); // Callback to negate the argument function _cb_negate($aVal) { return round(-$aVal); } // A fake depth curve $ydata = array(0,1,4,5,8,9,10,14,16,16,16,18,20,20,20,22,22.5,22,19,19,15,15,1...
true
9da59f225687a4dd819c18de858f59c237e78714
PHP
holt83/ting_term_list
/ting-term-list-column.tpl.php
UTF-8
1,156
3.03125
3
[]
no_license
<?php /** * HTML for a column in the Ting term list. * * Available variables: * - $terms: * An array of terms to be shown in this column. The array is setup as a * render array, so it can be passed directly to the render() function. * - $column_title: * A string containing the title for this column. ...
true
fe2f9d684917840b15982c6d11b2d52db59c09ad
PHP
muzavan/pelesetan
/header.php
UTF-8
324
2.765625
3
[]
no_license
<?php class Tampilan{ // Atribut private $style = "<style> #header{ background-color : #FF0000; width:100%;} h3{ font-size : 40pt; font-family : Arial; vertical-align : center;} </style>" ; private $header = "<div id=\'header\'> <h3>PELESETAN </h3></div>"; public function echo_header(){ echo $header; } ...
true
363a5543ba48c16a6a95460dd48571ac79231f31
PHP
anngelfra/Nomada
/php/entity.php
UTF-8
5,046
2.5625
3
[ "MIT" ]
permissive
<?php class responseMedia{ public $items; } class sourceKind{ const none = 0; const youtube = 1; const facebook = 2; } class media{ public $url; public $title; public $kind; public $albumTitle; public $date; public function __construct() { ...
true
f794f13ea578ef54b591f8cdf4021e743e8c72e7
PHP
Inncee81/upload-api
/src/Cloud/Resque/Storage/AbstractStorage.php
UTF-8
1,601
2.859375
3
[]
no_license
<?php /** * cloudxxx-api (http://www.cloud.xxx) * * Copyright (C) 2014 Really Useful Limited. * Proprietary code. Usage restrictions apply. * * @copyright Copyright (C) 2014 Really Useful Limited * @license Proprietary */ namespace Cloud\Resque\Storage; use Cloud\Resque\Resque; /** * Storage classes are...
true
7fdf758c43b8316ca172bad176e6fbb2b461af57
PHP
stuartherbert/mf
/library/MF/PHP/ArrayWrapper.php
UTF-8
6,384
2.8125
3
[]
no_license
<?php /** * Methodosity Framework * * LICENSE * * Copyright (c) 2010 Stuart Herbert * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain...
true
1492f04153b425c95790461791784b6b46c029c1
PHP
HeroOfCanton/suzie-queue
/model/courses.php
UTF-8
9,061
2.84375
3
[]
no_license
<?php require_once 'config.php'; require_once 'auth.php'; /** * SPDX-License-Identifier: GPL-3.0-or-later * Functions for courses * */ /** * Returns array of all registered courses * * @return array of course names * @return null on fail */ function get_avail_courses(){ $sql_conn = mysqli_connect(SQL_SERVE...
true
9a4284c94417891f4f1fb9307cc1ad6e818242d3
PHP
SierraKatrian/companion-quest
/Models/Save-Dice.php
UTF-8
677
2.515625
3
[]
no_license
<?php /**************************** Created By: Sierra Katrian Year: 2017 ****************************/ session_start(); require_once 'DbConnect.php'; require_once 'DiceDAO.php'; $dbClass = new DbConnect(); $db = $dbClass->getDB(); //User details $userDetails = $_SESSION['user']; $userID = $userDetails['id']; ...
true
083f631dda00e74ffe0939f426c28c9cbc4a02a0
PHP
ihor-stasevych/example
/src/AddHash/AdminPanel/Application/Command/PromoContact/PromoContactCreateCommand.php
UTF-8
1,190
2.734375
3
[]
no_license
<?php namespace App\AddHash\AdminPanel\Application\Command\PromoContact; use Symfony\Component\Validator\Constraints as Assert; use App\AddHash\AdminPanel\Domain\PromoContact\Command\PromoContactCreateCommandInterface; final class PromoContactCreateCommand implements PromoContactCreateCommandInterface { /** ...
true
4e14b1980ad63f9bfa3fbaeb6d86096ef500bd5d
PHP
yii2-code/shop-for-review
/shop/types/Auth/SignupType.php
UTF-8
1,052
2.75
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: cheremhovo * Date: 18.01.18 * Time: 20:29 */ namespace shop\types\Auth; use shop\entities\Auth\User; use yii\base\Model; /** * Class SignupType * @package shop\types\Auth */ class SignupType extends Model { /** * @var */ public $login; /** ...
true
5adb7f9f7e98afb23fe2bf64148eaeebe1e1143f
PHP
the-shop/framework
/Application/src/Helpers/ProfileOverall.php
UTF-8
1,209
2.625
3
[]
no_license
<?php namespace Application\Helpers; use Framework\Base\Application\ApplicationAwareTrait; use Framework\Base\Model\BrunoInterface; use MongoDB\BSON\ObjectID; /** * Class ProfileOverall * @package Application\Helpers */ class ProfileOverall { use ApplicationAwareTrait; /** * Get profile overall reco...
true
9c280684d1534aed9ec1da25034e60005125fba6
PHP
WilfredDube/Fxtract
/libs/iges/iges-loop.php
UTF-8
3,337
2.96875
3
[]
no_license
<?php class Loop { public $Loop_ID; public $Normal; public $Edge_Count; // public $Loop_Concavity; public $Loop_Type; public $Edge_List; // ARRAY // public $Face_Pointers; // public $loops; static $face; function __construct() { $this->Edge_List = array(); // $this->loops = array(); } ...
true
de235ea28d68a4065440225f7c4e2c68510ed9ba
PHP
alcogolo/PHP
/labwork-1-4-3-3.php
UTF-8
2,380
3.234375
3
[]
no_license
<?php /** ЗАДАНИЕ: * * 1. создать массив с уже созданными ключами (md5 хэши любого количества (4-6) чисел от 100 до 110). * 2. создать скрипт, который будет генерировать уникальный (не существующий в массиве с подготовленными ключами) ключ. * Ключ должен по хешу md5 чис...
true
1e21ce7efbed42ca697f1dcff5636d51ffaa05d2
PHP
ahundiak/zayso2010
/osso2007/osso2007/apps/osso/library/mvc/Member/MemberEditCont.php
UTF-8
8,555
2.546875
3
[]
no_license
<?php class MemberEditCont extends Proj_Controller_Action { public function processAction() { $response = $this->getResponse(); $request = $this->getRequest(); $session = $this->context->session; if (isset($session->memberEditData)) $data = $session->memberEditData; ...
true
b227e2982681cf1b26e2ccbae7b3290e991160a6
PHP
gurjui/Inari
/controllers/ArticleController.php
UTF-8
2,069
2.8125
3
[]
no_license
<?php class ArticleController { public function actionIndex() { $articles = Article::getArticles(30); $template = new Volpi(); $template['articles'] = $articles; $template->show('articles.articles'); return true; } public ...
true
98510ff0a46794ac508e27e17bd173bfe000db7f
PHP
gmattworld/adaptivelearning_laravel
/app/Repositories/BaseRepository.php
UTF-8
3,359
2.875
3
[]
no_license
<?php namespace App\Repositories; use App\Repositories\Interfaces\IBaseRepository; abstract class BaseRepository implements IBaseRepository { // model property on class instances protected $model; /** * @var App */ private $app; /** * Specify Model class name * * @retur...
true
bc4a273c193e54dfff978d1a43f107b211e1cb52
PHP
muratyaman/Cayman
/src/Cayman/Manager/EmailManager/PhpMail.php
UTF-8
1,819
3.09375
3
[ "Apache-2.0" ]
permissive
<?php /** * File for PHP Mail as an Email Manager */ namespace Cayman\Manager\EmailManager; use Cayman\Manager; use Cayman\Manager\EmailManager; /** * Class for PHP Mail as an Email Manager * */ class PhpMail extends Manager implements EmailManager { /** * Prepare recipients * @param array $list ...
true
35f23c607c915b1415e1f5c2608c798d443e5c38
PHP
CivilianSergeant/sms-frontend
/application/models/Area_model.php
UTF-8
988
2.75
3
[ "MIT" ]
permissive
<?php class Area_model extends User_Model { protected $table_name = "areas"; public function __construct() { parent::__construct(); } public function get_areas() { return $this->get_all(); } /** * @return array of objects */ public function get_sub_areas($id,$json=false) { $this->db->select('sub...
true
d7bfc2f5230cf8b569eb56323eb5dcaf9c98f36a
PHP
shortcutsReallyHelp/random1
/app/Game/WinnerTeamsDetector.php
UTF-8
580
3.09375
3
[ "MIT" ]
permissive
<?php namespace App\Game; use App\Game\Contracts\Entities\TeamInterface; use App\Game\Contracts\WinnerTeamsDetectorInterface; class WinnerTeamsDetector implements WinnerTeamsDetectorInterface { /** * @param int $topFirst * @param TeamInterface[] $teams * @return TeamInterface[] */ public ...
true
697b551143df8cb8562a650d24d041c1aa688936
PHP
bakgat/notos
/src/Domain/Model/Resource/BookRepository.php
UTF-8
1,745
2.515625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: karlvaniseghem * Date: 22/09/15 * Time: 14:53 */ namespace Bakgat\Notos\Domain\Model\Resource; use Bakgat\Notos\Domain\Model\Identity\Isbn; use Bakgat\Notos\Domain\Model\Identity\Name; use Bakgat\Notos\Domain\Model\Identity\Organization; use Bakgat\Notos\Domain\Model\Ide...
true
c739a1ae894f9cf09124b389c9dcd7e00b095acc
PHP
rupeshjaiswar/Learning
/webdevlopment-learning/PHP/www/greaterof3nos.php
UTF-8
886
3.53125
4
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Greater of 3 numbers </title> </head> <body> <?php $num1 = $_GET["num1"]; $num2 = $_GET["num2"]; $num3 = $_GET["num3"]; if ($num1 = "" && $num2 ...
true
6b1a2396c631564ab18de34f66b5233305845f43
PHP
palmic/lbox
/lBox/lib/classes/front/interface.OutputItem.php
UTF-8
598
2.5625
3
[]
no_license
<?php /** * interface pro tridy pouzivane ve spojitosti s output filterem * @author Michal Palma <michal.palma@gmail.com> * @package LBox * @version 1.0 * @date 2007-12-08 */ interface OutputItem { /** * getter for filtered param * @param string $name * @return mixed */ public function __get($name = ""); /...
true
9c99a9c9180353ffb938e6e01ba9b22faa571212
PHP
pagameba/node-queue
/examples/enqueue.php
UTF-8
437
2.75
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php // sample php script to publish a message to the queue $host = 'http://localhost:8080/queue/'; // if run on the cmd line $queue = $argv[1]; $message = $argv[2]; // if run via web server if (isset($_REQUEST['queue'])) { $queue = $_REQUEST['queue']; } if (isset($_REQUEST['message'])) { $message = $_REQUEST['me...
true
35b14f60f0b0cb28447f40e5daeb3ddd80f4105d
PHP
LordHepipud/icingaweb2-module-windows
/library/Windows/Object/Objects/RamInfo.php
UTF-8
5,716
2.8125
3
[]
no_license
<?php namespace Icinga\Module\Windows\Object\Objects; class RamInfo { protected $id; protected $slot; protected $model; protected $capacity; protected $version; protected $type; protected $clockspeed; protected $speed; protected $installdate; protected $description; ...
true
cee5dcae415e63c5ce33416364c8f0b9f640acdc
PHP
webmappsrl/wm-server
/tests/WebmappUtilsTest.php
UTF-8
10,196
2.703125
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; class WebmappUtilsTest extends TestCase { private $delta_ele = 20; public function test3D() { $gpx = __DIR__.'/fixtures/3DandPoints.gpx'; $info = WebmappUtils::GPXAnalyze($gpx); $this->assertEquals(1,$info['tracks']); $this->assertEquals(1881,$info['trackpoints']); ...
true
232b0dfb099852340bf5178683a96f8ca78532a6
PHP
ifeyi/corleos
/big_class/dbfactory.class.php
UTF-8
279
2.640625
3
[]
no_license
<?php class Dbfactory { public static function getMysqlConnexionWithPDO() { $db = new PDO('mysql:host=localhost;dbname=epharma', 'root', '', array(PDO::ATTR_PERSISTENT=>true)); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); return $db; } }
true
834e88f8f786eca76913be4fee735c51e9b2e9e3
PHP
thedigitaloctopus/wp-linkedin-auth-example
/classes/class-linkedin-auth-handler.php
UTF-8
3,187
2.890625
3
[]
no_license
<?php /** * LinkedIn_Auth_Handler class * * @package RestApiImport */ declare( strict_types=1 ); namespace XedinUnknown\RestApiImport; use Exception; /** * A handler for the 'users` REST API endpoint. * * @see https://developer.linkedin.com/docs/oauth2 * * @since 0.1 */ class LinkedIn_Auth_Handler { ...
true
f944d2499c7875b99dfe3fe28f0f63451f6152a8
PHP
ImSpooksSchool/TodoList
/objects/TodoList.php
UTF-8
2,108
3.328125
3
[]
no_license
<?php /** * Created by Nick on 17 feb. 2020. * Copyright © ImSpooks */ namespace objects; class TodoList implements Serializable { private array $items; private string $title; public function __construct(string $title, array $items = []) { $this->items = $items; $this->title = $title...
true
8544ffc737807b61c7d2c0cf841283a231014c77
PHP
bpatient/diovax
/library/Core/Util/Date.php
UTF-8
1,607
2.953125
3
[]
no_license
<?php /** * * * * @author Pascal Maniraho * @version 1.0.0 * @uses Zend_Date * */ class Core_Util_Date extends Zend_Date{ /**Local variables to help us dealing with */ private $starts, $stops, $elapsed; function __construct($data = array () ){ parent::__construct(); if ( $data['star...
true
9e8578ae9d9466ced79e1d577b7d05bd0da19552
PHP
wyq09/PowerWechat
/src/MiniProgram/SubscribeMessage/Client.php
UTF-8
4,933
2.625
3
[ "MIT" ]
permissive
<?php namespace PowerWeChat\MiniProgram\SubscribeMessage; use InvalidArgumentException; use PowerWeChat\OfficialAccount\TemplateMessage\Client as BaseClient; use ReflectionClass; /** * Class Client * @package PowerWeChat\MiniProgram\SubscribeMessage */ class Client extends BaseClient { /** * {@inheritdoc...
true
ccc2fe579fa91035cc86af533b28f890dce010ce
PHP
vuonga7k8lah/severApp
/src/Models/UserModel.php
UTF-8
4,626
2.796875
3
[]
no_license
<?php namespace severApp\Models; use severApp\Database\DB; class UserModel { public static function getUserWithID($id): array { return DB::makeConnection()->query("SELECT * FROM users WHERE ID='" . $id . "'")->fetch_assoc(); } public static function checkCodeRenewPassword($id, $code): bool...
true
ea20f7fb35fb31f507ac5413191158dcde588df4
PHP
LIN3S/FormManagerApiClient
/src/FormManagerApiClient/Client.php
UTF-8
3,666
2.765625
3
[]
no_license
<?php /* * This file is part of the FormManagerAPIClient project * * Copyright (c) 2017-present LIN3S <info@lin3s.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace LIN3S\FormManagerApiClient;...
true
a3fc516ca2e880d53b56a86bff0bcbb4707dfc87
PHP
misbachim/core
/app/Business/Dao/CompanyBankAccDao.php
UTF-8
1,315
2.8125
3
[]
no_license
<?php namespace App\Business\Dao; use Illuminate\Support\Facades\DB; class CompanyBankAccDao { /** * Get all bank account in one company * @param companyId */ public function getAll($companyId) { return DB::table('company_bank_accs') ->select( ...
true
1b946c2b26bb1333d0786eb734c30718c99eab6f
PHP
nathanjsweet/Reflexion
/reflexion/library/pingbackserver.php
UTF-8
3,880
2.75
3
[]
no_license
<?php header("Content-Type: application/xml"); require_once(ROOT.DS.MAIN.DS.'library'.DS.'simple_html_dom.php'); require_once(ROOT.DS.MAIN.DS.'library'.DS.'xmlrpc'.DS.'xmlrpc.inc'); require_once(ROOT.DS.MAIN.DS.'library'.DS.'xmlrpc'.DS.'xmlrpcs.inc'); loadIntClass('sql_query'); class PingbackServer{ protected $_sour...
true
612bf6145c7d687489d10b4dc52e7106e6bb44bb
PHP
dev-amara/InterviewTest
/src/Managers/ManagerInterface.php
UTF-8
297
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Managers; use App\Entity\EntityInterface; interface ManagerInterface { public function getEntityClassName(); public function get($id); public function getAll(); public function create(EntityInterface &$data, $isThrowable); public function delete($id); }
true
eacbd5aa62b526c020157dc9165c46f083e04046
PHP
sundflux/libvaloa-db
/src/Libvaloa/Db/Columns.php
UTF-8
4,203
2.71875
3
[ "MIT" ]
permissive
<?php /** * The Initial Developer of the Original Code is * Tarmo Alexander Sundström <ta@sundstrom.io>. * * Portions created by the Initial Developer are * Copyright (C) 2019 Tarmo Alexander Sundström <ta@sundstrom.io> * * All Rights Reserved. * * Contributor(s): * * * Permission is hereby granted, free o...
true
8b120d7a1dfb0fcedfc8af8ec9572346588ee475
PHP
mcorne/php-by-example
/application/functions/p/pack.php
UTF-8
961
2.71875
3
[]
no_license
<?php /** * PHP By Example * * @copyright 2015 Michel Corne * @license http://www.opensource.org/licenses/gpl-3.0.html GNU GPL v3 */ require_once 'models/function_core.php'; /** * Function configuration * * @see docs/function-configuration.txt */ class pack extends function_core { public $examples = [...
true
93619599d8ca389e9ce6368946cc2db52419417b
PHP
georgemilojevic/battlesimulator-fatcat
/src/Service/BattleService/Command/BattleCommand.php
UTF-8
1,984
2.78125
3
[]
no_license
<?php namespace App\Service\BattleService\Command; use App\Entity\Army; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\HttpFoundation\Response; class BattleCommand { /** @var EntityManagerInterface $em */ private $em; public function __construct(EntityManagerInterface $entityManager) ...
true
e4c656a346c44b211433d2c17a3e88d8e7bd4252
PHP
491055741/paohai
/module/Postcard/src/Postcard/Model/UserPosition.php
UTF-8
1,300
3
3
[]
no_license
<?php // src/Postcard/Model/UserPosition.php namespace Postcard\Model; class UserPosition { private $userName; private $latitude; private $longitude; private $lastUpdateTimestamp; public function exchangeArray($data) { $this->userName = (isset($data['userName'])) ? $data['userName'] : nu...
true
236488d223d438a0b59ebe19a4d4c5c47a9a4a53
PHP
Garphild/settings-manager
/src/Adapters/JsonFileSettingsAdapter.php
UTF-8
2,164
2.796875
3
[]
no_license
<?php namespace Garphild\SettingsManager\Adapters; use Garphild\SettingsManager\Errors\PropertyExistException; use Garphild\SettingsManager\Errors\PropertyNotDescriptedInStructureException; use Garphild\SettingsManager\Errors\PropertyNotExistException; use Garphild\SettingsManager\Interfaces\iSettingsAdapter; use Gar...
true
c3a0a0fbc78156eb13002bb969b2e1a078167691
PHP
apache/zetacomponents
/PersistentObjectDatabaseSchemaTiein/tests/data/template_class_prefix/testcebadword.php
UTF-8
4,040
3.109375
3
[ "Apache-2.0" ]
permissive
<?php /** * File containing the testCeBadWord class. * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under th...
true
032aa69c12b1247fa04bb8458c072c8c6e32740d
PHP
alioh/Learning-PHP
/16- Interfaces.php
UTF-8
669
4.0625
4
[]
no_license
<?php interface Pet { public function set_age($ag); public function set_sound($snd); public function set_species($spc); } class Dog implements Pet { public $age; public $sound; public $species; public function set_age($ag){ $this -> age = $ag; } public function set_sound...
true
c15c359981dc80a54b433550c408d3d6ab1802de
PHP
ondrakoupil/nette-stuff
/src/Forms/GenericForm.php
UTF-8
2,461
3.015625
3
[ "MIT" ]
permissive
<?php namespace OndraKoupil\Nette\Forms; /** * Univerzální komponenta zabalující nějaký formulář s možností templatování. * <br /><br /> * V templatu je formulář dostupný pod jménem form či v proměnné $form: {form form} nebo {control form} * a pak je tam také komponenta errors (jde o GenericMessagesControl}. * <...
true
108cd36bcb503bc7cbb37ba2ac0c8f35e9f468cd
PHP
aquarink/vbi-web-with-api-1
/index.php
UTF-8
870
2.828125
3
[]
no_license
<?php //$a = rand(000000,999999); //echo sha1($a).'<br>'; if (isset($_GET['api'])) { $url = $_GET['api']; $urlArray = explode('/', $url); // Array 0 = vbi-api // Array 1 = file //print_r($urlArray); // Cek Array if (empty($urlArray[0]) || empty($urlArray[1])) { echo 'Pindahkan k...
true
596fdb9bfd2fb97895db25201d55ac2a00bac142
PHP
wxinheb/uenty
/vendor/aabcsoft/aabc2-bootstrap/Collapse.php
UTF-8
3,272
2.515625
3
[]
no_license
<?php namespace aabc\bootstrap; use aabc\base\InvalidConfigException; use aabc\helpers\ArrayHelper; class Collapse extends Widget { public $items = []; public $encodeLabels = true; public function init() { parent::init(); Html::addCssClass($this->options, ['widget' ...
true
4f5b92ca4e6236978f44ea7564050ed9188ea1fb
PHP
joxper/lucy
/app/Lucy/CrudGenerator/CrudCommandExecutor.php
UTF-8
2,100
2.703125
3
[]
no_license
<?php namespace App\Lucy\CrudGenerator; use Artisan; class CrudCommandExecutor { /** * The CrudCommandBuilder instance. * * @var \App\Lucy\CrudGenerator\CrudCommandBuilder */ protected $builder; /** * Create a new excecutor instance. * * @param \App\Lucy\CrudGenerat...
true
e4b6952495320022c707d8c620a0a799c688d96e
PHP
daulat9107/courses
/app/Container/Container.php
UTF-8
570
3.078125
3
[]
no_license
<?php namespace App\Container; class Container { private static $instance; private $data=[]; private function __construct() { } public static function instance() { if(!isset(static::$instance)){ static::$instance=new Container(); } return static::$instance; } public function singleton($pro...
true
8b1b6c60f0deb47b586deba867bb12552c0919f8
PHP
tardypad/lunr
/src/Lunr/Vortex/FCM/Tests/FCMPayloadHasConditionTest.php
UTF-8
1,103
2.515625
3
[ "MIT" ]
permissive
<?php /** * This file contains the FCMPayloadHasConditionTest class. * * @package Lunr\Vortex\FCM * @author Koen Woortman <k.woortman@m2mobi.com> * @copyright 2018, M2Mobi BV, Amsterdam, The Netherlands * @license http://lunr.nl/LICENSE MIT License */ namespace Lunr\Vortex\FCM\Tests; /** * This cl...
true
d0475129eafee000ae62b7c09ff115a3ef8dc3c2
PHP
renatomarinho/ASC
/include/class/validations.class.php
UTF-8
4,089
2.546875
3
[ "Apache-2.0" ]
permissive
<? //////////////////////////////////////////////////////////////////////////////////////// // // // NOTICE OF COPYRIGHT // // ...
true
4cc77ee05c28fdc025ad131e7217acf8331957a2
PHP
Sywooch/panel2
/modules/user/helpers/UserSettings.php
UTF-8
818
2.78125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\modules\user\helpers; use app\modules\core\helpers\GetterSingletonTrait; use app\modules\core\models\Settings; /** * Класс helper для работы с пользовательскими данными * * Class UserSettings * @package app\modules\core\helpers * * @method static UserSettings model * @property string $skinT...
true
3f82ac287c6ce374941e49b043d0ea474fca3285
PHP
nicodussio22/MoviePass
/Controllers/FuncionController.php
UTF-8
9,365
2.765625
3
[]
no_license
<?php namespace Controllers; use models\cine as Cine; use models\Funcion as Funcion; use DAO\GenerosDAO as GenerosDAO; //use Repository\CinesRepository as CinesRepository; /** * */ class FuncionController { //----------------ATRIBUTOS----------------------- private $DAOFunciones; private $DAOPeliculas; pri...
true
8ab0639d906cc8ad12951b5bcd6b7b307f5f9268
PHP
nuoyantaizi/ci
/application/core/MY_Document.php
UTF-8
292
2.71875
3
[ "MIT" ]
permissive
<?php class MY_Document { public $title; public $description; public $keywords; public $scripts = array(); public $styles = array(); public function addScript($href) { $this->scripts[] = $href; } public function addStyle($href) { $this->styles[] = $href; } }
true
ee56e3ad8e4b86d423d20671242965c69498e3ad
PHP
MarkBaker/Ukraine
/src/Support.php
UTF-8
3,677
2.65625
3
[]
no_license
<?php namespace MarkBaker\Ukraine; use Composer\Composer; use Composer\EventDispatcher\EventSubscriberInterface; use Composer\Installer\PackageEvent; use Composer\IO\IOInterface; use Composer\Plugin\PluginInterface; use Composer\EventDispatcher\Event; class Support implements PluginInterface, EventSubscriberInterfac...
true
dae7dfba0fb31721f4328220dcf2fc6748b3cbd0
PHP
rachcop/wendytunney.github.io
/secure_email_code.php
UTF-8
1,360
2.84375
3
[]
no_license
<!doctype html> <html> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="styles/layout.css" type="text/css" media="all"> <title></title> </head> <body> <?php if(isset($_POST["submit"])){ // Checking For Blank Fields.. if($_POST["name"]==""||$_POST["email"]==""||$_POST["comment"]==""){ echo '<p class=...
true
ed6eab6d4ebaac5b875e8bd8fbc30f208f286277
PHP
xeroxmm/xcCore
/src/AppBundle/Tools/Sitemap/ContentContainer.php
UTF-8
1,149
3
3
[]
no_license
<?php namespace AppBundle\Tools\Sitemap; class ContentContainer { private $url; private $lastmod; private $frequency; private $priority; public function __construct(string $url) { $this->url = $url; } /** * @return bool|string */ public function getUrl() { re...
true
9be967bb608bddcf190ee1e952a9251c18470e4b
PHP
Lukasz93P/gitHubRepoComparator
/src/GitHubRepoComparator/Actions/RepositoryComparision/BasicCompareRepositoriesAction.php
UTF-8
1,059
2.84375
3
[ "MIT" ]
permissive
<?php namespace GitHubRepoComparator\Actions\RepositoryComparision; use GitHubRepoComparator\Comparision\Comparator\GitRepositoryComparator; use GitHubRepoComparator\Comparision\GitRepositoryComparision; use GitHubRepoComparator\GitRepository\ComparableRepository\ComparableGitRepository; class BasicCompareRepositori...
true
7a50b8f1c6f43c3577329635b4edcd9cd7808a3c
PHP
LucasSchaef/PHP-MVC
/class/chart/donut.class.php
UTF-8
1,556
3.1875
3
[]
no_license
<?php /** * donut class * * @category I dont know * @package Donut * @author Lucas Schäf <lucas.schaef@gmail.com> * @copyright Copyright (c) 2014 * @licence http://opensource.org/licenses/gpl-3.0.html GNU Public License * @version 0.1 (beta) **/ class donut { /** * HTML of the Chart (DIV with specific I...
true
3b2f05047181d9dadf571025fc6c2314fa47fbce
PHP
bilaltas/revisionary-backend
/src/app/ajax/comment-delete.php
UTF-8
863
2.515625
3
[]
no_license
<?php $status = "initiated"; // NONCE CHECK !!! Disabled for now! // if ( request("nonce") !== $_SESSION["pin_nonce"] ) return; // Are they numbers? if ( !is_numeric(request('pin_ID')) || !is_numeric(trim(request('comment_ID'))) ) return; $pin_ID = intval(request('pin_ID')); $comment_ID = intval(trim(request('comm...
true
bc2860cde7ffb636dc48c63f0c02d53da6d0bccd
PHP
julianobressan/desafio-hostgator-backend
/backend/tests/App/Models/CycleTest.php
UTF-8
2,000
2.671875
3
[ "MIT" ]
permissive
<?php // namespace Tests\ use PHPUnit\Framework\TestCase; use App\Models\Product; use App\Models\Cycle; use App\Models\Database; class CycleTest extends TestCase { /** * @covers Cycle::find */ public function testFindExistentCycle() { $cycle = Cycle::find(5); $this->assertNotNull(...
true
3dba9df1e11dd93e3606a08ee3ab69f341217a25
PHP
AlexZakablukov/weather_api
/database/seeds/DatabaseSeeder.php
UTF-8
486
2.59375
3
[]
no_license
<?php use Illuminate\Database\Seeder; use Illuminate\Database\Eloquent\Model; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { DB::table('weathers')->insert([ 'city' => str_random(10), '...
true
1272520e5684410d4239b303a32a1ccc0ec1f016
PHP
alchermd/_stazify
/app/Http/Controllers/Student/StudentProfileController.php
UTF-8
2,573
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Student; use App\Http\Controllers\Controller; use App\Http\Requests\EditStudentProfile; use App\Models\Course; use App\Models\User; use Illuminate\Http\Request; class StudentProfileController extends Controller { /** * Create a new controller instance. */ public...
true
05d601828597324570358711c692a98fe5559426
PHP
554665488/fenxiao
/data/model/predeposit.model.php
UTF-8
39,838
2.546875
3
[]
no_license
<?php /** * 预存款 * * @好商城 (c) 2015-2018 33HAO Inc. (http://www.33hao.com) * @license http://www.33 hao.c om * @link 交流群号:138182377 * @since 好商城提供技术支持 授权请购买shopnc授权 */ defined('In33hao') or exit('Access Invalid!'); class predepositModel extends Model { /** * 生成充值编号 * @return string ...
true
306240e86960103ec078d4411a3d3d406f7ceaa6
PHP
DUrsinoTyro/mpgs
/app/services/Secure3DService.php
UTF-8
5,812
2.609375
3
[ "Apache-2.0" ]
permissive
<?php namespace App\Services; /** * Class Secure3DService * @package App\Services */ class Secure3DService extends GatewayService { /** * Check if the Card scheme is enrolled for 3DS * @param $request * @param $response * @param $args */ public function check3DEnrollment($request...
true
91eecc2962b05dd4468aaf466f517f7aa583e254
PHP
stijn1989/dotted-ubb
/DUBB/Tag.php
UTF-8
271
2.765625
3
[]
no_license
<?php /** * The DUBB_Tag interface to create styletags. * * @author Stijn Leenknegt <stijnleenknegt@gmail.com> * @version 1.0 * @package DUBB */ interface DUBB_Tag { /** * Render de DUBB tag. * * @param string $string * @return string */ public function render($string); }
true
707b3bc6ae913572323e3bf8dacec875fb1e7ae5
PHP
xp-forge/aggregate
/src/test/php/util/data/unittest/AggregateTest.class.php
UTF-8
5,600
2.8125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace util\data\unittest; use lang\IllegalArgumentException; use test\{Assert, Expect, Test, TestCase, Values}; use util\Bytes; use util\data\Aggregate; class AggregateTest { private static $posts= [ ['postId' => 1, 'authorId' => 1, 'text' => 'Post #1'], ['postId' => 2, 'authorId' => 1, 'text' => ...
true
6723f926b653e0888e5c663f3798f72407c1103f
PHP
Jose-1805/sinergia-project-management
/app/Models/Pdf/Pdf.php
UTF-8
8,178
2.828125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Jose Luis * Date: 14/02/2016 * Time: 1:13 PM */ namespace App\Models\Pdf; date_default_timezone_set('America/Bogota'); use FPDF; class Pdf extends FPDF { function __construct($orientation='P', $unit='mm', $size='A4') { parent::__construct($orientation,...
true
a99116e4fc638cffd8c03b5fecaf8224e0f5f13e
PHP
ivangeorgiev97/laravel-angularjs-project
/app/Repositories/UserRepository.php
UTF-8
343
2.640625
3
[]
no_license
<?php namespace App\Repositories; use App\Models\User; class UserRepository extends BaseRepository { protected $model; public function __construct(User $model) { $this->model = $model; } public function getByEmail($email) { } public function checkPassword($passwor...
true
b24ea8049f2db5d6c90cb025c42e2c19922b7312
PHP
hattorikoji/twi2wp
/request_oauth.php
UTF-8
4,960
2.96875
3
[]
no_license
<?php require_once 'request_curl.php'; //token取得はこちらの関数 function get_oauth_token($request_url,$request_method,$params,$signature_key){ // 各パラメータをURLエンコードする foreach( $params as $key => $value ) { // コールバックURLはエンコードしない if( $key == "oauth_callback" ) { continue ; } // URLエン...
true
9126388fae99fa12fbdfe23f5efac5a0c6a063e8
PHP
zhouhuan6019/wx_video
/app/Http/Controllers/ApiController.php
UTF-8
3,630
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Str; class ApiController extends Controller { public function register(Request $request){ ...
true
538f33ebe5d03ffd81a8ebe242cddd2b00d8bf8c
PHP
flipty/hutch2
/wp-content/plugins/wpseo-local/classes/schema/class-organization.php
UTF-8
4,197
2.5625
3
[]
no_license
<?php /** * @package WPSEO_Local\Frontend\Schema */ use Yoast\WP\SEO\Config\Schema_IDs; use Yoast\WP\SEO\Generators\Schema\Abstract_Schema_Piece; /** * Class WPSEO_Local_Organization. * * Manages the Schema for an Organization. * * @property WPSEO_Schema_Context $context A value object with context variables. ...
true