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
8d8c27056d874b80d683e81b0a9a9486983b554d
PHP
jfortunato/image-optimizer
/src/OptimizeImages.php
UTF-8
10,184
2.6875
3
[]
no_license
<?php namespace Jfortunato\ImageOptimizer; use Assert\Assertion; use Assert\AssertionFailedException; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Helper\HelperSet; use Symfony\Component\Console\Helper\QuestionHelper; use Symfony\Component\Console\Input\InputInterface; use Symfony\Comp...
true
12f70d7913fd14de27fbefa218f4728f64ef287d
PHP
kevinb1989/topappninjadev
/app/TopAppNinja/Repositories/ProfessionalRepository.php
UTF-8
4,370
2.65625
3
[ "MIT" ]
permissive
<?php namespace TopAppNinja\Repositories; use TopAppNinja\Entities\Professional; class ProfessionalRepository implements ProfessionalRepositoryInterface{ public function __construct(Professional $professional){ $this -> professional = $professional; } public function getAllProfessionals(){ return $this -> pro...
true
208bc7f8ace9d28c75859089035f17e711360b9c
PHP
nyanmyohtet-scm/laravel-react
/laravel/app/Http/Controllers/Api/User/UserController.php
UTF-8
3,937
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api\User; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use App\Models\User; use App\Contracts\Services\User\UserServiceInterface; class UserController extends Controller { /** * Post Service */ private $u...
true
65a5b8219755f9613b83b983d051b09bbc12109d
PHP
Arun974412/Arun-H-Akshi-T-R
/Server.php
UTF-8
1,347
2.921875
3
[]
no_license
<?php $username =""; $email =""; $error =array(); //connect to tha database $db = mysqli_connect("localhost","root","","registration"); //if the registration button is clicked if(isset($POST["register"])){ $username = mysql_real_escape_string($_POST["username"]); $email = mysql_re...
true
1cf603332e7c12104dcfded879ba03ea42656e84
PHP
global4netltd/reactstorefront-ms-catalog-magento2
/src/Helper/FieldHelperInterface.php
UTF-8
649
2.515625
3
[ "MIT" ]
permissive
<?php namespace G4NReact\MsCatalogMagento2\Helper; /** * Interface FieldHelperInterface * @package G4NReact\MsCatalogMagento2\Helper */ interface FieldHelperInterface { /** * @param string $columnName * * @return string */ public function getFieldTypeByColumnName(string $columnName) : s...
true
3bd6f699e6257f6e2f8db42bacc864eecc403d1d
PHP
oshit-sd/UNNAYAN.com
/application/models/Admin_model.php
UTF-8
5,041
2.546875
3
[]
no_license
<?php /** * */ class Admin_model extends CI_Model { /*===================================*/ public function admin_login_data_check() { // echo "no Error"; $name = $this->input->post('username'); $pass = md5($this->input->post('password')); $attr = array( 'user_name' => $name, 'password' => $pass, ...
true
211153a917912d3dba8f57f31db316a321e4ff4b
PHP
t1gor/Robots.txt-Parser-Class
/source/Parser/DirectiveProcessors/AbstractDirectiveProcessor.php
UTF-8
629
2.75
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace t1gor\RobotsTxtParser\Parser\DirectiveProcessors; use Psr\Log\LoggerInterface; use t1gor\RobotsTxtParser\Directive; use t1gor\RobotsTxtParser\LogsIfAvailableTrait; abstract class AbstractDirectiveProcessor implements DirectiveProcessorInterface { use LogsIfAvailableTrait; ...
true
67bd2e2b3b1a0ce496e5bcc141c39cdaad37629a
PHP
gbrg15/phpframework
/core/Database/Connection.php
UTF-8
385
2.546875
3
[]
no_license
<?php /** * */ class Connection { public static function make($config) { try { //return new PDO('mysql:host=127.0.0.1;dbname=testframework','root','sslmnf.0'); return new PDO($config['connection'].';dbname='.$config['dbname'], $config['username'],$config['password'],$config['options']); } catch...
true
90a5c97ea863d812371619d65b661d3d01dcfed0
PHP
sanjibsinha/myframework
/src/controllers/Controller.php
UTF-8
849
2.6875
3
[]
no_license
<?php namespace Controller; use Model\User as User; use Kernel\View as View; use Layout\Header as Header; use Layout\Footer as Footer; use Database\UserRepositoryInterface as UserRepositoryInterface; class Controller implements UserRepositoryInterface { protected $id; protected $name; protected $data = []...
true
50bbe35719f2da40ee672b2e79620f34712489a4
PHP
fm-labs/flowphp
/tests/TestCase/App/AppRoutingTest.php
UTF-8
6,180
2.515625
3
[]
no_license
<?php namespace Flow\Test\App; use Flow\App\App; use Flow\Http\Environment; use Flow\Http\Message\Stream\StringStream; use Flow\Http\Message\Request; use Flow\Http\Message\Response; use Flow\Http\Server\ServerRequest; class AppRoutingTest extends \PHPUnit\Framework\TestCase { /** * @var Environment */ ...
true
bbcf3af7d769f1f9db7f42a4d87a2ecbfa94251a
PHP
sush33king/HRMS
/WSLSK/Webdevoplment/login_process.php
UTF-8
1,311
2.71875
3
[]
no_license
<?php include ('process.php'); include ('Sanitization.php'); if(isset($_POST['Login'])) { $username = $_POST['Username']; $password = $_POST['Password']; if ($username === NULL) { echo "Please enter username"; } elseif ($password === NULL) { ...
true
ad5842f342b6116a480075e0f734801c00284437
PHP
SIWECOS/siwecos-business-layer
/app/Console/Commands/TriggerDailyScansCommand.php
UTF-8
1,691
2.703125
3
[]
no_license
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use App\Domain; class TriggerDailyScansCommand extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'siwecos:trigger-daily-scans {-...
true
86bf72a850b4995cec38e6946e2ca53882b2aed5
PHP
rheinchester/Simple-developer
/assets/database/User.php
UTF-8
2,654
3.109375
3
[ "MIT" ]
permissive
<?php include_once ('Model.php'); class User extends Model{ public $user_id;// public $username;// public $email;// public $password;// public $status; public $articles; public $firstname; public $lastname; public $twitter_handle; public $facebook_username; public stat...
true
03078cd4738a4b45c72ea16b0c86ef09c0b86d8f
PHP
mitasov-ra/php-sql-processing
/SqlProcessing/Exceptions/SqlException.php
UTF-8
598
3.015625
3
[]
no_license
<?php namespace SqlProcessing\Exceptions; use Exception; /** * @author Roman Mitasov <metas_roman@mail.ru> */ class SqlException extends SqlProcessingException { public function __construct( $sql, Exception $previous = null ) { $message = "Возникло исключение при попытке выполнить з...
true
443de03d8a186b4729f16e861025c6856191cfc5
PHP
Dragomeat/howdoo-et
/tests/Domain/DocumentTest.php
UTF-8
2,278
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Tests\Domain; use DateTimeImmutable; use App\Domain\Document; use PHPUnit\Framework\TestCase; use App\Domain\DocumentCannotBeEdited; use function Ramsey\Uuid\v4 as uuid; class DocumentTest extends TestCase { private function createDocument(string $status = Document::...
true
7a2fbbb266632bd643e6b72262f1b1c5adbf4ea0
PHP
jameswatts/cake-toolkit
/Lib/CtkElement.php
UTF-8
11,393
2.78125
3
[ "MIT" ]
permissive
<?php /** * Node object for an Element template. * * PHP 5 * * Cake Toolkit (http://caketoolkit.org) * Copyright 2012, James Watts (http://github.com/jameswatts) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2012, James Watt...
true
64f57f28e353524a2d421fdb9c611356a30abe06
PHP
liuyuanxiang/design_patterns
/structure/Singleton/Singleton.php
UTF-8
719
3.015625
3
[]
no_license
<?php class Mysql{ //该属性用来保存实例 private static $conn; //私有构造方法,防止创建对象 private function __construct() { self::$conn = mysqli_connect('127.0.0.1','root','password','mysql'); } //获取该类实例的静态方法 public static function getInstance(){ if (!(self::$conn instanceof self)){ ...
true
5acf5b7ebcfc9a73b4160cc7fc0475b3c0b8e431
PHP
tomaszlada/Projekt
/src/AppBundle/Controller/FileController.php
UTF-8
2,173
2.84375
3
[]
no_license
<?php namespace AppBundle\Controller; use Symfony\Component\Filesystem\Filesystem; use AppBundle\Controller\CalcActionController; use AppBundle\Entity\CalcEntity; use Symfony\Component\Validator\Constraints\DateTime; /** * Description of FileController * * @author tomasz_lada */ class FileController { publi...
true
1878c2ce7ffcd3666982dd8122a545b3476a061b
PHP
basakest/-Google-search-engine-clone
/App/Crawl.php
UTF-8
6,597
2.75
3
[]
no_license
<?php namespace App; use App\DomDocumentParser; use App\Models\Crawl as Crawl_db; use app\Config; class Crawl { /** * 要爬取的网址 * * @var string */ public $startUrl = "https://www.apple.com/"; /** * 记录已经被爬取的网址的数组 * * @var array */ private $alreadyCrawled = array()...
true
a604454b010ab8aa3383c553ba66936b97c6f747
PHP
davidhsianturi/laravel-compass
/src/Console/InstallCommand.php
UTF-8
881
2.609375
3
[ "MIT" ]
permissive
<?php namespace Davidhsianturi\Compass\Console; use Illuminate\Console\Command; class InstallCommand extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'compass:install'; /** * The console command description. * ...
true
4b1c4d12655bd395a1364c026e51e0a22e80c4be
PHP
ice-devel/formation-mi2-js-php-2021
/2-php/7-exo-mvc/src/Model/GameManager.php
UTF-8
1,171
3.140625
3
[]
no_license
<?php namespace App\Model; use PDO; class GameManager { private $pdo; public function __construct($pdo) { $this->pdo = $pdo; } // hydrater l'entité avec des données de bdd public function getAll() { $query = "SELECT * FROM game"; $statement = $this->pdo->query($query)...
true
820e9f69f751fb085d0ba7ffa25a5a2b57a8a9ff
PHP
ruween/double-submit-cookies-csrf-implementation
/loginvalidation.php
UTF-8
2,067
2.8125
3
[]
no_license
<?php $user = "root"; //hard coded password and username is 'root' $pass = "root"; session_start(); $username = $_POST['username']; $password = ""; $loginToken = ""; $message = ""; // print_r($_POST); if (isset($_SESSION['logintoken'])){ //passing the token created for the loggin session in t...
true
43b3ba6d33a7d68c9476cef56d782c1666d9554f
PHP
Jb-Initio/Pronos
/App/Controllers/MatchController.php
UTF-8
5,100
2.625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: hp * Date: 20/09/2015 * Time: 00:01 */ namespace App\Controllers; use App\Models\FootBallAPI; use App\Models\User; use Silex\Application; use Silex\ControllerCollection; use Silex\ControllerProviderInterface; class MatchController implements ControllerProviderInterface {...
true
3c63def43d2996e94573fd24f2e1af52c607d639
PHP
interglobalvision/moxonarchitects-co-uk
/partials/seo.php
UTF-8
2,182
2.625
3
[ "Apache-2.0" ]
permissive
<?php $twitter = IGV_get_option('_igv_socialmedia_twitter'); if ($twitter) { echo '<meta name="twitter:site" value="' . $twitter . '">'; } $fbAppId = IGV_get_option('_igv_og_fb_app_id'); if ($fbAppId) { echo '<meta name="fb:app_id" value="' . $fbAppId . '">'; } // Getting values from current post [should this b...
true
d9437cf4618669e0af7f09cb3df6df5253ae3397
PHP
oleg-melnic/proxify
/app/Entity/Course/ChapterState.php
UTF-8
1,234
3.078125
3
[ "MIT" ]
permissive
<?php namespace App\Entity\Course; use App\Entity\Exception\InvalidArgument; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Embeddable */ class ChapterState { const ACTIVE = 1; const INACTIVE = 0; /** * @var integer * * @ORM\Column(name="state", type="integer", nullable=false) */ ...
true
54cab5abed09d83e7e4a0eee18e87dd2872bf18b
PHP
sugarfixx/geolocation-poc
/lib/Datacenter.php
UTF-8
1,655
3.171875
3
[]
no_license
<?php use Location; use Distance; class Datacenter { public $location; public $datacenters; public $orderedList; public $closestDataCenter; public function __construct($ip) { $this->location = new Location($ip); $this->loadDatacenters(); $this->setOrderedList(); ...
true
a0c4cdfa0d35ec7fd09b84155e11444bd67fca08
PHP
TrainingCoders4Africa/Quickcollect
/quickcollect-web/formulaire/liste_resultat.php
WINDOWS-1252
3,358
2.875
3
[]
no_license
<?php /** * @author QuickCollect * @copyright 2013 */ include_once 'connec.inc.php'; include_once 'requetes.php'; include_once 'PHPExcel/Classes/PHPExcel.php'; include_once 'PHPExcel/Classes/PHPExcel/Writer/Excel2007.php'; //recuperation de la donnes envoye en parametre $code = isset($_GET['code'])?$_GET...
true
d38c5869cacb5b0ab5307b304163a8cf2091820e
PHP
MaggieMarchena/Practica_Web2
/db/models/TasksModel.php
UTF-8
822
2.984375
3
[]
no_license
<?php class TasksModel extends Model{ function getTasks(){ $query = $this->db->prepare("select * from task"); $query->execute(); return $query->fetchAll(PDO::FETCH_ASSOC); } function saveTask($title, $description, $done){ $query = $this->db->prepare("INSERT INTO task(title, desc...
true
c2146f20bc406f654708999785ebe223574d79fa
PHP
ivanmalyi/TelegramBot
/src/System/Util/Validation/CardYear.php
UTF-8
641
3.0625
3
[]
no_license
<?php declare(strict_types=1); namespace System\Util\Validation; /** * Class CardYear * @package System\Util\Validation */ class CardYear implements ValidatorInterface { /** * Returns validation result according validator rules * * @param mixed $value * @param array $mixed * @return V...
true
519b265ac047f04c658c864ec78c35aecb2394e9
PHP
stubbles/stubbles-1.x
/src/main/php/net/stubbles/peer/http/stubHTTPRequest.php
UTF-8
5,718
3.046875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Class for sending a HTTP request. * * @package stubbles * @subpackage peer_http * @version $Id: stubHTTPRequest.php 2256 2009-06-23 22:07:09Z mikey $ */ stubClassLoader::load('net::stubbles::peer::stubHeaderList', 'net::stubbles::peer::stubConnectionException', ...
true
38d332888aaa4277cb04749fdcc795d08db0b927
PHP
tariqmth/skylink-sdk
/src/Catalogue/Products/MatrixPolicyMapper.php
UTF-8
1,819
2.625
3
[]
no_license
<?php namespace RetailExpress\SkyLink\Sdk\Catalogue\Products; use InvalidArgumentException; use RetailExpress\SkyLink\Sdk\Catalogue\Attributes\AttributeCode; use RetailExpress\SkyLink\Sdk\Catalogue\Attributes\AttributeOption; class MatrixPolicyMapper { private $matrixPolicies = []; public function withPolic...
true
531e4d5e03aad9a58e5eeebddb9951f073b0259b
PHP
minhtuancn/exercise_mvc
/Core/Navigator.php
UTF-8
2,821
2.84375
3
[]
no_license
<?php /* * Description: Display simple single digits of the current weather. * Date: 02/06/2009 * * Author: Paul Archer <ptarcher@gmail.com> * * Copyright (C) 2009 Paul Archer * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero Gene...
true
634285953904e403b149d627f23c84ecbbf8a0cf
PHP
Dima157/autostop
/application/models/Model_Chat.php
UTF-8
1,061
2.875
3
[]
no_license
<?php class Model_Chat extends Model{ private $message, $user; function __construct($mess = null, $user = null) { parent::__construct(); $this->user = $user; $this->message = $mess; } function add($mess, $id, $id_group){ $mass = [ 'message' => $mess, ...
true
3e1c842cc9c349c770450d0c7c376da73c4458cf
PHP
kava-iweb/imaginweb.sms
/bitrix/imaginweb.sms/classes/iweb/Bitcall/Client/Core/Common/ParamsFactory.php
UTF-8
4,279
2.578125
3
[]
no_license
<?php /** * Created by http://bitcall.ru * User: Kurdikov P.S. * Date: 17.05.2014 */ namespace Bitcall\Client\Core\Common; use Bitcall\Client\Models\Common\IvrCallParameter; use Bitcall\Client\Models\Requests\BaseCallRequest; use Bitcall\Client\Models\Requests\BaseRequest; use Bitcall\Client\Models\Requests\Ivr...
true
ad90961f06d68f00e6af7e1a2b59997c5e4798d5
PHP
hoevelmanns/coding-standard
/src/main/php/CommandLine/ToolAdapters/PHPParallelLintAdapter.php
UTF-8
1,958
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Zooroyal\CodingStandard\CommandLine\ToolAdapters; use Symfony\Component\Console\Output\OutputInterface; use Zooroyal\CodingStandard\CommandLine\Library\Environment; use Zooroyal\CodingStandard\CommandLine\Library\GenericCommandRunner; class PHPParallelLintAdapter extends AbstractBlackAndWhitelistAdap...
true
58a78238909ceec20915d547335543b1ee3522bd
PHP
arbor-education/sis-sdk-php
/src/Arbor/Model/AcademicTeachingHour.php
UTF-8
3,043
2.765625
3
[]
no_license
<?php namespace Arbor\Model; use Arbor\Resource\ResourceType; use Arbor\Query\Query; use Arbor\Model\ModelBase; class AcademicTeachingHour extends ModelBase { public const EFFECTIVE_DATE = 'effectiveDate'; public const END_DATE = 'endDate'; public const START_TIME = 'startTime'; public const END_T...
true
b1b2528bbff9cf3c9b1054a78f23b8d7f8b3b56a
PHP
Abdul-SJ/Mysql-Tables-Synchronizer
/classes/Backup.php
UTF-8
1,810
3
3
[]
no_license
<?php class Backup { private $db; private $dataFile; function __construct() { $this->dataFile = OUTPUT_FILE; $this->db = new Database(SOURCE_DB_HOST, SOURCE_DB_USER, SOURCE_DB_PASSWORD, SOURCE_DB_NAME); } public function create($tables = '') { $tables = explode...
true
3af4cc8ee33cecd26ba1131395389c27977f9d70
PHP
EarthlingInteractive/PHPStorage
/lib/EarthIT/Storage/InternalValue.php
UTF-8
347
2.703125
3
[]
no_license
<?php /** * Can be passed as field value to inserts * to represent a value already in 'DB internal' form * (or a string close enough to be converted by the driver). */ class EarthIT_Storage_InternalValue { protected $value; public function __construct($v) { $this->value = $v; } public function getValue() { ...
true
ca80930c1031ab3efcb1cd795918ec422c7aeb3e
PHP
Reinis/rock-paper-scissors
/app/View.php
UTF-8
564
2.609375
3
[]
no_license
<?php namespace RPS; class View { public function header(): void { require_once __DIR__ . '/Views/header.php'; } public function footer(): void { require_once __DIR__ . '/Views/footer.php'; } public function home(Game $game): void { require_once __DIR__ . '/Vi...
true
1243061ab0cedf95a8d5bf2f17d3cc7613b2fbf6
PHP
Royal-Technology/wp2static
/src/BaseHrefProcessor.php
UTF-8
2,023
3.078125
3
[ "Unlicense" ]
permissive
<?php namespace WP2Static; use DOMDocument; use DOMNode; use DOMElement; class BaseHrefProcessor { private $base_href; private $allow_offline_usage; public function __construct( string $base_href, bool $allow_offline_usage ) { $this->base_href = $base_href; $this->al...
true
b7d5ff290b6daa4980f876003ef9e990e15e223b
PHP
johnrich85/pixelartmarket
/packages/johnrich85/EloquentQueryModifier/src/Modifiers/FilterModifier.php
UTF-8
2,301
2.9375
3
[]
no_license
<?php namespace Johnrich85\EloquentQueryModifier\Modifiers; class FilterModifier extends BaseModifier { /** * The type of filter that will be applied. * @var string */ protected $filterType = 'where'; /** * @return \Illuminate\Database\Eloquent\Builder */ public function modi...
true
5d20cdd9c39d4574d8e616b530e6eef94fd69ccc
PHP
jdanielrodriguez/Sigefcloud
/php/paypalClassic/invoice-sdk-php-master/lib/PayPal/Types/PT/MarkInvoiceAsPaidRequest.php
UTF-8
831
2.734375
3
[ "LicenseRef-scancode-paypal-sdk-2013-2016" ]
permissive
<?php namespace PayPal\Types\PT; use PayPal\Core\PPMessage; /** * The request object for MarkInvoiceAsPaid. */ class MarkInvoiceAsPaidRequest extends PPMessage { /** * * @access public * @var PayPal\Types\Common\RequestEnvelope */ public $requestEnvelope; /** * ID of the invoi...
true
936922e71988b37f9ebbb0ee5e3271e921cd3d7a
PHP
iamrkulabhi/wp-customize-gallley
/classes/class-options.php
UTF-8
2,786
2.515625
3
[]
no_license
<?php class WPCG_Option_Page { public function __construct() { add_action( 'admin_init', array( $this, 'wpcg_plugin_register_setting' ) ); add_action( 'admin_menu', array( $this, 'wpcg_plugin_register_options_page' ) ); add_action( 'admin_enqueue_scripts', array($this, 'wpcg_plugin_load_style_script') ); } ...
true
852541c75d9cf09441510826297ded512b53afdc
PHP
solehati8085/pwl-rumah-sakit-kelomppok-13
/pages/v_tjam.php
UTF-8
434
2.515625
3
[]
no_license
<?php require_once('libraries/DBClass.php'); require_once('libraries/m_jadwal.php'); $jadwal = new jadwal(); if (isset($_POST['kirim'])) { $tambah = $jadwal->createjam($_POST['in_nama']); echo "data jadwal berhasil ditambahkan <br /> <br />"; } ?> <h1>Tambah Data jam</h1> <form action="tjam.php" method="POST"> Nama...
true
034679182e179f00cfc2e8a283a3eb39e132f92c
PHP
sorceresslulu/php-leagueoflegends-api
/src/LolAPI/Util/GenericRequests/GenericTeamIdsRequest.php
UTF-8
1,341
3.171875
3
[ "MIT" ]
permissive
<?php namespace LolAPI\Util\GenericRequests; use LolAPI\APIKey; use LolAPI\GameConstants\RegionalEndpoint\RegionalEndpointInterface; class GenericTeamIdsRequest { /** * API Keys * @var APIKey */ private $apiKey; /** * Regional endpoint * @var RegionalEndpointInterface */ ...
true
fbbd3766f02dc9916735e6262e8e98618f2bf72a
PHP
RafaelIoT/Pandemic
/codeigniter/application/controllers/Webservice.php
UTF-8
6,232
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Webservice extends CI_Controller { function __construct() { parent::__construct(); $this->load->helper("url"); $this->load->database(); $this->load->model('Game'); $this->load->model("Pandemic"); } public function remove_cube() { ...
true
292ab4b557be531cc784ad53fe295d7dfe15cc17
PHP
BYUI-Web/speeches-theme
/code/partials/transcript_discuss.php
UTF-8
2,365
2.59375
3
[]
no_license
<?php $title = get_the_title(); //we need to build the speaker string $presenters = explode(", ", $presenters); //get the presenters name $speaker = array(); $numSpeakers = count($presenters); for ($i = 0; $i < $numSpeakers; $i++) { $speaker[$i]['name'] = get_the_title($presenters[$i]); $speaker[$i][...
true
8cdb8aa31ce08f35de1cf1de14b94b54d58277be
PHP
jiya2124/Final-ToDo-list1
/update_todolist.php
UTF-8
3,678
2.875
3
[]
no_license
<?php session_start(); ?> <?php require_once('constant.php'); ?> <?php require_once('functions.php'); ?> <?php // *** TO DO LIST *** // $task =[ //'name' => task that user will enter, //'status' => by default 1 // 1 = incomplete , 2 = done ]; $list = [] ; // ** adding the task ** // if(isse...
true
94d395f3e10bb6a9a68c9295c4e704669a2d0903
PHP
gallopelado/taller3
/controlador/CandidatoControlador.php
UTF-8
975
2.546875
3
[]
no_license
<?php include '../../datos/CandidatoDAO.php'; class CandidatoControlador { public function getListaCandidatos() { return CandidatoDAO::getListaCandidatos(); } public function getListaCandidatosById($idcandidato) { return CandidatoDAO::getListaCandidatosById($idcandidato); } public funct...
true
fef4fb81a0982974fc88cafbe220557fc2fe9c5f
PHP
hawejdene1/webProject
/includes/api/CalculManagementAPI.php
UTF-8
1,401
3.1875
3
[]
no_license
<?php require_once dirname(dirname(dirname(__FILE__))) . "/src/StationModule/DBOperations.php"; require_once dirname(dirname(dirname(__FILE__))) . "/src/StationModule/CalculOperation.php"; require_once dirname(dirname(dirname(__FILE__))) . "/src/StationModule/Utility.php"; /** * This file is what you will use for c...
true
a32be4ffed8ef80fa5380852ea5e934431d524bd
PHP
CapralAmerica/diplom
/src/AppBundle/Repository/UserRepository.php
UTF-8
632
2.6875
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Repository; use Doctrine\ORM\EntityRepository; class UserRepository extends EntityRepository { public function getUsersWhichBirthdayIsToday() { $date = new \DateTime(); $today = $date->format('Y-m-d'); $em = $this->getEntityManager(); $sql = 'SELE...
true
c52b30b79a3217f5f2471b5bbaf5b9f40196bcdb
PHP
intelligenia/lulo
/query/query.class.php
UTF-8
21,864
2.90625
3
[ "MIT" ]
permissive
<?php /** * Query abstraction for use in LuloModel. * @author Diego J. Romero */ namespace lulo\query; use \lulo\query\Aggregation as L_AGREG ; use \lulo\query\TupleValue as L_V ; /** * Query creator for LuloModel objects. * */ class Query implements \ArrayAccess, \Iterator, \Countable { /** SQL templates paren...
true
6d0638f41a3a55593e1963ea37faccfc91f27e21
PHP
vl-lapikov/deadcode
/example.php
UTF-8
702
3.4375
3
[]
no_license
<?php class ExampleClass { public function exampleMethod() { echo __FUNCTION__ . PHP_EOL; echo "Example inner code" . PHP_EOL; return true; } public function exampleDeadMethod() { echo __FUNCTION__ . PHP_EOL; echo "Example dead inner code" . PHP_EOL; ...
true
0f9a89e174e3c07a2c88117082cb9a820a918405
PHP
Gumtrip/milesolar
/app/Observers/Product/ProductImageObserver.php
UTF-8
1,459
2.515625
3
[]
no_license
<?php namespace App\Observers\Product; use App\Jobs\ImageHandle\DeleteImages; use App\Jobs\ImageHandle\CompressImg; use App\Models\Product\ProductImage; class ProductImageObserver { /** * Handle the product image "created" event. * * @param \App\Models\Product\ProductImage $productImage * @r...
true
ff07dafd103975792b90f941365f57e68017827c
PHP
dianalaw/homework_php
/hw7(cart)/functions.php
UTF-8
3,170
2.734375
3
[]
no_license
<?php function getProducts() { $ch = curl_init(); $options = [ CURLOPT_URL => "https://makeup.p.rapidapi.com/products.json?product_category=lipstick&brand=colourpop", CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ "x-rapidapi-host: makeup.p.rapidapi.com", ...
true
8c2196fa1adde5485562a92f512c1ceff2b3dbdb
PHP
vceratti/take-home-test
/tests/Unit/Domain/Product/ProductAggregateTest.php
UTF-8
2,756
2.5625
3
[]
no_license
<?php namespace Tests\Unit\Domain\Product; use Tests\DefaultTestCase; use TakeHomeTest\Domain\Product\DateTime; use TakeHomeTest\Domain\Product\ProductEntity; use TakeHomeTest\Domain\Product\ProductAggregate; use TakeHomeTest\Domain\Product\ProductFilter; class ProductAggregateTest extends DefaultTestCase { /** ...
true
1ccab48b6346ad79dc8a172d1288e9ad42cc527d
PHP
Dheia/broadcast
/components/RisingStarsScore.php
UTF-8
1,399
2.625
3
[]
no_license
<?php namespace Cleanse\Broadcast\Components; use Cms\Classes\ComponentBase; use Cleanse\Broadcast\Models\Event; use Cleanse\Broadcast\Models\Match; class RisingStarsScore extends ComponentBase { public $standings; public function componentDetails() { return [ 'name' => 'Broa...
true
7e7627a3d3216102a70734d109b4bbcccd2bd935
PHP
cTahirih/z
/backend/module/AdminAuth2/src/Provider/ListProviderTrait.php
UTF-8
775
2.625
3
[]
no_license
<?php /** * This file is part of AdminAuth2 Zend Framework 2 module. */ namespace AdminAuth2\Provider; /** * @package AdminAuth2 * @version v1.0.0 * @author Jaime Wong <jaime.wong@nodosdigital.pe> */ trait ListProviderTrait { /** * @var int */ protected $pageNumber = 1; /** ...
true
c0098b40853202d1c185db588dcec2e77f889978
PHP
jewelcse/login-registeration-in-php
/registration.php
UTF-8
3,817
2.546875
3
[]
no_license
<?php include_once 'db.php'; if(isset($_POST['register_btn'])){ //echo 'working...'; $firstname = $_POST['fname']; $lastname = $_POST['lname']; $username = $_POST['uname']; $email = $_POST['email']; $password = $_POST['pass']; //echo $firstname." ".$lastname." ".$username." ".$email." "...
true
49d0efb90ef86f65e9aec3a19b58320adcf35a14
PHP
margina757/nCoV_monitoring
/common/sms/TxSms.php
UTF-8
3,174
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\sms; class TxSms extends SmsAbstract { /** * @var string */ protected $apiUri = 'https://yun.tim.qq.com/v5/tlssmssvr/sendsms'; protected $voiceUri = 'https://cloud.tim.qq.com/v5/tlsvoicesvr/sendvoice'; protected $txAppId; protected $txAppKey; protected $txTy...
true
dba040c6eaf8c2170eca29534bdb1fe1f5ac64c5
PHP
zhuzhichao/laravel-advanced-search
/tests/Unit/WhenTest.php
UTF-8
1,356
2.59375
3
[ "MIT" ]
permissive
<?php namespace Tests\Unit; use PHPUnit\Framework\TestCase; use Zhuzhichao\LaravelAdvancedSearch\When; class WhenTest extends TestCase { private $successString = 'This is success string'; private $failString = 'This is fail string'; public function test_fail() { $when = When::make(false)->su...
true
81f2c50ad39491d5fde4563cf9a953b3c5a681cb
PHP
natepage/toolcraft
/src/Interfaces/ConfigurationInterface.php
UTF-8
1,955
2.96875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace NatePage\ToolCraft\Interfaces; interface ConfigurationInterface { /** * Add configuration option. * * @param \NatePage\ToolCraft\Interfaces\ConfigurationOptionInterface $option * @param null|string $prefix * * @return \NatePage\ToolCraft\Inter...
true
be18a4d9f46fe017f618666c188342ee33b5737a
PHP
EvgeniyKozenok/lara-test
/app/Listeners/ApiRequestStatHit.php
UTF-8
529
2.515625
3
[]
no_license
<?php namespace App\Listeners; use App\Events\ApiRequestHit; class ApiRequestStatHit { /** * Handle the event. * * @param ApiRequestHit $event * @return void */ public function handle(ApiRequestHit $event) { $dbPrefix = config()->get('database.redis.options.prefix'); ...
true
fe358575d17e73904d0a06721a34d4eecc1d3f91
PHP
Amstutz/UIHookDemo
/classes/class.ilUIHookDemoPlugin.php
UTF-8
3,529
2.5625
3
[]
no_license
<?php /* Copyright (c) 2019 Amstutz Timon <timon.amstutz@ilub.unibe.ch> Extended GPL, see docs/LICENSE */ require_once __DIR__ . "/../vendor/autoload.php"; use ILIAS\Plugins\UIHookDemo\MainMenu\ilMMRoleBasedProvider; use ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticPluginMainMenuProvider; use ILIAS\Plugin...
true
d097e3062b0a45a78b5da409bcf6fda28effa6f5
PHP
matoH12/MRTG-admin-DASHBOARD
/admin/edit_swzoznam.php
UTF-8
3,461
2.546875
3
[]
no_license
<?php session_start(); require_once './config/config.php'; require_once 'includes/auth_validate.php'; // Sanitize if you want $customer_id = filter_input(INPUT_GET, 'customer_id', FILTER_VALIDATE_INT); $operation = filter_input(INPUT_GET, 'operation',FILTER_SANITIZE_STRING); ($operation == 'edit') ? $edit = true : $...
true
45b3c85a8c9582238b7091a71f0557e3e450c85e
PHP
jetstreamlabs/lotus
/src/Lotus/Responders/Vue.php
UTF-8
1,197
2.546875
3
[ "MIT" ]
permissive
<?php /* * Lotus Package for ADR, Inertia, Snowflake support in Laravel ^8.* * * Copyright (c) Jetstream Labs, LLC. - All Rights Reserved. * Licensed under the MIT License (MIT) - https://opensource.org/licenses/MIT * Maintained by secondmanveran - Queen Creek, AZ USA */ namespace Jetlabs\Lotus\Responders; use...
true
744a4a11b60da2499529f05e8faaf10e5661bd26
PHP
jzxyouok/admin_xwc
/framework/yii2/vendor/org/sms/SmsFactory.php
UTF-8
441
2.703125
3
[]
no_license
<?php /* * * SMS 工厂类 * */ class SmsFactory { static public $sms_obj; public function __construct() { } public static function getInstance() { return '323'; if (empty(self::$sms_obj)) { require(__DIR__.'/SmsMandao.php'); self::$sms_obj = new SmsM...
true
9a247b8ff8c7c08004ce060313de9b36d69633d3
PHP
RafahCSilva/estudos-php
/SoN03_DesignPatterns_ErikFig/src/Pt1Intro/QueryBuilder/Strategy.php
UTF-8
257
2.671875
3
[]
no_license
<?php declare(strict_types=1); namespace RCS\DesignPatterns\Pt1Intro\QueryBuilder; interface Strategy { public function table(string $table): Strategy; public function select($columns = '*'): Strategy; public function getQuery(): string; }
true
2677a436f740df329674468b8f7e995ab7c9d911
PHP
komalnigam63/Demo
/export_data.php
UTF-8
2,152
2.78125
3
[]
no_license
<?php include 'conn.php'; if(isset($_POST['save'])){ $name=$_POST['name']; $skills=$_POST[' skills']; $address=$_POST['address']; $gender=$_POST['gender']; $designation=$_POST['designation']; $age=$_POST['age']; $image=$_POST['image']; $sql = "INSERT INTO developers (id, name, skills, address, gender, de...
true
a3d294bdcf49285d6022a67e54d96e8277e4997c
PHP
skyformat99/Web-managed-Library-Database-System--MySQL-
/books.php
UTF-8
1,270
2.828125
3
[]
no_license
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CSCE813 Project 2 - Books with number of physicalcopies.php</title> </head> <body> <?php $con = mysql_connect('cse.unl.edu', 'jqian', 'e_G95@'); if(!$con) { die("Could not connect:" . mysql_error()); } mysql_select_db('jqian', $con); // DISPLA...
true
c60ce73cb3d092c99a8ee3d13c8a2d7254aece2b
PHP
alex19pov31/bitrix-cli
/src/NewSectionCommand.php
UTF-8
780
2.59375
3
[]
no_license
<?php namespace Alex19pov31\BitrixCli; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class NewSectionCommand extends Command { protected function configure...
true
9de1ac3ca74e2abc1e3bf7cbabd3efc5c783652c
PHP
jkbennemann/webauthn-php
/src/AuthenticatorSelection.php
UTF-8
626
2.671875
3
[ "MIT" ]
permissive
<?php namespace Jkbennemann\Webauthn; class AuthenticatorSelection { //public string $residentKeyType; public ?string $authenticatorAttachment; public function __construct(public string $userVerification, public bool $requiresResidentKey, ?bool $crossPlatform = null) { // if ($requiresResident...
true
0c358ee07d3ad54d06590cf78f14b289521ef9c6
PHP
dmatocinos/remuneration
/main/app/Payment/Payment/StripePayment.php
UTF-8
1,034
2.765625
3
[ "MIT" ]
permissive
<?php namespace Payment\Payment; use Stripe; use Stripe_Charge; use Stripe_Customer; use Stripe_InvalidRequestError; use Stripe_CardError; use Config; class StripePayment implements PaymentInterface { public function __construct() { Stripe::setApiKey(Config::get('stripe.secret_key')); } pu...
true
dcfb97148902c03808b3911f257642c378c1aaef
PHP
UlisesMercer9/sysPediatriaEstadisticas-v1
/app/Concepto.php
UTF-8
1,078
2.609375
3
[ "MIT" ]
permissive
<?php namespace Pediatra; use DB; use Carbon\Carbon; use Illuminate\Database\Eloquent\Model; class Concepto extends Model { protected $table = "conceptos"; protected $fillable = ['aplicacion_fecha_test','fecha_aplicacion_test']; protected $dates = ['created_at', 'updated_at','aplicacion_fecha_tes...
true
71530bdc8109dfee5b4255ffab41380e304a8e1e
PHP
philk111/Email
/api.php
UTF-8
12,167
2.6875
3
[]
no_license
<?php session_cache_limiter(false); require_once '../vendor/autoload.php'; require_once 'db.php'; use Monolog\Logger; use Monolog\Handler\StreamHandler; $log = new Logger('main'); $log->pushHandler(new StreamHandler('logs/main.log', Logger::DEBUG)); $log->pushHandler(new StreamHandler('logs/main.log', L...
true
623249305348c05b2f51cd7e3682c719a75901dd
PHP
KarelWintersky/gatekeeper
/engine/Units/AllotmentUnit.php
UTF-8
3,905
2.984375
3
[]
no_license
<?php namespace Gatehouse\Units; use Gatehouse\AbstractUnit; use function Arris\DBC; class AllotmentUnit extends AbstractUnit { /** * Загружает список всех участков * @return array */ public function getAll() { $query = "SELECT * FROM allotments ORDER BY `id_pipeline`, `name` "; /...
true
f58a5b45061e08eb9c783942d17a0af18e98a393
PHP
yettey74/ib20
/build-json.php
UTF-8
7,880
2.734375
3
[]
no_license
<?php // Get JSON file and decode contents into PHP arrays/values $jsonFile = '15062021-products.json'; $jsonData = json_decode(file_get_contents( $jsonFile ), true ); $jsonProduct = fopen("products.json", "w") or die("Unable to open file!");'products.json'; $array = [['items'=>'']]; $json_string = '{"items": ['; $json...
true
7dfea47373ccf44b90367068d563ff33015f8bce
PHP
skavt/RRRT
/src/H2/Router.php
UTF-8
479
2.546875
3
[]
no_license
<?php namespace src\H2; use controller; //include_once 'Controller.php'; class Router { private $request; private $controller; public function __construct($request) { $this->request = $request; $this->controller = new Controller(); } public function get($route, $method) { $uri = rtrim($route, "/" ); ...
true
1bc480168facbebd9221512055649f858395a0a7
PHP
almfisch/contao-GridTools
/elements/ContentGridTools.php
UTF-8
3,699
2.59375
3
[]
no_license
<?php /** * Contao Open Source CMS * * Copyright (c) 2005-2014 Leo Feyer * * @package GridTools * @author Die Chiemseeler (Andi Platen) * @copyright Die Chiemseeler (Andi Platen) * @license GNU/LGPL */ namespace Contao; class ContentGridTools extends \ContentElement { /** * Template * @var stri...
true
79f3e1f66be26072eab17d6f7e178abd44454305
PHP
anglli/ezswoole
/tests/mix/buffer.php
UTF-8
417
2.796875
3
[ "Apache-2.0" ]
permissive
<?php ob_start();//开启buffer缓冲区 php-cli下默认关闭buffer,由于web访问测试较麻烦,该段代码只为了查看以及测试缓冲区的作用,在web模式下,默认开启,无需手动开启,可自行配置 for($i=0;$i<1000;$i++){ echo $i; sleep(1); if($i%10==0){ //当i为10的倍数时,将直接结束并输出缓冲区的数据,然后再次开启缓冲区 ob_end_flush(); ob_start(); } }
true
15af84bf4cb15847f11a1a4f2b327a10e131582b
PHP
grandems/biblia
/ajaxCapa.php
UTF-8
2,205
2.640625
3
[]
no_license
<?php session_start(); require_once('conexao/class_model.php'); $livro = $_POST['livro']; ?> <br><br> <h1>Livros da Bíblia</h1> <p class="lead"> <?php $Sql = "SELECT * FROM livros"; $objSql = new Model(); $rsSql = $objSql->conexao->query($Sql); if ($rsSql > 0) { $i=0; ...
true
51566ff0d03eb26fabf7b47a7090ece096499c2b
PHP
blueprint1985/kattis
/Rijeci/rijeci.php
UTF-8
372
3.5
4
[]
no_license
<?php /** * Problem: Riječi * https://open.kattis.com/problems/rijeci * * @author Martin Björling * @email martinbjorling@gmail.com * @version 1.0 * @since 2015-11-24 */ $inputString = stream_get_line(STDIN, 1024, PHP_EOL); $a = 1; $b = 0; for ($i=0; $i < $inputString; $i++) { $aOld = $a; $a = $b...
true
536cf0c7d5ac1a958f7759b92849a402f9cbc729
PHP
advantagelabs/assessment_question
/assessment_question.classes.inc
UTF-8
15,426
2.640625
3
[]
no_license
<?php /** * Long answer classes. * * @file * Classes modelling the assessment question question and the assessment question question response */ /** * Extension of QuizQuestion. */ class AssessmentQuestion extends QuizQuestion { /** * Implementation of saveNodeProperties * @see QuizQuestion#saveNodePr...
true
4fbe205388efbca491c31d93f11238edecf847c7
PHP
TonyKaravasilev/CryptoManana
/src/CryptoManana/Core/Traits/MessageDigestion/FileHashingTrait.php
UTF-8
2,082
2.8125
3
[ "MIT" ]
permissive
<?php /** * Trait implementation of file hashing for digestion algorithms. */ namespace CryptoManana\Core\Traits\MessageDigestion; use CryptoManana\Core\Abstractions\MessageDigestion\AbstractHashAlgorithm as AnyDerivedHashAlgorithm; use CryptoManana\Core\Interfaces\MessageDigestion\FileHashingInterface as FileHash...
true
baac1783e4f6b59d1017cafccb6f14ddfad1c9c1
PHP
vincentoliveira/cpixelarts-web
/src/CPaint/DrawingBundle/Service/ColorService.php
UTF-8
1,596
3.234375
3
[]
no_license
<?php namespace CPaint\DrawingBundle\Service; /** * Description of ColorService * * @author vincent */ class ColorService { /** * 8bit color to RGB * * @param int $color * @return array keys['r','g','b'] */ public static function colorToRGB($color) { $r = $color >> 5...
true
e67e3032564a2cf357d3dfc6c76cf06695e0260d
PHP
benjaminsettbon/MySQLi
/createTable.php
UTF-8
1,979
3.140625
3
[]
no_license
<?php $userData = file ("userData.txt"); include_once("DBConn.php"); // une seule connexion echo "Number of entries in the file : ".count($userData); // compte et affiche le nombre de lignes /* echo "<pre>"; echo "<h1> Output of userData Array </h1>"; print_r($userData); // permet d'afficher toutes les lignes ech...
true
abc1a4fe929b00443e89c3d98dce7e6692790ad2
PHP
adirizky54/unique-number
/munculsekali.php
UTF-8
355
2.90625
3
[]
no_license
<?php function munculSekali($input){ $data = str_split($input, 1); $output = []; foreach ($data as $key => $value) { if(substr_count($input, $value) == 1){ array_push($output, $value); } } return $output; } echo json_en...
true
2bc10f2846d3d3298b1636ff3b87aba02adabc87
PHP
artemzakholodilo/murkatest
/src/MailerBundle/Sender/AbstractSender.php
UTF-8
234
2.5625
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace MailerBundle\Sender; abstract class AbstractSender { protected $transport; public static function initial($sender) { return new $sender; } abstract public function send($notification); }
true
9f450c5b5484c0cd9b31b69154ddefa9aeb04fb1
PHP
ysqgit/CustomConfigurable
/app/code/community/Aydus/CustomConfigurable/Model/Api2/Photo/Rest.php
UTF-8
1,401
2.53125
3
[]
no_license
<?php /** * Upload photo * * @category Aydus * @package Aydus_CustomConfigurable * @author Aydus Consulting <davidt@aydus.com> */ abstract class Aydus_CustomConfigurable_Model_Api2_Photo_Rest extends Aydus_CustomConfigurable_Model_Api2_Photo { /** * Create photo * Return photo url ...
true
eab32d529a21273d87a6c712379b7844c40ed41d
PHP
roba3525/CS445f19_Group3
/WebpageFiles/queryGetFriendImages.php
UTF-8
599
2.640625
3
[]
no_license
<?php function queryGetFriendImages($dbh, $PlayerID, $UserID) { $rows = array(); $sth = $dbh -> prepare("SELECT Images.ImageID, Image, COUNT(People.PersonID) AS COUNT FROM Gives, People, Images, Users WHERE Gives.PersonID=People.PersonID AND People.PictureID=Image...
true
5a5a9e22cb5dec66ed017f24268f175a7e78a5fa
PHP
stratease/emvc
/data/MongoTag.class.php
UTF-8
1,084
3.203125
3
[ "Apache-2.0" ]
permissive
<?php trait MongoTag { protected $tagsField = 'tags'; /** *@param string $tag The tag to add. Assumes spaces are for separate tags and will treat it as a list of tags. *@return bool True if successfully added (or if it already exists) */ public function addTag($tag) { // clean up $nTags = explode(' ', str...
true
2ac4d8114f7e6725b68431ad7290bfd77be76b64
PHP
danielarroteia9898/PSI_PWS_PL_A
/PWS_PL/Ficha6_PWS/Ficha6/modelos/DossierEmprestimo.php
UTF-8
736
3.046875
3
[]
no_license
<?php class DossierEmprestimo { public $data, $nome; public $credito; public $numPrestacoes; public $planoPagamentos; /** * DossierEmprestimo constructor. * @param $data * @param $nome * @param $credito * @param $numPrestacoes * @param $planoPagamentos...
true
2da568f7e80d2c5b6de642089dcf30b64eb698c4
PHP
shevchenk/certificaciones
/app/Http/Controllers/Mantenimiento/SucursalEM.php
UTF-8
5,972
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Mantenimiento; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Models\Mantenimiento\Sucursal; use Illuminate\Support\Facades\Validator; use Illuminate\Validation\Rule; use Excel; class SucursalEM extends Controller { public function __construct() ...
true
f39efeb6bff2bd4eee0b1e2a7b57b64faa5b649b
PHP
Hyp9r/Blog
/src/Service/CommentService.php
UTF-8
1,200
2.84375
3
[]
no_license
<?php namespace App\Service; use App\Entity\Comment; use App\Repository\CommentRepository; use Doctrine\ORM\EntityManagerInterface; class CommentService { /** * @var CommentRepository */ protected $commentRepository; /** * @var EntityManagerInterface */ protected $entityManage...
true
d184bd5dc2350f958191c9ea7654f2dca8af7034
PHP
korotovsky/http
/src/Message/Cookie/Cookie.php
UTF-8
459
2.984375
3
[ "MIT" ]
permissive
<?php namespace Icicle\Http\Message\Cookie; interface Cookie { /** * @return string Cookie name. */ public function getName(): string; /** * @return string Cookie value. */ public function getValue(): string; /** * @return string Cookie formatted as an HTTP header. *...
true
59a5636e74f1733a781d851a798d3b15ad53b3e9
PHP
AlbertIlyasov/mvc-bj
/mvc/controllers/Controller.php
UTF-8
1,207
2.65625
3
[]
no_license
<?php namespace MVC\Controllers; use MVC\App; class Controller { protected $config; protected $request; protected $response; protected $url; protected $view; protected $session; public function __construct( array $config, \MVC\Request $request, \MVC\Response $resp...
true
fc86bccc43036d557ba703cbfeb0e85d5b41af1e
PHP
jbroadway/elefant-examples
/handlers/cache.php
UTF-8
426
3.125
3
[]
no_license
<?php /** * This example generates a random number and returns it, * caching the result for 30 seconds so that every 30 seconds * a new random number will be returned. */ $page->title = __ ('Random number'); printf ('<p>%s</p>', __ ('Note: Cached for 30 seconds')); $num = $cache->get ('examples:random'); if ($n...
true
4761c86c70f0430437df38d587b0c2c653810e54
PHP
rifatabazi/phpframework
/index.php
UTF-8
806
2.859375
3
[]
no_license
<?php require_once 'core/init.php'; if (Session::exists('home')) { echo '<p>' . Session::flash('home') . '</p>'; } $user = new User(); $obj = DB::getInstance(); foreach ($obj->getAll("users") as $value) { echo $value['username'] . "<br />"; } if ($user->isLoggedIn()) { ?> <p>Hello <a href="profile.php?u...
true
bfacc7096ef372f3029e39884595a826a40a60a0
PHP
aqshalfajarputra/Tugas-Akhir
/TA/PROJECT_AKHIR/admin/add_product.php
UTF-8
4,754
2.53125
3
[]
no_license
<?php session_start(); include_once("connect.php"); if (!isset($_SESSION['username'])) { header("location: login.php"); } $hasil = ""; if (isset($_POST['submit'])) { $nama = stripslashes($_POST['nama']); $harga = stripslashes($_POST['harga']); $info = stripslashes($_POST['info']); $id = rand(1, 50); ...
true
8f27440e7065b3120ee05506f052b6635aae310c
PHP
SlyDeath/yandex-php-library
/src/Yandex/Market/Content/Models/Base/Price.php
UTF-8
1,111
2.8125
3
[ "MIT" ]
permissive
<?php namespace Yandex\Market\Content\Models\Base; use Yandex\Common\Model; class Price extends Model { protected $currencyName = null; protected $currencyCode = null; protected $discount = null; protected $base = null; protected $value = null; /** * Retrieve the currencyName proper...
true