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
394a3146369434189e735097200994f7a7e4409e
PHP
satty12121981/jeera_new
/module/Message/src/Message/Model/MessageAttachment.php
UTF-8
920
2.6875
3
[]
no_license
<?php namespace Message\Model; class MessageAttachment { public $attachment_id; public $message_id; public $attachment_type; public $attachment_element; public $attachment_date; public function exchangeArray($data) { $this->attachment_id = (isset($data['attachment_id'])) ? $data['at...
true
be631c1d9187cab84b04de9c48c700539ee122f0
PHP
skyrpex/laravel-starpack
/src/Starpack.php
UTF-8
1,620
2.546875
3
[]
no_license
<?php namespace Skyrpex\Starpack; use Illuminate\Support\Arr; use Illuminate\Contracts\Routing\Registrar as Router; use Illuminate\Contracts\Routing\UrlGenerator as URL; class Starpack { /** * The router instance. * * @var Router */ protected $router; /** * The URL generator ins...
true
c3303b12d8df24a54c88b261984c85bc6cf42711
PHP
Mixno09/symfony
/src/Repository/PDOProductRepository.php
UTF-8
10,010
2.5625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Repository; use App\Entity\Product; use App\Entity\Review; use App\Entity\User; use DateTimeImmutable; use DateTimeZone; use Knp\Bundle\PaginatorBundle\Definition\PaginatorAwareInterface; use Knp\Component\Pager\Event\Subscriber\Paginate\Callback\CallbackPagination; use K...
true
8dc905cc79d7039ad8e920d3d7bf12b18daa60aa
PHP
mahilet/itc250
/wn15-surveysez/surveys/result_show.php
UTF-8
2,552
2.765625
3
[]
no_license
<? /** * result_show.php shows the results of a Survey, indicating tallied answers * * Will attempt to create a Result 'object' to create an array of Result objects, * and show total tallies of answer * * This is a test page to prove the concept of returning Result data, with * internal Result object data * ...
true
5f4eed1e6f8390fb60cb0309c41a2cb78c56e7a0
PHP
ArrisFramework/Arris
/tests/HelpersStringsTest.php
UTF-8
2,292
2.6875
3
[]
no_license
<?php use Arris\Helpers\Arrays; use Arris\Helpers\Strings; class HelpersStringsTest extends \PHPUnit\Framework\TestCase { /** * @return void * @testdox Тест форм числительного */ public function pluralFormTest() { $this->assertEquals('штука', Strings::pluralForm(1, ['штука', 'штуки'...
true
433df7b5dd67b26890c13c192f14affd01888260
PHP
plank/Seed-Framework
/api/lib/lastfm.php
UTF-8
5,671
3.109375
3
[]
no_license
<?php require_once('api.php'); class LastfmApi { /** * HTTP Object for requesting data * * @var HTTP */ var $_connection; /** * Constructor * * @return LastfmApi */ function LastfmApi() { $this->_connection = new HTTP(new SimpleSocket()); } /** * Gets an object for the given artist * ...
true
3fe934aeaf6f64b3566b0d123b43e1177729c509
PHP
zingus/kurtscore
/kurtNoteRoll.php
UTF-8
782
2.890625
3
[]
no_license
<?php require_once 'autoload.php'; class kurtNoteRoll { function __construct($defaultNoteNum = null,$defaultVelocity = null,$defaultDuration = null,$defaultTempo = null) { $this->defaultNoteNum = $defaultNoteNum; $this->defaultVelocity = $defaultVelocity; $this->defaultDuration = $defaultD...
true
2c402634b533224c9f0ca5267513b879e338a1f4
PHP
manideep-23/OnlineExamSystem
/online3/online-ex/check3.php
UTF-8
1,084
2.59375
3
[]
no_license
<html> <head> <style> </style> </head> <body> <?php session_start(); //session_unset(); unset($_SESSION["start_exam"]); unset($_SESSION["rollid"]); unset($_SESSION["id"]); unset($_SESSION["sub"]); unset($_SESSION["mar"]); unset($_SESSION['timer']); unset($_SESSION['start_time']); unset($_SESSION['end_time']); $_S...
true
6e76e82c53b997478d0d2a28a9bfd43d10b05cb9
PHP
dzarmosz/checkers
/Config.php
UTF-8
774
3.125
3
[]
no_license
<?php //SINGLETON class Config { private static $instance; private $config = array( "login" => "mojlogin", "password" => "haslo", "language" => "pl" ); private function __construct(){} private function __clone(){} public static function getInstance() { if(self::...
true
3971fb36fccab031cf959531ceda025480f3ca58
PHP
kikk01/lc_chat_js_php
/handler.php
UTF-8
987
2.78125
3
[]
no_license
<?php require 'db.php'; $task = "list"; if (array_key_exists("task", $_GET)) { $task = $_GET['task']; } if($task == "write") { postMessage(); } else { getMessages(); } function getMessages() { global $db; $resultats = $db->query('SELECT * FROM messages ORDER BY created_at DESC LIMIT 20'); ...
true
b6f3ff4d2469fb1b5c7a3287c3c5256933c6ad64
PHP
SmartZaizai/php
/0417/a1.php
UTF-8
718
2.78125
3
[]
no_license
<?php $userName='a'; $iPhone='b'; $gender='c'; $years='d'; $months='e'; static $id = 1; $userinfo = [ 'id'=>$id, 'userName'=>$userName, 'iPhone'=>$iPhone, 'gender'=>$gender, 'birth'=>$years.'年'.$months.'日' ]; $id++; // print_r($userinfo); // $data = $userinfo; // print_r($data); // echo array_push(...
true
b557e4098c7798d30156fcaf900a1fc5327c4353
PHP
Versud/Sedlara
/app/helpers/class_helpers.php
UTF-8
880
2.640625
3
[]
no_license
<?php declare(strict_types=1); use Illuminate\Http\JsonResponse; use App\Lib\ApiBody\SuccessBody; use App\Lib\ApiBody\ErrorBody; /** * Возвращает json ответ успешного выполнения */ function success_response( string $message = 'ok', mixed $data = null, int $status = 200, array $headers = [], ): Jso...
true
a692997fd9272976e5c0c41d290b47ab0c30fc5c
PHP
pigottlaura/SSP2_Assignment01_ShoppingCart
/includes/classes/Login.php
UTF-8
8,820
3.140625
3
[]
no_license
<?php include_once("InputData.php"); class Login { public function __construct(){ // Not allowing this class to be instantiated throw new Exception("Cannot instantiate this class. Please use the static methods validateLogin() and logout() instead."); } public sta...
true
fa0a7268ef67e5bf734f8f4a22ba1170c8f27a4e
PHP
mgcfish/vulnerabilities
/src/CrossSiteScripting.php
UTF-8
3,285
3.03125
3
[ "MIT" ]
permissive
<?php namespace Aszone\Vulnerabilities; use GuzzleHttp\ClientInterface; use Psr\Log\LoggerInterface; use Aszone\Vulnerabilities\Log\Logger; class CrossSiteScripting implements VulnerabilityScanner { const EXPLOIT1 = '<script>alert(aaabbbccc);</script>'; const EXPLOIT2 = '<h1>aaabbbccc</h1>'; const EXPLOI...
true
5f32fa5aaccb9b14f6d0417528e23b2577ea4f84
PHP
rupomehsan/php_ecommerce
/classes/Product.php
UTF-8
15,561
2.859375
3
[]
no_license
<?php $filepath = realpath(dirname(__FILE__)); include_once ($filepath.'/../lib/Database.php'); include_once ($filepath.'/../helpers/Format.php'); ?> <?php class Product{ private $db; private $fm; public function __construct(){ $this->db = new Database(); $this->fm = new Format(); } public function...
true
e315a112780387f35d2893f69032ef16bc186bc6
PHP
snamper/erp-1
/backend/models/StockInDetail.php
UTF-8
2,080
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "{{%stock_in_detail}}". * * @property int $id ID * @property int $in_id 入库ID * @property string $in_no 入库单号 * @property int $commodity_id 商品ID * @property string $commodity_name 商品名称 * @property string $pic 商品图片 * @property string ...
true
7583eaf8d84e5d324ecc2c6a3a4a4e3c331d467d
PHP
adamcrampton/support-mailer
/database/seeds/UsersTableSeeder.php
UTF-8
1,100
2.578125
3
[]
no_license
<?php use Illuminate\Database\Seeder; use Carbon\Carbon; class UsersTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { /** * Note: You must add these lines to your .env file for this Seeder to work (replace the values...
true
04fbb7f4c094dcb0281ef786a6d7f5b9989abf88
PHP
felice7/php-oop-magazzino
/borsa.php
UTF-8
272
2.625
3
[]
no_license
<?php class Borsa extends Prodotto { public $modello; public $capienza; public function __construct($code, $name, $price, $model, $capacity){ parent::__construct($code, $name, $price); $this->modello = $model; $this->capienza = $capacity; } } ?>
true
95156cd36eff7d194465e859048f643559358057
PHP
polosat/warehouse
/sources/test/warehouse/_support/DbHelper.php
UTF-8
1,521
2.5625
3
[]
no_license
<?php namespace Codeception\Module; use Codeception\Lib\Driver\Db as Driver; use Codeception\Exception\Module as ModuleException; use Codeception\Exception\ModuleConfig as ModuleConfigException; use Codeception\Configuration as Configuration; class DbHelper extends Db { public function _initialize() { if ($th...
true
372b68b05227cda84d8d9b1eb0bf7fd14d11586a
PHP
SibSet/Cache
/src/SibSet/Cache/Serializer/DefaultSerializer.php
UTF-8
345
2.515625
3
[ "MIT" ]
permissive
<?php namespace SibSet\Cache\Serializer; class DefaultSerializer implements SerializerInterface { /** * @inheritdoc */ public function serialize($value) { return serialize($value); } /** * @inheritdoc */ public function deserialize($value) { return unse...
true
f9db5925601ac0e9b9c1f4f45b4a157262ff67f6
PHP
AlessandraMilburn/andra
/template-parts/page/blog/marketing/shop-her-look.php
UTF-8
1,086
2.6875
3
[]
no_license
<!--INSERT CODE--> <section class="container text-center "> <h5 class="text-uppercase bold-text my-4"> <span class="pink-hl">&nbsp; Shop her look &nbsp;</span> </h5> <div class="row"> <?php //assigns variable to display 5 product post types in a page $params = array( 'posts_per_page' => 4...
true
22891afbb9ae9b2e357822627629b170c1c6458d
PHP
MohamedElorabi/blog
/app/Http/Controllers/RegistrationController.php
UTF-8
569
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\User; use App\Role; class RegistrationController extends Controller { public function create() { return view('register'); } public function store(Request $request) { //create user $user = new User; ...
true
33e6e2c4fde857cd6afc7c1e8178286ca5459a47
PHP
sasumi/Logger
/src/LoggerTrait.php
UTF-8
539
3.0625
3
[ "Apache-2.0" ]
permissive
<?php namespace LFPhp\Logger; /** * Logger特性 * @package LFPhp\Logger */ trait LoggerTrait { /** @var Logger|null */ protected static $__logger; /** * 为当前class设置当前Logger * @param Logger $__logger */ public static function setLogger(Logger $__logger){ static::$__logger = $__logger; } /** * 获取为当前cla...
true
68453ef9a2c19af7a76d3d87c731cadcade29586
PHP
therealjimparry/comp4711-a1
/application/models/FleetEntity.php
UTF-8
2,402
3.203125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* Model for fleet entity, contains information about an entity in a fleet */ class FleetEntity extends Entity implements Model_Entity_Controller_Helper { protected $planeId; protected $type; protected $plane; function __construct ($planeId = null, $type = n...
true
20cf563d6887734f63f98c07576963964df88d42
PHP
gammaseeker/Web-Dev-Reboot
/Period 2 - Prodigy/Cookies/index.php
UTF-8
573
2.828125
3
[]
no_license
<!DOCTYPE HTML> <!-- Joey Jiemjitpolchai --> <html> <head> <title> </title> <style> </style> <script> </script> </head> <body> <?php //function setcookie(key, information, [expiration]); //If the expiration is omitted, //the cookie will never expire. //Superglobal $_COOKIE ...
true
2089f271edeb3a46cce562d99ede46880ae56c50
PHP
albinscode/php-exercises
/namespaces/namespaces.php
UTF-8
521
2.78125
3
[]
no_license
<?php function my_autoloader($class) { echo "class before $class\n"; // We remove the level 0 namespace 'Exercise' $class = str_replace('Exercise\\', '', $class); // We replace backslashes by slashes $class = str_replace('\\', '/', $class); echo "class after $class\n"; include './' . $class...
true
930f9aaf5be9351f40e2a322a1ec0ccf3d32e8b3
PHP
pandapower83/php-mysql
/chapter2Newsletter/newsletterprocess.php
UTF-8
2,130
2.78125
3
[]
no_license
<?php //create short variable names $firstname = $_POST['first_name']; $lastname = $_POST['last_name']; $streetaddress = $_POST['street_address']; $city = $_POST['city']; $state = $_POST['state']; $zipcode = $_POST['zip_code']; $email = $_POST['email']; ?> <!DOC...
true
69305343e1f5a04d1e497143a9b3e519f7eaf01e
PHP
Penjor/groupcash-php
/src/io/transcoders/CallbackTranscoder.php
UTF-8
1,000
3.09375
3
[]
no_license
<?php namespace groupcash\php\io\transcoders; use groupcash\php\io\Transcoder; class CallbackTranscoder extends Transcoder { /** @var callable */ private $decode; /** @var callable */ private $encode; /** @var string */ private $token; /** * @param string $token * @param call...
true
a03e082995a6d8a0e216370e3c9c9c1ec41659cb
PHP
milanbasnet/agilo
/database/migrations/2018_01_19_183246_create_athlete_groups_table.php
UTF-8
1,368
2.546875
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateAthleteGroupsTable extends Migration { /** * Run the migrations. */ public function up() { Schema::create('athlete_groups', function (Blueprint $table) { $table->incremen...
true
3901ef16a9cafa8bb30b021615794c38f683b077
PHP
laurensmartina/hypha
/system/core/RequestContext.php
UTF-8
2,544
2.921875
3
[]
no_license
<?php class RequestContext { /** @var HyphaRequest */ private $hyphaRequest; /** @var HyphaDomElement|null */ private $hyphaUser; /** @var string */ private $defaultLanguage; /** @var array */ private $dictionary; /** @var array */ private $dictionaries = []; /** * @param HyphaRequest $h...
true
976bd401dc09ec45319e210464c2512f6f8aef89
PHP
ciniki/artcatalog
/public/trackingAdd.php
UTF-8
2,783
2.65625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php // // Description // =========== // This method will add a new item to the art catalog. The image for the item // must be uploaded separately into the ciniki images module. // // Arguments // --------- // api_key: // auth_token: // tnid: The ID of the tenant to add the tracking to. // // artcatalog_id: The...
true
74548111d4831f3ff4267c276dbc42dc53020703
PHP
linkorb/userbase-client-php
/src/Model/AccountEmail.php
UTF-8
947
2.734375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace UserBase\Client\Model; class AccountEmail { private $accountName; private $email; private $verified_at; private $primary; public function getAccountName() { return $this->accountName; } public function setAccountName($accountName) { $this->accountN...
true
f49e442b2d06e2f6f9dd18db13616bf23f7dafe3
PHP
Gan4x4/fmb_images
/app/Parser/Avito.php
UTF-8
2,967
2.78125
3
[]
no_license
<?php namespace App\Parser; use Symfony\Component\DomCrawler\Crawler; use Illuminate\Support\Facades\Storage; use App\Helper\Utils; class Avito extends Parser{ const CODE = 2; protected $raw = null; protected $cache = 'tmp_html'; protected $crawler = null; public $image_size = '1280x960'; // '640...
true
bb5d5fde854bf4c3b44f4b65a3d24d1f144085ae
PHP
robert-kel-tg/users-service
/src/Domain/UserRepositoryInterface.php
UTF-8
191
2.71875
3
[]
no_license
<?php namespace Robertke\User\Domain; interface UserRepositoryInterface { public function findAll(); public function findById(UserId $id); public function save(User $user); }
true
04f1cdf44f97b545ca3794c8c37bb9ee4a86b550
PHP
liuzhenxiulzx/blog2
/controllers/TestController.php
UTF-8
2,027
2.8125
3
[]
no_license
<?php namespace controllers; class TestController{ public function register(){ $redis = \libs\Redis::getredis(); // 消息队列的信息 $data = [ 'email' => 'liuzhenxiu@126.com', 'title' => '标题', 'content' => '内容', ]; ...
true
d0c1638741f2781aa7c2109805c2862991e00cc5
PHP
enovision/october-cms-shortcodesthunder
/shortcodes/DivShortcode.php
UTF-8
964
2.8125
3
[ "MIT" ]
permissive
<?php namespace Enovision\ShortcodesThunder\Shortcodes; use Thunder\Shortcode\Shortcode\ShortcodeInterface; use Enovision\ShortcodesThunder\Classes\Shortcode; class DivShortcode extends Shortcode { /** * Sample * * [div class="text-center"]This text is **centered** aligned[/div] * */ ...
true
cd32d2ae4cc9add9600e5d1b3bdd774f6d01155f
PHP
smartmediaas/smart_foundation
/inc/template-tags.php
UTF-8
9,766
2.609375
3
[ "MIT" ]
permissive
<?php /** * Custom template tags for this theme. * * Eventually, some of the functionality here could be replaced by core features. * * @package smart_foundation */ if ( ! function_exists( 'smart_pagination' ) ) : /** * Display navigation to next/previous post when applicable. * * @return void */ function s...
true
9712998570742c405420bf2f2fba0b2936d5fed9
PHP
linojiang268/jh008-server-php-v3.1-demo
/src/Domain/ActionHandler.php
UTF-8
277
2.59375
3
[]
no_license
<?php namespace Jihe\Domain; /** * handle the request action */ interface ActionHandler { /** * handle the action, use the domain services to finish the domain logic * * @param array|null $request */ public function handle(array $request = []); }
true
efaa5b9948a6428ab028c45289d152d52526ca4b
PHP
Lucie-Besancon/Tweeter
/src/tweeterapp/model/User.php
UTF-8
1,300
2.6875
3
[]
no_license
<?php namespace tweeterapp\model; class User extends \Illuminate\Database\Eloquent\Model{ protected $table = 'user'; /* nom table */ protected $primaryKey = 'id'; /* nom clé primaire */ public $timestamps = false; public function tweets(){ return $this->hasMany('tweeterapp\mod...
true
aaec449323f6c23bba1444d7f9327db80a68adda
PHP
napestershine/rideshare
/app/Http/Controllers/Front/UsersController.php
UTF-8
1,046
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers\Front; use App\Http\Controllers\Docs\UserController; use App\Models\User; use Illuminate\Http\JsonResponse; class UsersController extends UserController { /** * @return JsonResponse * @throws \Exception */ public function show(): JsonResponse { $u...
true
fcf8e88bae97264ea1b73d62e08da1c6ffb0eadc
PHP
zlezero/Projet_PHP_Ecommerce
/models/class.Article.php
UTF-8
2,415
3.453125
3
[]
no_license
<?php require_once('Model.php'); require_once('class.Categorie.php'); class Article { private $idArticle; private $nomArticle; private $descriptionArticle; private $urlPhoto; private $prix; private $quantite; private $categorie; private $bdd; public function __construct(in...
true
0f043871681cd458e7ad06c0c84ca839f37e036a
PHP
XAKEPEHOK/Diff
/src/Components/Iterator/EscortIterator.php
UTF-8
2,279
3.140625
3
[]
no_license
<?php /** * @author Timur Kasumov (aka XAKEPEHOK) * Datetime: 07.08.2019 12:50 */ namespace XAKEPEHOK\Diff\Components\Iterator; use Iterator; class EscortIterator implements Iterator { /** * @var array */ private $array; /** * @var array */ private $keys; private $index...
true
0bffaf1bbbbbe9bdf1c60516b8e0297b85f68631
PHP
kikutou/lcc_review
/app/Model/Brand.php
UTF-8
2,313
2.75
3
[]
no_license
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Brand extends Model { protected $table = "brands"; public static $validation_rules = [ "brand_name" => "required|between:1,10", "logo_picture" => "required|image", "p...
true
e3469ae9719ba6ecfa45c9e615080354014c91a0
PHP
rubal033/names
/test.php
UTF-8
848
2.609375
3
[]
no_license
<?php if (!$link = mysql_connect('localhost', 'root', 'sid')) { echo 'Could not connect to mysql'; exit; } if (!mysql_select_db('sid', $link)) { echo 'Could not select database'; exit; } $arrReturn=array_merge($_GET,$_POST); $partQry=""; if(isset($arrReturn['fname']))$partQry.=" and first_name like ...
true
21911c27891627b039c9af5268d3acd074fb8de5
PHP
RamonSilva20/BookStack
/app/Http/Controllers/Api/SearchApiController.php
UTF-8
2,853
2.6875
3
[ "MIT" ]
permissive
<?php namespace BookStack\Http\Controllers\Api; use BookStack\Entities\Models\Entity; use BookStack\Entities\Tools\SearchOptions; use BookStack\Entities\Tools\SearchResultsFormatter; use BookStack\Entities\Tools\SearchRunner; use Illuminate\Http\Request; class SearchApiController extends ApiController { protecte...
true
68e723fb2f51889c82374fa59a8d4a08cc673c69
PHP
clfsantos/PHP-help-desk-system
/src/modulo/suporte/dao/ProdutoChamadoDAO.php
UTF-8
5,704
2.9375
3
[]
no_license
<?php /** * Description of ProdutoChamadoDAO * * @author cesantos */ class ProdutoChamadoDAO { private $conexao; public function __construct() { $this->conexao = new Conexao(); $this->conexao->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } public function inserir($equ...
true
2e6f53201390f9af3e459518b0f7f72899d539b7
PHP
emilie-martin-dev/TechnoWeb
/app/src/storage/bdd/BDDCommentStorage.php
UTF-8
1,470
3.03125
3
[ "MIT" ]
permissive
<?php require_once("storage/ICommentStorage.php"); require_once("model/Comment.php"); class BDDCommentStorage implements ICommentStorage { private $bdd; public function __construct($bdd) { $this->bdd = $bdd; } public function read($id) { $sth = $this->bdd->prepare("SELECT * FROM COM...
true
3c753c1648e5d051d6773bd082b650b6881dda47
PHP
aleksandrssila/php
/company_tests/lost_ferret/index.php
UTF-8
1,834
2.734375
3
[]
no_license
<?php /** * */ echo '<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>'; echo "<script src='./js/js.js'></script>"; include_once("./functions/autoloader.php"); echo '<form name="input" action="" method="post">'; echo '<input type="submit" name="t1" value="Task1">'; echo '<input type="submit" name...
true
32824b318298f146e7ed895b6b32ba481f2d8e86
PHP
frankblommert/pers
/pers/DBClasses/clsDBAccount.php
UTF-8
1,924
2.796875
3
[]
no_license
<?php require_once 'DBClasses/clsDB.php'; /** * @author Frank Blommert, itsFrank */ class clsDBAccount { private $dbh; public function __construct() { $this->dbh = new DB(); } public function __destruct() { $this->dbh = null; } public function select($p_iBedrijfID) { try...
true
52e5b7d5029e792e1cde0f2d39228d41c12ae62c
PHP
alipay/global-open-sdk-php
/request/auth/AlipayAuthRevokeTokenRequest.php
UTF-8
706
2.578125
3
[ "MIT" ]
permissive
<?php require_once 'request/AlipayRequest.php'; class AlipayAuthRevokeTokenRequest extends AlipayRequest{ public $accessToken; public $extendInfo; /** * @return mixed */ public function getAccessToken() { return $this->accessToken; } /** * @param mixed $accessTok...
true
47824d93ebb2697dcc71e0c34f5c03b4576d2ae4
PHP
Smarterly/symfony-health-bundle
/app/src/ApplicationHealth/DependencyCheck/RandomOrgApiCheck.php
UTF-8
1,365
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\ApplicationHealth\DependencyCheck; use App\ApplicationHealth\DependencyCheck\RandomOrgApiCheck\Exception\HealthDependencyException; use App\ApplicationHealth\DependencyCheck\RandomOrgApiCheck\HealthDependencyRepository; use Cushon\HealthBundle\ApplicationHealth\Dependency...
true
5405b426b28f637e614e70cd428387fc6c628225
PHP
KodiCMS-Kohana/plugin-sso
/classes/model/widget/social/registration.php
UTF-8
1,645
2.53125
3
[]
no_license
<?php defined('SYSPATH') or die('No direct access allowed.'); /** * @package KodiCMS/Widgets * @category SSO * @author ButscHSter */ class Model_Widget_Social_Registration extends Model_Widget_Decorator { public $providers = array(); public function fetch_data() { return array( 'providers' => $this->g...
true
08254d9ffd57d5eaed72c009ec391bbab129fbb3
PHP
mikewrather/athletez
/application/classes/Controller/Api/Ent.php
UTF-8
7,733
2.59375
3
[]
no_license
<?php defined('SYSPATH') or die('No direct script access.'); /** * Ent API controller class * * Date: Auto-generated on Mar 18th, 2013 2:21 am * * @author: Mike Wrather * */ class Controller_Api_Ent extends Controller_Api_Base { public function __construct($request,$response) { parent...
true
b09f950fb886930f435b8a437b804ffe5acaf541
PHP
edwardsjohnmartin/Phanon-old
/database/migrations/2018_05_08_213417_create_exercises_table.php
UTF-8
1,432
2.5625
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateExercisesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('exercises', f...
true
7b6182fba0ff70829985e7234072906b15ee49f7
PHP
bamper/TaskBook
/FunctionsJavaScript/36.php
UTF-8
1,340
3.5625
4
[]
no_license
<?php /** * Write a function ShiftLeft3(X) that performs a left cyclic * shift of a list X of three real-valued items: the value ot each * item should be assigned to the previous item and the value of * the first item should be assigned to the last item (the function * returns the None value). Using this function,...
true
6f2cd653a8eef052fcffcb18f6a836e0823fa84e
PHP
ForexC/iexchange
/update.php
UTF-8
4,370
2.53125
3
[]
no_license
<?php session_start(); if (!isset($_SESSION["update_id"])) { # update not active in profile.php. Redirect to profile.php header("Location: http://iexchange.web.engr.illinois.edu/profile.php"); exit(); } if (isset($_POST['updateSubmit'])) { #connect to DB # User is logged in, display the profile page. Userna...
true
7b91d40adc385b1082e42c935d7766de3b4bb056
PHP
ZLamb101/RecruitmentPortalProject
/web/src/model/ShortListModel.php
UTF-8
12,820
3.0625
3
[]
no_license
<?php namespace bjz\portal\model; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; /** * Class ShortListModel * * Represents a Short List of candidates owned by a user * * @package bjz/portal */ class ShortListModel extends Model { /** * @var int, the ID of the Short List */ ...
true
48df845372c30137907019de04343dc0932049ce
PHP
Hachiiko/KawiarniaKaffApp
/src/Entity/Factory/OrderFactory.php
UTF-8
807
2.8125
3
[]
no_license
<?php declare(strict_types=1); namespace App\Entity\Factory; use App\Entity\Order; use App\Entity\User; use App\Enum\OrderStatusEnum; use App\Service\OrderTokenGenerator; class OrderFactory { private OrderTokenGenerator $tokenGenerator; public function __construct(OrderTokenGenerator $tokenGenerator) {...
true
0a143617555272ca8f8c008ad7bc0fba22926f7c
PHP
marcogreselin/auctionbay
/unit_tests/form_processing_test.php
UTF-8
17,327
2.578125
3
[]
no_license
<?php //Override assert config assert_options(ASSERT_ACTIVE, 1); assert_options(ASSERT_WARNING, 1); assert_options(ASSERT_BAIL, 0); //define expected values define("EXPECTED_PRICE_FOR_AUCTION_5", 120); define("EXPECTED_AUCTION_ID", 11); //Dependencies require("../includes/validation_functions.php"); require("../inclu...
true
4735620ebfd40e25d9f174fa26eefb65670a66a2
PHP
cvdgit/stories
/backend/models/StoryCoverUploadForm.php
UTF-8
1,119
2.65625
3
[]
no_license
<?php namespace backend\models; use yii; use yii\base\Model; use common\components\StoryCover; class StoryCoverUploadForm extends Model { /** * @var UploadedFile */ public $coverFile; public function rules() { return [ [['coverFile'], 'file', 'skipOnEmpty' => true, 'chec...
true
1a912bf33b964cf7afaf10bfad631609150dcc90
PHP
ishunko/hubzero-cms
/core/components/com_members/models/host.php
UTF-8
3,759
2.671875
3
[ "MIT" ]
permissive
<?php /** * @package hubzero-cms * @copyright Copyright 2005-2019 HUBzero Foundation, LLC. * @license http://opensource.org/licenses/MIT MIT */ namespace Components\Members\Models; use Hubzero\Database\Relational; /** * User host model */ class Host extends Relational { /** * The table namespace * ...
true
a50a4fe92219bd2e026966fc3e61b12cbcdea6bc
PHP
andresfpatino/Dismerca
/custom_widgets/widget_slide.php
UTF-8
3,936
2.578125
3
[]
no_license
<?php namespace Elementor; class Widget_slide extends Widget_Base { public function __construct($data = [], $args = null) { parent::__construct($data, $args); wp_register_script( 'widget-slide-js', get_stylesheet_directory_uri() . '/custom_widgets/js/widget-slide.js', [ 'elementor-fron...
true
ffc3b6e37ef5982f93c614408083aa2bfbe8281e
PHP
jpizzle77/PHP
/Fundamentals/odd_even.php
UTF-8
434
4.46875
4
[]
no_license
<?php //To Do: Odd or even //Create a program that counts from 1 to 2000. As it loops through each number, have your program generate the number and a message saying whether it's odd or even. for ($i=0; $i < 200; $i++) { if($i % 2 == 0) { echo 'Number is ' . $i . '.' . ' This is an even number.' . '...
true
4bab4156edb49f0a314333b824e996bfb87b97c9
PHP
raptor420/Travel-Geeks-WebProject
/login/seasons.php
UTF-8
465
2.5625
3
[]
no_license
<?php require("db_rw.php"); if(isset($_REQUEST["seasons"]) && strlen($_REQUEST["seasons"])>0){ $sq="select * from tourist_spot where suggested_season like '".$_REQUEST["seasons"]."%'"; //echo $sq; $a=getDataFromDB($sq); foreach($a as $v){ $c = $v["name"]; //echo $v["name"]; echo "<br>"; //echo $v["addre...
true
b48ac0f1279abc4f000441ec62aa0c20b729d6e2
PHP
jfning/ConferenceWeb
/ConferenceWeb/view/cart_view.php
UTF-8
2,457
2.59375
3
[]
no_license
<section> <h1>Book Store</h1> </section> <section> <fieldset> <legend>Your Cart</legend> <?php if (empty($_SESSION['bookCart']) || count($_SESSION['bookCart']) == 0) : ?> <p> There are no items in your cart. </p> <?php else: ?> <form action...
true
d970965b3140aef56fa7962acd5514902be7619e
PHP
kiezmor/piscine_php
/D01/ex05/epur_str.php
UTF-8
173
2.796875
3
[]
no_license
#!/usr/bin/php <?php if ($argc == 2) { $str = array_filter(explode(" ", $argv[1])); $ecp = " "; foreach ($str as $p) $ecp .= $p." "; echo trim($ecp)."\n"; } ?>
true
f2ba332760aae45f8e43b5e68d817e8589884e73
PHP
yassinejrad/ProjetWEB-LeBazarCulturel
/controller/promoC.php
UTF-8
3,542
2.875
3
[]
no_license
<?PHP require_once "../../config.php"; include '../../Model/promo.php'; class promotionC { function ajouterpromotion($promotion) { $sql="INSERT INTO promotion (titre,dateD,dateF,pourcentage,idProduit) VALUES (:titre,:dateD,:dateF,:pourcentage, :idProduit)"; $db = config::getConnexion(); try{ $...
true
9bab24abf7bc06cb247dc17da167f72291ee1fde
PHP
Mathelchrist/Hackathon-30-10-2018
/src/Model/BonbondexManager.php
UTF-8
1,468
2.890625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: wcs * Date: 23/10/17 * Time: 10:57 * PHP version 7 */ namespace Model; use Model\Bonbondex; /** * Class Map * */ class BonbondexManager extends AbstractManager { const TABLE = 'bonbondex'; /** * Initializes this class. */ public function __...
true
29ff28ba1c34455811f7ee0cfd3e333236d59b39
PHP
arthurglima/Bolao-da-Depressao
/app/SisBolao/Administrador.php
UTF-8
678
2.890625
3
[ "MIT" ]
permissive
<?php namespace App\SisBolao; use App\User; class Administrador extends User { const ADMINISTRADOR = 1; protected $table = 'users'; private static $instance = null; /** * Administrador constructor. * @param array $attributes * @throws \Exception */ public function __construct(array $attribut...
true
9f79862a7b46c8f5e52c394be72885db8bdba79e
PHP
InnovLabs/MonAvisApi
/src/Modules/Users.php
UTF-8
3,124
2.71875
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: Jean-Luc DJEKE * Date: 09/11/2015 * Time: 16:14 */ use Entity\User; /********GET*********/ $app->get('/users', function() use ($entityManager){ $users = $entityManager->getRepository("Entity\\User")->findAll(); echo json_encode(array("ReturnCode" => 1,"Data" => $u...
true
0f3569fc77bc72e99385d1c9b70b17da3f02fe13
PHP
Wheisz/MegaCasting_Web
/src/MC/MegaCastingBundle/Entity/Utilisateur.php
UTF-8
4,465
2.53125
3
[ "Apache-2.0" ]
permissive
<?php namespace MC\MegaCastingBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Security\Core\User\UserInterface; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; /** * Utilisateur * * @ORM\Table(name="Utilisateur", uniqueConstraints={@ORM\UniqueConstraint(name="UK_Utilisateur_P...
true
8e45b298a4a90c4ca2c3bbb7e616a6802faa7738
PHP
connectthefuture/psdmrepo
/irep/tags/V00-02-00/web/html/ws/room_new.php
UTF-8
819
2.5625
3
[]
no_license
<?php /** * This service will create a new room and return an updated dictionary. * * Parameters: * * <location_name> <room_name> */ require_once 'dataportal/dataportal.inc.php' ; require_once 'irep/irep.inc.php' ; \DataPortal\ServiceJSON::run_handler ('GET', function ($SVC) { $SVC->ire...
true
049f2c17ebc5b2d6261da8c437d67d6e8b755339
PHP
EasyWelfare/onebip-array
/lib/Onebip/array.php
UTF-8
14,271
3.390625
3
[ "MIT" ]
permissive
<?php namespace Onebip; use InvalidArgumentException; use Traversable; /** * Prefix all array's keys with given string * * Examples: * $this->assertSame( * ['p.a' => 1, 'p.b' => 2, 'p.c' => 3], * array_prefix_keys('p.', ['a' => 1, 'b' => 2, 'c' => 3]) * ) */ function array_prefix_keys...
true
c6b02389fa383a7396cf3eb329063af7a61c2a57
PHP
xearstevejobs/dedex
/src/Entity/Ern382/PercentageType.php
UTF-8
2,261
3.0625
3
[ "MIT" ]
permissive
<?php namespace DedexBundle\Entity\Ern382; /** * Class representing PercentageType * * A Composite containing details of a * PercentageRate. * XSD Type: Percentage */ class PercentageType { /** * @var float $__value */ private $__value = null; /** * A Flag indicating whether a ...
true
083239b65d461fa0c569772b3c82219665e3968a
PHP
spider-mane/shoot
/public/data/testimonials.php
UTF-8
962
2.609375
3
[ "MIT" ]
permissive
<?php # api /** * Google Reviews */ $google = wts_get_config('api.google.places'); $googleReviews = []; # query string values $url = $google['url']; $key = $google['key']; $placeId = $google['placeid']; # uri $uri = "{$url}?key={$key}&placeid={$placeId}&fields=reviews"; $google = json_decode(file_get_contents($u...
true
b9fe8546c57b4549bde00293d1bb7a6b187dc0f8
PHP
sabetech/theVetsPlace
/data/CSV2DB.php
UTF-8
663
2.625
3
[]
no_license
<?php $fp = fopen('newClients.csv','r') or die("can't open file"); //$randomNum = mktime(); //$key = substr($randomNum,6,4); $link = mysql_connect("localhost","root","sabe"); mysql_select_db("thevetsplace",$link); while($csv_line = fgetcsv($fp,4096)) { //for ($i = 0, $j = count($csv_line); $i < $j; $i++) { $p_key ...
true
97a1e404883f91ffdc67acb6bd78d435de556e6e
PHP
winos/daemon-call
/src/lib/Logger.php
UTF-8
530
2.796875
3
[]
no_license
<?php /** * Logger class * * @author Dawin Ossa <dawinos@gmail.com> * @copyright Skyguard.net */ date_default_timezone_set('America/Bogota'); class Logger { private static $_file = null; public static function open() { self::$_file = fopen(realpath( '.' )."/log/skyguard-daemon-".date("Y-m-d").".log...
true
2d11608629a9cb7feba6dce85ed875968c1c0930
PHP
nverjus/blog-oc-p5
/src/Blog/Repository/PostRepository.php
UTF-8
3,397
2.9375
3
[]
no_license
<?php namespace Blog\Repository; use NV\MiniFram\Repository; use Blog\Entity\Post; class PostRepository extends Repository { public function findAll(bool $desc = true) { $posts = []; $sql = "SELECT * FROM Post ORDER BY ID"; if ($desc) { $sql .= " DESC"; } ...
true
19a9aa6e1991d4183ac205ccf7fe364599e48be3
PHP
giapnguyenitf/social_document_sharing
/app/Repositories/Eloquent/TagRepository.php
UTF-8
583
2.515625
3
[]
no_license
<?php namespace App\Repositories\Eloquent; use App\Models\Tag; use App\Repositories\Eloquent\BaseRepository; use App\Repositories\Contracts\TagRepositoryInterface; class TagRepository extends BaseRepository implements TagRepositoryInterface { public function getModel() { return Tag::class; } ...
true
3eb3625fc29f2338bb3875954fc9bd4c2afbf3ba
PHP
ratihindah1006/WeTech
/app/Controllers/Terdaftar.php
UTF-8
1,971
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Controllers; use App\Models\UserModel; class Terdaftar extends BaseController { protected $adminModel; public function __construct() { $this->userModel = new UserModel(); } public function index() { $data = [ 'title' => 'User Terdaftar', 'user' =>$this->userModel->get...
true
eaf451c171777b008d5fe485b6aaacd4084460bb
PHP
qmanjr5/callfire_c2c
/vendor/CallFire-PHP-SDK/src/CallFire/Api/Client.php
UTF-8
1,784
3.078125
3
[ "MIT" ]
permissive
<?php namespace CallFire\Api; use CallFire\Api\Rest\AbstractClient as RestClient; use InvalidArgumentException; abstract class Client { /** * Create one or more REST service clients * * @static * @param string $username API Login * @param st...
true
ec2251ca09a6f9947d0a91605924dd9f7d51c302
PHP
IrcDirk/yaah
/src/Client.php
UTF-8
3,157
2.578125
3
[ "MIT" ]
permissive
<?php namespace Radowoj\Yaah; use stdClass; use SoapClient; use SoapFault; use Radowoj\Yaah\Constants\Sysvars; class Client { protected $config = null; protected $soapClient = null; protected $allegroSessionHandle = null; protected $allegroUserId = null; protected $localVersionKey = null; ...
true
1a778fc22d3152649148104e5b6a4ae2908a198e
PHP
DamienThiago93230/damienPORTEFOLIO
/competencesOld.php
UTF-8
3,499
2.734375
3
[]
no_license
<?php require 'connexion.php'; // Récupère les données de l'utilisateur par son id $sql = $pdoCV -> query(" SELECT * FROM t_utilisateurs WHERE id_utilisateur = '1'"); $ligne_utilisateur = $sql-> fetch(); $order = ''; if(isset($_GET['order']) && isset($_GET['column'])){ if($_GET['column'] == 'competence'){ $or...
true
f41d4f6e8116e5d647e3cd1e68abf248560fa11f
PHP
rectorphp/rector-src
/rules/TypeDeclaration/ValueObject/NestedArrayType.php
UTF-8
699
2.65625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Rector\TypeDeclaration\ValueObject; use PHPStan\Type\MixedType; use PHPStan\Type\Type; final class NestedArrayType { public function __construct( private readonly Type $type, private readonly int $arrayNestingLevel, private readonly ?Type $keyType...
true
380c0f576a6d69b48b9d09bf049feb0e8f123275
PHP
M-Component/Crontabe
/app/library/Mvc/DbFilter.php
UTF-8
1,669
2.703125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: wl * Date: 17/6/18 * Time: 下午5:05 */ namespace Mvc; class DbFilter{ public static function filter($filter=array()){ $where = array(); $filter =(array)$filter; foreach($filter as $k=>$v){ $k_arr = explode('|' ,$k); $column ...
true
95e71ad5ce9c8fb70b970990a2fa70131e292d30
PHP
shahlakshya1988/php-learning
/example02.php
UTF-8
612
3.5
4
[]
no_license
<?php // variables /** * variables rules * - Starts with $ * - should not be reserved word or keyword * - no spaces * - can't start with Number * - Can have alphabet, numbers, underscore * - Case sensitive */ /** * Variables can be used between double quotes */ $greetings = "Hello World"."<br>"; // $greeting ...
true
94af26adbad1a9377c6c9313430f019f2352230f
PHP
Nancyhsw/SZU-DBSC-LAB3
/code/admin.php
UTF-8
630
2.703125
3
[]
no_license
<div align="center"> 数据库 lab3 下的所有数据表: <br><a href=index.html>返回</a><hr><table border="2"> <?php include("conn.php"); // 获取表名 $res = mysqli_query($conn, "show tables"); $row = mysqli_num_rows($res); for($i=0; $i<$row; $i++) { $tableName = mysqli_fetch_array($res)[0]; // 拼凑 a 标签 -- 方便跳转 echo '<t...
true
da4a94d03b2224dd3dde34ecf7c1334a463417a8
PHP
1164953899/Blog
/libs/Captcha.php
UTF-8
4,860
3.5
4
[]
no_license
<?php namespace libs; /** * Captcha.php * * 版本5: * * 类中存在很多的方法, 但是这些方法从功能上来划分, 并不都是用来给使用者调用的, 大量的方法实际上是拆分出来的, 例如 绘制干扰项, 绘制验证码, 绘制随机色 等等, 这些方法不应该被用户调用, 所以为了让用户知道 哪些方法是给他用的, 哪些方法不是给他用的, 应该有个区分的方式! * * 访问权限词 * public 公开的: 类外 类自身 都可以用 * protected 保护的: 类自身使用, 类外无法使用 * * 好处: * 1.用户写代码时, 只提...
true
ab8b887f9abe29d265c287e115a6ebe799a1a593
PHP
cprathiba/coding-test
/lib/SpriiTestApp/core/controller/Controller.php
UTF-8
3,527
2.578125
3
[]
no_license
<?php namespace SpriiTestApp\core\controller; use SpriiTestApp\http\Request; use SpriiTestApp\http\HtmlResponse; use SpriiTestApp\ui\util\TemplateManager; abstract class Controller { protected $template; protected $config; /** * * @return TemplateManager */ public function getTempla...
true
6d0671e1ac4ce22645e3ac4ac25b2f4c3b72e94b
PHP
alexeyprudnikov/csv-json-api
/src/Lib/RoomFactory.php
UTF-8
454
2.78125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: aprudnikov * Date: 2019-02-13 * Time: 12:22 */ namespace SittingPlan\Lib; use SittingPlan\Models\Room; use SittingPlan\Models\PersonCollection; class RoomFactory implements DataFactoryInterface { public static function create(string $number) { $Room = ne...
true
4a9844d09932011c93f66aa0a038408683541b9d
PHP
jellycheng/cjstoken
/src/Oauth/OauthUtil.php
UTF-8
1,032
2.859375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: jelly * Date: 2020-03-25 * Time: 13:01 */ namespace CjsToken\Oauth; class OauthUtil { protected $client_id; protected $secret; public static function newInstance() { $instance = new static(); return $instance; } public function getCli...
true
8a80af5b4dc5cbc90f12ab066cfe441448bac3bf
PHP
gerardoFarias/RegistroMesaTC
/service/mesaTrabajoService.php
UTF-8
6,308
2.65625
3
[]
no_license
<?php include_once '../model/mesaTrabajo.php'; class MesaTrabajoService { function getAll(){ $mesaTrabajo = new MesaTrabajo(); $mesasTrabajos = array(); $mesasTrabajos["mesasTrabajos"] = array(); $res = $mesaTrabajo->obtenerMesasTrabajos(); ...
true
f62c09a80920ce4f9ab6ebe2ec5898ee9bb544f1
PHP
lajlek/SyliusWishlistPlugin
/src/Command/Wishlist/RemoveProductFromWishlist.php
UTF-8
543
2.71875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace BitBag\SyliusWishlistPlugin\Command\Wishlist; final class RemoveProductFromWishlist { private int $productId; private string $wishlistToken; public function __construct(int $productId, string $token) { $this->productId = $productId; $this->wi...
true
66a2545f91eb9a55fda50a7ed5e78428603197bc
PHP
Stavo343/questlog
/models/Victory_Options_Table.class.php
UTF-8
309
2.796875
3
[ "MIT" ]
permissive
<?php include_once "models/Table.class.php"; class Victory_Options_Table extends Table { public function getVictoryOptions($quest_id) { $sql = "SELECT * FROM victory_options WHERE quest_id = ?"; $data = array($quest_id); $statement = $this->makeStatement($sql, $data); return $statement; } }
true
5ae46745da18fe9db8f59acb424eb4cdbe36c07d
PHP
MKTun-tywb/TestLaravel
/database/migrations/2020_02_03_134838_create_fish_table.php
UTF-8
818
2.703125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateFishTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('fishes', function ...
true
7cb276ca5e6d032231133f37fab663f92119debe
PHP
esmcrezosis/esmc_php
/mcnp/application/models/EuBudgetFactureMapper.php
UTF-8
4,521
2.515625
3
[]
no_license
<?php class Application_Model_EuBudgetFactureMapper { protected $_dbTable; public function setDbTable($dbTable) { if (is_string($dbTable)) { $dbTable = new $dbTable(); } if (!$dbTable instanceof Zend_Db_Table_Abstract) { throw new Exception('Invalid table data ...
true
ce3312e942a41610b6cac27b35097f747d14806d
PHP
papu0917/docker-laravel-handson
/backend/domain/Model/Entity/Stock.php
UTF-8
1,125
3.03125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Domain\Model\Entity; use Domain\Model\ValueObject\StockDetail; use Domain\Model\ValueObject\StockFee; use Domain\Model\ValueObject\StockId; use Domain\Model\ValueObject\StockImg; use Domain\Model\ValueObject\StockName; class Stock { private $id; private $name; pr...
true
31add14deddd5a559f4e333fdb7e534a0695fa36
PHP
IgoNsk/photo20_php_api_client
/src/DGPhotoApiClient/Item/OrgSettings.php
UTF-8
1,387
2.703125
3
[]
no_license
<?php namespace DG\API\Photo\Item; class OrgSettings { /** * @var array */ private $providers = []; /** * @param string $providerCode * @param boolean $isVisible */ public function addProviderConfig($providerCode, $isVisible) { $this->providers[$providerCode] = [ ...
true
d50d2a8b47f1d21e70f925d8c3d501a93cd0ac1e
PHP
lloreradondi/salesinventory
/app/Item.php
UTF-8
917
2.875
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Item extends Model { protected $fillable = [ 'name', 'beginning_price', 'selling_price', 'quantity' ]; public static function generateUniqueItemCode($itemCode) { $characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; $string = ''...
true
a195ab4170acc37485c308c4cb37c5bb3b35870a
PHP
MindaugasJackunas/staffer
/tests/Unit/Domain/Actions/StaffActionsTest.php
UTF-8
8,196
2.625
3
[]
no_license
<?php declare(strict_types = 1); namespace Staffer\Tests\Unit\Domain\Actions; use Generator; use Staffer\Domain\Actions\StaffActions; use Staffer\Domain\FactoryInterfaces\StaffFactoryInterface; use Staffer\Domain\GeneratorInterfaces\StaffGeneratorInterface; use Staffer\Domain\RepositoryInterfaces\StaffRepositoryInte...
true