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
81b030534b897d08fd452d1306bc0c4541345088
PHP
SobhieSaad/warehouse
/app/Http/Controllers/AuthController.php
UTF-8
2,244
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Contracts\Validation\Validator; use Illuminate\Http\Request; use App\Models\User; use Illuminate\Http\Response; use Illuminate\Support\Facades\Hash; class AuthController extends Controller { public function register(Request $request){ $fields=$request-...
true
689d2d07c59c1dab3e0e51e9c8da841b65163b23
PHP
leagueofbeards/Stripe-for-Habari
/classes/products.php
UTF-8
685
2.578125
3
[ "Apache-2.0" ]
permissive
<?php namespace Habari; /** * Products Class * */ class Products extends Posts { public static function get($paramarray = array()) { $defaults = array( 'content_type' => 'product', 'fetch_class' => 'Product', ); $paramarray = array_merge($defaults, Utils::get_params($paramarray)); return Posts::get...
true
8d2888b3321d070320142670a6b7fcb18e9ca8aa
PHP
GiuseppeDiM/Prog-IS_Immobilunisa
/Implementazione/subsystem/facadeTrattative.php
UTF-8
2,354
2.84375
3
[]
no_license
<?php include_once("database.php"); include_once("trattativa.php"); include_once("interfacciaGestioneTrattative.php"); class facadeGestioneTrattative implements gestioneTrattative{ function facadeGestioneTrattative(){ } function approvaTrattativa($id){ $trattativa=new Trattativa(); $trattativa->s...
true
2022403b3f8393397741cbc2778b8ca05dd46a30
PHP
jaybril/www.juice.com
/frontend/models/Join.php
UTF-8
1,826
2.671875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace frontend\models; use common\widgets\Variable; use yii; use yii\db\ActiveRecord; class Join extends ActiveRecord{ /* * 通过id查找 */ public function findById($id){ $model = Join::find()->where(array('id' => $id))->one(); if ($model) { return new static($model); ...
true
22c8955608691d847401d309aca4edbd142d61f4
PHP
islandfuture/4yell
/task1/classes/SquareShapeHtml5Render.php
UTF-8
470
2.921875
3
[]
no_license
<?php class SquareShapeHtml5Render implements ShapeRender { public static function draw(AbstractShape $oShape) { $sResult = <<<EOT context.beginPath(); context.rect({$oShape->x}, {$oShape->y}, {$oShape->w}, {$oShape->h}); context.fillStyle = '{$oShape->bgColor}'; context.fill();...
true
8e2518f76768ba44ba0bc76a7163763cafe9267e
PHP
PHProger-themus/design-patterns
/Command/classes/NotifierCommand.php
UTF-8
277
3.078125
3
[]
no_license
<?php namespace command\classes; use command\interfaces\Command; class NotifierCommand implements Command { public function __construct( private string $line ) {} public function execute() { echo "You were notified: {$this->line}"; } }
true
887576586af2732d97bb5f530ee963f333f3038a
PHP
bwoebi/operators
/DoYouMissPointers.php
UTF-8
914
3.96875
4
[]
no_license
<?php /* pretty pointless ... but cool all the same */ class StringPointer implements Operators { private $string; private $position; private $end; public function __construct(&$string){ $this->string = $string; $this->position = 0; $this->end = strlen($string); } public function __operators($opcode, $zva...
true
ec789aab1b7d7b08d2079ab3cfe49cf034b03ee9
PHP
gabriel-lm/Online-Voting-System
/ajax/register.php
UTF-8
3,829
2.546875
3
[]
no_license
<?php // Allow the config define('__CONFIG__', true); // Require the config require_once('E:\Learning\PHP Login Udemy\inc\config.php'); use PHPMailer\PHPMailer\Exception; use PHPMailer\PHPMailer\PHPMailer; if($_SERVER['REQUEST_METHOD'] == 'POST'){ //Always return JSON format //header('Content-...
true
bd50cddc0496fc65623ce2c1788009c00d460089
PHP
vairogs/vairogs
/src/Vairogs/Functions/Tests/DateTest.php
UTF-8
3,669
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Vairogs\Functions\Tests; use DateTimeInterface; use Exception; use InvalidArgumentException; use Vairogs\Core\Tests\VairogsTestCase; use Vairogs\Functions\Date; class DateTest extends VairogsTestCase { /** * @dataProvider \Vairogs\Functions\Tests\DataProvider\DateD...
true
93f7a8449f8ab257756c744fb3d691cbea61410e
PHP
NguyenHuy-pro/3dtfcom
/app/Models/Manage/Content/Building/Activity/TfBuildingActivity.php
UTF-8
6,150
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Models\Manage\Content\Building\Activity; use Illuminate\Database\Eloquent\Model; class TfBuildingActivity extends Model { protected $table = 'tf_building_activities'; protected $fillable = ['activity_id', 'highlight', 'action', 'created_at', 'building_id', 'articles_id', 'post_id']; p...
true
045e62984b3d2e4f8bf3f6bbc547f572d36f8143
PHP
bekanntmacher/contao-anchor
/elements/ContentAnchorHeadline.php
UTF-8
763
2.546875
3
[]
no_license
<?php /** * Contao Open Source CMS * * Copyright (C) 2005-2013 Leo Feyer * * @package anchornavi * @author Simon Wohler <mail@bekanntmacher.ch> * @license LGPL * @copyright bekanntmacher 2012 */ /** * Run in a custom namespace, so the class can be replaced */ namespace Contao; /** * Class Conten...
true
ab541f41427f1447e9e589d9283cd7f77c33d26c
PHP
okimangelo/vicparks
/site/web/app/themes/vicparks-theme/templates/single/park-gallery.php
UTF-8
1,662
2.578125
3
[ "MIT" ]
permissive
<?php /** * Template Part: Gallery for Single Park Page */ $images = get_field('gallery'); // check if the repeater field for Slider has rows of data if( have_rows('gallery') ): ?> <section id="parkCarousel" class="carousel slide park-slider" data-ride="carousel" style="min-height: 400px;"> <!-- Indicators -->...
true
11032ef52f9e833bf567c6b116ad945947a4da1f
PHP
lucasmichel/mete_service
/src/model/DAO/AcaoDAO.php
UTF-8
5,688
3.03125
3
[]
no_license
<?php /** * Classe AcaoDAO * Camada de acesso a dados da entidade Ação * @package model * @subpackage DAO */ class AcaoDAO extends ClassDAO { /** * Atributos */ private static $instancia; private $conexao; const TABELA = 'acoes'; /** * Metodo construtor() */ protected function __con...
true
2a6669dd2ba7f4ee1214bd5006205942294dceef
PHP
deekshith4450/online-book-store
/src/payments.php
UTF-8
1,600
2.578125
3
[]
no_license
<?php $con=mysqli_connect('localhost','root','','project2'); $add=$_POST['address']; if(!$con) { echo "could not connect"; } else { $pricefecth=mysqli_query($con,"SELECT SUM(price) FROM addtocart"); $totalprice=mysqli_fetch_row($pricefecth); $price=number_format($totalprice[0],2); $edd=date("dS - F",strtotime(...
true
c732363dfcff649118c03e0e88a86019979744d0
PHP
Mazen-Al-Samman/yii2-advanced-debugger
/src/ResponsePanel.php
UTF-8
878
2.59375
3
[]
no_license
<?php namespace samman\debug; use Yii; use yii\debug\Panel; use yii\web\Response; /** * Debugger panel that collects and displays request data. * @author Mazen Samman <mazenalsmman@gmail.com> * @since 2.0 */ class ResponsePanel extends Panel { /** * {@inheritdoc} */ public function getName(): s...
true
1a7e6dbcb83cde66252b0dad3a773edb33b00ef8
PHP
MauroRFuentes/IPOO
/Teatro2/funciones.php
UTF-8
2,054
3.546875
4
[]
no_license
<?php class Funciones{ private $nombre; private $horarioInicio; private $duracionObra; private $precio; public function __construct($nombre,$horarioInicio,$duracionObra,$precio){ $this->nombre = $nombre; $this->horarioInicio = $horarioInicio; $this->duracionObra = ...
true
30baf91b5e32fed3e7ef81dcedb7133eb2f738e9
PHP
DoubleDoorDevelopment/Website
/getTwitchName.php
UTF-8
1,750
2.625
3
[]
no_license
<?php header('Content-Type:text/plain'); if (!isset($_GET["uuid"])) { http_response_code(400); echo "Returns Twitch username associated with a Minecraft UUID.\n"; echo "Usage:\n\t?uuid='uuid as string'\n"; echo "Result:\n"; echo "\tHTTP 200 Plain text twitch username if uuid is in the database, em...
true
393de5a9f2e0550781624acf55d7840e818948df
PHP
DimitrisKas/PLH518-Cloud-Services-Course
/main_app/app/async/favorite_toggle.php
UTF-8
1,072
2.59375
3
[]
no_license
<?php session_start(); header('Content-type: application/json'); include_once '../db_scripts/Models/Users.php'; include_once '../db_scripts/Models/Favorites.php'; include_once('../db_scripts/keyrock_api.php'); include_once('../Utils/Random.php'); include_once('../Utils/Logs.php'); logger("-- In ADD/DELETE Favorite"); ...
true
3267bc9f952987261b27149c0126bfeb7c0c683a
PHP
Danilovdenis1105/news-blog
/classes/User.php
UTF-8
964
2.953125
3
[]
no_license
<?php class User extends Database { public function isAuthorized($login, $password) { $user = $this->getUser($login); $isAutho = password_verify($password, $user['password']); if ($isAutho) { return true; } return false; } public function getUser($...
true
fa8914c3e4272e016d6d8dd735f79e0c7c4ddeee
PHP
joerncodes/pathfinderdb
/src/Domain/EventSubscriber/SerializeEventSubscriber.php
UTF-8
1,337
2.53125
3
[]
no_license
<?php namespace App\Domain\EventSubscriber; use ApiPlatform\Core\EventListener\EventPriorities; use App\Domain\PropertySorting\PropertySorter; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpKernel\Event\ViewEvent; use Symfony\Component\HttpKernel\KernelEvents; class Seriali...
true
4f6cd5459c5f9b0f4a62bbd39312e6f0cb93bf6f
PHP
sergli/DbUtils
/src/DbUtils/Adapter/AdapterTrait.php
UTF-8
2,528
3.109375
3
[]
no_license
<?php namespace DbUtils\Adapter; use DbUtils\Select\SelectInterface; use DbUtils\Table\TableInterface; use DbUtils\Table\AbstractTable; use DbUtils\Table\TableNotExistsException; trait AdapterTrait { /** * Возвращает объект таблицы * * @param string $tableName * @access public * @return TableInterface *...
true
3465de5454f6b72f76feffe6fd0bbd7beea25d55
PHP
quwahara/hello-lib
/src/Hello.php
UTF-8
150
2.9375
3
[]
no_license
<?php namespace quwahara\HelloLib; class Hello { public function helloTo($subject) { return "Hello, {$subject}"; } }
true
fe29220101051ff4a4724b0c46f59d58b9940e29
PHP
tommy-bolger/necrolab-deprecated
/external/oauth2-reddit-master/src/Grant/InstalledClient.php
UTF-8
972
2.71875
3
[ "MIT" ]
permissive
<?php namespace Rudolf\OAuth2\Client\Grant; use League\OAuth2\Client\Grant\GrantInterface; use League\OAuth2\Client\Token\AccessToken; /** * @see https://github.com/reddit/reddit/wiki/OAuth2 */ class InstalledClient implements GrantInterface { public function __toString() { return 'https://oauth.re...
true
a7542f730f0738400afecc095525025e8531dd14
PHP
developernca/ffh
/application/core/MY_Controller.php
UTF-8
2,920
2.6875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * Base class for all other controllers in this * application. Every controller should extend this * controller and not directly extend CI_Controller. * * @author Nyein Chan Aung<developernca@gmail.com> */ class MY_Controller extends CI_Controller { /** * Initialize parent constructor and ...
true
6d8c5e8aa85a4556d50005a97cc9ada9ecbd8c93
PHP
sygatechnology/sygaigniter
/app/Services/ApiRequestService.php
UTF-8
1,291
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Services; use CodeIgniter\HTTP\RequestInterface; class ApiRequestService { public function getParam(string $param) { return $this->_getParam($param); } public function params(){ return $this->_getParam(); } public function getToken(){ ...
true
e639c463b4d4e23da5fa1607b0298a3a0eb0bf8d
PHP
antonioTov/app
/controller/playersController.php
WINDOWS-1251
9,017
2.65625
3
[]
no_license
<? /** * */ class PlayersController extends System_Controller { /** * */ public function init() { // $this->view->ident = $this->ident; $request = new Component_Request(); // if( $request->post('event') ) { $this->event( $request->post('event') ); } } /** * ...
true
b3c3cd0ab31cb4ddf527eb1dad418660b4b417c9
PHP
skesslr/loCal
/public/tag.php
UTF-8
1,795
2.859375
3
[]
no_license
<?php // configuration require("../includes/config.php"); // if user reached page via GET (as by clicking a link or via redirect) if ($_SERVER["REQUEST_METHOD"] == "GET") { // else render form render("tag_form.php", ["calendar_id" => $_GET["id"], "title" => "Tag"]); } // ...
true
27ced45e0824e00d41f74b83e764a6a3976dc0ad
PHP
NightZpy/test-geopagos
/Clases/Usuario.php
UTF-8
3,002
2.65625
3
[ "MIT" ]
permissive
<?php require_once ('Model.php'); require_once ('Pago.php'); require_once ('Favorito.php'); /** * */ class Usuario extends Model { protected $attributes = ['codigo_usuario', 'usuario', 'clave', 'edad']; protected $tableName = 'usuarios'; protected $primaryKey = 'codigo_usuario'; protected $validati...
true
f91214ede8694fb26980897e4c7fa56aab8721b2
PHP
mufee/mufee
/fuel/app/classes/controller/ajax.php
UTF-8
2,094
2.609375
3
[ "MIT" ]
permissive
<?php /** * The Welcome ajax rest controller. * * @package app * @author MT2 Team * @extends Controller_Rest * * 説明:ajaxリクエスト用 */ class Controller_Ajax extends Controller_Rest { /** * @brief [曲の再生後処理] * @param [musicname] [曲名] * @param [musicinfo] [曲情報] * @access public ...
true
520ba62b26bef265688169435eb6c2019ff578a3
PHP
anilmomin/Anil-Projects-PHP
/DTP-5-11-2012/application/models/winefeedback.php
UTF-8
2,514
2.734375
3
[]
no_license
<?php require_once 'ditchthepitchmodel.php'; class WineFeedback extends DitchThePitchModel { public function __construct() { parent::__construct(); $this->tableName = TABLE_WINEFEEDBACK; $this->addPrimaryKey('winefeedbackId'); } /** * getwineFeedback ...
true
19a930dd0eea099ca150316cf71fb2629014632b
PHP
BensonDu/laravel
/app/Http/Middleware/Init.php
UTF-8
2,208
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use App\Http\Model\Admin\UserModel; class Init { /* |-------------------------------------------------------------------------- | 全局初始化 |-------------------------------------------------------------------------- */ public function handle($requ...
true
610cedb7c0d91b0d7884bf625994de790367b8e1
PHP
ReubenTanYuErn/Agile-Development---Penang
/penang/tourism/admin_area/inc/update.php
UTF-8
2,541
2.875
3
[]
no_license
<!DOCTYPE html> <?php include("includes/db.php"); function getPosts() { //expect data to get are 1 id, 1 name, 1 image and 1 description $posts = array(); $posts[0] = $_POST['id']; $posts[1] = $_POST['name']; $posts[2] = $_FILES['image']; $posts[3] = $_POST['description']; return $posts; } ...
true
9398d672152166f5a7f2247ea62a97465102a797
PHP
juicylevel/sarkazyaka
/server/db/AppDB.php
UTF-8
7,945
3.046875
3
[]
no_license
<?php require_once 'utils.php'; require_once 'DBWrapper.php'; /** * Класс-обёртка для работы с БД приложения. * Выполняет конкретные запросы к БД. */ class AppDB extends DBWrapper { //------------------------------------------------------------------------- // Работа с пользователями прложения //-----------...
true
1f99b28af299b68ed17a70fa654230f525359381
PHP
sriastuti/tubespw-karangsong
/tubesPW/admin/modul/galeri.php
UTF-8
2,741
2.546875
3
[]
no_license
<?php include '../database/koneksi.php'; switch(@$_GET['act']){ default: echo "<h2>Galeri</h2> <form method=post action='?module=galeri&act=tambahgaleri'> <input class='btn btn-primary' type=submit value='Tambah Galeri'> </form> <table class='table'> <tr> <th scope='col'>No</th> <th scope='col'>Nama ...
true
028f896ab0f5d513d610abfc8d8390784bcd14a9
PHP
take64/CitrusFramework3
/tests/Variable/DatesTest.php
UTF-8
1,119
2.84375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * @copyright Copyright 2019, CitrusFramework. All Rights Reserved. * @author take64 <take64@citrus.tk> * @license http://www.citrus.tk/ */ namespace Test\Variable; use Citrus\Variable\Dates; use PHPUnit\Framework\TestCase; /** * 日付拡張のテスト */ class DatesTest extend...
true
e7ebab77a537fc46095140ff6b757a62ce62b439
PHP
munza/lumen-api-starter
/app/Transformers/ErrorTransformer.php
UTF-8
3,342
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Transformers; use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Http\Response; use Illuminate\Validation\ValidationException; use League\Fractal\TransformerAbstract; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Throwable; class ErrorTransformer exten...
true
8669c470096e26c3a8c20fc05dd95b3a34076fe5
PHP
yancey1204/PHPwebsite
/YanceySite/ITA2/Model/image.php
UTF-8
376
3.078125
3
[]
no_license
<?php class image { public $ImageID; public $ImageDes; public $SectionID; public $ImageExtension; // CONSTRUCTOR function image($imageid, $imagedes, $imageextension, $sectionid) { $this->ImageID = $imageid; $this->ImageDes = $imagedes; $this->ImageExtension = $imageext...
true
9630e63e0dbd8dbe8d4593da43a97a511449ccd1
PHP
Ashu7777/Hospital-management-php
/Hospital_Manag_php_project/functions.php
UTF-8
3,243
2.609375
3
[]
no_license
<?php function openConnection(){ global $connection; $server = "127.0.0.1"; $user = "root"; $password = ""; $dbaseName = "hospital"; $connection = mysqli_connect($server, $user, $password) or exit("Server connection failed"); mysqli_select_db($connection, $dbaseName) or exit("Database $dbaseName sel...
true
a8eb701d317164850dc1d23743834a0d4792d970
PHP
kucik/thalie-web
/cls/CArticle.cls.php
UTF-8
3,352
2.53125
3
[]
no_license
<?php class CArticle { var $db; var $id; function CArticle(&$db, $id = '') { $this->db = $db; $this->load($id); } function load($id = 0) { $this->id = (int)$id; if (!$this->id) { $rs = $this->db->qy("S...
true
bc61e402f1803e419686df5a7c098cde47b4ee90
PHP
PiosX/Course
/Sector 2/operatory_porównania.php
UTF-8
686
3.25
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Operatory Porównania</title> </head> <body> <?php $zm = 5; $zm2 = '5'; //BOOL = ...
true
94e4cf9dfd574e23479830edfbc41cee7af6420a
PHP
BagerManBG/PU-Code-Igniter
/app/Models/UserModel.php
UTF-8
588
2.8125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use CodeIgniter\Model; use Config\Database; class UserModel extends Model { protected $table = 'users'; protected $allowedFields = ['name', 'email', 'password', 'created']; protected $returnType = 'App\Entities\User'; public function __construct() { parent::__construct(); ...
true
ad46734ffd19452959767bab9941a0f274e4a195
PHP
Zikstar/Comp5531-Web-Portal
/backend/employer.php
UTF-8
3,615
3.109375
3
[ "MIT" ]
permissive
<?php class Employer { private $db = null; public function __construct($db) { $this->db = $db; } public function findAll() { $statement = " SELECT Employer_ID, Description, Name, Emoloyer_Balance, EmMembershipStartTime, UserId, GenreEm ...
true
1e108ecd2253fce4bfa7ff7b9c467b0fc6799399
PHP
LazarPanchev/PHPWebDevelopment
/PHP Projects/MVC/WORKSHOPDatabaseDrivenApplicationShop/fileUpload.php
UTF-8
2,118
2.953125
3
[ "MIT" ]
permissive
<?php spl_autoload_register(); //auto include - the class name must be equal to file name $db = DBConnection::getConnection(); $products_obj = new Products($db); $currentDir = getcwd(); //return the current directory with the project $uploadDirectory = "/uploads/"; //here will save the files $errors = [];...
true
84448102c070e56b6d4908efba994871e213913a
PHP
giovictor/greenville
/changepassword.php
UTF-8
1,327
2.515625
3
[]
no_license
<?php session_start(); require "dbconnect.php"; if(isset($_POST['currentpassword']) && isset($_POST['newpassword']) && isset($_POST['confirmnewpassword'])) { $currentpassword = md5($_POST['currentpassword']); $newpassword = md5($_POST['newpassword']); if(isset($_SESSION['borrowerID'])) { $borrowerID = $_SESSION['...
true
baebcb9523bc7536939b80d05e59b7d5cc4705b5
PHP
marry92/books
/app/Http/Controllers/AuthorController.php
UTF-8
3,271
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Author; class AuthorController extends Controller { public function getShowData() { $authors = Author::orderBy('last_name')->orderBy('first_name')->with('books')->get(); return view('authors.show_data'...
true
46b98e24090714928f2b76bc3b3b1b142b95d0a2
PHP
zxiao0216/ThinkPhp5
/application/api/controller/v1/Banner.php
UTF-8
1,001
2.5625
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: eexiaox * Date: 2019/2/20 * Time: 14:31 */ namespace app\api\controller\v1; use app\api\validate\IDMustBePositiveInt; use app\api\model\Banner as BannerModel; use app\lib\exception\BannerMissException; use think\Exception; class Banner { /** * 获取制定id的Banner信息 ...
true
939adc22e72acb2c233d6e6e62ab6237371a9459
PHP
PhamNgocLien/HackerRanks
/HackerRanks/Hospital.php
UTF-8
482
3.359375
3
[]
no_license
<?php function sum($arr) { $sum = 0; $exceptArr = array(); for ($i = 0; $i < count($arr); $i++) { for ($j = 0; $j < count($arr[$i]); $j++) { if ($arr[$i][$j] == 0) { array_push($exceptArr, $j); } else { if (!in_array($j, $exceptArr)) { ...
true
bb1e06904737f837f2ae53e5b9968303f59c5b34
PHP
GuryanovaIrene/photos
/models/User.php
UTF-8
3,206
2.703125
3
[]
no_license
<?php namespace App; use Illuminate\Database\Capsule\Manager as Capsule; use Illuminate\Events\Dispatcher; use Illuminate\Container\Container; class User extends MainModel { public $userID; public $userName; public $pwd; public $email; public $age; public $userDescribe; pu...
true
428592e4aa804e6f6db0a6f1b80b4f1ff3f8861a
PHP
junzhengca/islp-canada
/app/Http/Controllers/JudgingResultController.php
UTF-8
3,303
2.5625
3
[ "Apache-2.0" ]
permissive
<?php /** * Copyright (c) 2018. Jun Zheng All Rights Reserved * I hereby grant the usage of this software to SOC (Statistical Society of Canada). * * Issue with the software? Contact juncapersonal at gmail dot com. */ namespace App\Http\Controllers; use App\Competition; use App\JudgingResult; use App\User; use I...
true
212b94ce49a31c1146b9009a930f43ae66ade75a
PHP
RubsMaster/Proyecto-4to-cuatri
/register.php
UTF-8
9,578
2.71875
3
[]
no_license
<?php // Include config file require_once "config.php"; // Define variables and initialize with empty values $username = $password = $confirm_password = ""; $username_err = $password_err = $confirm_password_err = ""; // Processing form data when form is submitted if ($_SERVER["REQUEST_METHOD"] == "POST") { // Va...
true
a75cebd6fba5368b56d96b24695c61cbd18c176a
PHP
vrann/varhound
/Indexer/Finder.php
UTF-8
986
3.015625
3
[]
no_license
<?php /** * @author Extensibility DL-X-Extensibility-Team@corp.ebay.com */ class Finder { /** * @param string $path * @return array */ public function getAllFiles($path) { $fileList = []; return $this->findPhpFiles($path, $fileList); } /** * @param string $pat...
true
64f7ff7d07c2ae5adce2c2795e30ed0c380de8b2
PHP
datdep97/My-SOLID
/baitapsolid.php
UTF-8
1,299
3.75
4
[]
no_license
<?php class AreaCalculate { public function calculate(AreaInterface $shape) { $shapenumber = 10; $totalArea = $shapenumber * $shape->calculateArea(); return $totalArea; } } interface AreaInterface { public function calculateArea(); } class Rectangle implements AreaInterface { ...
true
8dadf105b3527ceb852543a75ee8ff745acb45c4
PHP
koansu-php/core
/Map.php
UTF-8
5,976
3.28125
3
[]
no_license
<?php /** * * Created by mtils on 17.12.17 at 10:56. **/ namespace Koansu\Core; use Closure; use function array_key_exists; use function array_pop; use function call_user_func; use function explode; use function is_array; use function preg_quote; use function preg_split; use function strlen; use function substr; ...
true
c9573c317b3780da2c87880764c9ae60bb9dab80
PHP
arima-ryunosuke/phpunit-extension
/inc/annotation.php
UTF-8
54,835
2.53125
3
[ "MIT" ]
permissive
<?php namespace ryunosuke\PHPUnit; /** * @see \ryunosuke\PHPUnit\Constraint\ClosesTo * @method \ryunosuke\PHPUnit\Actual eachClosesTo($value, ?float $delta = null) * @method \ryunosuke\PHPUnit\Actual closesTo($value, ?float $delta = null) * @method \ryunosuke\PHPUnit\Actual notClosesTo($value, ?float $delta = nul...
true
3a234b1349efaf99976f4607d27fd2ab8ff9a3c2
PHP
bemyguest/settings
/src/Krucas/Settings/Contracts/ContextSerializer.php
UTF-8
311
2.671875
3
[ "MIT" ]
permissive
<?php namespace Krucas\Settings\Contracts; use Krucas\Settings\Context; interface ContextSerializer { /** * Serialize context into a string representation. * * @param \Krucas\Settings\Context $context * @return string */ public function serialize(Context $context = null); }
true
5a8ce119b1a47055405169b695613fb9c34a5004
PHP
michaelhaikal31/MASTER-REST-CI
/application/models/Tabungan_model.php
UTF-8
3,022
2.59375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Tabungan_model extends CI_Model { public function update_saldo($nominal, $id_student) { $sql = "UPDATE t_student SET saldo = saldo + '$nominal' WHERE id_student = '$id_student'"; $this->db->query($sql); } public function getDataTabungan($id_room = null, $id_period = null) { $null = NULL; $t...
true
82e3ee97c3ad50e458e1a7a45b9fe2c686bb714e
PHP
Kappappa/ikupaca
/inc/pdo/create_table.php
UTF-8
1,017
2.5625
3
[]
no_license
<?php // create_table.php // 設定(パス要確認) include_once("../config.php"); /* table作成 */ //[News] // news_id // news_create_time // news_text $sql_news= 'create table if not exists News( news_id int not null auto_increment, news_create_time datetime not null, news_title varchar(100) not null, new...
true
7066a5c6f777fc319e1e36d86bd1fe0fc9880a9d
PHP
alvinoalvin/alvinoalvin.github.io
/prev_projects/atropos/pantsM.php
UTF-8
1,665
2.90625
3
[]
no_license
<!DOCTYPE html> <?php include_once 'headtag.php'; ?> <body> <!-- Database connection!--> <?php //FOR TWIG require_once './vendor/autoload.php'; $loader = new Twig_Loader_Filesystem('./templates'); $twig = new Twig_Environment($loader); include_once 'db.php'; ...
true
009fb0dfb9177082be9ddf443d7aafea0a38eeb2
PHP
thiagodias63/agenda
/_app/Models/FuncionariosSS.class.php
UTF-8
543
2.703125
3
[ "MIT" ]
permissive
<?php /** * @copyright (c) 2017, Thiago Dias */ class FuncionariosSS{ private $Id; private $Funcionario; private $Agendamento; private $Error; private $Result; public function AdicionarFuncionarioSS(array $ListaFuncionario){ $create = new Create; try{ $create->ExeCreate("funcionarios_ss",$ListaFuncionario...
true
93069ebda066bc2e01c9249924101e35cdd7cf11
PHP
felipe4726/bdr-teste
/src/vendor/Database.php
UTF-8
5,807
3.125
3
[]
no_license
<?php namespace Bdr\Vendor; use PDO, PDOException, PDOStatement; $dbvar = ""; // guarda dados sobre a utilização da base de dados $dbc = 0; // SQL count $pdo = null; class Database { //Inicio do banco de dados public static function init(\Bdr\Sistema $sistema) { global $pdo; try { ...
true
3a4c1e3c887a5b106992fbd38465be63be66e869
PHP
manh-trinhquoc/awesome-wordpress
/plugins/cart66/pro/models/Cart66OrderFulfillment.php
UTF-8
2,192
2.65625
3
[]
no_license
<?php class Cart66OrderFulfillment extends Cart66ModelAbstract { public function __construct($id=null) { $this->_tableName = Cart66Common::getTableName('order_fulfillment'); parent::__construct($id); } public function save() { $errors = $this->validate(); if(count($errors) == 0) { ...
true
1a439b314cf16de8bdf7abdc66e9137c2c662121
PHP
Anuradha1994herath/Trainee_Management_System
/mjs/mdata.php
UTF-8
1,785
2.640625
3
[]
no_license
<?php header('Content-Type: application/json'); $servername = "localhost"; $uname = "root"; $passwd = ""; $dbname = "inoc"; // Create connection $mysqli = new mysqli($servername, $uname, $passwd, $dbname); // Check connection if ($mysqli->connect_error) { die("Connection failed: " . $mysqli->connect_error); } $ty...
true
9517cac41e7fd78182621a9fff717238ef24ca79
PHP
isaponsoft/libamtrs
/src/amtrs/.old/win32/opengl.inc/gen_api_table.php
UTF-8
1,007
2.609375
3
[ "BSD-2-Clause" ]
permissive
<?php $header_filename = $argv[1]; $header = file_get_contents($header_filename); $lines = []; $basename = pathinfo($header_filename)['filename']; $fnames = []; $maxlen = 0; foreach (explode("\n", $header) as $line) { $lines[] = trim($line); if (preg_match('/GLAPI[ \t]+(\w+) APIENTRY[ \t]+(\...
true
3900ffbd21a227f286d211c6bc96a8ab28940bed
PHP
Warziik/sforum
/src/Notifications/AccountConfirmationNotification.php
UTF-8
1,139
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Notifications; use App\Entity\User; use Twig\Environment; class AccountConfirmationNotification { /** * @var \Swift_Mailer */ private $mailer; /** * @var Environment */ private $renderer; /** * ForgotPasswordNotification constructor. * @param \Sw...
true
2084f58b06524e6d26fad788119d5d8547efa3e4
PHP
sirshaun/demo-app-be
/app/Services/DestinationService.php
UTF-8
1,046
2.578125
3
[]
no_license
<?php namespace App\Services; use App\Models\PopularDestination; use Illuminate\Support\LazyCollection; class DestinationService { public static function search(?string $term): array { $destinations = PopularDestination::cursor(); return self::tranform($destinations); } protected st...
true
ccd5e10b69a32d6d6c305cbd846ca7c1cde00277
PHP
EvanOnTheWay/lumen-api
/app/Http/Controllers/System/RoleController.php
UTF-8
5,828
2.65625
3
[]
no_license
<?php /** * Created by PhpStorm. * @author Wenpeng * @email imwwp@outlook.com * @time 2019-04-11 16:26:18 */ namespace App\Http\Controllers\System; use App\Http\ResponseScrmWrapper; use App\Http\ResponseStatus; use App\Models\System\SystemRole; use App\Services\SystemMenuService; use App\Services\SystemRoleServi...
true
b2310b7a15599a01c3bc72fddfe9734f9326d272
PHP
kfrerichs/paperbyte
/blog/app/Http/Controllers/GroupController.php
UTF-8
1,192
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Character; use App\Models\Group; use App\Models\Job; use Auth; class GroupController extends Controller { public function getOverview(){ if(Auth::user()->hasRole('player')) { $character = Character::where('user', Auth::user()->name...
true
77a09efdb711ddaf2bafcf8d019bf83cbca5b32c
PHP
PDanielski/mt2-shop-api
/src/Document/ItemShopItemInterface.php
UTF-8
304
2.53125
3
[]
no_license
<?php namespace App\Document; interface ItemShopItemInterface { public function getId(); public static function getType(); public function getName(); public function getDesc(); public function isMultilingual(); public function getPrices(); public function getCategory(); }
true
19f240ce163f9378a178f25119bcba8399e87379
PHP
kokaleros/CodeLab-CMS
/application/models/Shipment.php
UTF-8
3,246
2.65625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php Class Shipment extends CI_Model{ public function __construct() { parent::__construct(); } private $shipment_table = "shipments"; public function create($data = "") { if(!is_array($data)){ echo "Create shipment: input data isnt array!"; return fals...
true
1b14cc0eaa5b98c9d30c79ded4f7b89fb49c2fd8
PHP
sow91/web-services
/getKitViewPatientPhotos.php
UTF-8
1,181
2.59375
3
[]
no_license
<?php // json response $response = array(); # check patient_id if (isset($_GET['patientId'])){ # get fields $id_patient = $_GET['patientId']; # include de connexion file require "db_connect.php"; # connexion to DB $conn = new DB_CONNECT(); # sql query $sql = "select id_image, ima_libelle, ima_nom fr...
true
c1f718ee69329ea1e8fc4f273cb1399b78aebf1c
PHP
dicephp/types
/src/Arr.php
UTF-8
10,397
3.421875
3
[ "MIT" ]
permissive
<?php namespace Dice\Types; /** * Arr: A near-natural Array Implementation */ class Arr extends \ArrayIterator { /** @var array Original value with which the class was created */ protected $originalValue; /** @var int Active value, used for chaining */ protected $activeValue; /** @var bool Sho...
true
a018b6f71fd9d4c94aa7b21375726b2b5d71bc3a
PHP
sudrajadsasmita/rumahrahileducation
/application/models/Siswa_model.php
UTF-8
5,425
2.5625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') or exit('No direct script access allowed'); /** * * Model Siswa_model * * This Model for ... * * @package CodeIgniter * @category Model * @author Setiawan Jodi <jodisetiawan@fisip-untirta.ac.id> * @link https://github.com/setdjod/myci-extension/ * @param ... * @return...
true
5a35e2e170086fe4d89a5bfaebc3bc8c98dd5435
PHP
lucaslz/tp-sismas-distribuidos
/src/App.php
UTF-8
1,322
3.234375
3
[]
no_license
<?php namespace app; use Pimple\Container; /** * Classe responsabel por gerenciar as configuracoes basicas da aplicacao, * como o gerenciado de dependencia as blibiotecas baixadas pelo composer * * @author Lucas Lima <lucasdevelopmaster@gmail.com> */ class App { /** * Configuracoes basicas * ...
true
81e4a2560e093538cd07ff3c15f6333dd664ce40
PHP
Cristovao-bit/exercicio_php
/06-exercicio.php
UTF-8
1,385
3.765625
4
[]
no_license
<!DOCTYPE> <html> <head> <meta charset="utf8"/> <title>Exercício 06</title> <style> input { padding: 10px; margin: 2px; } </style> </head> <body> <?php /* * Faça um algoritmo PHP que receb...
true
f8cbd5d4aab205a58a301f078f6e6d02a7f560ee
PHP
Auriaz/fzn
/src/FileManager/PhotoFileManager.php
UTF-8
3,823
2.796875
3
[]
no_license
<?php namespace App\FileManager; use App\Entity\FileManager; use App\Service\UploaderHelper; use League\Flysystem\FileNotFoundException; use League\Flysystem\FilesystemInterface; use Psr\Log\LoggerInterface; use Symfony\Component\HttpFoundation\File\File; use Symfony\Component\HttpFoundation\File\UploadedFile; class ...
true
0de4e9d0bcbdd3cda6e697ab75b35557c44067ae
PHP
TadasJ/kudos
/src/DataDog/UserBundle/Controller/TeamController.php
UTF-8
5,408
2.609375
3
[]
no_license
<?php namespace DataDog\UserBundle\Controller; use DataDog\UserBundle\Entity\Team; use DataDog\UserBundle\Entity\User; use DataDog\UserBundle\Form\Type\TeamType; use Symfony\Component\HttpFoundation\Request; use Doctrine\DBAL\DBALException; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\F...
true
6b755967750aa7c0252ea789f496b693010ef3bd
PHP
CharulBhanawat13/CRM
/SmartFreezer/db_connection.php
UTF-8
390
2.609375
3
[]
no_license
<?php function OpenCon() { $dbhost = "localhost"; // $dbuser = "pyrotech_BBR"; // $dbpass = "Pyrotech@123"; // $db = "pyrotech_bbr"; $dbuser="root"; $dbpass="test@123"; $db="test"; $conn = new mysqli($dbhost, $dbuser, $dbpass, $db) or die("Connect failed: %s\n" . $conn->connect_error); ...
true
b15fabdec4113e6474d938d61ffa0c99ac92a4f3
PHP
ngodinhloc/jennifer
/src/Http/Response.php
UTF-8
524
2.8125
3
[]
no_license
<?php namespace Jennifer\Http; use Jennifer\Com\Common; class Response { /** * Redirect to another view with para * @param string $url requires full /module/view/ * @param array $paras */ public function redirect($url, $paras = []) { $str = Common::arrayToParas($paras); ...
true
14887e7b02d261359fc086b6f3ebf2e442459e41
PHP
RomanRabirokh/ImageRandSearch
/src/app/classes/YandexSearch.php
UTF-8
1,882
2.84375
3
[]
no_license
<?php namespace classes; use interfaces\ImageSearch; /** * Class YandexSearch * @package classes */ class YandexSearch implements ImageSearch { /** * @param string $searchText * @param int $number * @return string */ public function getImage(string $searchText, int $number): string ...
true
b86c49856d23d04d4f7538ea77c9b6a121481e1c
PHP
cui2018/crwy_client
/gm/k/lib/excel.php
UTF-8
3,193
2.90625
3
[]
no_license
<?php /* * Excel类 * @Package Name: Excel * @Author: Keboy xolox@163.com * @Modifications:No20170629 * */ class Excel { public $sheets = array(TRUE); public function __construct() { require_once('./k/package/phpexcel/PHPExcel.php'); $this->phpexcel = new PHPExcel(); require_once('./k/package/phpexcel/PHPE...
true
302d25d256045a8732af8e5ef59ceb926b37d487
PHP
anyulled/MercadoMotor
/includes/noticia.php
UTF-8
2,701
2.53125
3
[]
no_license
<?php /** * Description of noticia * * @author Anyul Rivas */ class noticia extends db { function crear($datos, $imagenes) { $imagen = new SimpleImage(); $result = $this->insert("noticia", $datos); if ($result['suceed']) { foreach ($imagenes as $indice => $noti...
true
85ac7cbceaf40099d4706dd4ad97d045757d453c
PHP
peter-gribanov/SpecificationPattern
/src/AndSpecification.php
UTF-8
710
2.9375
3
[]
no_license
<?php namespace Mbrevda\SpecificationPattern; use \Mbrevda\SpecificationPattern\SpecificationInterface; use \Mbrevda\SpecificationPattern\CompositeSpecification; class AndSpecification extends CompositeSpecification { private $specification1; private $specification2; public function __construct( ...
true
bc09604eb3c08ce7ea3514655e29565d34302203
PHP
cnralux/EDTF
/tests/Unit/FactoryTrait.php
UTF-8
1,050
2.6875
3
[]
no_license
<?php /** @noinspection PhpIncompatibleReturnTypeInspection */ /** @psalm-suppress all */ declare(strict_types=1); namespace EDTF\Tests\Unit; use EDTF\Model\ExtDate; use EDTF\Model\ExtDateTime; use EDTF\Model\Interval; use EDTF\PackagePrivate\Parser\Parser; use EDTF\Model\Season; use EDTF\Model\Set; /** * @todo R...
true
ea9cd316765b8da58f895847caa0f0d3915bf7f8
PHP
AlbertSadykovOfficial/WEB_LESSONS
/lessons/PHP/info.php
UTF-8
5,306
3.3125
3
[]
no_license
<?php // Вывод всей полезной информации //phpinfo(); //phpversion(); /* Конструкции once - Позволяют: исклбчить повторений и ошибко из-за них Пример: вкл Библиотеки: library1.php library2.php 2 - содержит 1ю, чтобы не было ошибок в связи с эти-> Интерпретатор игнорирует уже присущий код ...
true
8be649b91e3e9925e25c1d508402ab7254e3f4e1
PHP
thammons25/shopCart
/bar.php
UTF-8
578
2.796875
3
[]
no_license
<?php include './connect.php'; $sqlSelect = "SELECT id , name FROM categories"; $result = mysqli_query( $myConn , $sqlSelect ); if( !$result ) { echo "error( bar ) -> " . mysqli_error( $myConn ); } if( mysqli_num_rows( $result ) > 0 ) { echo "<strong>CATEGORIES</strong><br />"; while( $row = mysqli_fetch...
true
1f7d2761ad70c36b4e541ba329f582d549eeca2a
PHP
joey180x/todo-list
/index.php
UTF-8
2,862
2.640625
3
[]
no_license
<!DOCTYPE html> <html><!--opening html tag--> <head><!--header tag--> <title>Simple To-Do List</title><!--adding title for webpage in tab--> <link rel="stylesheet" href="css/main.css"><!--linking to main.css from css file--> </head><!--closing header tag--> <body><!--opening body tag--> <div class="wrap"><!--A wrapp...
true
454d69c596e6371b94d895989b1daddaaa556567
PHP
tehCh0nG/laravel-h-captcha
/src/HttpClient.php
UTF-8
997
2.953125
3
[ "MIT" ]
permissive
<?php namespace Buzz\LaravelHCaptcha; use Exception; use GuzzleHttp\Client; class HttpClient implements HttpClientContract { /** * Name of callback function * * @var Client $client */ public $client; public function __construct() { $this->initialHttpClient(); } ...
true
b98ba0beac1b89aff02e6f2228f426456e6e63b9
PHP
lazymanso/wechat
/src/Basic.php
UTF-8
2,770
2.796875
3
[ "MIT" ]
permissive
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace lazymanso\wechat; use lazymanso\wechat\config\Command; /** * 一些基础的微信接口操作 */ class Basic extends Common { /** * ...
true
551bd4ad50cc418766db30d3a54f4c715cb60c9d
PHP
rrbolton423/Android-App-Development-RESTful-Web-Services
/Assets/NadiaServices/xml/itemsfeed.php
UTF-8
1,050
2.90625
3
[]
no_license
<?php require_once('../database/itemsquery.php'); //Build array of data items $arRows = array(); while ($row = mysqli_fetch_assoc($rsItems)) { array_push($arRows, $row); } // build root XML element $itemsElement = new SimpleXMLElement('<items></items>'); // loop data and build data structure for ($i = 0; $i < cou...
true
7096012e10b54d3f4bb36899f4e88a5d51b7baf5
PHP
CleverMonitor/SMTPAPI
/src/Methods/Groups.php
UTF-8
1,149
2.609375
3
[]
no_license
<?php namespace CleverMonitor\SmtpApi\Methods; use CleverMonitor\SmtpApi\Exceptions\NotImplementedException; /** * CleverMonitor Developers * * Transaction Message Groups * @author CleverMonitor <support@clevermonitor.com> */ class Groups extends Base { /** * Create group * @param string $name * @param ...
true
af063d201b3c11274e75cbbf509f26c8617a264a
PHP
AurelienPaulinoOggier/OnTheFly
/Vwijzigen.php
UTF-8
2,322
3
3
[]
no_license
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="styleOnTheFly.css"> <title> Wijzigen van Vliegtuig </title> </head> <body> <?php #wijzigen van vliegtuigen #database connectie $host = "localhost"; $dbname = "onthefly"; $username = "root"; $password = ""; ...
true
1e76791ada1827b2263f32124e3ae9b71ad20315
PHP
wbbim/dht
/www/php/lib/Autoloader.php
UTF-8
858
2.953125
3
[ "MIT" ]
permissive
<?php class Autoloader{ public static $dirs; public static function addDir($dir){ if (!isset(self::$dirs)) self::$dirs = array(); if (is_string($dir)){ self::$dirs[] = $dir; } else { self::$dirs = array_merge(self::$dirs, $dir); } } public static function loader($origin_class){ $class = trim(s...
true
323cb9d264de70e25a026eefa74f9e3fe7fae11e
PHP
Smart-Lines2021/SIREVA
/database/migrations/2014_10_11_000000_create_empresas_table.php
UTF-8
882
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateEmpresasTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('empresas', fun...
true
45e9594f9755f2f53dddfc2e01ca8cdb1f3c6b76
PHP
Insight-Global/Sovern-PHP-SOAP-Client
/src/GetAccountInfo.php
UTF-8
626
2.8125
3
[]
no_license
<?php namespace Sovern; class GetAccountInfo { /** * @var GetAccountInfoRequest $request */ protected $request = null; /** * @param GetAccountInfoRequest $request */ public function __construct($request) { $this->request = $request; } /** * @return GetAcco...
true
38f96c9f0ed0e206f9116347a09af32ba73ccdde
PHP
CommonApi/Fieldhandler
/ValidateResponseInterface.php
UTF-8
783
2.578125
3
[ "MIT" ]
permissive
<?php /** * Validate Response Interface * * @package Fieldhandler * @copyright 2014 Amy Stephen. All rights reserved. * @license http://www.opensource.org/licenses/mit-license.html MIT License */ namespace CommonApi\Fieldhandler; /** * Validate Response Interface * * @package Fieldhandler * @licens...
true
897885edc9f8d45c9416056027ff2d1f9dc359bf
PHP
thebiggive/matchbot
/src/Application/Commands/RetrospectivelyMatch.php
UTF-8
4,487
2.703125
3
[]
no_license
<?php declare(strict_types=1); namespace MatchBot\Application\Commands; use DateTime; use MatchBot\Domain\DonationRepository; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Notifier\Bri...
true
c27c8e3f6f1cdc8b7afe3849fa25062951072a79
PHP
heyday/heystack-ecommerce-core
/src/Locale/Interfaces/ZoneInterface.php
UTF-8
1,253
2.765625
3
[ "MIT" ]
permissive
<?php /** * This file is part of the Ecommerce-Core package * * @package Ecommerce-Core */ /** * Interfaces namespace */ namespace Heystack\Ecommerce\Locale\Interfaces; use Heystack\Core\Identifier\IdentifierInterface; /** * Defines what methods/functions a Zone class needs to implement * * @copyright Heyd...
true
c37eb4a31e08b1a176c3babb68b14bf615b5bdbc
PHP
spiritabsolute/database-synchronization-system
/src/App/Command/SyncProduce.php
UTF-8
1,110
2.53125
3
[]
no_license
<?php namespace App\Command; use App\SyncQueueManager; use App\SyncManager; use Psr\Container\ContainerInterface; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class SyncProduce extends Command { private $conta...
true
dbad5f9c175607075c9c3685517b103e52e00615
PHP
scybwdf/oop
/this.php
UTF-8
264
2.859375
3
[]
no_license
<?php class Ren{ public $name='wf'; public $zuopin='video'; public function pai(){ echo $this->name.'拍php'; } } //$this谁实列化就是谁 $ren=new Ren(); $ren->pai(); $n=new Ren(); $n->name='qq'; $n->pai();
true
6288b06a5ecf790d9ea1c1c36a45b5561ad9187e
PHP
matt61-samples/Calculator
/classes/Calculator.php
UTF-8
2,149
3.5625
4
[]
no_license
<?php /** * Calculator object * * Does the calculations */ class Calculator { /** * Operators available in calculator * @var array */ public $operators = Array(); /** * Stored equation for processing * @var array */ private $equation = Array(); /** * Constructor */ public function __co...
true