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
04ab439babb74c8298610736c1a905a85230144c
PHP
tanminggang/Sodium
/src/Sodium/Engine/Cog/GarageCog.php
UTF-8
1,616
2.890625
3
[ "MIT" ]
permissive
<?php namespace Sodium\Engine\Cog; use Sodium\Concrete\Cog\CogConcrete; use Sodium\Contract\Cog\CogInterface; class GarageCog extends CogConcrete implements CogInterface { protected $registeredGarages = array(); protected $garageMethods = array(); public function __construct($registeredGarages) { ...
true
ca9a953dae2824652a279d4a64bbf790b897d3ff
PHP
juliasilvamoura/ProjetoLaravel-Reserva_de_Hotel
/ProjetoHotel/app/Http/Controllers/ImageController.php
UTF-8
1,760
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; //use League\CommonMark\Inline\Element\Image; use Image; use PHPUnit\Framework\Constraint\Constraint; class ImageController extends Controller { public function __construct() { } public function store(Request $request){ ...
true
acdc519763f87e8de858e427c357795d8c30d783
PHP
Web5design/p2-importer
/lib/P2Importer/Fetchers/Json.php
UTF-8
624
2.875
3
[]
no_license
<?php namespace P2Importer\Fetchers; use P2Importer\AbstractFetcher; /** * Class to get JSON * * settings * - url: url endpoint */ class Json extends AbstractFetcher { /** * Get a request object * * @throws \Exception */ public function load() { if (empty($this->settings['url'])) { t...
true
4a8d88b6b97abd6799b63388b956c6cdab518711
PHP
sotarok/ethna
/class/Generator.php
UTF-8
3,002
2.859375
3
[ "BSD-3-Clause" ]
permissive
<?php // vim: foldmethod=marker /** * Generator.php * * @author Masaki Fujimoto <fujimoto@php.net> * @license http://www.opensource.org/licenses/bsd-license.php The BSD License * @package Ethna * @version $Id$ */ // {{{ Ethna_Generator /** * スケルトン生成クラス * * @author Masaki Fujimoto <fuj...
true
7904499c32187ea7d7853ffb621880e6cf3978da
PHP
nyluntu/php-harjoituksia
/mysql/mysqli_delete.php
UTF-8
536
2.75
3
[ "MIT" ]
permissive
<?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "harjoituskanta"; // Create connection $conn = mysqli_connect($servername, $username, $password, $dbname); // Check connection if (!$conn) { die("Yhteysvirhe: " . mysqli_connect_error()); } // sql to delete a record $sql = "DELETE...
true
69039bf71fa430258a61d0b45e2a3aaa17d3e162
PHP
johanalamo/sisconot
/modulos/error/modelo/ErrorServicio.php
UTF-8
9,164
2.734375
3
[]
no_license
<?php /** * @copyright 2015 - Instituto Universtiario de Tecnología Dr. Federico Rivero Palacio * @license GPLv3 * @license http://www.gnu.org/licenses/gpl-3.0.html * * InstitutoServicio.php - Servicio del módulo Instituto. * * Esta clase ofrece el servicio de conexión a la base de datos, recibe * l...
true
675c8a80f957e0ab8048b9f7e35b2a4af915e503
PHP
miguelalfonzo/simdesarrollo2
/app/libraries/ruc.php
UTF-8
2,102
2.515625
3
[]
no_license
<?php class RUC{ public function consultRuc($rucConsult){ set_time_limit(60); $url = 'http://www.sunat.gob.pe/w/wapS01Alias?ruc='.$rucConsult; $proxy = 'proxy.bagoperu.com.pe:3128'; $proxyauth = 'outinf01:uy349asx'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_PROXY, ...
true
a7db2b28e3d4afa2c75ba1fecd6573732795f233
PHP
plug-and-share/cupid
/Control/ControlControlPanel.php
UTF-8
2,278
2.734375
3
[]
no_license
<?php class ControlPanel{ private $controlPanelModel; private $profile_id; public function __construct ( $profile_id ){ $this->profile_id = $profile_id; require "../ControlPanel/ControlPanel.class.php"; } public function ControlP(){ $controlPanelModel = new Control_panel( $this->profile_id ); ...
true
7d21bd63660da9cda547f3650ed92f8b04accc74
PHP
mathunjoroge/hospital
/doctors/test.php
UTF-8
620
3.046875
3
[ "MIT" ]
permissive
<!DOCTYPE html> <html> <body> <?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "hospital"; // Create connection $sql = new mysqli($servername, $username, $password, $dbname); // Check connection if ($sql->connect_error) { die("Connection failed: " . $sql->connect_error); } $number = ...
true
7f8b4f16e0a5f8095fca3bb662bdbf7e593a4913
PHP
jaiverMateus/back-end1
/app/Services/RegimenService.php
UTF-8
918
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Traits\ConsumeService; class RegimenService { use ConsumeService; /** * The base uri to be used to consume the authors service * @var string */ public $baseUri; /** * The secret to be used to consume the authors service * @var string ...
true
3238e328ec04ae618e68e00cf572b87ed4e19afd
PHP
JakeCortez/group-out
/php/userprofile.php
UTF-8
27,592
2.984375
3
[]
no_license
<?php class UserProfile { /** * primary key of the user, auto incrementd **/ private $userProfileId; /* * foreign key of the user's profile, auto incremented in the profile table * @see Profile */ private $dateCreated; /* * date of user profile creation, this is unique field * validate & sanitize date format, */ ...
true
c1b573af76db83f50bd82aa99d640341df14bcce
PHP
jrnunes1993/PHPUnit
/tests/Aritmetico/SomaTest.php
UTF-8
399
2.84375
3
[]
no_license
<?php namespace CodeExperts\Aritmetico; use PHPUnit\Framework\TestCase; class SomaTest extends TestCase{ public function testSomaDoisNumeros(){ $soma = new Soma(); $soma->setNum1 (10); $this->assertEquals(10, $soma->getNum1()); $soma->setNum2 (20); $this->assertEquals(20, ...
true
1805bb8810707a667f5614ad76ca07e6a5ebcb01
PHP
peanut-labs/php-sample-api-sdk
/src/Http/Response.php
UTF-8
1,914
2.796875
3
[]
no_license
<?php namespace PeanutLabs\SampleApiSDK\Http; class Response { const HTTP_STATUS = 'http_code'; private $rawResponse; private $responseMeta; private $headers; private $responseBody; public function setRawResponse($raw_response) { $this->rawResponse = $raw_response; return $this; } ...
true
2e012cadf86ae07fa5b38f2501954b861bd635a1
PHP
2Checkout/2checkout-ins-demo
/test.php
UTF-8
5,002
2.65625
3
[]
no_license
<?php /*******************************************************************\ 2Checkout INS Test Class The return.php file converts the parameters on the approved URL passback and saves them to a JSON file. Some defaults have to be used because some parameter sets return more data than others. The test.php scri...
true
ec4b3f6c9d49251b4e3f451c3f4e12b129f5d9db
PHP
jogs78/emunicach
/em/emunicach/clases/acceso.php
UTF-8
784
2.5625
3
[ "MIT" ]
permissive
<?php namespace Clases; use PDO; session_start(); class Acceso{ public function __construct(){ } public function login($email,$pwd){ $stmt = Db::prepare("SELECT * FROM usuario WHERE email = :email AND pwd = :pwd"); $stmt->bindParam(':email', $email); $stmt->bindParam(':pwd', $pwd); ...
true
a4001891d108587e9369a25e04340b0991b578bd
PHP
PorterAS/magento-plugin-v2
/Model/MethodInfo.php
UTF-8
3,137
2.578125
3
[]
no_license
<?php /** * @author Convert Team * @copyright Copyright (c) 2018 Convert (http://www.convert.no/) */ namespace Porterbuddy\Porterbuddy\Model; class MethodInfo extends \Magento\Framework\DataObject implements \Porterbuddy\Porterbuddy\Api\Data\MethodInfoInterface { /**#@+ * Constants */ const KE...
true
68803ff6d5adc60b1c709282fa54e52c849a7ad1
PHP
PaulaAguirre/expedientes_deltanet
/app/Area.php
UTF-8
1,145
2.59375
3
[ "MIT" ]
permissive
<?php /** * Autor: Paula Aguirre Copyright (c) 2018. */ namespace App; use Illuminate\Database\Eloquent\Model; use OwenIt\Auditing\Contracts\Auditable; class Area extends Model implements Auditable /** * @mixin \Eloquent */ { use \OwenIt\Auditing\Auditable; protected $table = 'areas'; p...
true
749d956ecefbe2d52c2f4aefd7f4aed9e8574cfe
PHP
AdrianoModa/MinhasAulas-PHP
/Aula07/04-eleicoes.php
UTF-8
459
2.609375
3
[]
no_license
<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="../estilo-consolephp.css"> <meta charset="utf-8"> <title></title> </head> <body> <p id="console">Executar_ </p> <div id="meu-php"> <?php $ano = $_GET["an"]; $idade = 2017 - $ano; echo "Quem nasceu em $ano tem idade de $idade anos."; $tipo ...
true
f9dbcba5cdec3c0c74c97c354fbbde23a02f51be
PHP
cdominguess/teste-composer
/tests/Classes/HelloTest.php
UTF-8
386
2.75
3
[ "MIT" ]
permissive
<?php namespace Classes; /** * Description of Hello * * @author eu */ class HelloTest extends \PHPUnit_Framework_TestCase { public function testGetHello() { $hello = new Hello(); $string = $hello->getHello(); $this->assertNotNull($string); $this->assertInternalType('string', $s...
true
1f1b35b9399e565f8915fe3bbe9055d367f01494
PHP
tohir/slimrunner
/src/smartytemplate.php
UTF-8
3,954
2.84375
3
[]
no_license
<?php use \Smarty as Smarty; use \SlimRunner\AppConfig as AppConfig; class SmartyTemplate extends Template implements TemplateInterface { /** * @var object Smarty Object */ private $sm; /** * @var array List of Variables that must be sent to every template request */ priv...
true
27c53c90271898a224b8ac24f8cfe54cc13cd89c
PHP
martygpa/WebprogFinalProject
/Gateways/CartGateway.php
UTF-8
3,005
3.328125
3
[]
no_license
<?php /** * Cart Gateway * Author: Alec Waddelow & Ronald Sease * Date: 11/22/2016 * Time: 14:20 */ class CartGateway { /** * @return connection to the database */ public function getConnection() { $hostName = "webprog.cs.ship.edu"; $database = "webprog25"; $userName ...
true
a2820e1a38a3de1919b03f7ae9811bdcaca22b6e
PHP
RedEminence/backend-php-basic
/task2/index.php
UTF-8
189
3.015625
3
[]
no_license
<?php function findStrings($prefix, $array) { $result = []; foreach ($array as $value) { if (strpos($value, $prefix) === 0) { array_push($result, $value); } } return $result; }
true
af67ed4a22111b4257f7793bd05bf21db85776a8
PHP
gcr-ciscar/gcr_ciscar
/site-administration/modules/menuDynamique/metier/modele/MenuDynamiqueManager.class.php
UTF-8
6,916
2.90625
3
[]
no_license
<?php class MenuDynamiqueManager { public function add(MenuDynamique $aMenuDynamique) { $sql = "INSERT INTO wcm_menu (MenuID, Name, IconeDeplie, IconePlie, StatutDepart, TypeVueID, ElementID, ParentID, NumOrdre)"; $sql .= " VALUES(NULL,'%s','%s','%s','%s','%s','%s',"; $sql .= is_null ( $aMenuDynamique->getP...
true
bb88b908a6917c75cc359d078ebc92e44de5337c
PHP
juanmancb90/elpais-test
/index.php
UTF-8
3,321
2.6875
3
[]
no_license
<?php include 'models/my_patient.php'; $patient_model = new my_patient(); $patients = $patient_model->list_all(); $patients_by_age = $patient_model->list_by_age(); $patients_age_50 = $patient_model->list_by_age_50(); ?> <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>El País Test</...
true
1249da2e86ea3c145ad9e4fb961026d455763080
PHP
mtblueocean/Jimmy
/module/JimmyBase/src/JimmyBase/Mapper/ReportsInterface.php
UTF-8
307
2.59375
3
[]
no_license
<?php namespace JimmyBase\Mapper; interface ReportsInterface { public function findById($id); public function findByUserIds($userIds); public function findByReportIds($reportIds); public function fetchAll(); public function insert($report); public function update($report); }
true
c846bd9092b6aefbf3f2d942aba8ef9424468354
PHP
Krishna19942/Janrain-Sample-Code
/php/janrain-engage-php-sdk/sample/token/engage-contacts.php
UTF-8
1,848
2.75
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php /** * Copyright 2011 * Janrain Inc. * All rights reserved. */ if (!isset($_GET['go']) || $_GET['go'] != 'true') { ?> <html> <head> </head> <body> <p> <a href="engage-contacts.php?go=true&identifier=<?php echo $_GET['identifier']; ?>">Click here to load your friends</a> </p> </body> </html> <?php exit; } ob_...
true
8b7a50b24bf63d48934ec5ea9964fbee0bf0396a
PHP
dameert/EMSClientHelperBundle
/src/Helper/Routing/RoutingFile.php
UTF-8
3,166
2.734375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace EMS\ClientHelperBundle\Helper\Routing; use EMS\ClientHelperBundle\Helper\Templating\TemplateFiles; use EMS\CommonBundle\Common\Standard\Json; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Yaml\Yaml; final class RoutingFile implements \Countable { pri...
true
dd58f029f281cffd002ce6cf4a08a43425b13a52
PHP
roberto2211/sitepromo
/objects/Profile.php
UTF-8
4,598
3.328125
3
[]
no_license
<?php class Profile{ // database connection and table name private $conn; private $table_name = "profile"; // object properties private $id; private $firstname; private $lastname; private $email; private $password; private $phone; private $gender; pri...
true
658766d8997fc544392670bcaca341a71c82a553
PHP
HugoCarre/Revisions
/UE_BDD_web/spaceship/inc/bdd.php
UTF-8
310
2.59375
3
[]
no_license
<?php //Connexion à la bdd $db_server="localhost"; $db_username="root"; $db_paswword=""; $db_dbname="rubika"; try{ $db = new PDO('mysql:host='.$db_server.';dbname='.$db_dbname.';charset=utf8',$db_username, $db_paswword); } catch(PDOException $e) { echo 'Connexion échouée:'.$e->getMessage(); } ?>
true
30546f50e4ee27b74ce1a366f17890521cffb49a
PHP
rdfariz/CRUD_PHP_MYSQLi
/cari.php
UTF-8
2,435
2.546875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Cari</title> <link rel="stylesheet" type="text/css" href="CSS/sidebar.css"> <link rel="stylesheet" type="text/css" href="CSS/bootstrap.css"> <?php include("config.php");?> </head> <body> <div id="container"> <ul class="nav nav-pills nav-stacked sidebar"> <li ro...
true
a2de7050c044301ecf46b60e7294abb14c78f118
PHP
shomisha/crudly
/src/helpers.php
UTF-8
326
2.578125
3
[ "MIT" ]
permissive
<?php if (!function_exists('configureDeveloper')) { function configureDeveloper(string $class, array $arguments = []) { $arguments = collect($arguments)->map(function (string $value, string $name) { return "{$name}:{$value}"; })->implode(','); return "{$class}.{$arguments}"; ...
true
ea08d3217af59f0e9d9890a8bf2ded19a7cfdd8c
PHP
Enrikerf/symfonyApiKerf
/app/src/Application/Port/out/Persistence/Database/CreateProjectIssuePort.php
UTF-8
408
2.71875
3
[]
no_license
<?php namespace App\Application\Port\out\Persistence\Database; use App\Domain\Issue\Issue; use Exception; interface CreateProjectIssuePort { /** * @param int $id * * @return Issue|null * @throws Exception */ public function get(int $id): ?Issue; /** * @param Issue $issue ...
true
39b7a63b5ca68fffca2235757af09ae7f8ec2c1f
PHP
ljacqu/AuthMe-translate
/controller/Template.php
UTF-8
1,792
3.25
3
[]
no_license
<?php // Taken from https://github.com/ljacqu/connectedshows class Template { private function __construct() { } static function displayTemplate($file, array $tags) { if (!file_exists($file)) { throw new Exception('Template file "' . htmlspecialchars($file) . '" does not exist'); } $template ...
true
c4385e72d7e4e982f2ae8c516f27947da3d8f7c1
PHP
janakkafle/Stock-Trading-Software
/Code/reg.php
UTF-8
3,543
2.53125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <?php // Create connection $conn = new mysqli("localhost", "root", "", "test"); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); }else{//echo "Connected successfully"; } //----- $username=...
true
c808308068a9bea781cd57482cdb9b74f2110b3e
PHP
gipfl/icingaweb2
/src/Controller/Extension/AutoRefreshHelper.php
UTF-8
747
2.546875
3
[]
no_license
<?php namespace gipfl\IcingaWeb2\Controller\Extension; use InvalidArgumentException; trait AutoRefreshHelper { /** @var int|null */ private $autorefreshInterval; public function setAutorefreshInterval($interval) { if (! is_int($interval) || $interval < 1) { throw new InvalidArgum...
true
1711c3770bad991458ef8fd640ffe8772fc533d3
PHP
riandigit/pmkd
/application/libraries/Log_activity_txt.php
UTF-8
3,340
3.171875
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * Library log activity to txt. * @author Arief Darmawan <arief.darmawan1991@gmail.com> */ class Log_activity_txt { protected $file_path; protected $file_name; protected $file_line; /** * Check directory's and file's e...
true
7b63241bc718fb5513f727070b965f3360906dbb
PHP
PauliusLat/ND
/paulius_latvenas_6.php
UTF-8
5,200
3.109375
3
[]
no_license
<?php echo '=== Paulius Latvenas. Week-2. Part-6: Funkcijos. ===<br>'; echo '<br>---------------U1------------------<br>'; function insertH1($text){ return "<h1>$text</h1>"; } echo insertH1("Labas."); echo '<br>---------------U2------------------<br>'; function insertH1Tag($text, $tag){ ...
true
1a7b899d0ce1b878acfbde79cac0a97b4d15ce5d
PHP
tatu-carreta/can-la
/php/validate/validateEtiqueta.php
UTF-8
846
2.609375
3
[]
no_license
<?php function validarAltaEtiqueta() { $ok = false; $text = ""; $arregloTipos = array("notaprensa", "noticia", "publicacioncanla", "posicion"); if (!isset($_POST['nombreEtiqueta']) || ($_POST['nombreEtiqueta'] == "") || (!is_string($_POST['nombreEtiqueta']))) { $text = "Problema en el nombre ...
true
fc81f92d3c3b169626d65b800c8cdbff495b7cf2
PHP
leopardNL/IG3WEB
/model/gest_actu.php
UTF-8
790
2.5625
3
[]
no_license
<?php function liste_article() //recupère la liste des articles { include '../model/connexion_sql.php'; $resultat = $bd->query("SELECT * FROM actualite ORDER BY id_actu DESC"); $tab = $resultat->fetchAll(); return $tab; } function supp_article($id, $valeur) //supprime un article { include '../model/...
true
82a5e953f3f489b31b43099b65aafc1ed568ac36
PHP
Groscheri/csrf-seminar
/webapp/core/csrf.class.php
UTF-8
2,759
3.34375
3
[]
no_license
<?php // csrf class class csrf { const SECRET_KEY = 'a0e605ee21f0b7bdd85ff2edb8177dcf'; // 16 bytes key const SEPARATOR = '$'; // mustn't be a base64 characters i.e. not from [0-9a-zA-Z/=+] public static function generate_signed_token($size = 64) { $token = self::generate_token($size); $s...
true
3281fadcd00187d39bdd1faf66eca8e0af035489
PHP
TehleelMir/online_student_registration
/student/queries.php
UTF-8
4,787
2.5625
3
[]
no_license
<?php $dbServerName = "localhost"; $dbUserName = "root"; $dbPassword = ""; $dbName = "osr_db"; $db = mysqli_connect($dbServerName,$dbUserName,$dbPassword,$dbName) or die("error occured in querys.php file line 8"); function isStudentVaild($username , $password){ global $db; $query = "SELECT * FROM students WHERE ...
true
7b6b46f07eb2c3c5e4b21c50ec99c36e348ffb0e
PHP
Jerff/v9.jdjiwi
/jdjiwi.org.core/_.core/input/cInputUrl.php
UTF-8
442
2.515625
3
[]
no_license
<?php class cInputUrl { public function adress() { return 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; } public function host() { return 'http://' . $_SERVER['HTTP_HOST']; } public function uri() { return get($_SERVER, 'REQUEST_URI'); } // юзаются...
true
fcb2fb72a1fb30c70932652c23e0f1158f547336
PHP
MaCroTux/crypto-notes
/src/Infrastructure/Persistence/File/JsonNotesRepository.php
UTF-8
1,648
3.09375
3
[]
no_license
<?php namespace CryptoNotes\Infrastructure\Persistence\File; use CryptoNotes\Domain\Note; use CryptoNotes\Domain\NotesCollection; use CryptoNotes\Domain\NotesRepository; class JsonNotesRepository implements NotesRepository { private NotesCollection $notes; private string $fileName; public function __con...
true
f8c1f6cdd84a0992857976901788bba473926086
PHP
RiinaKw/cities-history
/fuel/app/classes/controller/admin/reference.php
UTF-8
2,904
2.546875
3
[ "MIT" ]
permissive
<?php /** * The Admin Controller. * * Admin controller for edit date references. * * @package app * @extends Controller_Admin_Base */ class Controller_Admin_Reference extends Controller_Admin_Base { const SESSION_NAME_FLASH = 'admin_data.reference'; public function action_list() { // create Presenter ob...
true
a15b2ce412203fe1b0a152ef280a2e5d241e2295
PHP
fbzz/minimalERP
/src/dao.php
UTF-8
6,259
2.96875
3
[]
no_license
<?php class dao { public function getConnection() { $DBServer = 'localhost'; // e.g 'localhost' or '192.168.1.100' $DBUser = 'root'; $DBPass = ''; $DBName = 'moviecatalog'; $conn = new mysqli($DBServer, $DBUser, $DBPass, $DBName); if (!$conn->set_chars...
true
50c835cb592231f47da879d33ce33a5a471b5167
PHP
grafitto/zeroqu
/app/handlers/adminsignuphandler.php
UTF-8
1,542
2.765625
3
[]
no_license
<?php class AdminSignupHandler extends RequestHandler { public function post() { //uncomment the 2 lines below to disable account creation // $this->viewParams->signupErrors = ['New accounts are not accepted at this time.']; // return $this->renderView('home'); $orgTitle = $this->trimPostVar('title'); $...
true
7034ef30933da426e91fb049d55a1d0f1a68223e
PHP
Skullbeat/ProyectoFP
/componentes/editorDietas/model.php
UTF-8
2,369
2.6875
3
[]
no_license
<?php class modelEditor{ public static function obtenDieta($id_dieta){ $db = new database(); $sql = 'SELECT * FROM dietas WHERE id = :id_dieta'; $params = array( ':id_dieta' => $id_dieta ); $db->query($sql, $params); $dieta = $db->cargaFila(); ret...
true
3a11d40599ab0bf6b65596a8e71fd74db073ce6e
PHP
ozkanozcan/eburhan_dbo_class
/backend/Cache/Adapter/File.php
UTF-8
5,352
2.8125
3
[]
no_license
<?php class Cache_Adapter_File extends Cache_Adapter { public function __construct(Array $opt) { // varsayılan seçenekler $def = array( 'maxTime' => 0, // 0 : sonsuz 'keyFunc' => 'md5', 'dirPath' => './log/cache/', // yazılabilir olmalı ! ...
true
6ac6406862e2ef935097bfcaa635dc005dd9e2d2
PHP
PromPHP/prometheus_client_php
/src/Prometheus/RenderTextFormat.php
UTF-8
2,355
3.015625
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace Prometheus; use RuntimeException; class RenderTextFormat implements RendererInterface { const MIME_TYPE = 'text/plain; version=0.0.4'; /** * @param MetricFamilySamples[] $metrics * @return string */ public function render(array $metrics): string ...
true
252bba91c4454a9b4ac3eeff40e0e83d16f6cce7
PHP
npv34/VT_C0321G1_demo_web_app
/src/controller/UserController.php
UTF-8
1,191
2.640625
3
[]
no_license
<?php namespace Src\Controller; use Src\Model\GroupModel; use Src\Model\UserModel; class UserController { public $userModel; public $groupModel; public function __construct() { $this->groupModel = new GroupModel(); $this->userModel = new UserModel(); } function getAllUser() ...
true
931d63f4cdb7ce9ce9cc671641178c53e8665471
PHP
mbehiels/omp
/classes/monograph/MonographDAO.inc.php
UTF-8
18,124
2.625
3
[]
no_license
<?php /** * @file classes/monograph/MonographDAO.inc.php * * Copyright (c) 2003-2011 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * @class MonographDAO * @ingroup monograph * @see Monograph * * @brief Operations for retrieving and modifying Monograph objects....
true
842b18c6416f6e820bf806f23fd3c8fb0326787c
PHP
gizmore/gwf3
/core/inc/util/GWF_GDOSerializer.php
UTF-8
1,366
3.140625
3
[]
no_license
<?php /** * Used in an old project where i better should have used JSON :) * @author gizmore * @deprecated */ final class GWF_GDOSerializer { public static function serializeHTTP(GDO $gdo) { $back = '1:'.PHP_EOL; self::serializeHTTPGDO('', $gdo, $back); return $back; } public static function serializeHT...
true
e7f1f80be14ec0ae00a688d629fcb1d3949394a8
PHP
garethellis36/tldr-php
/tests/Page/TldrPageTest.php
UTF-8
686
2.78125
3
[ "MIT" ]
permissive
<?php namespace GarethEllis\Tldr\Tests\Page; use GarethEllis\Tldr\Page\TldrPage; class TldrPageTest extends \PHPUnit_Framework_TestCase { public function testConstructionSetsNameAndContentProperties() { $name = "Test"; $platform = "common"; $content = "Lorem ipsum"; $page = ne...
true
f5eac877ea9ecab190a8290293cb5f23d7f5f1b6
PHP
angel1631/finca
/models/orm/rol.php
UTF-8
539
3.015625
3
[]
no_license
<?php //require_once('ORM.php'); class rol extends ORM { public $id, $titulo, $estatus; protected static $table = 'rol'; public function __construct($data){ parent::__construct(); //llamo el orm if($data && sizeof($data)){ $this->populateFromRow($data); } } public function populateFromRow($da...
true
b5908c1049faf9e55fbc03184d5f0dab50b3facd
PHP
MateusVictorIderiha/tccEstampariaNippes
/estamparia/model/VendaModel.php
UTF-8
10,861
2.515625
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace estamparia\model; use estamparia\libs\Crud; /** * Description of VendaModel * * @author Mateus ...
true
75f909becdb30b3d97bf2152af5ac99d83235f09
PHP
benji07/Benji07OAuthBundle
/OAuth/Request.php
UTF-8
7,655
3.171875
3
[]
no_license
<?php namespace Benji07\Bundle\OAuthBundle\OAuth; /** * Request */ class Request { protected $parameters; protected $httpMethod; protected $httpUrl; // for debug purposes public $baseString; /** * __construct * * @param string $httpMethod httpMethod * @param string $htt...
true
1ea1a5fd1a82b1c5428a9ac136e184d8a08a762f
PHP
symflex-old/comments
/php/db.php
UTF-8
2,796
2.984375
3
[]
no_license
<?php class Db extends PDO { /** * @param int $postId * @return array * @throws Exception */ public function getComments(int $postId): array { $sql = 'SELECT id, parent_id, post_id, text, DATE_FORMAT(created_at, "%d.%m.%Y %h:%i") AS date FROM c...
true
d2c4fcc4e0febf9c5cce7a38c77d8443c0cced9a
PHP
ITECH3208andITECH3209feduni/Express-Service
/booking.php
UTF-8
1,732
3.0625
3
[]
no_license
<?php Class Booking { public function __construct(){ $this->db = $this->getDB(); } // Connect Database private function getDB() { $dbhost="localhost"; $dbuser="root"; $dbpass="@123456"; $dbname="service"; $dbConnection = new PDO("mysql:host=$dbhost;dbname=$dbname", $dbuser, $dbpass);...
true
9050094c1197a3c024967d1772723634d3405fd3
PHP
ibrunotome/laravel-api-templates
/modular-structure/app/Domain/Users/Rules/WeakPasswordRule.php
UTF-8
692
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Domain\Users\Rules; use Illuminate\Contracts\Validation\Rule; use Illuminate\Support\Facades\Cache; class WeakPasswordRule implements Rule { /** * {@inheritdoc} */ public function passes($attribute, $value) { $path = realpath(__DIR__ . '/weak_password_list.txt'); ...
true
94b99ce621386d5a54d32f50151e1e078319deb8
PHP
MyParcelCOM/api-sdk-php
/src/Collection/ArrayCollection.php
UTF-8
2,317
3.0625
3
[]
no_license
<?php declare(strict_types=1); namespace MyParcelCom\ApiSdk\Collection; use MyParcelCom\ApiSdk\Resources\Interfaces\ResourceInterface; class ArrayCollection implements CollectionInterface { /** @var ResourceInterface[] */ protected array $resources = []; protected int $offset = 0; protected int $li...
true
98077a622082f932216dcc654453851dd72f1af3
PHP
sandboxdigital/zephyr-cms
/src/Content/Field/File.php
UTF-8
1,159
2.796875
3
[]
no_license
<?php namespace Sandbox\Cms\Content\Field; use Sandbox\Cms\Site\CmsFile; class File extends AbstractField { private $_files = []; function __construct($elementSpec) { parent::__construct ($elementSpec); } function __toString() { $file = $this->getFile(); if ($file) { ...
true
1c42c80231653c3e724c020f1038bbc92aaaa405
PHP
peixun/peixun
/ThinkPHP/Api/LW_ORM/lw_orm.class.php
UTF-8
17,506
2.71875
3
[ "Apache-2.0" ]
permissive
<?php class lw_orm { const DB_FETCH_ASSOC = 1; const DB_FETCH_ARRAY = 3; const DB_FETCH_ROW = 2; const DB_FETCH_DEFAULT = self::DB_FETCH_ASSOC; public static $db; protected static $db_type = array('mysql' => 'MySQL', 'oracle' => 'Oracle'); protected static $lw_db_configs = ar...
true
3ddee0c2f6816f71417ff4d544f620f4873bda49
PHP
djbingham/php-celestial
/Celestial/Module/Cookie/CookieModule.php
UTF-8
607
2.796875
3
[]
no_license
<?php namespace Celestial\Module\Cookie; class CookieModule { public function set($name, $value, $expires = null) { if (is_null($expires)) { setcookie($name, $value); } else { setcookie($name, $value, $expires); } return $this; } public function get($name) { $value = null; if ($this->exists($...
true
729f717929e333785b87a0aef894338481b48d59
PHP
charles-wpalmer/StockMarketPredictorWeb
/app/Http/Controllers/Api/NewsInfoController.php
UTF-8
1,077
2.71875
3
[]
no_license
<?php namespace App\Http\Controllers\Api; use Illuminate\Http\Request; use App\NewsInfo; class NewsInfoController extends Controller { /** * Index function, display home page if logged in * * @return \Illuminate\Database\Eloquent\Collection|static[] */ public function index(){ ret...
true
57ed871b0a615e24fb0990769b26b9ac2359da31
PHP
zZ-O-O-M/PHPKursTrain
/Lessons/DB-lesson-before-refactoring/model/gallery.php
UTF-8
98
2.578125
3
[]
no_license
<?php function checkImageName(string $name): bool { return preg_match('/.*\.jpg$/', $name); }
true
3d2057bbe04b554d49db5ab69ea19364059d76cb
PHP
techgenie-io/aml-woocommerce
/aml-woocommerce.php
UTF-8
1,996
2.578125
3
[]
no_license
<?php /** * Plugin Name: AML WooCommerce * Author: IKE * Author URI: https://techgenie.io/ * Version: 0.0.1 * */ if (!class_exists('AML_WooCommerce')) : class AML_WooCommerce { /** * Construct the plugin. */ public function __construct() { a...
true
a26d39a02b8c617a8a0ccceeebdae428304539fa
PHP
mirandaguillaume/shop-generator
/src/ItemBundle/Entity/Carrier.php
UTF-8
507
2.90625
3
[]
no_license
<?php namespace ItemBundle\Entity; /** * Carrier */ class Carrier extends Animal { /** * @var int */ private $capacity; /** * Set capacity * * @param integer $capacity * * @return Carrier */ public function setCapacity($capacity) { $this->capacity...
true
7b9b237077e6b03632435d582a4f91d6cb72a43f
PHP
fusionFramework/economy
/migrations/economy/20131115171126_economy-stores.php
UTF-8
2,661
2.515625
3
[ "MIT" ]
permissive
<?php defined('SYSPATH') OR die('No direct script access.'); /** * Shops */ class Migration_Economy_20131115171126 extends Minion_Migration_Base { /** * Run queries needed to apply this migration * * @param Kohana_Database $db Database connection */ public function up(Kohana_Database $db) { $db->query(...
true
61d6c4e673bde8433b7e046a4f020aec9eabecc2
PHP
Indinuity/gs1
/src/Barcode/Rules/TypeA.php
UTF-8
809
2.53125
3
[]
no_license
<?php namespace Ayeo\Gs1\Barcode\Rules; use Ayeo\Gs1\Model\ApplicationIdentifier as AI; use Ayeo\Gs1\Model\LogisticLabel; /** * This is for Application Identifier: * GLOBAL TRADE ITEM NUMBER (01) * * TypeA means that SSCC (palet) contains just one item with given GTIN (01) * that is why there is no option to set...
true
e1adacc8261c7f14c8cfdbba705e9033671c4631
PHP
Vkolya/bsa2018-php-11
/app/Repository/LotRepository.php
UTF-8
960
2.78125
3
[]
no_license
<?php namespace App\Repository; use App\Entity\Lot; use App\Repository\Contracts\LotRepository as LotRepositoryInterface; class LotRepository implements LotRepositoryInterface { /** * @inheritdoc */ public function add(Lot $lot) : Lot { $lot->save; return $lot; } ...
true
2cf91f44dadaa88f7034bdc7f1f87b7a56b0c7e0
PHP
jamessnook/ucsc
/drc-etext/protected/models/Email.php
UTF-8
3,503
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * This is the model class for table "email". * * Represents an email message which has been sent or is available to be sent to th einstructors of a course. * The followings are the available columns in table 'email': * @property integer $id * @property string $message * @property string $subject * @...
true
f54e2b15d91b04513241d579d75e9baef9091d04
PHP
apteles/editora-online
/Modules/CodeEduBook/Policies/BookPolicy.php
UTF-8
1,391
2.53125
3
[]
no_license
<?php namespace CodeEduBook\Policies; use Users\Entities\User; use CodeEduBook\Entities\Book; use Illuminate\Auth\Access\HandlesAuthorization; class BookPolicy { use HandlesAuthorization; public function before($user) { if ($user->can(config('codeedubook.al.permissions.book_manage_all'))) { ...
true
04eee2cd323ab2bf94816c14a4acaf3f42a45a27
PHP
HienDao97/PHP_Learn
/Unit01/Ex2.php
UTF-8
589
3.125
3
[]
no_license
<?php echo "---Giai phuong trinh bac hai--- <br>"; $a=1; $b=2; $c=1; if($a==0){ if($b==0&&$c==0){ echo "Phuong trinh co vo so nghiem"; }else if($b==0&& $c!=0){ echo "Phuong trinh vo nghiem"; }else{ echo "Phuong trinh co nghiem x= ".-$c/$b; } }else{ $delta = $b*$b-4*$a*$c; if($delta<0){ ec...
true
54406c7383a901b4b6bc1828e081b80de1aa98c6
PHP
medyun/hkucuk-iyzico-laravel-package
/src/Hkucuk/Iyzico/Iyzico.php
UTF-8
1,431
2.8125
3
[]
no_license
<?php namespace Hkucuk\Iyzico; use Illuminate\Support\Facades\Config; /** * Created by PhpStorm. * User: hkucuk * Date: 17.08.2015 * Time: 18:29 */ class Iyzico{ private $api_id; private $secret; public function __construct(){ $this->api_id = Config::get('iyzico::api_id'); $this->...
true
8663c2532a59896073babae942af61113be2ab1b
PHP
b4us/aliyun-openapi-php-sdk
/aliyun-php-sdk-openanalytics/openanalytics/Request/V20180301/SetAllowIPRequest.php
UTF-8
1,628
2.75
3
[ "Apache-2.0" ]
permissive
<?php namespace openanalytics\Request\V20180301; /** * Request of SetAllowIP * * @method string getUserID() * @method string getNetworkType() * @method string getAllowIP() * @method string getAppend() */ class SetAllowIPRequest extends \RpcAcsRequest { /** * @var string */ protected $method ...
true
557051b687fdbcf735902d3211fb3a253600afad
PHP
apple1456936547/laravel7
/app/Http/Controllers/ProductController.php
UTF-8
7,787
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Product; use App\ProductImg; use App\ProductType; use LengthException; use Illuminate\Http\Request; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Storage; class ProductController extends Controller { /** * Display a listing of the resource....
true
6c66132a999d5506abcbbce3b9185e7d34e25e18
PHP
Gazaris/UCode_Web
/Sprint05/t04/index.php
UTF-8
85
2.75
3
[]
no_license
<?php function total($num, $val, $cur = 0){ $cur += $val * $num; return $cur; } ?>
true
be272ff174d1c6525c4855dcc8fd55e2a91ef782
PHP
Luckum/vsemdostupno
/models/CandidateGroup.php
UTF-8
1,071
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "candidate_group". * * @property integer $id * @property string $name * * @property Candidate[] $candidates */ class CandidateGroup extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function tableNam...
true
c887e00ecb96d803c817b11f3f8789496ca64bf0
PHP
karimkkanji/khdms
/home/assets/serve/records.php
UTF-8
1,152
2.515625
3
[]
no_license
<?php $active=$_SESSION['active']; //Gear host credentials for the gearhost sql server $conn=new mysqli("den1.mysql1.gear.host","khdms","Hw5Gp!!a0KVQ","khdms"); //Local host credentials for localhost sql server //$conn=new mysqli("localhost","root","","khdms"); if($conn->connect_error){ die("Problem occured try...
true
91b7fd6ea836c569fa73ef4837a292cd4f92d690
PHP
dmeehan1968/ZingPHP
/Web/UI/THtmlScript.php
UTF-8
949
2.625
3
[]
no_license
<?php class THtmlScript extends THtmlHeadComponent { public function preInit() { $this->setTag('script'); if (!$this->hasType()) { $this->setType('text/javascript'); } parent::preInit(); } public function hasInnerContent() { return true; // always render open and closing tag, as script don't support...
true
4938c2ccd0470696f33fd659243e91b38534937e
PHP
brilletjuh/idpmaeslantkering
/web-portal/dataController.php
UTF-8
532
3
3
[]
no_license
<?php /* Author: Matthias Krijgsman */ class dController { function __construct(){ $this->db_server = "Helaas! Geen gratis database"; $this->db_name = ""; $this->db_username = " (Oh shit ze staan natuurlijk "; $this->db_password = " gewoon in github) "; try{ ...
true
73155c9e65c78c305e41f49173b4a47933b3833e
PHP
rahulyhg/cmsX-PHP
/app/Model/ImageProcessing.php
UTF-8
4,044
2.78125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: tomasznicieja * Date: 29.10.2016 * Time: 14:41 */ namespace App\Model; use Illuminate\Database\Eloquent\Model; use Image; /** * Class ImageProcessing * @package App */ class ImageProcessing extends BaseModel { /** * prepareFileName method * * @para...
true
49be584f7eaccd451774d86dea58117380cd4177
PHP
Note-project/backend
/recieveNotes.php
UTF-8
1,665
2.78125
3
[]
no_license
<?php header("Access-Control-Allow-Origin: *"); class Receive_notes { function save_notes() { $note = $_POST["note"]; if (trim($_POST['email']) == '') { $hasError = true; echo "bad email"; echo json_encode($validEmail = false); ...
true
9ec695f35e8069bec34d4d3b5416552421c9b484
PHP
DaniJD/DWES
/Tema2/formula.php
UTF-8
3,111
2.78125
3
[]
no_license
<!doctype html> <html lang="en"> <head> <title>Ejercicio2 Clasificaciones</title> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://stackpath.boo...
true
71ef879cd1faacc0dedd120035810b71e58e50c7
PHP
nkemdirim-arukwe/Salon-Management-System
/logout.php
UTF-8
246
2.546875
3
[]
no_license
<?php if(session_start()) {session_destroy(); $_SESSION = array();} header("location:index.php"); //This page destroys all set session values and sets the $_SESSION array to an empty array, thus effectively logging out any logged in user. ?>
true
c60b1ced20b558f93a9d565cee8008c9377ad743
PHP
botayhard/bw-testing
/backend-master/app/Http/Controllers/MetatagController.php
UTF-8
629
2.625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\Metatag; use Illuminate\Http\Request; class MetatagController extends Controller { public function create(Request $request) { $this->validate($request, [ 'keywords' => 'string|nullable', 'title' => 'string|nullable', ...
true
2d28666f20fbff3986adf890f84ebb6f8e51256e
PHP
ayaafathy/HR-Letters-Website
/infoAccept.php
UTF-8
1,344
2.6875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "hr"; $conn = new mysqli($servername, $username, $password, $dbname); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error...
true
a16408df8778edfcef4172affff82c91b767430a
PHP
akshaykheral/all_php_project
/image/view_updated_application.php
UTF-8
1,683
2.53125
3
[]
no_license
<?php require('db.php'); $sql = "SELECT MAX(id) from imagedb"; $result = mysql_query($sql); $last_id = mysql_result($result,0); $sql1 = "SELECT * FROM imagedb WHERE id=$last_id"; $result1 = mysql_query($sql1); while ($row = mysql_fetch_assoc($result1)) { $id_edit = $row['id']; $firstname_edit = $row['f...
true
31a08b7e26efe2b1c1d71a7ee02f9f735c89c310
PHP
cosma/simple-state-machine
/src/Transition.php
UTF-8
1,353
2.8125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * This file is part of the "SimpleStateMachine" project * * (c) Cosmin Voicu<cosmin.voicu@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * Date: 11/07/14 * Time: 23:45 */ namespace Cosma\SimpleStateMachine;...
true
6fa04e1514a236ba4b6a7239b2592851c63dcf84
PHP
OmaimaSalem/Tickets_Managing
/app/Notifications/BaseNotification.php
UTF-8
870
2.53125
3
[]
no_license
<?php namespace App\Notifications; use Illuminate\Notifications\Notification; class BaseNotification extends Notification { public function intro($message, $notifiable) { if ($notifiable->metadata) { $name = $notifiable->metadata->last_name ? $notifiable->metadata->last_name : $notifiable...
true
22ea6d3bd923220e2d4f94415b3d2aec2c2b4b48
PHP
timurbakarov/english-school
/src/Infr/Repository/RepositoryMapper.php
UTF-8
220
2.640625
3
[]
no_license
<?php namespace Infr\Repository; interface RepositoryMapper { /** * @param $id * @param string|null $context * @return string */ public function map($id, string $context = null) : string; }
true
fd944b073bbaa0c664d99a66efddf564e3858ff8
PHP
kulturman/esc-stage-app
/app/Notifications/DocumentUploaded.php
UTF-8
1,871
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Notifications\Notification; use Illuminate\Notifications\Messages\MailMessage; class DocumentUploaded extends Notification { use Queueable; private $recipient; private $admin; private $isStudent; /** * Create a ...
true
a1dd786ed6ec5a4250d42374edc54309d6b4b205
PHP
rploaiza/dbpedia-latinoamerica
/extraction-framework/mediawiki/maintenance/populateBloomCache.php
UTF-8
2,780
2.84375
3
[ "LGPL-2.0-or-later", "GPL-2.0-or-later", "LicenseRef-scancode-generic-exception", "GPL-1.0-or-later", "CC-BY-SA-3.0", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-warranty-disclaimer", "GPL-2.0-only", "LicenseRef-scancode-public-domain", "CC-BY-4.0", "CC-BY-NC-4.0", "License...
permissive
<?php /** * Script to populate a bloom filter with a BloomFilter* class * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later v...
true
44aaaca8f530324d0eee80682723d9ad8f4e0e58
PHP
kunal1/Zenith
/index.php
UTF-8
26,861
2.75
3
[]
no_license
<?php require 'LoginRegistration/core.php'; //$generalClass->logged_in_protect(); session_start(); require_once './members/userStory.php'; require_once 'Database.php'; $conn= Database::getCountries(); //to get list of countries $country_val="<option></option>"; for ($i = 0; $i < count($conn); $i++) { $co...
true
5d90a60307184ce6585de71143d22dd640af174b
PHP
wonderpush/wonderpush-php-lib
/lib/Obj/FrequentFieldValues.php
UTF-8
1,628
2.8125
3
[ "Apache-2.0" ]
permissive
<?php namespace WonderPush\Obj; if (count(get_included_files()) === 1) { http_response_code(403); exit(); } // Prevent direct access class ValueOccurrence extends BaseObject { /** @var int */ private $occurrences; /** @var string */ private $value; /** * @return int */ public function getOccurre...
true
75232aae85dbc2ffb91503f8b8268b29af24acc8
PHP
arzole/booking-website
/src/CoreBundle/Entity/CredentialType.php
UTF-8
1,884
2.578125
3
[ "MIT" ]
permissive
<?php namespace CoreBundle\Entity; use CoreBundle\Repository\CredentialTypeRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=CredentialTypeRepository::class) */ class CredentialType { /** ...
true
c07aad1f8c95cf08b7ff329f2db13c89e6c24641
PHP
sahartak/laravel-mail-api
/app/Http/Controllers/MailController.php
UTF-8
993
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Interfaces\MailInterface; use Illuminate\Support\Facades\Validator; class MailController extends Controller { protected $mail; /** * MailController constructor. * @param MailInterface $mail */ public function __co...
true
5eda5eca36827adb099aa8c1767b6a61f46d3936
PHP
ipformationlyon/dev2-ipfolio
/src/application/Core/controllers/EducationController.php
UTF-8
1,431
2.5625
3
[]
no_license
<?php class EducationController extends Zend_Controller_Action{ public function indexAction() { $this->_forward('read'); } public function createAction(){ //Construction d'un Formulaire $form = new Core_Form_Education(); $form->setDecorators(array( array...
true
18aa69a177648ef1b923e735e7f28dac08fa59ad
PHP
janephp/janephp
/src/Component/OpenApi3/Tests/fixtures/github/expected/Model/CommitSearchResultItem.php
UTF-8
6,550
2.671875
3
[ "MIT" ]
permissive
<?php namespace Github\Model; class CommitSearchResultItem extends \ArrayObject { /** * @var array */ protected $initialized = array(); public function isInitialized($property) : bool { return array_key_exists($property, $this->initialized); } /** * * * @var s...
true
cbff2c3736e1d6c13c2088117ab9b9d7942d0343
PHP
HabibAroua/Altro-Tunisia
/App/Model/Produit.php
UTF-8
5,974
2.6875
3
[ "Apache-2.0" ]
permissive
<?php require_once('../App/DataBase/query.php'); class Produit { private $ref; private $image; private $libelle; private $prix; private $description; private $date_ajout; private $id_cat; private $login_admin; private ...
true