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
382738a9a13c9ba9fc1b35aed513e2dc0ed13dec
PHP
csrdelft/csrdelft.nl
/lib/Component/DataTable/DataTableFactory.php
UTF-8
838
2.8125
3
[]
no_license
<?php namespace CsrDelft\Component\DataTable; use Symfony\Component\DependencyInjection\ContainerInterface; class DataTableFactory { /** @var ContainerInterface */ private $registry; /** * @var DataTableBuilder */ private $builder; public function __construct($registry, DataTableBuilder $builder) { $thi...
true
f4f072345266b2d5b423626b86431372c4ee43cc
PHP
joaorbrandao/laravel-intervals
/src/IntervalFactory.php
UTF-8
1,800
2.6875
3
[ "MIT" ]
permissive
<?php namespace Joaorbrandao\LaravelIntervals; use Illuminate\Support\Str; class IntervalFactory { public static function resolve(string $name) { $data = null; $intervalFiles = self::intervals(); foreach ($intervalFiles as $file) { if (Str::contains(Str::upper($file), St...
true
772b4beda520d8f258108ecc7e7c757d99ecb48e
PHP
surlabs/assDataMiningQuestion
/classes/class.fileSizePreProcessor.php
UTF-8
927
2.953125
3
[ "MIT" ]
permissive
<?php use ILIAS\FileUpload\Processor\PreProcessor; use ILIAS\Filesystem\Stream\FileStream; use ILIAS\FileUpload\DTO\Metadata; use ILIAS\FileUpload\DTO\ProcessingStatus; /** * Class FileSizePreProcessor * * PreProcessor which denies the file if is is too large. * @author Sven Hertling <sven@informatik.uni-mannheim...
true
16a92e757ae1510edd90c3e0d34f4a20f26cafd4
PHP
rintu007/Taskerato
/app/Services/UserServices.php
UTF-8
2,203
2.71875
3
[]
no_license
<?php namespace App\Services; use Exception; use Config; use GuzzleHttp\Client as GuzzleHttpClient; use GuzzleHttp\Exception\RequestException; /** * Class UserApi * @package App\Services */ class UserServices { protected $client; public function __construct(GuzzleHttpClient $client) { $this->...
true
a564f1d6d16334267f65b2524070fbf0939d93e3
PHP
HhGiangg/19PHP03_PHP
/session 10/part2/add_new.php
UTF-8
1,070
2.71875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Register form</title> </head> <body> <?php include 'connect.php';?> <?php if (isset($_POST['register'])) { $username = $_POST['username']; $description = $_POST['description']; $image = 'default.png'; if ($_FILES['image']['error'] == 0) { $image = $_FILES...
true
21e3e596b6a95d34d58b16bb0041b00fac697d94
PHP
kiler129/CherryHttp
/src/_legacyCode/HttpRequestHandlerInterface.php
UTF-8
1,142
2.703125
3
[ "MIT" ]
permissive
<?php namespace noFlash\CherryHttp; /** * Every HTTP request need to be handled. This interface describes how server announces new request. * Most of the time your classes will implement this interface along with EventsHandlerInterface. * HttpRequestHandlerInterface was separated from EHI to add ability to specify ...
true
8afc3eb9ded7633671376c7c04f6df8be66085d1
PHP
espino316/rsphp
/library/RSPhp/Framework/Str.php
UTF-8
10,567
3.421875
3
[ "MIT" ]
permissive
<?php /** * Str.php * * PHP Version 5 * * Model File Doc Comment * * @category FrameworkCore * @package RSPhp\Framework * @author Luis Espino <luis@espino.info> * @copyright 2016 Luis Espino * @license MIT License * @link https://rsphp.espino.info/ */ namespace RSPhp\Framework; /** * Helper...
true
6144e23aa8dfd57635e58157cfc0e156addbc5bc
PHP
winny0074/bncompta
/bncompta/models/Entities/EnterprisesBankAccounts.php~
UTF-8
4,490
2.765625
3
[]
no_license
<?php namespace Entities; /** * Entities\EnterprisesBankAccounts */ class EnterprisesBankAccounts { /** * @var string $label */ private $label; /** * @var string $name */ private $name; /** * @var string $address */ private $address; /** * @var strin...
true
db1e68d3e85ef1b84946b6622c7579f41418b7f6
PHP
DinoBambino69/PHP
/4/index.php
UTF-8
1,588
3.140625
3
[]
no_license
<?php require_once "../4/generator.php"; ?> <pre> <h1>Задание 1</h1> <?php if (isset($_REQUEST["text"])) { $text = $_REQUEST["text"]; getText($text); } else include "text.html"; function getText($text) { $data_array = array(0); $sum = 0; ...
true
f277fee49df8c7a5cb68ecb8b34fd424181cd250
PHP
QuangSang32102/Php
/11.Time/2.LamViecVoiMuiGio/3.php
UTF-8
152
2.609375
3
[]
no_license
<?php $timeZone = timezone_identifiers_list(16); //Xem danh sách các múi giờ timezone_identifiers_list() echo "<pre>"; print_r($timeZone); ?>
true
78581a696ae1e01e9c24738b4045457c75c11e83
PHP
xavierauana/cms
/src/Contracts/ContentTypeInterface.php
UTF-8
1,412
2.5625
3
[]
no_license
<?php /** * Author: Xavier Au * Date: 10/1/2018 * Time: 9:01 AM */ namespace Anacreation\Cms\Contracts; use Anacreation\CMS\Entities\ContentObject; use Illuminate\Database\Eloquent\Relations\Relation; interface ContentTypeInterface { /** * Relation with ContentIndex::class * copy below relation ...
true
ed47ce81d049297a852a6b1c2ece791583f32fc9
PHP
gopalyendluri/payment-service
/application/integrations/ServiceProvider/Request/Request.php
UTF-8
1,334
3.15625
3
[ "MIT" ]
permissive
<?php namespace PaymentService\ServiceProvider\Request; /** * Class Request * * @package PaymentService\ServiceProvider\Request */ abstract class Request { /** * Stores params * * @var array */ protected $inputParams; /** * Stores a request name * * @var string ...
true
e6efdee3a2cee56257ba5f8dd54be7a9e187dfc3
PHP
novia-it2-1/edulab
/app/models/Part.php
UTF-8
1,118
2.625
3
[]
no_license
<?php class Edulab_Model_Part extends Zend_Db_Table_Abstract { protected $_name = 'parts'; public function getParts($project_id) { $select = $this->select(); $select->where('project_id = ?', $project_id); return $this->fetchAll($select); } public function getPart($part_id = null) { $select = $this...
true
26bf34930a1162f51d9a53aca14d2208500eba34
PHP
hayankhrisna/penjualan-sepatu
/tambahsql.php
UTF-8
840
2.8125
3
[]
no_license
<?php include "koneksi.php"; // memanggil file koneksi.php untuk menghubungkan ke database if(isset($_POST['simpan'])){ $id = $_POST['id']; // memanggil nama variabel id untuk dibuat menjadi variabel baru $id $nama_sepatu= $_POST['nama_sepatu']; $tipe= $_POST['tipe']; $stok= $_POST['stok']; //menambahkan query ...
true
ce9a8c27da1b88ce63ffa7be5b3b2748e7773574
PHP
mapzipteam/mapzip-server
/user-leave-module.php
UTF-8
9,241
2.53125
3
[]
no_license
<?php /* Required include file : mapzip-mysql-define, mapzip-state-define Usage example #1 : Delete all info of one user in mapzip $user_leave = new MapzipUserLeave($conn); $user_leave->setTargetId($value['target_id']); $to_client = $user_leave->execute(); Usage example #2 : Delete only friend Info ...
true
5641c9edb2b283fb9e614048aaea266be08bcb70
PHP
ldt1992/5s
/app/Http/Controllers/SectionController.php
UTF-8
1,737
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Requests; use App\Http\Requests\SectionRequest; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Section; class SectionController extends Controller { // Get List public function getList(){ // Lấy all dept $sections = Section::all(); ...
true
3f4331eb67178fd4c1579377a932e77d50ae90d2
PHP
eragon011/kwanphayao
/app/controllers/RoleApiController.php
UTF-8
1,100
2.546875
3
[]
no_license
<?php class RoleApiController extends \BaseController { public function __construct(RoleService $roleService) { $this->roleService = $roleService; } public function getAll(){ return $this->roleService->all(); } public function getIndex() { $with = []; $colFilter ...
true
c029a482a69802e442fe0d9684ca3fbfc9a86780
PHP
zhangjiquan1/phpsourcecode
/ruoxi520_admin/RXThinkCMF_TP3.2/Application/Admin/Model/ItemCateModel.class.php
UTF-8
3,365
2.578125
3
[ "Apache-2.0" ]
permissive
<?php // +---------------------------------------------------------------------- // | RXThink框架 [ RXThink ] // +---------------------------------------------------------------------- // | 版权所有 2017~2019 南京RXThink工作室 // +---------------------------------------------------------------------- // | 官方网站: http://www.rxthink...
true
7dcc8fdd53ca6248da53488b79494e6fc0928641
PHP
Mwaurakimani/mtush1.0.1
/app/php/classes/System.php
UTF-8
541
2.765625
3
[]
no_license
<?php /** * Administrator */ class System { function verifyUser($token){ if(isset($_SESSION['TOKEN']) && ($_SESSION['TOKEN'] == $token)){ return true; }else{ var_dump($_SESSION['TOKEN']); var_dump($token); return false; } } function e...
true
aab21c5127dae3cb5c27f915dd0159a12c4c08c1
PHP
rongself/simple-mvc
/library/Simple/Core/Router.php
UTF-8
1,478
2.875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: rongself * Date: 2015/3/19 * Time: 2:01 */ namespace Simple\Core; class Router { protected $uri; protected $moduleName; protected $controllerName; protected $actionName; protected $params; public function __construct(array $config) { $...
true
62a5622714807b8e3cdf428782c92c0161dabd32
PHP
acamari/fork-pthurmond-talks
/Builds-and-Deploys-with-Jenkins-and-Acquia/scripts-and-files/.docksal/commands/src/VML/Util/DocksalCommand.php
UTF-8
3,463
2.96875
3
[ "MIT" ]
permissive
<?php namespace VML\Util; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Process\Process; use Symfony\Component\Process\Exception\ProcessFailedException; /** * A Docksal command class. */...
true
16d7f01fb5fd48a3f73e3c9b733cf9799e154794
PHP
sumiyoshi/BokunoLumen
/src/Domain/Models/User.php
UTF-8
668
3.03125
3
[]
no_license
<?php namespace Domain\Models; class User extends Model { /** * @var string */ public $password; /** * @var string */ public $mail; /** * @var string */ public $name; /** * @param $data * @return array */ public static function passwordHa...
true
1772580aea020261d14eb4ba295e70908bdf4cdf
PHP
Trismegiste/videodrome
/src/Chain/ConsoleLogger.php
UTF-8
626
2.765625
3
[]
no_license
<?php namespace Trismegiste\Videodrome\Chain; use Psr\Log\AbstractLogger; use Symfony\Component\Console\Output\OutputInterface; /** * Logger to Symfony Console * Design pattern : Bridge */ class ConsoleLogger extends AbstractLogger { protected $output; public function __construct(OutputInterface $out) {...
true
fca0a951e6190cd81ac09f43a4dd9af03bd5c98e
PHP
TDSkyz/datingtonight
/app/Model/Users.php
UTF-8
806
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; class Users extends Model { protected $table = "users"; protected $primaryKey = "id"; public $timestamps = false; public function checkUserLogin($username, $password){ $checkUserLogin = DB::tab...
true
8e194452324310b288c1bbede45e04cf3164e69e
PHP
erenmustafaozdal/laravel-company-module
/src/CompanyValue.php
UTF-8
2,213
2.609375
3
[ "MIT" ]
permissive
<?php namespace ErenMustafaOzdal\LaravelCompanyModule; use Illuminate\Database\Eloquent\Model; use ErenMustafaOzdal\LaravelModulesBase\Traits\ModelDataTrait; class CompanyValue extends Model { use ModelDataTrait; /** * The database table used by the model. * * @var string */ protecte...
true
ed6e6beef96d1b1f495c41713767b199ec959caf
PHP
habibimroncn/jte
/src/Client/Client.php
UTF-8
1,438
2.796875
3
[]
no_license
<?php namespace TextOperation\Client; use TextOperation\TextOperation; /** * Handles the client part of the OT synchronization protocol. Transforms * incoming operations from the server, buffers operations from the user and * sends them to the server at the right time. */ abstract class Client { protected $r...
true
7991bb32b2319f5baf9551bc3cc2f704524e9b35
PHP
rickchips/projet-db
/src/Entity/Liens.php
UTF-8
1,976
2.71875
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\LiensRepository") */ class Liens { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(typ...
true
eb746cd5894c8f4d116c13bc2ae77f1a527c8d1e
PHP
kittiradovics/dp_docs
/src/Traits/APIRefRefTrait.php
UTF-8
2,513
2.515625
3
[]
no_license
<?php namespace Drupal\dp_docs\Traits; use Drupal\Core\Entity\EntityTypeInterface; use Drupal\Core\Field\BaseFieldDefinition; use Drupal\dp_docs\Entity\APIRef; /** * Provides a trait for the API Reference entity reference field. */ trait APIRefRefTrait { // @TODO Getters/setters(?) /** * Gets the API Refe...
true
82950d5ca89482b34c71656bfba78fdc8fcbba93
PHP
thuctoa/shipdi_core
/controllers/LocationController.php
UTF-8
4,690
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\controllers; use Yii; use app\models\Location; use yii\data\ActiveDataProvider; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; use app\controllers\SiteController; /** * LocationController implements the CRUD actions for Location model. */ class LocationCo...
true
b53a8af3adb665ec785c26e16cc5aa7e529ddb1c
PHP
GennaMarco/simulation-exam
/src/Manager/ActivityManager.php
UTF-8
350
2.890625
3
[]
no_license
<?php class ActivityManager extends DatabaseMySQL { public function insertActivity($activity) { $db = $this->getDatabase(); $query = "INSERT INTO activity (name) VALUES (:name)"; $results = $db->prepare($query); $results->bindParam(":name", $activity->getName(), PDO::PARAM_STR); $results->execute(); ret...
true
2bdcadf71404e21a091ee1afcaf7736d2b827bf1
PHP
fandlr/joostina
/core/libraries/benchmark.php
UTF-8
1,750
2.578125
3
[]
no_license
<?php // запрет прямого доступа defined('_JOOS_CORE') or die(); /** * joosBenchmark - Библиотека профилирования системы * Системная библиотека * * @version 1.0 * @package Joostina.Libraries * @subpackage Libraries * @category Libraries * @author Joostina Team <info@joostina.ru> * @copyright (C) 2008-2011 Joo...
true
51d754161d2ec25081e6a63a028e47b04c616076
PHP
uiscias/DomDomViv
/resources/model/Datalogger.php
UTF-8
11,879
2.53125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Fabien * Date: 30/05/2016 * Time: 16:52 */ namespace domdomviv; require_once(realpath(dirname(__FILE__) . "/Settings.php")); require_once(LIBRARY_PATH . "/pDraw.class.php"); require_once(LIBRARY_PATH . "/pImage.class.php"); require_once(LIBRARY_PATH . "/pData.c...
true
38a1577c43422323cdda97bf127b2259b4624c61
PHP
mitgd-learning/servicecenter
/src/Repository/RoomRepositoryInterface.php
UTF-8
415
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Repository; use App\Entity\Room; use Doctrine\ORM\QueryBuilder; interface RoomRepositoryInterface { /** * @return QueryBuilder */ public function getQueryBuilderForRoomsWithoutPlacard(); /** * @return QueryBuilder */ public function getQueryBuilderForRoomsWith...
true
f4e5646ecb6e8af311d62939ad495bdc736670b7
PHP
bartlomiej-dudala/clipass
/src/CliPass/Input/StdIn.php
UTF-8
333
3.109375
3
[ "MIT" ]
permissive
<?php namespace CliPass\Input; class StdIn { /** * @return string */ public function read() { $stdin = fopen('php://stdin', 'r'); $contents = ''; while (!feof($stdin)) { $contents .= fread($stdin, 8192); } fclose($stdin); return $conte...
true
00ac71bc035b57b723a93800e7f05e1b4290fc59
PHP
Ulya0302/Auctions
/auction_full.php
UTF-8
2,736
2.515625
3
[]
no_license
<html lang="ru"> <head> <title>Подробная информация</title> </head> <body> <?php include_once("menu.php"); $auc_id = $_GET['id']; if (!is_numeric($auc_id)) { error("Ошибка"); exit(); } $query = "SELECT date_auc, time_auc, pl.name place, auc.description descr FROM auctions auc inner join...
true
8981c21c8ac56c55055fa79ad56e310e48aefd41
PHP
guoyu07/yaf-scripts
/library/Afx/Module.php
UTF-8
2,403
2.625
3
[]
no_license
<?php /** * AFX FRAMEWORK * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT...
true
a258f5ac9d0b11b2a0a707dd4c9adcb7c28348e5
PHP
huenisys/publisher
/src/Common/AbstractExtractor.php
UTF-8
1,087
2.96875
3
[]
no_license
<?php namespace huenisys\Publisher\Common; abstract class AbstractExtractor implements InterfaceExtractor { /** * The type of posting * will later identify which * props matter * * @var string */ protected $schemaType; /** * Identifies the schemaType used for readi...
true
d794f90b417ce20704b9a5cabe4254181814335c
PHP
mmjurov/coupanda
/lib/log/filelogger.php
UTF-8
1,393
2.859375
3
[]
no_license
<?php namespace Maximaster\Coupanda\Log; class FileLogger extends AbstractLogger { protected $onlyErrors = true; protected $errorLevels = [ LogLevel::ALERT, LogLevel::CRITICAL, LogLevel::EMERGENCY, LogLevel::ERROR, LogLevel::WARNING ]; protected function getPat...
true
d4fdef7ac7f5f573288ae866527a344e6e07cc59
PHP
Skillshare/formatphp
/tests/Icu/MessageFormat/Parser/Type/PoundElementTest.php
UTF-8
1,224
2.6875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace FormatPHP\Test\Icu\MessageFormat\Parser\Type; use FormatPHP\Icu\MessageFormat\Parser\Type\ElementType; use FormatPHP\Icu\MessageFormat\Parser\Type\Location; use FormatPHP\Icu\MessageFormat\Parser\Type\LocationDetails; use FormatPHP\Icu\MessageFormat\Parser\Type\PoundElement; ...
true
db9c29b38fd0b52659914993d6b5d5139b2a5e44
PHP
zhourong007/image
/iv-includes/include/ivXmlNodeEnum.class.php
UTF-8
1,239
3.34375
3
[]
no_license
<?php /** * Enum XML node class * * @author McArrow */ class ivXmlNodeEnum extends ivXmlNode { /** * Array of values * * @var array */ protected $_values = array(); /** * Constructor * * @param string $name * @param array $attrs */ public function __construct($name, $attrs = array(...
true
fb120e0269860afd0144cc9798def7aca02f69e5
PHP
riyandjoko/oop
/frog.php
UTF-8
298
3.203125
3
[]
no_license
<?php class Frog extends Animal { public function __construct($name,$legs=4,$cold_blooded="false"){ $this->name = $name; $this->legs = $legs; $this->cold_blooded = $cold_blooded; } public function jump(){ $loncat = "Hop hop"; return $loncat; } } ?>
true
6e363bb6abe59ad5309acafb9b7da016b3fe16d2
PHP
Kronos35/VirtualAnatomyClassroom
/database/seeds/TissueTypesSlugSeeder.php
UTF-8
1,689
2.671875
3
[]
no_license
<?php use App\TissueType; use Illuminate\Database\Seeder; class TissueTypesSlugSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // $tissue_types = TissueType::all(); foreach ($tissue_types as $tissue_type) { switch ($tissue_type->nam...
true
068c223a65b221a8ab94afd81498a5e26f4b044c
PHP
plhwin/ci-smarty
/application/models/check_model.php
UTF-8
7,536
2.640625
3
[]
no_license
<?php /** * @copyright © 2010 plhwin.com * @author Peter Pan <plhwin@plhwin.com> * @since version - 2010-8-18下午08:08:08 */ if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Check_model extends CI_Model { public function __construct() { parent::__construct(); } /** ...
true
6ac0d2103f45d518b19829b03a9bdc9657fbea3c
PHP
saifur41/wzt
/dev/questions/Telpas.inc/libraries/Telpas_quiz.php
UTF-8
2,684
2.84375
3
[]
no_license
<?php class Telpas_quiz{ // database connection and table name private $conn; private $table_name = "Telpas_course_users"; // object properties public $id; public $is_enroll; public $course_id; public $course_code; public $telpas_uuid; public $intervene_uuid; ...
true
fac54da672a64a7afdb06232f1e46b6f6c3c9fd2
PHP
liokingim/cakephp3
/src/Template/Users/view_number.ctp
UTF-8
2,069
2.703125
3
[]
no_license
<?php use Cake\I18n\Number; ?> <div class="users form large-10 medium-8 columns content"> <?php echo 'currency: ' . Number::currency(1234.56); echo "<br>"; echo 'currency: ' . $this->Number->currency(1234.56); echo "<br>"; echo 'currency(EUR): ' . $this->Number->currency(1234.56, 'EUR'); echo "<br>"; echo 'currency(GBP...
true
a97edf4df13c71e712d0adfeebc8212d8d02bcf3
PHP
wshah4/PHP-code
/viewCommentsDatabase.php
UTF-8
2,755
2.765625
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> View Database Comments </title> </head> <body> <h1> POST </h1><br /> <p> Dogs have fewer cone receptors than humans. Du...
true
4e419f7b7f1755ae96a12314576ab51d5ba3b706
PHP
mduccc/ictu
/app/controller/update.php
UTF-8
1,192
2.578125
3
[]
no_license
<?php class app_controller_update{ function updateGeneralInfo($studentid, $firstname, $lastname, $gender, $email, $phone, $birthday){ $updateGeneral = new app_model_updateData(); echo $updateGeneral->updateGeneralInfo($studentid, $firstname, $lastname, $gender, $email, $phone, $birthday); } function updateProv...
true
ebf2eaa0a64c4d91d7e5d424c7ef0e24eb986400
PHP
thomposer/his
/commands/AppointmenttextController.php
UTF-8
2,632
2.5625
3
[]
no_license
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace app\commands; use yii; use yii\console\Controller; use app\modules\make_appointment\models\Appointment; use yii\db\Query; use app\modules\patient\models\Pat...
true
3f539fe9bb1886c38d03c4536dad9d53cc8fb808
PHP
abidjameel/computershop
/typehinting.php
UTF-8
417
3.5625
4
[]
no_license
<?php //typehinting interface test{ public function dosomething(); } class ABC implements test{ public function dosomething(){ echo "Do some thing ABC CLASS "; } } class xyz implements test{ public function dosomething(){ echo "dosomething xyz class"; } public function dosomethingelse(){ echo "dosometh...
true
8a8e22a04a3d4b9cfc1150cca40fd6b697a29c73
PHP
isernhagen/php2
/aula05/Person.php
UTF-8
941
4.09375
4
[]
no_license
<?php class Person { protected $name; protected $age; public function __construct($name, $age) { $this->name = $name; $this->age = $age; } public function __get($property) { // name ou age if (isset($this->$property)) { return $this->$property; ...
true
d2e88207bb4c6c26c8256000b87ce14b26a2a2f0
PHP
tomnattle/jobs
/web/vendor/swiftmailer/swiftmailer/lib/classes/Swift/OutputByteStream.php
UTF-8
1,141
2.875
3
[ "MIT" ]
permissive
<?php /* * This file is part of SwiftMailer. * (c) 2004-2009 Chris Corbyn * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * An abstract means of reading data. * * Classes implementing this interface may use a subsystem whic...
true
22a954d556d8495c5f6b77ddfd3dc04dd02bbb24
PHP
xiangxiang0826/phpunit
/application/models/ProductCate.php
UTF-8
6,418
2.625
3
[]
no_license
<?php /** * 产品类别 * @author zhouxh * */ class Model_ProductCate extends ZendX_Model_Base { protected $_schema = 'cloud'; protected $_table = 'EZ_PRODUCT_CATEGORY'; const STATUS_ENABLE = 'enable'; const STATUS_DISABLE = 'disable'; const STATUS_DELETE = 'deleted'; const ROOT_ID = 1; /** * 树显示类别 */ public f...
true
eb40df4b60cbcd8ba7c4d8941a18c7330f6ccc02
PHP
isabu77/0029_sitebiereblog
/www/src/Model/Entity/UserInfosEntity.php
UTF-8
3,268
2.84375
3
[]
no_license
<?php namespace App\Model\Entity; use \Core\Controller\Helpers\TextController; use \Core\Model\Entity; /** * Classe Users : un client du site bière **/ class UserInfosEntity extends Entity { private $id; private $user_id; private $lastname; private $firstname; private $address; private $cit...
true
9fffb3ef717d14ec12796e4440aa36fccb53d632
PHP
ROXER94/Gallery-Project
/AddPhoto.php
UTF-8
5,619
2.609375
3
[]
no_license
<?php session_start(); //If we ARE Logged In?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Info 2300 Project Three - Add Photo</title> <link rel="stylesheet" type="text/css" href="CSS/CSS.css"> <link href='http://fonts.googleapis.com/css?family=Arizonia' rel='stylesheet' type='text/css'> </he...
true
9dc39b88863a4890265e1d12129640ba5980e084
PHP
matheusinhofreitas/ufes_web_2018-1
/monkey/DAL/AgendaDAL.php
UTF-8
3,128
2.75
3
[]
no_license
<?php namespace DAL; use Model\Casting; use Model\Conexao; include_once "Model/agenda.php"; class AgendaDAL { private $mysqli; function __construct(){ $this->mysqli = Conexao::MySQL(); } public function addOrUpdate($agenda) { if ($agenda->get_idAgenda() == null) { $que...
true
89acd9776318ad8e467c01bee1918bc8cb133312
PHP
shenryuken/zuhaldistributor.com
/app/Models/Wallet.php
UTF-8
1,754
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Eloquent as Model; use Illuminate\Database\Eloquent\SoftDeletes; /** * Class Wallet * @package App\Models * @version February 13, 2020, 5:50 am UTC * * @property \Illuminate\Database\Eloquent\Collection transactions * @property string holder_type * @property integer holder_id ...
true
8aebf7ff404f6b34b5b15380a8a435fdf634e853
PHP
AllanMagnum/akto
/cau/test/SistemaTest.php
UTF-8
2,718
2.859375
3
[]
no_license
<?php include_once $_SERVER['DOCUMENT_ROOT'] . "/git/akto/cau/" . 'model/bean/Sistema.php'; include_once $_SERVER['DOCUMENT_ROOT'] . "/git/akto/cau/" . 'control/SistemaControl.php'; include_once $_SERVER['DOCUMENT_ROOT'] . "/git/akto/cau/" . 'model/bean/Opcoes.php'; include_once $_SERVER['DOCUMENT_ROOT'] . "/git/ak...
true
25df813d4dbdee816feed12d4d80b6a9eb4e63c9
PHP
jeroenvdgulik/spec
/src/Logical/Not.php
UTF-8
505
2.765625
3
[]
no_license
<?php namespace Kayladnls\Spec\Logical; use Kayladnls\Spec\Specification; class Not implements Specification { /** * @var Specification */ protected $negative; /** * @param Specification $negative */ public function __construct(Specification $negative) { $this->negativ...
true
962f428b548b621baf03b51a021d2f484cbce80b
PHP
AW-Laboratorio/Proyecto
/includes/ModelScripts/GestorNoticias.php
UTF-8
1,561
2.59375
3
[]
no_license
<?php /*require_once '/../DaoScripts/DaoNoticias.php';*/ namespace estatica\includes\ModelScripts; use \estatica\includes\DaoScripts\DaoNoticias as DN; use ArrayObject; class GestorNoticias{ private $dao; function __construct(){ $this->dao = DN::DaoNoticias();//new DaoNoticias(); if(!isset($_SESSION...
true
c1422e31ad38eb8606e5e086341708cbfd6d5ac3
PHP
denaedouglas/EECS448_Lab5
/Lab5/ViewUserPosts.php
UTF-8
551
2.640625
3
[]
no_license
<?php $user = $_POST['select']; $mysqli = new mysqli("mysql.eecs.ku.edu", "ddouglas", "Password123!", "ddouglas"); $query = "SELECT * FROM Posts WHERE author_id = '$user'"; if($result = $mysqli->query($query)){ if($count = $result->num_rows){ $table = "<center><table border='1'><th>Posts from $user</th>"; while(...
true
e9b416ee0bc8c2729f00e28253f9f79ce6b17ab2
PHP
igorfelcam/papibaquigrafo
/api/app/Events/TransferLogEvent.php
UTF-8
340
2.78125
3
[]
no_license
<?php namespace App\Events; class TransferLogEvent extends Event { /** * TransferLogEvent getter */ public function __get($property) { return $this->$property; } /** * TransferLogEvent setter */ public function __set($property, $value) { $this->$propert...
true
92aee68c8e5a3465dc76632c7294cde828553ace
PHP
khanov26/library
/migrations/m191019_105325_alter_client_table.php
UTF-8
684
2.53125
3
[]
permissive
<?php use yii\db\Migration; /** * Class m191019_105325_alter_client_table */ class m191019_105325_alter_client_table extends Migration { /** * {@inheritdoc} */ public function safeUp() { $this->addColumn('{{%client%}}', 'email', $this->string()); $this->addColumn('{{%client%}}'...
true
99f5585e9665d82c8e23bd0b5e794e73046952a8
PHP
almy-123/c273_SA
/doEditDetails.php
UTF-8
1,704
2.515625
3
[]
no_license
<!--Alicia 19037610--> <?php include 'navbar.php'; include 'dbFunctions.php'; $id = $_SESSION['id']; if (isset($_POST['username'])) { $new = $_POST['username']; $field_id = "username"; } if (isset($_POST['password'])) { $new = $_POST['password']; $field_id = "password"; } if (isset($_POST['height']))...
true
39982f723c614f6c4a32da96373911e628895032
PHP
im286er/MonkeyPHP
/system/vendor/library/Library/Math.php
UTF-8
1,375
3.6875
4
[]
no_license
<?php namespace Library; /** * Math * 数学计算类 * @package Library */ final class Math { /** * @static * 10进制转N进制 * @param int $int 十进制数 * @param int $n 目标进制,介于2到62之间 * @return string n进制结果字符串 */ public static function decimalToN($int, $n = 62) { $return = ''; whi...
true
badbdb64c5c4222a20fc4baca428df6fe3044d31
PHP
omahik79/php-store
/objects.inc
UTF-8
282
2.859375
3
[]
no_license
<?php class Myclass { public $font_size ="40px"; public $font_color = "red"; public $string_name = "Samsung TV"; public function customize_print() { echo "<p style=font-size:".$this->font_size.";color:".$this->font_color.";>".$this->string_name."</p>"; } } ?>
true
890e7db90a7e50fdfc8d5ddf0a1204c11cd40bce
PHP
diegorafaelvieira/Programacao-3
/Aula 12/Exercicios/Aula-12-Exemplos/exemplo_slide_10.php
UTF-8
141
2.921875
3
[ "MIT" ]
permissive
<html> <body> <?php include_once "vars.php"; include_once "fat.php"; echo fatorial($a)."<br>\n"; echo fatorial($b); ?> </body> </html>
true
61d2a039abdb25d75eaabd5444ff271a04fb45ff
PHP
bemit/orbiter-annotations-util
/src/CodeInfo.php
UTF-8
4,541
2.875
3
[ "MIT" ]
permissive
<?php namespace Orbiter\AnnotationsUtil; /** * Static Code Analyze Helper */ class CodeInfo { /** * absolute path to cache file */ protected ?string $file_cache; /** * @var CodeInfoSource[] */ protected array $sources_to_parse = []; /** * @var CodeInfoData[] */ ...
true
18bdc607c34cc27b73d36d6d5dc5482581e95b54
PHP
Khaled-Farhat/Profily
/app/Core/Validation/Validator.php
UTF-8
1,393
2.984375
3
[]
no_license
<?php namespace App\Core\Validation; use App\Core\Utility\ErrorsList; use App\Core\Validation\RulesResolver; class Validator { // $rules[$key] is a string contains the rules that must be applied on $inputs[$key], separated by | // example: FirstRule|SecondRule|ThirdRule // You can also pass agruments to the rule, ...
true
9da275d1222668ec3f1f737daf3db9bc600226ba
PHP
MarchenkoOleksandr/weatherAPI
/app/Http/Models/UserRequests/BaseRequest.php
UTF-8
663
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Models\UserRequests; use App\Http\Models\Forecasts\OpenWeatherMapForecast; use App\Http\Models\Forecasts\WeatherBitForecast; use App\Http\Models\Forecasts\WeatherStackForecast; /** * Class BaseRequest * * @package App\Http\Models\UserRequests */ class BaseRequest { protected $weather...
true
3a39cba0bf913bb1cb2f62a36ccd741e0fb54c76
PHP
victormech/tic-tac-toe
/src/AppBundle/Builder/TicTacToeBuilder.php
UTF-8
800
2.875
3
[]
no_license
<?php namespace AppBundle\Builder; use TicTacToeGame\AI\EvaluatorInterface; use TicTacToeGame\GameRules; use TicTacToeGame\ValueObject\Game; class TicTacToeBuilder implements BuilderInterface { /** * @var Game */ private $game; /** * @var EvaluatorInterface */ private $cpuEvaluat...
true
f2401b2beede9daea67fc5dc1b56fee6bfead35c
PHP
jbpadilha/PHP-Projets
/SMC-DES-1.2/class/Abastecimentos.php
UTF-8
3,661
3.109375
3
[]
no_license
<?php /** * Classe de Abastecimentos * @author Joao Padilha * @version 1.0 */ class Abastecimentos { private $idAbastecimentos; private $dataAbastecimentos; private $kmAbastecimentos; private $postoAbastecimentos; private $nfAbastecimentos; private $tipoCombustivelAbastecimentos; private $val...
true
1fb5ccba77b4ee6201720d89453d8f0211dca141
PHP
CHENMINGSHUAN/06_24_chinminsen
/survey.read.php
UTF-8
6,183
3.078125
3
[]
no_license
<?php // DB接続の設定 // DB名は`gsacf_x00_00`にする $dbn = 'mysql:dbname=survey;charset=utf8;port=3306;host=localhost'; $user = 'root'; $pwd = ''; try { // ここでDB接続処理を実行する $pdo = new PDO($dbn, $user, $pwd); } catch (PDOException $e) { // DB接続に失敗した場合はここでエラーを出力し,以降の処理を中止する echo json_encode(["db error" =...
true
f83df0af22952af623d193453e7548b90c1847d7
PHP
uncle-ren/myyii2shop
/backend/models/Menu.php
UTF-8
359
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\models; use yii\db\ActiveRecord; class Menu extends ActiveRecord{ public function rules() { return [ [["name","premenu","adress","sort"],"required"], ]; } Public function getChildren(){ //get方法 return $this->hasMany(self::class...
true
8a4b2514ce199048df39892b856b5952b99d0b9f
PHP
Nicklahara252729/2017-practice-oop
/15_publicAccessModifier.php
UTF-8
233
3.1875
3
[]
no_license
<h1><u>Public Access Modifier</u></h1> <?php class MobilJepang{ public $merk; public function getMerk(){ return $this->merk; } } $mobil = new MobilJepang(); $mobil->merk = 'toyota'; echo 'merk mobil adalah '.$mobil->getMerk();
true
fea3fee4987827a5eee3cc18fcdf2d27131ba5d2
PHP
datnv-0163/StartWithLaravel
/app/Http/Controllers/Backend/UserController.php
UTF-8
1,138
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Backend; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Illuminate\Http\Response; class UserController extends Controller { public function index(){ $ten='datnv6712D'; $tuoi=12; return view('info',['name'=>$ten,'age'=>$tuoi]); ...
true
90e6afc2098c570db35690fc8054a77c650254bc
PHP
nikolot/intervolga-zadaniye-4b
/functions.php
UTF-8
1,417
3.140625
3
[]
no_license
<?php if($_SERVER['REQUEST_METHOD'] == "POST" and isset($_POST['someAction'])){ echo $_POST['name']; viewTable(); } function viewTable(){ /*Параметры подключения*/ $host = 'localhost'; $user = 'root'; $password = ''; $dbName = 'countries'; $conn = m...
true
3e0dff8285c27b8e2458d1036fce2e799e710b43
PHP
kubik1986/909803-yeticave
/sign-up.php
UTF-8
3,911
2.671875
3
[]
no_license
<?php require_once('init.php'); if (!empty($user)) { header("Location: /"); exit(); } $psw_min_length = 8; $psw_max_length = 72; $name_max_length = 100; // Максимальное кол-во символов в имени $contacts_max_length = 255; // Максимальное кол-во символов в контактах $max_file_size = 200; // Максимальный размер ...
true
2d97a82a0ecc92614ef22bce6483fe2bf6627b49
PHP
tayue/localcomposertest
/Demo/aoptest4.php
UTF-8
902
3.890625
4
[]
no_license
<?php //定义RealSubject和Proxy共同具备的东西 interface Subject{ function say(); function run(); } class RealSubject implements Subject{ private $name; function __construct($name){ $this->name = $name; } function say(){ echo $this->name."在吃饭<br>"; } function run(){ echo $...
true
fc8e3529a16b41f32d3d31fb04e6bace9153b9d6
PHP
kazak1377/ar-lumen-crud-helper
/src/Controllers/Controller.php
UTF-8
5,727
2.65625
3
[]
no_license
<?php namespace ARCrud\Controllers; use ArHelpers\Errors\DeletingError; use ArHelpers\Errors\NoSuchEntityError; use ArHelpers\Errors\SavingError; use ArHelpers\Errors\UnhandledExceptionError; use ArHelpers\Helpers\Reflection; use ArHelpers\Helpers\ValidationHelper; use ArHelpers\Response\CreatedResponse; use ArHelper...
true
ee38f6cf3748f850f0579678a3c1143a3bf1802b
PHP
gbrabyn/dynamic-forms
/src/ErrorDecorator/html5/Form.php
UTF-8
960
3.03125
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php namespace GBrabyn\DynamicForms\ErrorDecorator\html5; use GBrabyn\DynamicForms\ErrorDecorator\StandAloneErrorAbstract; /** * Used to show if errors in form and any set of form general messages * * @author GBrabyn */ class Form extends StandAloneErrorAbstract { public function __construct($translator=nul...
true
097dad1cd00a191b693c44a0ccd398bcc10e2657
PHP
nvcaine/miz_planner
/app/views/AppsView.php
UTF-8
2,143
2.796875
3
[]
no_license
<?php class AppsView extends AbstractView { public function display($template) { $this->addStyles(array( 'css/main.css', 'css/sticky.css', 'css/apps.css' )); $this->addExternalScripts(array( 'js/apps.js' )); $this->appFacade->assignSmartyVariable('weekdays', $this->assignedVariables->weekdays...
true
bf5abcdc9817b006720777f7a51115f1ef8ed902
PHP
vanrez-nez/pshelf-ssr
/src/Worker/Server.php
UTF-8
1,615
2.578125
3
[]
no_license
<?php namespace PShelf\Ssr\Worker; use PShelf\Ssr\Logger; use Monolog\Logger as Monologger; use Monolog\Handler\StreamHandler; use React\EventLoop\Factory; use React\Socket\Server as ReactServer; use React\Socket\ConnectionInterface; class Server { protected $logger; protected $server; protected $prerenderer; ...
true
e2da1b5c37225d5f11c0b44f49189c80eb48a2a4
PHP
rish-nuriev/reminder
/src/Reminder/DateObserver.php
UTF-8
224
2.953125
3
[]
no_license
<?php namespace Reminder; class DateObserver extends Observer { protected $priority = 10; public function displayInfo(string $date) { echo 'Сегодня ' . $date ; echo '</br></br>'; } }
true
f9c9758742d4da0b48399b2bfd9015a8b9258b88
PHP
dm-sokolov/olmed
/www/opt_tng/lib/helpers.php
WINDOWS-1251
2,615
2.6875
3
[]
no_license
<?php /** * Created by JetBrains PhpStorm. * User: user * Date: 26.07.13 * Time: 15:25 * To change this template use File | Settings | File Templates. */ include_once('custom_opt.php'); //, "http://www.xxx.yy/". function normalize_domain($url, $no_http = 0, $no_www = 0, $no_slash = 0) { //.. , ...
true
c88a2b12f1af56088b435ed7f969d5f397a57b3d
PHP
JONATHAN297/cursophp
/php/signosdeoperacion.php
UTF-8
299
3.34375
3
[]
no_license
<?php //declaracion de variables el + es para concatenar $valor1=2; $valor2=5; echo $resultado=$valor1 + $valor2; // para sumar,restar, dividir,multiplicar en php se utiliza //+,-,/,* $nombre1="juan"; $apellido='perez'; echo $nombre1." ".$apellido; ?>
true
40e3eb5d3ac2d046d72ebc03efdfacd7028a2a0e
PHP
isosatl/stdnadmin
/dbInterfaces/inicioActions.php
UTF-8
1,767
2.609375
3
[]
no_license
<?php //ob_start(); //Script para determinar si se ha iniciado sessión y si es administrador. if (session_id() == ''){ session_start(); } try { require('../DB.php'); // $dbh = null; don't forget to close the connection! /** query para poblar tabla de cursos ** */ if (isset($_GE...
true
bd0094d38b846d555594ce9edc11b06e7c7997b6
PHP
richhaho/ligapi2
/src/Services/OneSignalService.php
UTF-8
3,349
2.59375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Services; use App\Entity\User; use App\Repository\UserRepository; class OneSignalService { private CurrentUserProvider $currentUserProvider; private string $onesignalAppId; private string $onesignalApiToken; private UserRepository $userRepository; ...
true
260c766f67886c49270a588247829bcca48616e7
PHP
tvaughan73/bego
/src/Component/AttributeName.php
UTF-8
606
2.75
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Bego\Component; /** * key condition expression */ class AttributeName { protected $_attribute; public function __construct($attribute) { $this->_attribute = $attribute; } public function key() { return '#' . $this->_sanitise($this->_attribute); } pu...
true
a12973827d144677dfeaa198a31cb7c486c96438
PHP
PersieB/Ashesi-Tutorial-Hub
/view/admin/controllers/add-event.php
UTF-8
545
2.53125
3
[ "MIT" ]
permissive
<?php require_once "../config/connect_db.php"; $connect = connect_db(); //establishing a connection to db $title = isset($_POST['title']) ? $_POST['title'] : ""; $start = isset($_POST['start']) ? $_POST['start'] : ""; $end = isset($_POST['end']) ? $_POST['end'] : ""; $goal = isset($_POST['goal']) ? $_POST['goal'] : "...
true
383a86e486570811651177010dea8835b3f066c2
PHP
Abdoulaye-safia/GEST_MOB
/src/Entity/Bien.php
UTF-8
3,088
2.609375
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use App\Repository\BienRepository; use Symfony\Component\Validator\Constraints as Assert; use Vich\UploaderBundle\Mapping\Annotation\UploadableField; use Vich\UploaderBundle\Mapping\Annotation as Vich; /** * @ORM\Entity(repositoryClass=BienRepository::clas...
true
9fc0813946f43e3fbff60d48e3a95a7a7db1f3be
PHP
thinkbliss/ifc
/v-pgraffam-modal-trailer/live/wp-content/themes/ifcfilms/src-copy/inc/shortcodes.php
UTF-8
750
2.65625
3
[]
no_license
<?php // add_shortcode('ifcfilms_shortcode_demo', 'ifcfilms_shortcode_demo'); // You can place [ifcfilms_shortcode_demo] in Pages, Posts now. // add_shortcode('ifcfilms_shortcode_demo_2', 'ifcfilms_shortcode_demo_2'); // Place [ifcfilms_shortcode_demo_2] in Pages, Posts now. // Shortcode Demo with Nested Capability /...
true
120786613f1710b98612efb5635cb6a4904c5f3a
PHP
nicolasib/e-album
/pages/php/functions/conn.php
UTF-8
294
2.578125
3
[]
no_license
<?php function connect() { $host = "localhost"; $user = "root"; $pass = ""; $base = "ealbum"; $conector = new mysqli($host, $user, $pass, $base); mysqli_set_charset($conector,"utf8"); if(mysqli_connect_errno()) trigger_error(mysqli_connect_errno()); return $conector; } ?>
true
2bd62dabe76e04ec35c00e981710c0fc196bfdd8
PHP
Njogukarani/Njogukarani.github.io
/other.php
UTF-8
872
3.8125
4
[]
no_license
<!DOCTYPE html> <html> <head> <title>My PHP</title> </head> <body> <?php echo "My Name is Manono"; echo "<br>"; //echo is used to display information as output //variables refer to storage locations for values $bruce=5; $noah=10; $sum=$bruce+$noah; echo "$sum"; echo "<br>"; $anto=12; $king=7; $ngumu=$ant...
true
587675d9be83058df744c211379acc847b4f43b1
PHP
kcartech86/ucf-code-archive-hub
/UCF TERM 9/DIG 4503/assignments/assignment2/getPhoto.php
UTF-8
1,437
2.71875
3
[]
no_license
<?php include 'apiAccess.php'; $photoId = $_POST['id']; //$photoId = "6842068934"; $url = "http://api.flickr.com/services/rest/?method=flickr.photos.getInfo"; $url .= "&api_key=".$appKey; $url .= "&photo_id=".$photoId; $url .= "&format=rest"; $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER,...
true
3d87ed39bd5ba3a509e5d3892631b98bbf2b485d
PHP
IyanTRICKSTER/Ecommerce1-backend
/app/Http/Controllers/DashboardController.php
UTF-8
2,028
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Product; use App\Models\Transaction; use Illuminate\Http\Request; class DashboardController extends Controller { public function __construct() { // authenticate the user $this->middleware('auth'); } public function index() { ...
true
220a09314c5e7a7167d77ee293d018a32440f6b3
PHP
sergey-ag/php-task-manager
/app/Http/Controllers/TaskStatusController.php
UTF-8
2,725
2.578125
3
[]
no_license
<?php namespace Craftworks\TaskManager\Http\Controllers; use Craftworks\TaskManager\TaskStatus; use Illuminate\Http\Request; class TaskStatusController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middl...
true
538aa4f7df07a97bcdcbf828cfa0e3e270c17464
PHP
TechToThePeople/eu.tttp.excel
/exportexcel.php
UTF-8
2,304
2.578125
3
[]
no_license
<?php function writeHTMLFile($fileName, &$header, &$rows, $titleHeader = NULL, $outputHeader = TRUE) { if ($outputHeader) { CRM_Utils_System::download(CRM_Utils_String::munge($fileName), 'application/vnd.ms-excel; charset=utf-8', CRM_Core_DAO::$_nullObject, 'xls', FALSE ); // a bit ...
true
ff298ca2ee0a132643f776656a3c6ec550e4845a
PHP
laurynasgadl/amplitude-php
/src/AmplitudeV2.php
UTF-8
739
2.625
3
[ "MIT" ]
permissive
<?php namespace Luur\Amplitude; use GuzzleHttp\Psr7\Request; use JsonSerializable; use Psr\Http\Message\ResponseInterface; class AmplitudeV2 extends AbstractAmplitude { public const API_URI = 'https://api2.amplitude.com/2/httpapi'; public function send(JsonSerializable $message): ResponseInterface { ...
true
bc1a12c09230b200b52c0ef1c06adfdd71f6b43b
PHP
Crackiii/inventory-system-react-php
/api/search/products.php
UTF-8
2,047
2.953125
3
[]
no_license
<?php class ProductSearch{ public $params = ""; function __construct(){ global $__data; if(gettype(json_decode($__data)) === "object"){ $this->params = json_decode($__data); } } function selectData($sql){ global $conn; if($conn->query($s...
true
c7e88cac3d0eadf0e854247aef4ac724eac093c9
PHP
zeebrunner/SeanHomes
/administrator/components/com_sh404sef/classes/basecache.php
UTF-8
2,397
2.5625
3
[ "MIT" ]
permissive
<?php /** * sh404SEF - SEO extension for Joomla! * * @author Yannick Gaultier * @copyright (c) Yannick Gaultier - Weeblr llc - 2015 * @package sh404SEF * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @version 4.7.2.3180 * @date 2015-12-23 */ // Security check to ensure this file ...
true