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
8bc8c6739bd9297fabd302b27e80af7580e37ad3
PHP
gowrav-vishwakarma/agiletoolkitclasses
/lib/Model/Customer.php
UTF-8
1,287
2.578125
3
[]
no_license
<?php class Model_Customer extends Model_Table { /***** table_name *****/ var $table='customer'; /***** id_field name if your primary key fieldName is not "id" *****/ // public $id_field='id'; /***** name_fieldName if your primary key fieldName is default get by id *****/ // public $title_field='name...
true
b1c904fcb25e5cee6badd1ec5747140a28ad71c0
PHP
triple-i/AS-Configure
/library/Asc/Commands/model.php
UTF-8
2,429
2.875
3
[ "MIT" ]
permissive
<?php namespace Asc\Commands; class model extends Base\AbstractCommand { protected $model_name, $app_name; /** * コマンドの実行 * **/ public function execute (Array $params) { try { if (! isset($params[0])) { throw new \Exception('モデル名を指定し...
true
3f12fbf0a65aa7e39a142258146c41351a9496c9
PHP
sutra/openid4discuz
/plugins/openid/dao/OpenIDDao.php
UTF-8
821
2.734375
3
[]
no_license
<?php /* * Created on 2008-1-21 */ /** * OpenID Data Access Object. * * @author sutra * @license http://openid4discuz.redv.com/LICENSE.txt New BSD License * @access public */ interface OpenIDDao { /** * Get user id by openid identifer. * * @access public */ public function getUserIDByOpenID($openid_...
true
531833349b937d428e03e0411b2586d1a8c3448d
PHP
RostovTeam/hackaton
/app/models/Commit.php
UTF-8
1,685
2.8125
3
[ "MIT" ]
permissive
<?php /** * * * @author Komov Roman */ class Commit extends ActiveRecord { /** * @return string the associated database table name */ public function tableName() { return 'commits'; } /** * @return array validation rules for model attributes. */ public functio...
true
0ae905769097802f653fb08f12e54a046453f403
PHP
pomle/cordless
/framework/class/Asenine/Manager/Cache.class.php
UTF-8
1,888
2.765625
3
[]
no_license
<? namespace Asenine\Manager; class Cache { public static $flushedCacheKeys = array(); public static function flushEvents() { $eventNames = func_get_args(); foreach($eventNames as $eventName) { self::flushEvent($eventName); } } public static function flushEvent() { $args = func_get_args(); $cach...
true
8578e45d986360ca14a7136de7e9ec034bad9a5c
PHP
flyingsuntan/www1
/2018622/mvc_demo20/Application/back/Models/AdminModel.class.php
UTF-8
2,119
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2018/6/11 * Time: 14:48 */ class AdminModel extends BaseModel { //校验管理员是否合法 // function CheckAdmin($user,$pass){ // $sql = "select count(*) as c from admin_user where admin_name ='$user' and admin_pass=md5('$pass')" ; // $date = $t...
true
1a90994b13598e91d87e205203ad9b41d780e9fa
PHP
carloscasalar/basketball-manager-advisor
/src/ManagerAdvisor/Tests/Usecase/AddTeamMemberTest.php
UTF-8
3,071
2.953125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace ManagerAdvisor\Tests\usecase; use ManagerAdvisor\Domain\InvalidScoreException; use PHPUnit\Framework\TestCase; use ManagerAdvisor\Domain\Role; use Mockery; use ManagerAdvisor\Usecase\AddTeamMember; use ManagerAdvisor\Domain\TeamMember; use...
true
570941e20b02abaa24d1af48a2f3be140bc221d4
PHP
Stancobridge/Path
/core/classes/Storage/Cookies.php
UTF-8
1,769
2.96875
3
[ "MIT" ]
permissive
<?php /** * @Author by Sulaiman Adewale. * @Date 12/29/2018 * @Time 7:21 AM * @Project Path */ namespace Path\Storage; class Cookies { public const ONE_DAY = 86400; public const ONE_WEEK = 604800; public static function store( $key, $value, $expire = null, $path = "/...
true
94e6a9a12b55bad1071be71625433e90714711d9
PHP
reyostallenberg/EventDispatcherBehavior
/src/templates/objectSetEventDispatcher.php
UTF-8
210
2.546875
3
[ "MIT" ]
permissive
/** * @param \Symfony\Component\EventDispatcher\EventDispatcherInterface */ static public function setEventDispatcher(EventDispatcherInterface $eventDispatcher) { self::$dispatcher = $eventDispatcher; }
true
82400d7e9a0bb14bb09905b00aebe1e2bec1afa6
PHP
bach219/Inventory
/app/Http/Requests/SupplierRequest.php
UTF-8
1,566
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class SupplierRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get t...
true
765338681b317042f650b5a031918a7f9757f22d
PHP
aguvillalba/xml_rpc2
/XML/RPC2/Exception/FaultException.php
UTF-8
2,585
2.875
3
[]
no_license
<?php namespace XML\RPC2\Exception; /** * XML_RPC2_FaultException signals a XML-RPC response that contains a fault element instead of a regular params element. * * @category XML * @package XML_RPC2 * @author Sergio Carvalho <sergio.carvalho@portugalmail.com> * @copyright 2004-2006 Sergio Carvalho * @...
true
f2c9855fbeb478a1388a3000ff5d96115b71525c
PHP
concretecms/concretecms
/concrete/src/Page/Command/RemoveOldPageVersionsTaskCommandHandler.php
UTF-8
1,030
2.578125
3
[ "MIT" ]
permissive
<?php namespace Concrete\Core\Page\Command; use Concrete\Core\Command\Task\Output\OutputAwareInterface; use Concrete\Core\Command\Task\Output\OutputAwareTrait; use Concrete\Core\Page\Collection\Version\Version; use Concrete\Core\Page\Collection\Version\VersionList; use Concrete\Core\Page\Page; class RemoveOldPageVer...
true
457fb34b17d20e2160305010d357f8d0929f4690
PHP
mlkorra/DBMS-Mini-Proj
/final/Book/taxiBooking_old.php
UTF-8
12,018
2.578125
3
[]
no_license
<?php include("../config.php"); session_start(); if($_SERVER["REQUEST_METHOD"] == "POST") { // username and password sent from form $name = $_POST['name']; $number = intval(mysqli_real_escape_string($db,$_POST['number'])); $pickup_date = mysqli_real_escape_string($db,$_POST...
true
bd66f0d082e030c3e20b00d65e87caacc9f6c6eb
PHP
softworx-digital/rocxolid-user-management
/src/Policies/Traits/AllowRelation.php
UTF-8
5,336
2.53125
3
[ "MIT" ]
permissive
<?php namespace Softworx\RocXolid\UserManagement\Policies\Traits; use Illuminate\Support\Str; use Illuminate\Contracts\Auth\Access\Authorizable; use Illuminate\Database\Eloquent\Relations\MorphTo; use Illuminate\Database\Eloquent\Relations\MorphToMany; use Illuminate\Database\Eloquent\Relations\BelongsTo; // rocXolid...
true
b8f6d407527d3d195ed5e11f422a2a29aee465d5
PHP
sandi-o/burnt
/app/Http/Controllers/ScheduleController.php
UTF-8
1,403
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Schedule; use Carbon\Carbon; class ScheduleController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middleware('auth:sanctum'); ...
true
f35d48b38a25fe72f92fca4f401a87606d854c02
PHP
wjq768843095/chengduZoo
/vendor/wxpay/wxclientpay.php
UTF-8
11,080
2.640625
3
[ "Apache-2.0" ]
permissive
<?php class Helper_wxclientpay { private $_APPID = ''; private $_MCHID = ''; private $_WXKEY = ''; private $_APPSECRET = ''; /** * 返回请求的域名 * @return string */ static function systemGetRequestHost() { $http = (isset($_SERVER['HTTPS'])&&$_SERVER['HTTPS']!='off')?'htt...
true
74d9f4012a063b8c29ed161b1ffdab420eea21ef
PHP
mmichalak87/sample-checkout
/app/Providers/OrderProvider.php
UTF-8
435
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Providers; use TendoPay\SDK\Models\Transaction; use TendoPay\SDK\V2\TendoPayClient; final class OrderProvider { public function get(string $transactionNumber): ?Transaction { $client = new TendoPayClient(); try { return $client->getTr...
true
9c5f1c56cf30aa5fb101724ce01273528cc4d5e5
PHP
itsinayat/yourrooms-admin
/provider.php
UTF-8
1,447
2.671875
3
[]
no_license
<?php function callAPI($method, $url, $data,$token){ $curl = curl_init(); switch ($method){ case "POST": curl_setopt($curl, CURLOPT_POST, 1); if ($data) curl_setopt($curl, CURLOPT_POSTFIELDS, $data); break; case "PUT": curl_setopt($curl, CURLOPT_CUSTOM...
true
7d67c77abd1a4aa54abbb723f39ce91a9e7ba51a
PHP
motapinto/feup-LTW
/PHP/labEx/exercise5/news_item.php
UTF-8
928
2.953125
3
[]
no_license
<?php $db = new PDO('sqlite:news.db'); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $db->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); if (!isset($_GET['id'])) die("No id!"); $stmt = $db->prepare('SELECT * FROM news JOIN users USING (username) WHERE id = ?'); ...
true
49e4d15d50f4e1dbdccfd3a83a2287b60f5a7425
PHP
pramulia-nasution/e-commerce
/app/Repositories/Attributes/EloquentAttributesRepository.php
UTF-8
2,416
2.6875
3
[]
no_license
<?php namespace App\Repositories\Attributes; use App\Model\OptionProduct; use App\Model\Attribute; use App\Model\Option; class EloquentAttributesRepository implements AttributesRepository{ private $option_product; private $attribute; private $option; function __construct(Attribute $attribute, Opti...
true
688429cc1e4ed0d4bbf5b091dd3d99eecde540ba
PHP
agilehands/PHP-AQUA
/aqua/global/applets/calculator/calculator.php
UTF-8
647
2.875
3
[]
no_license
<?php /** * * @created Sep 19, 2011 at 12:24:08 AM * @author Shaikh Sonny Aman <agilehands@gmail.com> * http://amanpages.com */ use aqua\Applet; class calculator extends Applet{ public function __construct( $id, $dir ){ parent::__construct($id, $dir); $this->setLayout(false);// applets c...
true
74d5f09cdf6c7af449bfdcf256c651e67f92f0b8
PHP
hoa-pham/car_rental
/validationConfirm.php
UTF-8
1,625
2.890625
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Validation Confirm</title> </head> <body> <div class="pageContainer centerText"> <?php include 'validationUtilities.php'; include 'server.php'; //Retrieve inputs (using helper function) $email = htmlspecialchars($_PO...
true
d727664a56e88a9356c8662fdcdec3b9806f6c7d
PHP
mikkohei13/Suomen-linnut
/gridjsoncreator.php
UTF-8
2,597
2.703125
3
[ "MIT" ]
permissive
<?php ini_set('memory_limit','256M'); header('Content-Type: text/html; charset=utf-8'); echo "<pre>"; require_once "../../suomen-linnut.php"; if ($_GET['secret'] != $secret) { exit("secret parameter needed"); } $data = Array(); // ------------------------------------------ // Griddata $gridData = file_get_cont...
true
b47be6a48391e7e7ec020c95af02a3bb3b10f5ec
PHP
WebARPro/WebAR
/app/Http/Controllers/PaypalController.php
UTF-8
3,466
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; /** Paypal Details classes **/ use PayPal\Rest\ApiContext; use PayPal\Auth\OAuthTokenCredential; use PayPal\Api\Amount; use PayPal\Api\Details; use PayPal\Api\Item; use PayPal\Api\ItemList; use PayPal\Api\Payer; use ...
true
f780b1c4636e29172908d04d9d4559475144db7c
PHP
jgwill/lampyno
/www/wp-content/plugins/materializer/components/tabs.php
UTF-8
1,177
2.625
3
[ "GPL-2.0-or-later", "GPL-1.0-or-later", "GPL-2.0-only", "GPL-3.0-only", "MIT" ]
permissive
<?php /* Materializer - Material Design components for WordPress Copyright (c) Cody Reichert - 2015 */ /* Code starts here */ class Tabs extends MaterializerShortcodes { /** TODO */ /** * Tabs [tabs][/tabs] * Available Attributes: * @color: background color * @textColor: text co...
true
6438f6b30d5febce05032108638d5065aa5f04f9
PHP
Karasimi/suncoffee
/app/Cart.php
UTF-8
7,154
2.90625
3
[]
no_license
<?php namespace App; class Cart { public $products = null; // thông tin sản phẩm. public $totalQuanty = 0; // tổng số lượng sản phẩm. public $totalDiscount = 0; // tổng giảm giá. public $totalPrice = 0; // tổng giá bán. public $Total = 0; // thành tiền.(đã tính giảm giá thành viên) public $Sub...
true
bb03505caf47e2aefd708cefc052734266df4a44
PHP
irshad9998/donkey-example
/php-client/src/Services/Zoo/Client/ZooClient.php
UTF-8
5,453
2.546875
3
[ "Apache-2.0" ]
permissive
<?php namespace Services\Zoo\Client; // Namespace imports use Services\Zoo\Thrift; use Services\Zoo\Exception; // Third-party imports use GuzzleHttp\Client as GuzzleHttpClient; use GuzzleHttp\Exception\BadResponseException; use GuzzleHttp\Exception\TransferException; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\...
true
69d3746c6b29846f896166cdcff9a25b88e43a07
PHP
cedricvasset/phppart4exe3
/index.php
UTF-8
403
3.46875
3
[]
no_license
<?php $text1 = 'salut '; $text2 = 'Cédric '; function ConcatenationString($string1, $string2){ $result = $string1 . $string2; return $result ; } ?> <!DOCTYPE html> <html lang="fr" dir="ltr"> <head> <meta charset="utf-8" /> <title>php part4 ex3</title> <link rel="stylesheet" href="style.css" /> </...
true
c6ddd43325191aa879cc86ac7fe8958360ca63a3
PHP
huriellopes/sitenew
/app/Traits/GlobalTraits.php
UTF-8
275
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Traits; trait GlobalTraits { /** * Função para retirar tags de uma variavel * * @param $param * @return void */ public function limpaTags($param) { return preg_replace('(<(/?[^\>]+)>)', '', $param); } }
true
c2d5b6819ede72fc30167d32ff2a8018e8631f38
PHP
johnlester347/Content-Management-System
/admin/functions.php
UTF-8
4,117
2.734375
3
[]
no_license
<?php function users_online() { if(isset($_GET['onlineusers'])){ global $connection; if(!$connection){ session_start(); include "../includes/db.php"; $session = session_id(); $time = time(); $time_out_in_seconds = 05; ...
true
1ca415225da5eb1bda3330209402705dbf350887
PHP
cnlanru/back
/app/common/model/Config.php
UTF-8
2,148
2.671875
3
[ "Apache-2.0", "PHP-3.0" ]
permissive
<?php /** * LRCODE * ============================================================================ * 版权所有 2016-2030 江苏蓝儒网络科技有限公司,并保留所有权利。 * 网站地址: http://www.lanru.cn * ---------------------------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用 . * 不允许对程序代码以任何形式任何目的的再发布。 ...
true
d57f834378f8537c9385824505314158558e4a18
PHP
KenleyChiu/ProgHub
/includes/getauthorImage.php
UTF-8
701
2.546875
3
[]
no_license
<?php require_once 'config.php'?> <?php global $user; $author=$image=""; $allUserImages=array(); $statement= "select * from userdetails"; $results = mysqli_query($user,$statement); while($imageData = mysqli_fetch_array($results)) { $specificUserImages=array(); $author=$i...
true
e384399d0b3c98db97cedafa52933224c2a637b9
PHP
BumbleBrice/obar
/app/Model/PresentationModel.php
UTF-8
495
2.546875
3
[]
no_license
<?php /* app/Model/BarModel.php */ namespace Model; use \W\Model\ConnectionModel; class PresentationModel extends \W\Model\Model { /* Le framework W déduit automatiquement le nom de la table de données en fonction di nom du modèle. Par exemple : - BarModel => bar */ public function __construct() { $app = ...
true
91c68f8110e01891e206104a2cc3c41cb5197da2
PHP
gvlisidis/tutoring-management
/database/migrations/2018_10_23_144517_create_students_table.php
UTF-8
794
2.640625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateStudentsTable extends Migration { public function up() { Schema::create( 'students', function ( Blueprint $table ) { $table->increments( 'id' ); ...
true
f91da2b6ee1f962f82054933f2466866e52f547d
PHP
wikipathways/mediawiki-extensions-WikiPathways
/src/PathwayOfTheDay.php
UTF-8
7,741
3.078125
3
[]
no_license
<?php /** * Pathway of the day generator * * Copyright (C) 2017 J. David Gladstone Institutes * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at...
true
c0e9dee7f97c801b03a54d3617208ef3f15cfee3
PHP
MyskinD/api.loc
/repositories/ContactRepositoryInterface.php
UTF-8
888
2.6875
3
[]
permissive
<?php namespace app\repositories; interface ContactRepositoryInterface { /** * @return mixed */ public function all(); /** * @param int $id * @return mixed */ public function get(int $id); /** * @param array $data * @return mixed */ public function ad...
true
dfb0954ce30cd66304c8248751a753a4db7c49f5
PHP
inventionate/Synthesise
/app/Http/Controllers/InfoblockController.php
UTF-8
2,537
2.71875
3
[ "MIT" ]
permissive
<?php namespace Synthesise\Http\Controllers; use Illuminate\Http\Request; use Infoblock; use Redirect; use URL; class InfoblockController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middleware(['auth'...
true
fbc17fda48baba1b9376604e6de3029e34d86c81
PHP
TobiasRV/trabajofinal4
/Controllers/MovieTheaterController.php
UTF-8
17,921
2.71875
3
[]
no_license
<?php namespace Controllers; use Controllers\CinemaController as CinemaController; use Controllers\ShowController as ShowController; use Controllers\MovieController as MovieController; use Models\MovieTheater as MovieTheater; //use DAOJson\MovieTheaterDAO as MovieTheaterDAO; use DAO\MovieTheaterRepository as MovieTh...
true
0cac30d1374916530db2bdd68744df5c448467cb
PHP
azizahmed95/phpMvc
/model/logsModel.php
UTF-8
3,698
2.625
3
[]
no_license
<?php function getxmlRangeData($fromdate,$dir){ //echo($fromdate); //echo($dir); if ($fromdate) { $datetimen1 = explode("-", $fromdate); $fromdate = explode("/", trim($datetimen1["0"])); $startyear = $fromdate["0"]; $startmonth = $fromdate["1"]; $startdate = $fro...
true
41bb9f3edf6fa1e9555cc604241c16bf3f23fd1e
PHP
Zaccol/SiteDowload
/assets/users/js/map-script.php
UTF-8
4,238
2.53125
3
[ "MIT" ]
permissive
<?php header ("Content-Type:text/javascript"); $color = "#ea0117"; // Change your Color Here function checkhexcolor($color) { return preg_match('/^#[a-f0-9]{6}$/i', $color); } if( isset( $_GET[ 'color' ] ) AND $_GET[ 'color' ] != '' ) { $color = "#" . $_GET[ 'color' ]; } if( !$color OR !checkhexcolor( $color ) )...
true
2b152ba2928536de57395fef11a850e497349a5a
PHP
nitinmobikasa1234/laravel
/app/Transformers/JsonTransformer.php
UTF-8
895
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Transformers; use App\Json; use League\Fractal\TransformerAbstract; class JsonTransformer extends TransformerAbstract { /** * Related models to include in this transformation. * * @var array */ protected $availableIncludes = [ // ]; /** * Turn thi...
true
26cf682921aec4a71762e4f63f9cf8f37982be41
PHP
walidboya1/Bio-medical-PLATFORME
/signup.php
UTF-8
4,212
2.578125
3
[]
no_license
<?php include 'required.php'; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (strcmp($_POST['radio1'], "medecin") == 0) { $prenom = $_POST['reg_prenom']; $nom = $_POST['reg_nom']; $email_id = $_POST['reg_email']; $password = $_POST['reg_passwd']; $telephone = $_POST['reg_...
true
82ed11d7d895fdfa47f3ba7fac1766096990ccd9
PHP
php-addons/ds
/src/IntSet.php
UTF-8
755
2.9375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace PhpAddons\Ds; use PhpAddons\Ds\Traits\MagicCalls; use PhpAddons\Ds\Traits\GenericSet; class IntSet { use MagicCalls; use GenericSet; /** * @param int|int[] $values */ public function add(int ...$values): void { $this->parent->add($value...
true
74e37a6a918343b2b52fbad9f4e88431d462acc5
PHP
olgundutkan/larabook
/app/Larabook/Languages/CreateLanguageCommand.php
UTF-8
220
2.5625
3
[ "MIT" ]
permissive
<?php namespace Larabook\Languages; class CreateLanguageCommand { public $name; public $slug; function __construct($name, $slug) { $this->name = $name; $this->slug = $slug; } }
true
1f76df728ec2207a8ce7b910df826dfceec9db23
PHP
AnaSousa314/ProgWebFic
/Unidade_3/execFix3_2.php
UTF-8
393
4.09375
4
[ "MIT" ]
permissive
<?php /*QUESTÃO 02: Faça um algoritmo em PHP que conte de 1 a 10 e mostre os números pares.*/ $par = 0; for ($i=1; $i <= 10; $i++) { //echo " ".$i; //echo "<br>"; if ($i % 2==0) { echo "$i "; } } echo "<br><br>"; $j = 1; while ( $j<= 10) { if ($j % 2==0) { echo "$j "; } $j++; } echo "<br><br>"; $k=1; ...
true
0271e1b650de3a5144368af682afafaf0e408c82
PHP
spenwall/volleyballscores
/volleyball/app/Http/Controllers/ResultsController.php
UTF-8
1,482
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use App\Games; use App\Rounds; use App\RoundResults; use App\League; class ResultsController extends Controller { private $_round; private $_league; /** * Create a new controller instance. * ...
true
57fd1e817c25f1e4a8d9fb60b25c1da04b7bc90f
PHP
voov/Sputnik-Framework
/sputnik/DbResult.php
UTF-8
5,202
3.28125
3
[]
no_license
<?php /** * DB_Result class. Provides an iterator wrapper * for working with a MySQL result. * @author d11wtq */ class DbResult implements Iterator { /** * The ID that was created as a result * of inserting a row * @var int id */ private $id; /** * The size of the resultset * @var int length (num ...
true
bd4deeb67c209faac7ac34c36935d45c2e375da8
PHP
kenuur/ndsc_results
/db_gala_routines.php
UTF-8
4,918
2.875
3
[]
no_license
<?php $db_gala_name = "ndsccouk_swim_gala"; // Load the requested gala basic values and return in an array to display // the Gala name function load_gala ($gala_index) { global $db_gala_name; $mysqli = openDatabase($db_gala_name); $stmt = $mysqli->prepare('SELECT `name`, `active`, `event_cost_pence`, UNI...
true
09045a877af110d77083a8d8a305e1c5e7809cf8
PHP
VanKers86/project02
/src/ikdoeict/provider/controller/securecontroller.php
UTF-8
13,469
2.59375
3
[]
no_license
<?php namespace Ikdoeict\Provider\Controller; use Silex\Application; use Silex\ControllerProviderInterface; use Silex\ControllerCollection; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\HttpFoundation\Request as Request; use Symfony\Component\HttpKernel\HttpKernelInterface; //Secured c...
true
ade0a8ced2ec959cf6af349bb86b3de0f321417e
PHP
bttalic/cs_page
/includes/forms.lib.php
UTF-8
4,589
2.515625
3
[]
no_license
<?php /** *generates one of the predefined forms for sign in/sign up * @param $user string student or professor * @param $type string Sign up or Sign in * @param $action string the php file to hadndle the request e.g. upload.php * * @return $string containing the html code pf the form */ function getForm($us...
true
f1206f1c867258d634f6c9c1577373a720106bb4
PHP
doro098/fullstack-the8a
/php/send.php
UTF-8
1,429
3.046875
3
[]
no_license
<?php //Importando el script de conexion //Import connection's script require('connect.php'); //Verificando la conexion //Verify connection if(!isset($connect)){ echo "<h2> Fallo la conexion! Error: ". mysqli_error($connect) . "</h2>"; } else{//Si la conexion es exitosa, se suben los datos //If connect ...
true
786c33274596c791bb8347e1e020f7f0ac411a2c
PHP
akop0505/pay_exchange_24_public-
/backend/modules/bestchange/models/enum/AutobalancePosition.php
UTF-8
1,010
2.625
3
[]
no_license
<?php namespace backend\modules\bestchange\models\enum; use common\components\Enum; /** * Class AutobalancePosition * @package backend\modules\bestchange */ class AutobalancePosition extends Enum { const POS_STATUS_SUCCESS = 1; const POS_STATUS_ON_THE_WAY = 2; const POS_STATUS_NOT_ACHIEV...
true
f8b9dd3e50df9112eb992ff3112b6b2a250fc1fa
PHP
jppcel/SisDF
/www/application/models/Auth_model.php
UTF-8
568
2.578125
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * Model para a biblioteca de Autenticação * * @author André Luiz Girol - Departamento de Física - FFCLRP */ class Auth_model extends CI_Model { public function __construct() { parent::__construct(); $this->load->databa...
true
d71190e0b3c68cb256ff05a121fabd564d2b67fa
PHP
chircancristi/rpgANCOWE
/app/Controller/playersInGame/search.php
UTF-8
1,298
2.625
3
[]
no_license
<?php header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); include_once '../../Config/database.php'; include_once '../../Model/playersInGame.php'; $database = new Database(); $db = $database->getConnection(); $user = new playersInGame($db); $where = ""; if(isset($_...
true
6f8c84ccde7fab7b25400f22fa534ae35c0468e6
PHP
whysama/edemo
/htdocs/php/plateforme/flux/xml.php
UTF-8
3,389
3.3125
3
[]
no_license
<?php class XmlFlow { private $shared_key = ""; private static $STATUS_OK = "OK"; private static $STATUS_NOK = "KO"; private $root_name = "root"; private $entry_name = "entry"; /** * Constructeur * @param string $shared_key cle privee partagee de l'application ...
true
dd626a4efc1844df126efcf7f0afb33104dd01c0
PHP
all-ride/ride-lib-http
/src/ride/library/http/Request.php
UTF-8
20,687
3.21875
3
[]
no_license
<?php namespace ride\library\http; use ride\library\http\exception\HttpException; use ride\library\http\session\Session; /** * Data container for a HTTP request */ class Request { /** * The HEAD method * @ var string */ const METHOD_HEAD = 'HEAD'; /** * The GET method * @var ...
true
6f22c6508be19534d0a0ab109f78ed73b194ac88
PHP
alimujtaba4u/SimpleMVC
/lib/vendor/BaseClasses/BaseComponent.class.php
UTF-8
1,003
2.765625
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of autoload * * @author Ali Mujtaba */ class BaseComponent { private $templateVars = array(); private $componentName = null; public function __construct($component, $params) { ...
true
742c16fe420ba0bf3e17f77a55eb88ebf2eed3a0
PHP
mstamle/codingbootcamp-exercises
/week5/Day-22/arrays.php
UTF-8
1,109
3.46875
3
[]
no_license
<?php //require functions to visualize arrays require_once 'var_show.php'; $fruit = [ 'Apple', // automatically assigned index 0 'Pear', // automatically assigned index 1 'Orange' // automatically assigned index 2 ]; $fruit_colors = [ 'Apple' => 'Red', 'Pear' => 'Green', 'Orange' => 'Orange'...
true
6f8f525459ac37d9a46867ae845e8e15ad1fdb31
PHP
BFoucher/MyGallery
/scanDisplay.php
UTF-8
5,264
2.5625
3
[]
no_license
<?php require_once('functions/global.php'); require_once('functions/form.php'); require_once('miniature.php'); require_once('nbPage.php'); function paginator(&$tab,$pageActuelle,&$pageJumper){ $tabLen = count($tab); $maxItem = nbItem(); $nbPage = floor($tabLen/$maxItem); if ($tabLen%$maxItem>0){$nbPage...
true
3869da026a5d575f2099901d4d83434254405539
PHP
wp-plugins/socialpublish
/domain/http/SocialpublishHTTP.php
UTF-8
848
3.09375
3
[]
no_license
<?php class SocialpublishHTTP { protected static $instance; protected $strategy; protected function __construct() { $this->strategy = null; } public static function getInstance() { if (self::$instance === null) { self::$instance = new SocialpublishHTTP(); } ...
true
34932738a3de81e60124e89502f4edfc107e35bd
PHP
aSosunoff/ProSport
/common/models/form/RecallForm.php
UTF-8
2,191
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models\form; use Yii; use yii\base\Model; use common\infrastructure\DateClass; class RecallForm extends Model { public $name; public $text; public $iAgree = false; public $date; public function __construct($config = []) { $this->date = DateClass::TimestampToDa...
true
119f913d427fa60a3c787a7466c8b4c6557b0200
PHP
cobs94/ApiMusic
/fuel/app/classes/controller/base.php
UTF-8
1,293
2.578125
3
[ "MIT" ]
permissive
<?php use Firebase\JWT\JWT; class Controller_Base extends Controller_Rest { public function Upload($object, $image) { // Custom configuration for this upload $config = array( 'path' => DOCROOT . 'assets/img', 'randomize' => true, 'ext_whitelist' => ar...
true
350b567f043fb091df338e4413536db6fa29bceb
PHP
DustinHartzler/PharmToTable
/wp-content/plugins/thrive-leads/tcb/inc/classes/post-list/class-tcb-post-list-featured-image.php
UTF-8
4,857
2.703125
3
[]
no_license
<?php /** * Thrive Themes - https://thrivethemes.com * * @package thrive-theme */ if ( ! defined( 'ABSPATH' ) ) { exit; // Silence is golden! } /** * Class TCB_Post_List_Featured_Image */ class TCB_Post_List_Featured_Image { const PLACEHOLDER_URL = 'editor/css/images/featured_image.png'; /** * Get the ht...
true
9de691b1a443416dcb6da7120e66a9c44f14661b
PHP
igorrochadasilva/curso-web
/12-PHP/Formasdearray.php
UTF-8
673
3.1875
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"/> <title>Document</title> </head> <body> <?php $lista_compras[1] = 'nandão'; $lista_compras[2] = 'cabral'; $lista_compras[3] = 'nandaonandao'; //ou //$lista_comp...
true
e8b9be71b91ed9353e507611dc8f1967fd180bb4
PHP
StephanotZaf/guess
/src/Application/Handler/Game/GameOverHandler.php
UTF-8
1,901
2.921875
3
[]
no_license
<?php namespace App\Application\Handler\Team; use App\Application\Service\FileUploaderInterface; use App\Domain\Team\Team; use App\Domain\Team\TeamRepositoryInterface; class GameOverHandler { private GameRepositoryInterface $gameRepository; private TeamRepositoryInterface $teamRepository; /** * C...
true
0505b723cef74c35f38f5fa37d8301728fab91fa
PHP
luismanuelamengual/TennisFederation
/sources/org/fmt/model/Match.php
UTF-8
2,525
2.875
3
[]
no_license
<?php namespace org\fmt\model; use NeoPHP\mvc\Model; class Match extends Model { const MATCHTYPE_SINGLES = 1; const MATCHTYPE_DOUBLES = 2; const RESULT_NOT_PLAYED = 0; const RESULT_PLAYER_A_WIN = 1; const RESULT_PLAYER_B_WIN = 2; private $id; private $description; private $tourna...
true
f678883957f5837e37d3f0f66e7daa1027e0aecb
PHP
Vishnu-VS/php-learning
/staticvar.php
UTF-8
133
2.65625
3
[]
no_license
<?php function incr(){ static $var=1; $var++; echo "$var\n"; } incr(); incr(); incr(); ?>
true
ed04d89a67fda654fffcdff8887e5b473f7115f4
PHP
c4evth/corrosion
/application/common/model/User.php
UTF-8
3,758
2.734375
3
[]
no_license
<?php namespace app\common\model; use think\Model; use app\common\model\Token; use app\common\model\Msg; class User extends Model { /** * 初始化模型类 */ protected function initialize() { parent::initialize(); } /** * 登出 */ public function logout() { cookie('corrosion_token', null); ...
true
13c405125ad671f6a1e8e3d1377c650109e41fcc
PHP
vishald13/aheadzen
/AnalyzeChart.php
UTF-8
26,720
2.640625
3
[]
no_license
<?php // Business tier class that analyzes a birth chart for many things $path = dirname( __FILE__ ); class AnalyzeChart { private $_Page = array(); private $_ChartInput; private $_ChartInfo = array(); private $_Aspects = array(); private $_AspectDetails = array(); private $_SynastryAspects = array(); private ...
true
91d0438fc9aa074f97eac7370886c16fc43e3244
PHP
ryanmcoble/remedy
/app/database/seeds/ProductSeeder.php
UTF-8
16,605
2.5625
3
[ "MIT" ]
permissive
<?php class ProductSeeder extends Seeder { public function run() { $shop = Shop::all()->first(); if(!$shop) return ; $shopId = $shop->id; $seedData = [ [ 'shopify_id' => '32932092380', 'title' => 'Test Product 1', 'handle' => 'test-product-1', 'body_html' ...
true
9112b697c377e379247ec0261f20e20a9926e4dc
PHP
netquart/pharma
/application/modules/admin/models/Brands_model.php
UTF-8
893
2.6875
3
[ "MIT" ]
permissive
<?php class Brands_model extends CI_Model { public function __construct() { parent::__construct(); } public function getBrands() { $query = $this->db->query('SELECT * from pharma_brands order by brand_order ASC'); $arr = array(); foreach ($query->result() as $shop_...
true
3ca925a9b2e9c6d8d93acda18577f9818884766e
PHP
TavoNiievez/laravel-module-tests
/database/seeders/DatabaseSeeder.php
UTF-8
720
2.625
3
[]
no_license
<?php declare(strict_types=1); namespace Database\Seeders; use Illuminate\Database\DatabaseManager as DB; use Illuminate\Database\Schema\Builder as Schema; use Illuminate\Database\Seeder; final class DatabaseSeeder extends Seeder { public function run(): void { $this->truncateTables(['users']); ...
true
8113666cffcf6a1cd6855045f51e0a2c80fc231e
PHP
jiromm/subscribe-to-lib
/cron/send-update-email.php
UTF-8
2,554
2.515625
3
[ "Apache-2.0" ]
permissive
<?php require_once(dirname(__DIR__) . '/general/get-connection.php'); require_once(dirname(__DIR__) . '/general/functions.php'); require_once(dirname(__DIR__) . '/vendor/email.php'); try { $st = $conn->prepare(' select subscriber.id as subscriber_id, subscriber.email, library.id as library_id, library....
true
dec390b684588a9dcd8cf0ecedcf948d67486ebe
PHP
brobo/mumshoppe
/src/AppBundle/Controller/GroupController.php
UTF-8
2,050
2.59375
3
[]
no_license
<?php namespace AppBundle\Controller; use AppBundle\Entity\Group; use AppBundle\Form\GroupType; use Symfony\Component\HttpFoundation\Request; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; /** * @Route("/api/group") */ class GroupController...
true
4a0888221508c345a019de8d2d4ef64895635f30
PHP
dezineservices/recat
/public/sites/all/modules/recat_core/recat_core.class.inc
UTF-8
1,141
2.546875
3
[]
no_license
<?php class RecatCorePager extends PagerDefault { private $current_page; public function execute() { if (!$this->preExecute($this)) { return NULL; } if (empty($this->limit)) { return; } $this->ensureElement(); $total_it...
true
55fadcde462c0b77d0955d361413c293a59c2d7b
PHP
silvanmelchior/PiRobo
/www/status.php
UTF-8
487
2.890625
3
[]
no_license
<?php for($i=0; $i<50; $i++) { # read data $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); socket_connect($socket, 'localhost', 56000); socket_write($socket, "get", 3); $msg = socket_read($socket, 10240); socket_close($socket); # calc hash $hash = hash("md5", $msg); if($hash !...
true
e515b1d8b8a068b892a2e061411e4c1e69e8f644
PHP
hergot/databroker
/src/hergot/databroker/DataAdapter/Validator/StringValidator.php
UTF-8
1,896
3.203125
3
[]
no_license
<?php namespace hergot\databroker\DataAdapter\Validator; use hergot\databroker\DataAdapter\ValidatorInterface; class StringValidator implements ValidatorInterface { /** * @var integer */ private $minLength; /** * @var integer */ private $maxLength; /** * Class construc...
true
b9e9e2e95c60973c941474ec40a9569598972340
PHP
geeksareforlife/aicc-video
/src/Providers/Vimeo/Video.php
UTF-8
2,117
2.875
3
[ "MIT" ]
permissive
<?php namespace GeeksAreForLife\AiccVideo\Providers\Vimeo; use GeeksAreForLife\AiccVideo\Providers\VideoInterface; use GuzzleHttp\Client; class Video implements VideoInterface { private $urlRegexes = [ '/vimeo.com\/(\d*)/', ]; private $apiToken = ''; private $httpClient = false; private $videoId = ''; priv...
true
7274bac60405104f71c6f446d3fcee306eaeed0f
PHP
magicbug/Cloudlog
/application/controllers/Themes.php
UTF-8
2,163
2.5625
3
[ "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* This controller will contain features for contesting */ class Themes extends CI_Controller { function __construct() { parent::__construct(); $this->lang->load('contesting'); $this->load->model('user_model'); if(!$this->user_m...
true
f8313609de2f54bd34d13434407cdcbb1fb3de14
PHP
team-awol/RaiderTime
/nextRaiderTime.php
UTF-8
1,798
3.125
3
[]
no_license
<?php /* returns the next raidertime date if necessary creates a new column in database for this week */ function get_next() { // connect to database $servername = "ahsraidertime.org"; $username = "ahsraide_editing"; $password = "cashmoney420"; $database = "ahsraide_db734576708"; $con...
true
4fefa83c69bfb01349ade46d32ac59ae9206be00
PHP
bwpedro/api-info-pacientes
/src/objects/endereco.php
UTF-8
4,147
2.875
3
[]
no_license
<?php class Endereco { private $tabela = "endereco"; private $conn; private $id; private $tipo; private $cep; private $uf; private $cidade; private $bairro; private $logradouro; private $numero; private $complemento; private $donoendereco; public function __cons...
true
7a31210a5ac35aacdf7279724dfb9c588c71bd3a
PHP
IToschka/Datenbankentwicklung-Projektzeiterfassung
/employeeManagement/includes/employeeManagement_Functions.inc.php
UTF-8
6,362
3.0625
3
[]
no_license
<?php //Autor der Datei Tamara Romer /* Die Datei enhält die Funktionen und Fehlermeldungen zum Anlegen, zum Ändern und Löschen eines Mitarbeiters Iin der Datenbank ist ein Trigger von Katja hinterlegt, der beim Löschen eines Projektleiters, die betroffenen Projekte dem Admin zuweist*/ //Funktionen für Mitarbeiter a...
true
af6d6bdb6963f958c9262416f32272750a1dfce1
PHP
salmanisc/mytest-gh-project
/hello.php
UTF-8
171
3.15625
3
[]
no_license
<?php $message = "hello world"; $list = array("one", "two", "three"); function dd($var) { echo "<pre><tt>"; var_dump($var); echo "<tt></pre>"; } dd($list); ?>
true
4073649b5633d29d98c18787d508886a0c4684d1
PHP
TAGHREEDAA/oop-php
/classes/User.php
UTF-8
4,253
2.75
3
[]
no_license
<?php class User { private $_db, $_sessionName, $_cookieName, $_isLoggedIn, $_data; public function __construct($user = null) { $this->_db = DB::getInstance(); $this->_sessionName = Config::get("session.session_name"); $this->_cookieName = Config::...
true
6846c0a32da1ed3fd10d10c306ee7f5a9f37d5b1
PHP
jennivj/UBL
/tests/db-connection.php
UTF-8
946
2.546875
3
[]
no_license
<?php # !!!!! -----> CONNECTION <--------!!!!! $servername = "localhost"; $username = "root"; $password = ""; $dbname = "myblue"; // Create connection //global $conn ; $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $con...
true
58a321d6205fe3596f0d4e93bfde3d7566853750
PHP
Kuliniak/AK_repo
/Baza/rejestracja.php
UTF-8
2,169
2.875
3
[]
no_license
<!-- Strona z szablonem rejestracji --> <?php require('header.php'); require('connect.php'); ?> <?php if(isset($_SESSION['zalogowany']) && $_SESSION['zalogowany']==true) { header("Location: zalogowany.php"); }else { ?> <h1>Zarejestruj się</h1> <form action="" method="post"> <input type="text" name...
true
9cf878a233640a8a47a1a6a125011dff818e7ac4
PHP
wisdom-diala/hngi8task2
/app/Http/Controllers/ContactsController.php
UTF-8
2,461
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Contact; use Illuminate\Http\Request; use Validator; use Arr; class ContactsController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // retur...
true
c437171c03540fa7ed6ed3a3a1a5ed0fac1379ee
PHP
Oriannanas/OilsWell
/Website/snoepjeswebsite v0.1/application/controllers/userscontroller.php
UTF-8
4,691
2.765625
3
[]
no_license
<?php class UsersController extends Controller { //Constructor public function __construct($model, $controllerName, $action) { parent::__construct($model, $controllerName, $action); } public function homepage() { $message = ''; $this->set('head...
true
011661c3910075e7dae7aab0dd27c319fc4db619
PHP
stupidkitty/gallery
/src/Model/GalleryInterface.php
UTF-8
2,106
2.78125
3
[ "MIT" ]
permissive
<?php namespace SK\GalleryModule\Model; interface GalleryInterface { const STATUS_DISABLED = 0; // Отключено, новое const STATUS_ACTIVE = 10; // Опубликовано const STATUS_MODERATE = 20; // Модерация, проверка const STATUS_DELETED = 90; // Удалено. /** * Возвращает чистовой идентификатор. ...
true
9b7057675d2bfb784624bbf5b6b69c87749fd5ee
PHP
SporoZoite/php-first-steps
/src/conditions/conditions.php
UTF-8
547
2.765625
3
[]
no_license
<html> <head><title>conditions</title></head> <body> <?php $room_is_filthy = true; function cleanup_room() { $image = 'https://media0.giphy.com/media/26gscNQHswYio5RBu/200.gif'; $imageData = base64_encode(file_get_contents($image)); echo '<br><img src="data:image/jpeg;base64,'.$imageData.'">'; }; if( $room...
true
ccc7f8a3e9ca5bfd39538a7c811d3670a6cfce50
PHP
jonathanjd/cinegrafic
/app/Http/Controllers/API/ProjectController.php
UTF-8
2,362
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\API; use App\Project; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class ProjectController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { ...
true
ed8e35b558421f2d6bc1c1d394f785fb584f34a8
PHP
apollee/BDProj
/web/places_final.php
UTF-8
2,574
2.515625
3
[]
no_license
<html> <head> <title>Listar anomalias</title> <link rel="stylesheet" href="item.css"> </head> <body> <h1>Listagem:</h1> <?php $caught = false; try { $latitude1 = $_REQUEST['latitude1']; $longitude1 = $_REQUEST['longitude1']; ...
true
ffcdc02f9fe2d5b861a9f88806aaccf06d7ffe52
PHP
Gerfey/battlenet
/src/Request/GameData/Warcraft/PvPTier.php
UTF-8
1,249
2.75
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Gerfey\BattleNet\Request\GameData\Warcraft; use Gerfey\BattleNet\Http\BattleNetResponseInterface; use Gerfey\BattleNet\Request\Request; /** * Class PvPTier * @package Gerfey\BattleNet\Request\GameData\Warcraft */ class PvPTier extends Request { /** * Returns an index of PvP tiers. * ...
true
f7943b4c981ebf8630dfa4f4b3b6d28ff84d4097
PHP
pafciu17/gsoc-os-static-maps-api
/code/modul/Module.php
UTF-8
1,913
2.828125
3
[]
no_license
<?php /** * base class for modules * */ abstract class Module { /** * data of module * * @var array */ protected $_moduleData = array(); /** * GET data * * @var Get */ protected $_get; /** * POST data * * @var Post */ protected $_post; /** * conf...
true
c6fe1c90c4b1d32cb91e4e562b9b66309923b87d
PHP
MEETAUPADHYAY/PHP_B12_G
/array3.php
UTF-8
554
3.140625
3
[]
no_license
<?php $languages=array( "PHP"=>array("duration"=>3,"fees"=>8500), "PYTHON"=>array("duration"=>4,"fees"=>8500), "Flutter"=>array("duration"=>3,"fees"=>9500) ); print_r($languages); var_dump($languages); echo "<br/>"; $FeesTotal = 0; foreach ($languages as $OuterKey => $...
true
35c8ab04367c60e0f991b1ac83517949a9a0914c
PHP
xav335/escalinox
/realisations.php
UTF-8
2,384
2.53125
3
[]
no_license
<? include_once ( $_SERVER[ "DOCUMENT_ROOT" ] . "/admin/classes/utils.php" ); require( $_SERVER[ "DOCUMENT_ROOT" ] . "/inc/inc.config.php" ); require $_SERVER[ "DOCUMENT_ROOT" ] . "/admin/classes/Reference.php"; require $_SERVER[ "DOCUMENT_ROOT" ] . "/admin/classes/Reference_image.php"; $debug = false; $referen...
true
01fc4c7255dbbd3172562cbd2c8c7950f513a300
PHP
Dheia/VCard-Tools
/src/VCard.php
UTF-8
44,931
2.765625
3
[ "MIT" ]
permissive
<?php /** * vCard class for parsing a vCard and/or creating one * * @link https://github.com/evought/VCard-Tools * @author Martins Pilsetnieks, Roberts Bruveris, Eric Vought * @see RFC 2426, RFC 2425, RFC 6350 * @license MIT http://opensource.org/licenses/MIT */ namespace EVought\vCardTools; use Ramsey\Uuid\Uui...
true
d0e1a1984f86f91b0586db22f3fc0448f0273cb1
PHP
apple-x-co/php-conversation-lib
/src/AbstractConversationEvent.php
UTF-8
1,954
2.953125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: sanokouhei * Date: 2017/11/06 * Time: 17:30 */ namespace Conversation; use Conversation\Exception\ConversationUnknownEventException; abstract class AbstractConversationEvent { /** @var array */ const TYPES = [ ConversationEventType::MESSAGE, Conv...
true
e45de07d87395bf16ac601d469e39140659d4917
PHP
arimuntari/simrs
/app/Helper/Helpers.php
UTF-8
2,710
2.65625
3
[]
no_license
<?php namespace App\Helper; use route; use DB; class helpers { public static function cekAktif($aktif) { if($aktif != 1){ return "<span class='badge bg-red'> Non-Active</span>"; }else{ return "<span class='badge bg-green'> Active</span>"; } } public static function tipeUser($tipe) { if($ti...
true
7546e0bc18b29a5a790496af9cf2eeed439352d4
PHP
cgstag/deep_blue
/classloader.php
UTF-8
360
2.5625
3
[]
no_license
<?php function classLoader($classe) { require dirname(__FILE__).DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR.$classe.'.class.php'; // On inclut la classe correspondante au paramètre passé. } spl_autoload_register('classLoader'); // On enregistre la fonction en autoload pour qu'elle soit appelée dès qu'on insta...
true