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
9a980a17c34bb23d11b4d1a4df5e4987d9d684df
PHP
koderhut/onelog-bundle
/NamedLoggerInterface.php
UTF-8
270
2.5625
3
[ "MIT" ]
permissive
<?php namespace KoderHut\OnelogBundle; /** * Interface NamedLoggerInterface * * @author Denis-Florin Rendler <connect@rendler.me> */ interface NamedLoggerInterface { /** * Return the name of the logger * * @return string */ public function getName(): string; }
true
80ef484708cc7eafa91ecc1ec146b983366c99af
PHP
kismu/list-estate
/api/app/controllers/PropertyController.php
UTF-8
1,516
2.546875
3
[]
no_license
<?php class PropertyController extends ControllerBase{ public function listAction() { $data = Estate::find(array( 'limit'=>15 )); $json = array(); foreach($data as $row) { $json[] = $row->getDataAsArray(); } echo json_encode($json); } ...
true
56081474d34a7e63c1b6d8f9f9f9f282255f33e2
PHP
Titoratus/College
/dist/pages/reports.php
UTF-8
1,721
2.625
3
[]
no_license
<?php $page = "Отчёты"; include("../header.php"); ?> <main class="main"> <?php //Если нет студентов, то ничего не выводим $group = $_SESSION["curator_group"]; $query = mysqli_query($con, "SELECT * FROM students WHERE s_group='$group'"); if(mysqli_num_rows($query) == 0) die("Нет студентов."); $rus...
true
1e8c6218616eeefa5075a73e2ebebecb49895358
PHP
eudp/fmn-cms
/application/models/Carrusel_model.php
UTF-8
2,040
2.65625
3
[ "MIT" ]
permissive
<?php class Carrusel_model extends CI_Model { public function __construct() { $this->load->database(); } /** * Recupera registros de este modelo. * * @param int $element_id, id del elemento al que pertenece el carrusel. * @param int $type, tipo del elemento al que pertenece...
true
7ffeccedc98f90d935863aadb4c6224b9b928dc7
PHP
tjgersho/CirrusIdeaV1
/archivecirrusidea/login.php
UTF-8
7,086
2.6875
3
[]
no_license
<?php // Start the session require_once('startsession.php'); require_once('connectvars.php'); // Clear the error message $error_msg = ""; $loginpage = $_GET['page']; if (isset($_GET['anonymous'])){ $user_username = 'Anonymous'; $user_password = '123'; $anonymous = 1; ...
true
4adc2dd0a1ae1583c6761167d8c76dce59a0d934
PHP
mindofmicah/backbone-module-command
/src/MindOfMicah/Modules/BackboneComponent.php
UTF-8
325
2.59375
3
[ "MIT" ]
permissive
<?php namespace MindOfMicah\Modules; class BackboneComponent { public $true_path; public $module_path; public $label; public function __construct($true_path, $module_path, $label) { $this->true_path = $true_path; $this->module_path = $module_path; $this->label = $label; ...
true
8558099eb1a70b319a23e9c6cc93a81980cf8322
PHP
chentingjuan/dschool2017
/app/User.php
UTF-8
2,361
2.59375
3
[]
no_license
<?php namespace App; use Laravel\Passport\HasApiTokens; //use HasApiTokens use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; use Webpatser\Uuid\Uuid; use Tymon\JWTAuth\Contracts\JWTSubject; use App\Notifications\ResetPasswordNotification; class User extends Authenticata...
true
0649b3ddb7d208e815ec5436a1a0ccef497cb349
PHP
eduardevdokimov746/easyenglish
/app/Containers/TeacherSection/Material/Tasks/PrepareTextTask.php
UTF-8
6,645
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Containers\TeacherSection\Material\Tasks; use App\Ship\Parents\Tasks\Task; use App\Containers\Dictionary\Models\EngWord; use App\Ship\Services\ImageApiService; use App\Ship\Services\SoundApiService; use App\Ship\Services\TranslateApiService; class PrepareTextTask extends Task { public functio...
true
d4ff6d595a2d9206c6f72e49a52faa11d89eebda
PHP
ErinCGallagher/MDRoomBooking
/src/php/sample_bookings.php
UTF-8
4,061
2.515625
3
[]
no_license
<html> <head><title>Load Sample Bookings</title></head> <body> <?php /* Program: rb_sample.php * Desc: Loads the roombooking database tables with * sample data. */ // //Database connection variables $host = "localhost"; $user = "root"; $password = ""; $database = "mdroombooking"; //d...
true
3d04e77c5928809bd934b70d412aa39ad217faa4
PHP
bluerocktel/php-sdk
/src/Endpoints/Customers/CreateCustomerRequest.php
UTF-8
911
2.578125
3
[ "MIT" ]
permissive
<?php namespace BlueRockTEL\SDK\Endpoints\Customers; use Saloon\Enums\Method; use Saloon\Http\Request; use Illuminate\Support\Arr; use Saloon\Contracts\Response; use Saloon\Contracts\Body\HasBody; use Saloon\Traits\Body\HasJsonBody; use BlueRockTEL\SDK\Entities\Customer; class CreateCustomerRequest extends Request i...
true
c2b85d34e87a56529f419ed9a6df88076aa3c92a
PHP
guobei/demo
/index.php
UTF-8
212
3.828125
4
[]
no_license
//PHP生成器 <?php function makeRange($length) { for ($i = 0 ; $i< $length ; $i++){ yield $i; } } foreach (makeRange(1000000) as $i){ echo $i,PHP_EOL; }
true
019928d310eb887000b71e063624fe6c5b6a6b00
PHP
iadmitrencko/IgordCustomBlog
/src/Models/Authors.php
UTF-8
1,350
3.046875
3
[]
no_license
<?php namespace Igord\CustomBlog\Models; class Authors { public const NAME_MAX_LENGTH = 50; /** @var \Igord\CustomBlog\lib\Database\Mysql\Manager */ private $mysqlManager; // ######################################## /** * Authors constructor. * * @param \Igord\CustomBlog\lib\Data...
true
abf541811beab6e6b3dfb434c56bc119a513819c
PHP
dennisinteractive/dennis_link_checker
/src/Dennis/Link/Checker/EntityInterface.php
UTF-8
766
2.640625
3
[]
no_license
<?php namespace Drupal\dennis_link_checker\Dennis\Link\Checker; /** * Class Entity. * * @package Drupal\dennis_link_checker\Dennis\Link\Checker */ interface EntityInterface { /** * Entity ID. * * @return int * Returns the entity id. */ public function entityId(); /** * Entity Type. ...
true
f2f371f7b1f8b3a53a3ab0d481566e81c798d402
PHP
MattKetmo/cliph
/tests/AppTestCase.php
UTF-8
909
2.65625
3
[ "MIT" ]
permissive
<?php namespace Cliph\Tests; use Cliph\Command; use Symfony\Component\Console\Application; use Symfony\Component\Console\Input\StringInput; use Symfony\Component\Console\Output\StreamOutput; abstract class AppTestCase extends \PHPUnit_Framework_TestCase { private $app; public function setUp() { ...
true
ae17e97054b1b74f1b93693618e5ae6745fceb0c
PHP
danyelmoralesdeprecated/Frontelus
/Frontelus/app/Common/Model/Website.class.php
UTF-8
2,607
2.75
3
[]
no_license
<?php namespace Model; use Model\BaseModel; use Model\User; class Website extends BaseModel { CONST UNKNOWN = 0; CONST INVALID = 503; CONST VALID = 200; CONST NOT_FOUND = 404; private $id; private $title; private $url; private $description; private $screenshot; private $d...
true
d17a62b1a362859014006c9b9bd4b3baa15eaff8
PHP
christophervistal24/sdssu-preenroll-2
/app/Http/Controllers/Admin/StudentEvaluatePrintController.php
UTF-8
2,813
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use App\Student; use App\Subject; use App\Semester; use Illuminate\Http\Request; use Dompdf\Dompdf; class StudentEvaluatePrintController extends Controller { private $subjects_need_to_print; /** * Display a listing of the ...
true
2aba346d4a70f350927eacbce1382505084ab973
PHP
kokolina1888/drivers.arielcs.com
/app/Document.php
UTF-8
3,114
2.59375
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use DB; class Document extends Model { protected $fillable = [ 'route_list_id', 'date_created', 'document_number', 'total_weight', 'sender', 'receiver', 'receiver_address', 'sales_data_id' ]; // public function route_list()...
true
9049d0b9155da13807782b813f4131fb66307cae
PHP
Superbition/Polyel-Framework
/src/Auth/GenericUser.class.php
UTF-8
253
2.828125
3
[ "Apache-2.0" ]
permissive
<?php namespace Polyel\Auth; class GenericUser { private $id; private $user; public function __construct(array $user) { $this->user = $user; } public function get($key) { return $this->user[$key]; } }
true
41fb29e65ec921a3cc5ddc1478de2695d6f845f5
PHP
showi/prog
/app/www/php/wssub/wssubTvShow.php
UTF-8
2,734
2.921875
3
[]
no_license
<?php abstract class wssubTvShow extends wssubMother{ protected $id; protected $name; protected $href; protected $languages; protected $seasons; protected $img; public function __construct($parent) { parent::__construct($parent); $this->id = null; $this->name = null;...
true
a75acd052220892247e764e7f25a2dfd591b1d6a
PHP
jonasdk/OnlinePublisher
/Editor/Classes/Interface/UI.php
UTF-8
880
2.609375
3
[]
no_license
<?php if (!isset($GLOBALS['basePath'])) { header('HTTP/1.1 403 Forbidden'); exit; } class UI { static function renderFragment($gui) { return In2iGui::renderFragment($gui); } static function buildAbstractUI($xml) { $doc = DOMUtils::parse($xml); $root = $doc->documentEl...
true
7a10edefe48b09a60424afe6c85cffc5dade3d55
PHP
Gixx/worstpractice-dependency-injection
/tests/WorstPracticeTest/Component/DependencyInjection/ServiceLibraryTest.php
UTF-8
3,711
2.65625
3
[ "MIT" ]
permissive
<?php /** * Worst Practice DI Component * * PHP version 8.2 * * @copyright 2022 Worst Practice * @license https://opensource.org/licenses/MIT The MIT License (MIT) * * @link http://www.worstpractice.dev */ declare(strict_types=1); namespace WorstPracticeTest\Component\DependencyInjection; ...
true
cabd39f5b5d0ab1a1c712e9c4c56f2d600c7d410
PHP
gabriel-yuji-inoue/DesignPatterns
/src/Behaviour/Visitor/Buildings/BankBuilding.php
UTF-8
277
2.734375
3
[]
no_license
<?php namespace Yj\DesignPattern\Behaviour\Visitor\Buildings; use Yj\DesignPattern\Behaviour\Visitor\VisitorInterface; class BankBuilding implements Building { public function accept(VisitorInterface $visitor) { $visitor->visitBankBuilding($this); } }
true
ec23376160538747d4c71af850543d7e1939f57c
PHP
TalRodin/art_gallery_database
/handle_form_purchases.php
UTF-8
752
2.703125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <html> <head> <meta charset="UTF-8"> <title>Form Feedback</title> </head> <body> <?php $artwork_title=$_REQUEST['artwork_title']; $year=$_REQUEST['year']; $movement=$_REQUEST['movement']; $purchase_price=$_REQUEST['purcha...
true
5dae56e1e7ff5c7335ea3ec9a65b498685fb7f2a
PHP
lerni/silverstripe-framework
/email/Mailer.php
UTF-8
18,968
3.09375
3
[ "BSD-3-Clause", "CC-BY-3.0" ]
permissive
<?php /** * Mailer objects are responsible for actually sending emails. * The default Mailer class will use PHP's mail() function. * * @package framework * @subpackage email */ class Mailer extends SS_Object { /** * Default encoding type for messages. Available options are: * - quoted-printable * - base6...
true
801ca6f258471f6505ff4bd6b3c78edd02b11183
PHP
valenzuela21/reseller-vue-standard
/includes/Frontend.php
UTF-8
1,034
2.578125
3
[]
no_license
<?php namespace App; /** * Frontend Pages Handler */ class Frontend { public function __construct() { add_shortcode( 'shortcode-tendero-view', [ $this, 'render_frontend' ] ); add_action('wp_enqueue_scripts', [$this,'style_general']); } public function style_general(){ wp_enqueue...
true
93e80896776e3061707fc54451cae67f0ef38ddd
PHP
Himu143/WT_Summer_2021
/Online Food Order System/control/isset.php
UTF-8
128
2.921875
3
[]
no_license
<?php $a = 0; if (isset($a)) { echo "Variable 'a' is set"; } $b = null if (empty($a)) { echo "Variable 'b' is empty"; } ?>
true
af4ca319ea87f4c3c45891c329ef820e7305c18a
PHP
kamronb/food_safety_manager
/db_stuff/phpsqlajax_dbinfo.php
UTF-8
2,027
2.828125
3
[]
no_license
<?php //Setting up the Database Connection Stuff //Renote Free Mysql Server Host freemysqlhosting.net // $db_host = "sql10.freemysqlhosting.net:3306"; // $db_user = "sql10317757"; // $db_pass = "FwZkYvuRF2"; // $db_name = "sql10317757"; //Renote Free Mysql Server Host remotemysql.com // $db_host = "remotemysql.com"...
true
5fed173628826ba78fac445226178f313ad723c8
PHP
freelancer/phlab
/src/applications/people/management/PhabricatorPeopleAddEmailWorkflow.php
UTF-8
2,378
2.890625
3
[ "Apache-2.0" ]
permissive
<?php final class PhabricatorPeopleAddEmailWorkflow extends PhabricatorPeopleManagementWorkflow { protected function didConstruct(): void { $this ->setName('add-email') ->setExamples('**add-email** --user __username__ --email __address__') ->setSynopsis(pht("Associate an email address with a...
true
203f2848b0168e043d3166ef08c6aa3488aa8712
PHP
sargon1404/mars
/classes/Bin/Base.php
UTF-8
885
3.140625
3
[]
no_license
<?php /** * The Base Bin Handler * @package Mars */ namespace Mars\Bin; /** * The Base Bin Handler */ abstract class Base { use \Mars\AppTrait; /** * @var int $padding_right The default right padding */ protected int $padding_right = 5; /** * Returns the max length of a column * @param array $data The data ...
true
f0e4ac36d0daa6ed963f8bd3cdb76e2d2704d557
PHP
Kaluba21/NotifyMe
/fetch_times.php
UTF-8
965
2.515625
3
[]
no_license
<?php $user = $_COOKIE['USER_LOGGEDIN']; $cl_id = $_POST['ID']; $servername = "classroom.cs.unc.edu"; $username = "carriems"; $password = "CH@ngemenow99Please!carriems"; $database = "carriemsdb"; $conn = new mysqli($servername, $username, $password, $database); if($conn->connect_error){ header('HTTP/1.1 40...
true
871c18267a4612852315bef9c36e6a5a46737dbe
PHP
claudia-amaro/Momentos
/Projeto/public/components/new_password_recover.php
UTF-8
3,008
2.578125
3
[]
no_license
<?php $token_para_envio = $_GET["t"]; //Conversão do URL numa lista. $query = []; $url = parse_url($_SERVER['REQUEST_URI']); if(isset($url['query'])){ parse_str($url['query'], $query); } // ERROS // Variáveis para guardar as mensagens de erro $campo_password = ""; $campo_cpassword = ""; // Atribuição das me...
true
4ac1ab3d76102fce4842400a8dd13d958ab8315e
PHP
AyushWebDev/Commute-Together-car-pooling-
/signupuser.php
UTF-8
3,416
2.65625
3
[ "MIT" ]
permissive
<?php session_start(); require "connect.php"; require "helper.php"; $error=[]; $value=[]; $conn=connect(); $_POST['firstname'] = trim($_POST['firstname']); $_POST['lastname'] = trim($_POST['lastname']); $_POST['email'] = trim($_POST['email']); $_POST['contact'] = trim($_POST['contact']); $_POST...
true
b96618fe986dd1a48e632ea615721ccfb1b77e0f
PHP
simtj-tdi/laravel_basic_clone
/app/Http/Controllers/PostController.php
UTF-8
1,664
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Post; use Illuminate\Support\Facades\Gate; class PostController extends Controller { public function __construct() { $this->middleware('auth')->only('create'); $this->authorizeResource('App\Post', 'post'); } /...
true
d4d01a2bd1262f80dee986bdb52e3e0724015b63
PHP
sfmcewing/Anagram
/tests/AnagramTest.php
UTF-8
862
3.078125
3
[ "MIT" ]
permissive
<?php require_once "src/Anagram.php"; class AnagramTest extends PHPUnit_Framework_TestCase { function test_makeAnagram_specOne() { //Arrange $test_Anagram = new Anagram; $input1 = "A"; $input2 = "A"; var_dump($input2); ...
true
ac34300c1ac3c58dddfa6577b0b6acfaae98b9bd
PHP
mfinkels/miPrimerProyecto
/ALANAPI/vendor/psliwa/php-pdf/tests/PHPPdf/Test/Core/Parser/StylesheetConstraintTest.php
UTF-8
7,618
2.578125
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace PHPPdf\Test\Core\Parser; use PHPPdf\Core\Parser\BagContainer; use PHPPdf\Core\Parser\StylesheetConstraint, PHPPdf\Core\AttributeBag; class StylesheetConstraintTest extends \PHPPdf\PHPUnit\Framework\TestCase { private $constraint; public function setUp() { $this->constraint = ...
true
f7dbe9583793e48879d3954dcdbc622287957d75
PHP
serebro/assets-manager
/src/Assets/Revision.php
UTF-8
3,580
3
3
[ "MIT" ]
permissive
<?php namespace Serebro\Assets; use InvalidArgumentException; class Revision implements RevisionInterface { const ENV_DEV = 'dev'; const ENV_TEST = 'test'; const ENV_PROD = 'prod'; /** @var string */ private $env = 'prod'; /** @var array */ private $revisionMap = []; /** @var string */ private $prefix ...
true
abac256ed32a59d907da5dd22c7ba85108698fc8
PHP
naczynski/plugin-kg
/kg-core/abstract/kg-ajax.php
UTF-8
867
2.96875
3
[]
no_license
<?php abstract class KG_Ajax { /** * Get response object (all ajax, api calls return this object as json) * @param boolean|WP_Error $error * @param string $message * @param string $type * @return array [ */ protected function get_object($error, $message = '', $data = array()) {...
true
26c21996a2b2658bffc4009e603634bee4614a8b
PHP
alteseemann/DreamMoto
/app/Http/Middleware/CheckIsDealer.php
UTF-8
606
2.515625
3
[]
no_license
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Support\Facades\Auth; class CheckIsDealer { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $n...
true
4bec0800ea0df4db4f6219907329eb656b68d0c3
PHP
jl-silva/tasklist_jefferson
/index.php
UTF-8
2,413
2.859375
3
[]
no_license
<?php require 'functions.php'; // verifica se foi passado algo pelo get if (isset($_GET['action'])) { $action = $_GET['action']; if (isset($_GET['id'])) { $id = $_GET['id']; } $conn = criaConexaoBanco(); switch ($action) { case 'Inativar' : $query = "UPDATE tasklist SET situacao = 'I' W...
true
a1b23f7a44eda1d923f9a954bbf1043a1fa123d3
PHP
kylereicks/arbitrary-json-api-theme
/inc/class-theme-template-wrapper.php
UTF-8
1,160
2.6875
3
[]
no_license
<?php /* * From Roots Theme * https://github.com/roots/roots/blob/master/lib/wrapper.php */ if(!class_exists('Theme_Template_Wrapper')){ class Theme_Template_Wrapper{ public static $main_template_file_path; public static $template_file_base_name; public $slug; public $templates; public functio...
true
5c9a46b1707dfea284e1292d71d5d3c36f6d3e6c
PHP
jeffersonsimaogoncalves/cake-cktools
/src/Model/Behavior/StrictPasswordBehavior.php
UTF-8
7,548
2.78125
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace CkTools\Model\Behavior; use Cake\Auth\DefaultPasswordHasher; use Cake\Datasource\EntityInterface; use Cake\Event\Event; use Cake\ORM\Behavior; use Cake\Validation\Validator; /** * StrictPassword behavior */ class StrictPasswordBehavior extends Behavior { /** * De...
true
def52ae239a94e81ff026e8329f0053f31b555a7
PHP
JulienRichoz/LiveCoding-Pokedash-Game
/interpreters/php.php
UTF-8
2,288
3.03125
3
[]
no_license
<?php function myEngine ($method, $params){ $response = Engine::send( json_encode([ "action" => $method, "params" => $params ]) ); return $response; } function swapSprite ($dir, $from, $to) { return myEngine('swapSprite', [$dir, $from, $to]); /* $response = En...
true
adc2292dc6fc807beec85d8db20e4e1d331d92b5
PHP
renyi666/yigemubiao
/application/index/model/Member.php
UTF-8
2,562
2.578125
3
[ "Apache-2.0" ]
permissive
<?php /*** * * ,%%%%%%%%, * ,%%/\%%%%/\%% * ,%%%\c "" J/%%% * %. %%%%/ o o \%%% * `%%. %%%% _ |%%% * `%% `%%%%(__Y__)%%' * // ;%%%%`\-/%%%' * (( / `%%%%%%%' ...
true
6d63d0deecc56180a0a1b8993ec60e1aaaac394e
PHP
yun-sangho/guide-bot
/src/Utils/Auth.php
UTF-8
992
3.109375
3
[]
no_license
<?php /** * Utility for helping user authentification * * PHP version 7.2.7 */ namespace Linebot\Utils; /** * Auth class has methods used by Line Api to authenticate user */ class Auth { /** * @param $knownString * @param $userString * @return bool */ static function hash_equals($kn...
true
dfcc7c98860c1fd4315c79a99ec2ce6d8a4805bc
PHP
preethamdp/college-project
/3rd-sem-project/html/hub.php
UTF-8
8,051
2.515625
3
[]
no_license
<?php include_once '../includes/dblink.php'; session_start(); unset($_SESSION['insert']); unset($_SESSION['restock']); unset($_SESSION['remove']); echo "<h3 style='color:blue'>User Name</h3>".$_SESSION['user']."<br><br>"; echo "<h2 style='color:green'>Items Available</h3>"; // <!-- displaying table--> $...
true
2073258077e62a06a0eb5e372ca26fa3d7ccaf7f
PHP
dev-it/hasoffers-php
/src/Api/Brand/RawLog.php
UTF-8
1,378
2.65625
3
[ "MIT" ]
permissive
<?php namespace DevIT\Hasoffers\Api\Brand; use DevIT\Hasoffers\Base; class RawLog extends Base { /** * API Endpoint Type. * * @var string */ protected $endpointType = 'Brand'; /** * API Endpoint Name. * * @var string */ protected $endpointName = 'RawLog'; /...
true
646d1c19f52621562b2bd0b51bf898dbadb64c80
PHP
pozitronik/bc-1
/components/db/ActiveRecordTrait.php
UTF-8
9,659
2.625
3
[]
no_license
<?php declare(strict_types = 1); namespace app\components\db; use app\models\sys\permissions\traits\ActiveRecordPermissionsTrait; use pozitronik\filestorage\traits\FileStorageTrait; use pozitronik\helpers\ArrayHelper; use pozitronik\traits\traits\ActiveRecordTrait as VendorActiveRecordTrait; use Throwable; use Yii; u...
true
00ccaa04d7699b974ae3223ae87bde133bcc47a7
PHP
Websreferencement/reseaux-avec
/src/App/Form/ContactType.php
UTF-8
1,004
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\DependencyInjection\ContainerInterface; class ContactType extends AbstractType { /** * Build the form * * @param FormBuilderInterface $builder * @param array $options ...
true
2756d3ad1590030410f9f79c74429340dbf48668
PHP
swaroopboddu/Social-Andriod-Application-Store
/webapp/app/Test/Fixture/CommentFixture.php
UTF-8
1,493
2.6875
3
[]
no_license
<?php /** * CommentFixture * */ class CommentFixture extends CakeTestFixture { /** * Table name * * @var string */ public $table = 'comment'; /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary')...
true
979584cffb1f20b05e222066be03e5d4babbbef8
PHP
cod1ng-earth/coding-earth
/calendar/src/Sources/TechConferences.php
UTF-8
5,064
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Sources; use App\Model\Event; use DateTime; use Exception; use Psr\Log\LoggerAwareInterface; use Psr\Log\LoggerAwareTrait; use Symfony\Contracts\Cache\ItemInterface; use Symfony\Contracts\Cache\TagAwareCacheInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; use function array_filter; ...
true
6ad2c46b301550223aa760fc2aace9f619a54a94
PHP
aCiotola/PHPLabs
/lab6/LabDAO.php
UTF-8
6,830
3.03125
3
[]
no_license
<?php require("ConnectDB.php"); class LabDAO { public function addEmployee($e) { try { $server = 'localhost'; $user = 'homestead'; $pwd = 'secret'; $dbname = 'homestead'; $dsn = "pgsql:dbname = $dbname; host = $server"; $pdo = new PDO($dsn, $user, $...
true
54abcd99182b1d104c29c4668963d43b3b21a7dc
PHP
josephyhu/measurement_converter
/inc/temperature_conversion.php
UTF-8
40,723
2.609375
3
[]
no_license
<?php #Units and Measurement $input_unit = $_GET['unit-to-convert-from']; $output_unit = $_GET['unit-to-convert-to']; $input_measurement = $_GET['measurement']; #SI Prefixes $yotta = 1e24; $zetta = 1e21; $exa = 1e18; $peta = 1e15; $tera = 1e12; $giga = 1e9; $mega = 1e6; $kilo = 1000; $hecto = 100; ...
true
9f282135ba237f15a029e7cb8d8c9caf9dd432de
PHP
angelomarsanz/sistemasangabriel
/src/Controller/BinnaclesController copy.php
UTF-8
4,984
2.515625
3
[]
no_license
<?php namespace App\Controller; use App\Controller\AppController; /** * Binnacles Controller * * @property \App\Model\Table\BinnaclesTable $Binnacles */ class BinnaclesController extends AppController { public function isAuthorized($user) { if(in_array($this->request->action, ['add'])) { return tru...
true
aa8a6c59d34b626c692146486383d770399efde3
PHP
Verdient/yoo2
/src/components/excel/Export.php
UTF-8
3,336
2.859375
3
[]
no_license
<?php namespace yoo\components\excel; use Yii; use yii\base\InvalidParamException; use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Writer\Xls; use PhpOffice\PhpSpreadsheet\Writer\Xlsx; use PhpOffice\PhpSpreadsheet\Writer\Csv; /** * Export * 导出Excel * -------- * @author Verdient。 */ class E...
true
e437078f0dec7a60fa1322026a078ebe0395d67b
PHP
uyupun-archive/menstagram-api
/tests/Feature/DataProviders/AuthLogoutDataProvider.php
UTF-8
680
2.65625
3
[]
no_license
<?php namespace Tests\Feature\DataProviders; use Illuminate\Support\Str; /** * ユーザーのログアウト * * Trait AuthLogoutDataProvider * @package Tests\Feature\DataProviders */ trait AuthLogoutDataProvider { /** * 異常系(アクセストークン)のテストデータの定義 * * @return array */ public function accessTokenProvider()...
true
2cc38caa523e2e7c3adb78c4e41033696ae1620f
PHP
asuratu/boot-admin
/src/Admin/Grid/Displayers/Edit.php
UTF-8
464
2.578125
3
[ "MIT" ]
permissive
<?php namespace ZhuiTech\BootAdmin\Admin\Grid\Displayers; use Encore\Admin\Grid\Displayers\AbstractDisplayer; /** * 链接 * * Class User * @package ZhuiTech\Shop\User\Admin\Displayers */ class Edit extends AbstractDisplayer { /** * Display method. * * @return mixed */ public function display() { $url ...
true
7cc6ef9fe15f914009c28a7468a0369d25dcc6ab
PHP
huohongjian/mycode
/cwc/class/File.php
UTF-8
253
3.21875
3
[]
no_license
<?php class File{ function __construct(){ } function read($name, $mode='r'){ $fhandle = fopen($name, $mode); $text = ''; while(!feof($fhandle)){ $text .= fread($fhandle, 4096); //4096B } fclose($fhandle); return $text; } } ?>
true
2a354dfa5bb4caff10ea2df5295b3fde81213a63
PHP
senaceet/proyecto-componen-tech
/03 Desarrollo/03 DML/modelo/Movimiento.php
UTF-8
5,729
2.609375
3
[]
no_license
<?php require_once '../controlador/cn.php'; /** * @access public * @author Marlon, Yeren, Jhon, Kevin */ class Movimiento { /** * @AttributeType int */ private $_idMovimiento; /** * @AttributeType string */ private $_fecha; /** * @AttributeType int */ private $_cantidad; /** * @AttributeType in...
true
f82e9910ccd3c4c867f2c4f71114afb0021018af
PHP
robstoll/speedtest
/src/ch/tutteli/speedtest/template/AMillionAddition.php
UTF-8
1,095
2.5625
3
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
<?php /* * Copyright 2013 Robert Stoll <rstoll@tutteli.ch> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
true
bedfb9ee45933020e3deba394fcd9cd29941548e
PHP
kamrul-suhel/grassroots
/api/app/Http/Controllers/TopicController.php
UTF-8
6,970
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Message; use App\Topic; use Auth; use DB; class TopicController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct(Request $request) { $this->request...
true
4b31ac37dd56c23bd543dadd365862a25636bdf7
PHP
sillsdev/web-languageforge
/src/Api/Model/Shared/Mapper/MongoEncoder.php
UTF-8
5,954
2.734375
3
[ "MIT" ]
permissive
<?php namespace Api\Model\Shared\Mapper; use Litipk\Jiffy\UniversalTimestamp; use MongoDB\BSON\UTCDateTime; use Palaso\Utilities\CodeGuard; class MongoEncoder { /** * Sets key/values in the array from the public properties of $model * @param object $model * @return array */ public static ...
true
143a6ba1013a337d6d6f34017daeb3bdae78da35
PHP
hi-noikiy/mini-programe-framework
/addons/longbing_card/core/extend/tencentcloud/vendor/guzzle/guzzle/src/Guzzle/Plugin/Cache/CallbackCanCacheStrategy.php
UTF-8
1,099
3.015625
3
[ "Apache-2.0", "MIT" ]
permissive
<?php namespace Guzzle\Plugin\Cache; class CallbackCanCacheStrategy extends DefaultCanCacheStrategy { protected $requestCallback = NULL; protected $responseCallback = NULL; public function __construct($requestCallback = NULL, $responseCallback = NULL) { if( $requestCallback && !is_callable($requestCallback) ) ...
true
4fce421ee666384f19b8c98e9a69ffec4df0bc1f
PHP
GrantOM/DMS
/disaster_report.php
UTF-8
2,216
2.53125
3
[]
no_license
<?php //checks that the user is an admin require 'VerifyAdmin.inc'; //connects to the database include dirname(__FILE__) . '\connection.php'; //assigning the data taken from the new report page to variables $name = $_POST['inputIncident']; $desc = $_POST['inputDescription']; $time = $_POST['inputTime']; $d...
true
fddbcb26e5a443d61d185fd8acb68405900bbfb7
PHP
pc-jdk/productlist
/php/models/product.php
UTF-8
1,599
3.21875
3
[]
no_license
<?php class Product { private $conn; private $table = 'product_information'; public $id; public $title; public $description; public $product_image; public $price; // Constructor with DB public function __construct($db) { $this->conn = $db; } // Get multiple produc...
true
a2b6e71ec8058dc26548d5a952477c53849d9cd2
PHP
Peryak/kitchenProject
/models/mySteps.php
UTF-8
1,323
3.078125
3
[ "MIT" ]
permissive
<?php /*** * objet mySteps pour le projet marmitton * create by hugo couturier, 23/06/2016 */ class mySteps{ private $id; private $rId; private $order; private $description; public function __construct($rId, $id, $order, $description) { $this->id = $id; $this->rId = $rId; $this->ord...
true
475d933eae8826da2bc55163bf93499f16ef37e0
PHP
YashC2410/Mumbai-University
/form.php
UTF-8
412
2.765625
3
[]
no_license
<html> <body> <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("form", $con); $sql="INSERT INTO Form (Name,Age,Year,Month) VALUES ('$_POST[name]','$_POST[age]','$_POST[year]','$_POST[month]')"; if (!mysql_query($sql,$con)) { die('...
true
75aa973c64b53d1314010901634a596d86020ad1
PHP
wow4all/eremes
/update/phpQuery/phpQuery/phpQueryObject.php
UTF-8
28,462
2.765625
3
[]
no_license
<?php /** * Class representing phpQuery objects. * * @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com> * @package phpQuery * @method phpQueryObject clone() clone() * @method phpQueryObject empty() empty() * @method phpQueryObject next() next($selector = null) * @method phpQueryObject prev() prev($selector = nul...
true
2b1efc0101a502908a146fd00c01219a4d380590
PHP
educach/dsb-client
/tests/Educa/DSB/Client/Tests/Curriculum/Term/LP21TermTest.php
UTF-8
1,303
2.578125
3
[ "MIT" ]
permissive
<?php /** * @file * Contains \Educa\DSB\Client\Tests\Curriculum\Term\LP21TermTest. */ namespace Educa\DSB\Client\Tests\Curriculum\Term; use Educa\DSB\Client\Curriculum\Term\LP21Term; use Educa\DSB\Client\Curriculum\Term\TermHasNoParentException; use Educa\DSB\Client\Curriculum\Term\TermHasNoChildrenException; use...
true
ad529f66428db9e8fb4284efd931e03db11925d4
PHP
agorw/OCR_Neural_Network
/MNIST/GenerateMnistTrainingData.php
UTF-8
8,563
2.65625
3
[ "MIT" ]
permissive
<?php ini_set("max_execution_time", "-1"); ini_set('memory_limit','-1'); set_time_limit(0); include('Functions.php'); // Where are the images and labels $train_directory = __DIR__ . DIRECTORY_SEPARATOR . 'Training Images' . DIRECTORY_SEPARATOR . 'train'; $test_directory = __DIR__ . DIRECTORY_SEPARATOR . 'Training I...
true
7e5ff920f49960a362e7bd417d1d08749eb9263f
PHP
maxmiller/istoria
/db/edit.php
UTF-8
6,975
3.109375
3
[]
no_license
<?php // Object holding information // about a specific edit class EditObj { public $id = 0; public $user = 0; public $info = 0; public $name = ""; public $content = ""; public $published = 0; function __construct ($arr) { $this->id = $arr['id']; $this->user = $arr['user']; $this->info = $ar...
true
72cb4c4fdbe148552e4397c727ae4354eda6e08a
PHP
ssfernandez/ProyectoIU_Grupo6
/Models/ASISTENCIAS_Model.php
UTF-8
15,348
2.734375
3
[]
no_license
<?php /** * HAY QUE VER POR QUE CAMBIO ANOMB, Y QUE LE METO */ class Asistencia{ public $dni; public $dia; public $hora; public $cod; public $nom; public $ape; public $asis; function __construct($dni,$dia,$hora,$cod,$nom,$ape,$asis){ $this->dni=$dni; $this->dia=$dia; $thi...
true
de88e47808320f0d02ec217cdff13f16b58ebfbb
PHP
Marcel363/Bildergalerie-mit-Neuigkeiten
/database/factories/PostFactory.php
UTF-8
759
2.765625
3
[ "MIT" ]
permissive
<?php namespace Database\Factories; use App\Models\Post; use Illuminate\Database\Eloquent\Factories\Factory; class PostFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Post::class; /** * Define the model's defau...
true
1502d4738c8dead5b79ed9b9f24ba294cf9e433c
PHP
pgrimaud/cheetahmail-sdk
/src/Campaigns/Campaigns/GetCampaign.php
UTF-8
643
2.859375
3
[ "MIT" ]
permissive
<?php namespace Cheetahmail\Campaigns\Campaigns; class GetCampaign { /** * @var int $campaignId */ protected $campaignId = null; /** * @param int $campaignId */ public function __construct($campaignId) { $this->campaignId = $campaignId; } /** * @return in...
true
cd601247b9677cce90049259bc0463575c52c1a9
PHP
ciumchen/ccs_member
/application/core/MY_Controller.php
UTF-8
5,111
2.515625
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class MY_Controller extends CI_Controller { //用户信息 protected $_userInfo; protected $_domainAdmin = ''; //域名 protected $_domain = ''; //控制器所在目录 protected $_dirName = ''; //控制器名 protected $_controllerName; //...
true
0276585d79b58c49bbce4d93b5ade22a6b28bbdc
PHP
Fendo181/php_practice
/chap10/MagicMethod/clone_deep.php
UTF-8
442
2.84375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: endu * Date: 2018/08/01 * Time: 7:40 */ require_once 'Person.php'; require_once 'FriendList.php'; $list = new FriendList(); $list->add(new Person('太郎', '山田')); $list->add(new Person('遠藤', '太徳')); $list->add(new Person('高橋', '清太郎')); $list2 = clone $list; // シャローコピー 参照はその...
true
af923b82256ebd2d42c7938e844fe7fbed42da43
PHP
utlib/BatchUpload
/controllers/MappingSetsController.php
UTF-8
7,166
2.5625
3
[ "Apache-2.0" ]
permissive
<?php /** * Controller for mapping sets. * * @package controllers */ class BatchUpload_MappingSetsController extends BatchUpload_Application_AbstractActionController { /** * Actions requiring an AJAX response. * @var string[] */ private $_ajaxRequiredActions = array( ); /** * A...
true
a3204d66f4ab432be5e878ebb597133019214c94
PHP
peresmishnyk/laravel_recaptcha
/src/LaravelRecaptcha.php
UTF-8
1,774
2.53125
3
[ "MIT" ]
permissive
<?php namespace Peresmishnyk\LaravelRecaptcha; class LaravelRecaptcha { const RECAPTCHA_VERIFY_ENDPOINT_URL = 'https://www.google.com/recaptcha/api/siteverify'; protected $cookie_name; protected $site_key; protected $secret_key; public function __construct() { $config = config('larave...
true
281c048d052b2f8d3eaeb780331bbb52f414d7c2
PHP
VladimirVertushkov/graduation-project
/app/Base/Interfaces/DTOInterface.php
UTF-8
492
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Base\Interfaces; use Illuminate\Database\Eloquent\Model; use Illuminate\Http\Request; use Spatie\DataTransferObject\Exceptions\UnknownProperties; interface DTOInterface { /** * @param Request $request * @return self * @throws UnknownProperties */ public static functi...
true
12f3a9a5c96a03e944abf4ada2f76549f573beb0
PHP
brense/php-framework-3
/interfaces/iSingleton.php
UTF-8
141
2.5625
3
[]
no_license
<?php /** * iSingleton (interface) * * @package interfaces */ interface iSingleton { public static function instance(); }
true
cdb340b449e84e55b1e766a4af4f6cab6358c74f
PHP
FERRERO-Franck-Formateur-Ajali/e-commerce-grp3
/src/Controller/SecurityController.php
UTF-8
3,855
2.546875
3
[]
no_license
<?php namespace App\Controller; use App\Entity\User; use App\Entity\Client; use App\Form\UserType; use App\Form\ClientType; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; use Symfony\...
true
a47be6234218c077e53a9f9f6ccf49894e724593
PHP
hrib/webproxy
/src/class.page.php
UTF-8
2,270
3.1875
3
[ "MIT" ]
permissive
<?php /** * Basic class for loaded files (html, css, js, images etc) * @author KronuS */ abstract class page { /** * @var url */ protected $_url; /** * @var string */ protected $_content_type; /** * @var string */ protected $_charset; /** ...
true
08f9b1c4e3f8b0147b4d278ff2603519cafd0a5a
PHP
ChamMach/VirtualWeb
/Web/app/Console/Kernel.php
UTF-8
6,537
2.609375
3
[]
no_license
<?php namespace App\Console; use DB; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; use App\Classes\SocketHelper; use App\VM; use Log; use App\User; class Kernel extends ConsoleKernel { /** * The Artisan commands provided by your application. * ...
true
799ea64384289df94417aa30c79adb08ec21fd8f
PHP
dichanger/yixuncms
/admin/models/flink.class.php
UTF-8
478
2.59375
3
[]
no_license
<?php class Flink{ function downlogo($logourl){ $url = parse_url($logourl); $logoname = str_replace(".","_",$url['host']).".".array_pop(explode(".",basename($logourl))); $path = PROJECT_PATH."public/uploads/logos/"; if(!file_exists($path)){ mkdir($path); } $location = $path.$logoname; $data ...
true
c25f789782a9f13d9e3e0ebd140c4ffebf3c6e18
PHP
brentsondgeroth/DnD-Api
/app/Repositories/ItemRepository.php
UTF-8
1,720
3.0625
3
[]
no_license
<?php namespace App\Repositories; use App\Models\Item; use Illuminate\Support\Facades\DB; /** * This class holds all of the methods for updating the items table. */ class ItemRepository extends BaseRepository { /** * Create a new item Repository instance. * * @param App\Models\Item $item *...
true
895fce77b1011ab6ed0b9200131134547573447b
PHP
KonstancjaMielczarek/LibraryAplication
/app/controllers/EditCtrl.class.php
UTF-8
4,973
2.65625
3
[]
no_license
<?php namespace app\controllers; use core\App; use core\Utils; use core\ParamUtils; use core\Validator; use app\forms\EditForm; use core\SessionUtils; use core\Message; class EditCtrl { public $form; public $record; public $id_genre; public $id_author; public $id_book; public function __con...
true
c31461f603654303c95be6c8046f2acd9485b710
PHP
MacedoRAC/cyber-duck-challenge
/app/Http/Controllers/CompanyEmployeeController.php
UTF-8
3,084
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Requests\EmployeeRequest; use App\Models\Company; use App\Models\Employee; use Illuminate\Http\RedirectResponse; use Illuminate\Http\Request; use Illuminate\Contracts\View\View; class CompanyEmployeeController extends Controller { public function __construct() ...
true
e9cee5edf9ae05758e729ab5c0643aaf9b748d58
PHP
adamaclp92/witcher
/application/views/chars/index.php
UTF-8
400
2.625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<h1 class="text-center my-3"><?= $title ?></h1> <br> <?php foreach($chars as $char) : ?> <h3><?php echo $char['name']; ?></h3> <h6>Faj: <small><?php echo $char['racename']; ?> </small></h6> <h6><?php echo word_limiter($char['description'], 30); ?></h6> <p><a class="btn btn-secondary" href="<?php echo ba...
true
3ca2d7a65127c649a7307e676b86265bf3c565e1
PHP
lhale/MeanGreenSoftware
/pnuke/includes/legacy/debug.php
UTF-8
2,706
2.671875
3
[]
no_license
<?php class debug { var $status = true; var $timer = array(); var $libel = array(); var $message = array(); function debug($status=false) { // if ($status) // error_reporting (E_ALL); // else // error_reporting (E_ERROR | E_WARNING | E...
true
b28795e4a388586728b9de3b8c85322024ea297d
PHP
oworyoakim/eshop
/app/Repositories/Tenant/ExpenseRepository.php
UTF-8
3,940
2.59375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Yoakim * Date: 9/17/2018 * Time: 4:40 PM */ namespace App\Repositories\Tenant; use App\Models\Tenant\Expense; use App\Repositories\GenericRepository; use Illuminate\Support\Facades\DB; class ExpenseRepository extends GenericRepository implements IExpenseRepository { ...
true
d3eb40b9a3bc73931d58cbc3b8ace7dbaf0bad07
PHP
szpadlicho/cms
/classes/connect.php
UTF-8
445
2.734375
3
[]
no_license
<?php class Connect { private $host='sql.bdl.pl'; private $port=''; private $dbname='szpadlic_cms'; private $charset='utf8'; private $user='szpadlic_baza'; private $pass='haslo'; public function connectDB() { $con=new PDO("mysql:host=".$this->host."; port=".$this->port."; dbname=...
true
d9e1d2b0b7b621c44fd2c0ea71fbb79e74e417e0
PHP
kaaterskil/phprt
/KM/IO/FilterOutputStream.php
UTF-8
4,475
2.515625
3
[]
no_license
<?php /** * Copyright (c) 2009-2014 Kaaterskil Management, LLC * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, c...
true
a07b9c47bc047d0aca00434bc8059326c3ad4f64
PHP
vinnyvinn/bidbond-payment
/app/Traits/AddsUnique.php
UTF-8
862
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Traits; use Illuminate\Support\Facades\Schema; trait AddsUnique { public static function bootAddsUnique() { static::creating(function ($model) { $model->saveSecret($model); }); } protected function saveSecret($model) { $model->account_number = $this->generateAcco...
true
ecc5d6de44dc9eb90f0e6a6c6be7c94984d5b3c3
PHP
ovsw/chd
/includes/main-nav.inc
UTF-8
6,801
2.8125
3
[]
no_license
<?php /** * render custom markup menu for bootstrap nested navigation * * @param PageArray $pa pages of the top level items * @param Page $root root page optional, if you use other root than home page (id:1) * @param string $output for returned string collection * @param integer $level internally ...
true
a7c5aa309c783c8068275d7c4948146d600e0a9b
PHP
projetotigre/tigre
/app/controllers/ProponentesController.php
UTF-8
651
2.5625
3
[ "MIT" ]
permissive
<?php use Dingo\Api\Dispatcher; use Dingo\Api\Auth\Shield; class ProponentesController extends \BaseController { /** * $proponente resource * @var Proponente */ protected $proponente; /** * Inject dependencies by constructor * */ public function __construct(Dispatcher $api...
true
d84bd75383e49708d4e2843a72910accd436d776
PHP
carla21/mvcCommunity
/mvcframework/app/views/posts/index.php
UTF-8
665
2.546875
3
[]
no_license
<?php require APPROOT . '/views/includes/head.php'; ?> <div class="navbar dark"> <?php require APPROOT . '/views/includes/navigation.php'; ?> </div> <div class = "container"> <?php foreach($data['posts'] as $post): ?> <div class="container -item"> <h2> <?php echo $post->title; ?> <...
true
5df6cad9ab393831a2f037c7ae12ad8a4ffba8d3
PHP
saedmansour/QuestionSearch
/includes/index_code.php
UTF-8
2,438
3.078125
3
[]
no_license
<?php //IMPROTANT: header.php must be included before this file function printRecommendedQuestions() { //print recommended questions from the current database connection $rec_questions = mysql_query("SELECT question,question_name,answer FROM intro WHERE recommend = 1"); while($row = mysql_fetch_array($rec_question...
true
1f3fa1e994011b4a450d3b17711e1356e928b530
PHP
GoDoY-SP-/lumen57-skeleton
/app/Contracts/DefaultEntityContract.php
UTF-8
430
2.9375
3
[ "MIT" ]
permissive
<?php namespace App\Contracts; /** * Interface DefaultEntityContract * Contrato Padrão para Entidade * @package App\Contracts * @author Danilo D. de Godoy <danilo.doring@gmail.com> */ interface DefaultEntityContract { /** * Converter entidade para Array * @return array */ public function t...
true
6539922b8e379480a34fea099f2e90558b9e3657
PHP
biurad/nette-di-bridge
/src/Config/Loader.php
UTF-8
3,838
2.546875
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); /* * This file is part of BiuradPHP opensource projects. * * PHP version 7.1 and above required * * @author Divine Niiquaye Ibok <divineibok@gmail.com> * @copyright 2019 Biurad Group (https://biurad.com/) * @license https://opensource.org/licenses/BSD-3-Clause License * * ...
true
a1d2dd99606924aac73b7d68b5791f700defe4d3
PHP
FinalStageXuanAshleyCorinne/finalstagecapstone
/fetch_from_db.php
UTF-8
5,443
2.8125
3
[]
no_license
<?php // Connect to the database if (!include('connect.php')) { die('error finding connect file'); } $dbh = ConnectDB(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="description" content="Connect to MySQL DB and display results."> <title>Using TheMovieDB, TheMusicDB, The...
true
a292d29492226bfda6c83f03b2e02c5205c347dd
PHP
sauvabelin/netBS
/src/NetBS/CoreBundle/Block/MetaBlock.php
UTF-8
999
2.609375
3
[ "MIT" ]
permissive
<?php namespace NetBS\CoreBundle\Block; use Symfony\Component\OptionsResolver\OptionsResolver; class MetaBlock { /** * @var string */ protected $class; /** * @var ParamBag */ protected $parameters; /** * @var string */ protected $content; public function _...
true