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
db87b5049fdbcd98cdf2caa52388cc8c2095db5f
PHP
dioum2touba/Covoiturage
/api/offre/update.php
UTF-8
1,416
2.640625
3
[]
no_license
<?php // required headers header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); header("Access-Control-Allow-Methods: POST"); header("Access-Control-Max-Age: 3600"); header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-...
true
4500b9651f3322c4dcbe78e9fe2b60725426c5e6
PHP
ellylldhan/eni-php-series
/src/Entity/Serie.php
UTF-8
6,219
2.515625
3
[]
no_license
<?php namespace App\Entity; use App\Repository\SerieRepository; use DateTime; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; use Symfony\Component\Validator\Constraints as Assert; /** * @UniqueEntity(fields={"tmdbId"}...
true
2a5201ff72a904fb83062e7bc21d042f8e8a2871
PHP
pandaleague/OpenApiBuilder
/src/Encoding.php
UTF-8
3,133
2.859375
3
[]
no_license
<?php namespace PandaLeague\OpenApiBuilder; class Encoding { protected $contentType; protected $headers = []; protected $style; protected $explode = true; protected $allowReserved = false; /** * The Content-Type for encoding a specific property. Default value depends on the property type...
true
6e6e8a8320cd601679051f1be9c107134853c25e
PHP
chrisbeckstrom/fishinglog
/php/speciescount.php
UTF-8
2,650
3.46875
3
[ "BSD-3-Clause" ]
permissive
<?php // SPECIES COUNT // this script takes a TRIPID and tries to figure out how many of each species were caught include 'config/config.php'; include 'config/connect.php'; // FOR TESTING $username = 'cbfishes'; $tripnumber = 406; print "<br><br><b>------ php/speciescount.php -------</b><br>"; // if the user di...
true
6c2573030e9a3d1816881fd64f081fc33ba88109
PHP
ArcherCraftStore/ArcherVMPeridot
/apps/owncloud/htdocs/lib/private/cache/file.php
UTF-8
3,072
2.703125
3
[ "Apache-2.0", "MIT", "AGPL-3.0-only" ]
permissive
<?php /** * Copyright (c) 2012 Bart Visscher <bartv@thisnet.nl> * This file is licensed under the Affero General Public License version 3 or * later. * See the COPYING-README file. */ namespace OC\Cache; class File { protected $storage; protected function getStorage() { if (isset($this->storage)) { return...
true
1355aa9935049526fde9c33ea436bf15194acb0e
PHP
maprangzth/repair
/app/protected/models/Device.php
UTF-8
7,460
2.71875
3
[]
no_license
<?php /** * This is the model class for table "devices". * * The followings are the available columns in table 'devices': * @property integer $id * @property integer $location_id * @property integer $device_type_id * @property integer $device_brand_id * @property integer $device_model_id * @property string $d...
true
cb2ebb9c26361fec8a8ff5c04bfa02556f869f6e
PHP
dilipsam/i-life
/database/migrations/2016_07_17_010822_create_growth_charts.php
UTF-8
1,140
2.59375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateGrowthCharts extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('charts', function (Blueprint $table) { $ta...
true
142b18a0df77fa2d8cf8537f9ffe13ed1bbe3b09
PHP
paljinov/php-advent-of-code
/tests/Puzzle/Year2019/Day2_1202ProgramAlarm/Part1Test.php
UTF-8
1,354
2.671875
3
[ "MIT" ]
permissive
<?php namespace Tests\Puzzle\Year2019\Day2_1202ProgramAlarm; use App\Puzzle\Year2019\Day2_1202ProgramAlarm\Part1; use PHPUnit\Framework\TestCase; class Part1Test extends TestCase { private const PUZZLE_INPUT_MULTI_LINE = <<<'EOT' 1,0,0,3,1,1,2,3,1,3,4,3,1,5,0,3,2,1,6,19,1,19,6,23,2,23,6,27,2,6,27,31,2,13...
true
25122d0f99b0238822c7971d45c8b20385fceeaa
PHP
pavelkolomitkin/timezonebundle
/Brandbury/TimeZoneBundle/Entity/TimeZone.php
UTF-8
1,965
2.515625
3
[]
no_license
<?php namespace Brandbury\TimeZoneBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * TimeZone * * @ORM\Table(name="timezone") * @ORM\Entity */ class TimeZone { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ ...
true
95ed75283b732946ae15a21dc1b6298ba97182cb
PHP
sudoconf/MyNote
/application/models/classificationmodel.php
UTF-8
1,314
2.65625
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of usermodel * * @author cestial */ class ClassificationModel extends CI_Model{ public function __construct(){ parent::__construct(); } public function getClassifica...
true
03e344f392de2d767cbf99c55b8f6ff90d26a952
PHP
htonyn/webby-trivia
/question.php
UTF-8
1,935
3.5
4
[]
no_license
<?php class Question { private $question; private $correctAnswer; private $firstAnswer; private $secondAnswer; private $thirdAnswer; private $fourthAnswer; private $answers; public function __constructor($question, $correctAnswer, $firstAnswer, $secondAnswer, $thirdAnswer, $fourthA...
true
2364cd38ad2fbb00798b8f7abb34203072e122ea
PHP
velkony/store
/src/StoreBundle/Controller/ProductController.php
UTF-8
7,160
2.546875
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace StoreBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use StoreBundle\Document\Product; use StoreBundle\Form\ProductType; /** * Product controller. */ class ProductController extends Controller { /** * Lists all Prod...
true
a4ad04455a4b66468da7bd36760771e0adfda512
PHP
mygirl8893/bitcoin-1
/src/Bitcont/Bitcoin/Clients/IValidator.php
UTF-8
228
2.90625
3
[]
no_license
<?php namespace Bitcont\Bitcoin\Clients; interface IValidator { /** * Returns TRUE if address is a valid bitcoin address. * * @param string $address * @return bool */ public function isValidAddress($address); }
true
12a3d89c04f8bd071a3ee0cae54395fefad157cd
PHP
OliverLeitner/phpwebapi
/libs/itemprocessing.php
UTF-8
1,478
3.265625
3
[ "Apache-2.0" ]
permissive
<?php /** * handle item types by request and return the given item or items * TODO: implement this */ class ItemProcessing { protected $operations = Array( "create" => 1, "delete" => 2, "update" => 3, "select" => 4 ); function __construct($jsonObject, $operation) { ...
true
e3bc6dac447cb5a3d927e4bd704817dc9809f9f0
PHP
aManNamedJed/goal-cms
/App/Models/Database.class.php
UTF-8
424
2.9375
3
[ "MIT" ]
permissive
<?php include_once $_SERVER["DOCUMENT_ROOT"] . '/config.php'; class Database { static function connect_to_database($db_host, $db_port, $db_name, $db_username, $db_password){ $dsn = "mysql:host=$db_host;port=$db_port;dbname=$db_name"; //Data Source Name = MySQL $db = new PDO($dsn, $db_username, $db_passwor...
true
169ad7d58800e5ec681fb67537f0556caa8286fd
PHP
hackathon-ro/Simplify
/lib/simplify/BaseService.php
UTF-8
1,872
2.96875
3
[ "MIT" ]
permissive
<?php require_once(SITE_ROOT.'/lib/simplify/ServiceAuthenticator.php'); /** * Abstract class that will be implemented by all service modules. * Defines the common service access interface. */ abstract class BaseService { /** * Returns the service's name. * For example: => 'facebook' * * @return string ...
true
83287d47c40a1cab738e3e837ba205ab4dd4fdc4
PHP
gymadarasz/hubsolv
/app/Http/Controllers/BookController.php
UTF-8
5,135
2.828125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use DB; use App\Book; use App\Category; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; class BookController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function...
true
be690656baaf82d8d8179bc9ab8437418bc96857
PHP
anthroe/Nozama
/app/controllers/addressController.php
UTF-8
3,872
2.796875
3
[]
no_license
<?php class addressController extends Controller { // Displays all the addresses associated with the account with the given Account_Id public function viewAddresses($accountID) { home::displayHeader(); accountController::displayHeader($accountID); $addresses = Address::where('Account_Id', $accountID) ...
true
2a84607558931db2154aa114042d82f2164070c0
PHP
naylonkessler/php-features-magicas-ou-nao
/set-state.php
UTF-8
334
2.984375
3
[]
no_license
<?php class Person { public $name; public static function __set_state($data) { $person = new Person(); $person->name = $data['name'] . ' reevaluated.'; return $person; } } $person = new Person(); $person->name = 'John Doe'; $exported = var_export($person, true); eval('$second = ' . $exported . ';'); var...
true
14d2e4c82360e52c0c7733e11bd74a93d870c52c
PHP
goozp/zPhal
/app/common/helpers/basic.php
UTF-8
4,024
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php /* +------------------------------------------------------------------------+ | ZPhal | +------------------------------------------------------------------------+ | Copyright (c) 2017 ZPhal Team and contributors | +----...
true
07d79f6581aa298949291d50c6c855aba19823fd
PHP
manilacoders/devcup2014
/lib/model/doctrine/base/BaseExam.class.php
UTF-8
3,696
2.546875
3
[]
no_license
<?php /** * BaseExam * * This class has been auto-generated by the Doctrine ORM Framework * * @property string $name * @property integer $profile_id * @property timestamp $active_at * @property timestamp $end_at * @property integer $subject_id * @property Profile $profile * @property Subject $subject * @...
true
5d98f420eca2b0c63f766a75c166df462714de4b
PHP
bome/post-notification
/ldif2array.class.php
UTF-8
3,100
3.3125
3
[]
no_license
<?php /** * Class to read LDIF data * @author tobozo <tobozo at phpsecure dot info> * @contributor Vladimir Struchkov <great_boba at yahoo dot com> * @copyleft (l) 2006-2007 tobozo * @package ldif2Array * @version 1.2 * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @date 2006-12-...
true
b89d6dc46b802c666ba70ca2b4a4e17681e89cd9
PHP
LordGeck/sf-pokedex
/src/Repository/PokemonRepository.php
UTF-8
3,309
2.625
3
[]
no_license
<?php namespace App\Repository; use App\Entity\Pokemon as Pokemon; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\ORM\Query; use Doctrine\ORM\QueryBuilder; use Symfony\Bridge\Doctrine\RegistryInterface; use App\Entity\PokemonSearch; /** * @method Pokemon|null find($id, $lockMode...
true
dc836350b0689a897b0155e4c57da523d89df452
PHP
HoarauIdriss/php-cour-boucle-for
/index2.php
UTF-8
380
4.03125
4
[]
no_license
<?php function impair($num) { if($num % 2 != 1) // Si le nombre est impair on retourne true { return true; } return false; // Sinon on retourne false } for($i= 0; $i <= 500; $i++) { echo "<br/>"; if(impair($i)) { // Si le nombre es...
true
7cbc44d8a475ac619c35411ec590a54ade8a78ff
PHP
hig19011/CSE-340
/phpmotors/model/vehicles-model.php
UTF-8
8,399
3.3125
3
[]
no_license
<?php /* * This model is used for handling the Inventory */ require_once '../library/vehicle.php'; // Create a new vehicle type function createVehicle($vehicle) { // Create a connection object using the phpmotors connection function $db = phpmotorsConnect(); // The SQL statement $sql = 'INSERT INTO inven...
true
1837fc4265e4c41fb36ec8c44ef24bca2e2a538d
PHP
andresilvadev/livro-php-oo
/classes/Produto.class.php
UTF-8
658
3.59375
4
[]
no_license
<?php class Produto { public $Codigo; public $Descricao; public $Preco; public $Quantidade; # Método construtor de um Produto public function __construct($Codigo, $Descricao, $Quantidade, $Preco) { $this->Codigo = $Codigo; $this->Descricao = $Descricao; $this->...
true
59764c4f471818d42973f29c8e94c0496f85dddc
PHP
ralphhughes/TempLogger
/readWiFiStrength.php
UTF-8
695
2.765625
3
[ "MIT" ]
permissive
<?php require_once 'includes/config.php'; require_once 'includes/database.php'; require_once 'includes/util.php'; //get Temp $temp = (exec("/sbin/iwconfig wlan0 | grep -i signal")); //echo "temp: " . $temp; preg_match_all('/\d+/', $temp, $tempArr); //echo "tempArr: "; //print_r($tempArr); $linkQuality...
true
2c4670c6212ef71fa4b6d35f5e7a0366f97c52ce
PHP
neuronalysis/engulfing-core
/classes/Core/ORM/TransactionManager.php
UTF-8
2,125
2.625
3
[ "MIT" ]
permissive
<?php trait TransactionManager { var $db_scope; function __construct($db_scope = null) { if ($db_scope) { $this->db_scope = $db_scope; } } function executeQuery($query, $object_name, $bindings = null, $db_scope = null) { if ($db_scope) { $this->db_scope = $db_scope; } else { $this->db_scope = $th...
true
fdfcfc129cf87fd981d7603c8a5cd95e35e3faab
PHP
bileckme/DomainPatterns
/src/Domain/Patterns/Behavioural/CoR/AdvanceHandler.php
UTF-8
949
2.890625
3
[]
no_license
<?php namespace Domain\Patterns\Behavioural\CoR; use Domain\Patterns\Behavioural\CoR\RequestInterface as Request; /** * Class AdvanceHandler * @package Domain\Patterns\Behavioural\CoR */ abstract class AdvanceHandler { /** * @var */ protected $cache; /** * @param $request * @return mixed */...
true
4caf44e580be6c18cf5b5177ced8eb99cd5dcf77
PHP
ferronrsmith/JavaScript-memory-game
/test_proj/easycrypt/php/Test.php
UTF-8
466
2.53125
3
[]
no_license
<?php /** * Created by JetBrains PhpStorm. * User: ferron * Date: 1/3/12 * Time: 10:36 PM * To change this template use File | Settings | File Templates. */ require_once("EasyCrypt.php"); $easyCrypt = new EasyCrypt(); $test = 'test'; $enc = $easyCrypt->encrypt($test); $dec = $easyCrypt->decrypt($e...
true
d4ed915d4ead1a968feb48248ee3973f668fb658
PHP
MauResendez/Webflix
/login.php
UTF-8
2,120
2.90625
3
[]
no_license
<?php require_once("includes/classes/Account.php"); require_once("includes/classes/Constants.php"); require_once("includes/classes/FormSanitizer.php"); require_once("includes/config.php"); $account = new Account($con); if(isset($_SESSION["userLoggedIn"])) // If you were already signed in, go b...
true
959c2cab9183167d6c2af0902b277ee9be7dd8de
PHP
hbranco/padroes-projeto
/fake-steam/view/jogosView.php
UTF-8
4,961
2.546875
3
[ "MIT" ]
permissive
<?php class jogosView { function __construct() { } function criarEditar($parametros) { $categorias = $parametros['categorias']; $jogo = $parametros['jogo']; $titulo = "Cadastro de jogos"; if (isset($jogo)) { $jogoId = $jogo->getJogoId(); $jogoNome = $jogo->ge...
true
76391c7a02290bee47336f95939c8fe11400b14c
PHP
erivancledson/clientes
/models/servicos.php
UTF-8
1,788
2.609375
3
[]
no_license
<?php class Servicos extends model{ private $info; public function isLogged(){ if(isset($_SESSION['lgadmin']) && !empty($_SESSION['lgadmin'])){ return true; }else{ return false; } } public function getServicos($offset, $limit, $s=''){ $sql = "SELECT * FROM servico LIMIT $offset, $limit"; $sql ...
true
699e1c65f242d9b1a16dc72caeb40c905ecee932
PHP
klapuch/bulletpoint
/backend/App/Schema/Tag/Structure.php
UTF-8
525
2.53125
3
[]
no_license
<?php declare(strict_types = 1); namespace Bulletpoint\Schema\Tag; final class Structure { public function get(): array { return [ '$schema' => 'http://json-schema.org/draft-04/schema#', 'additionalProperties' => false, 'properties' => [ 'id' => ['type' => 'number'], 'name' => ['type' => 'string']...
true
4118bdeb0beb84072683d726f38fd93753422d93
PHP
ramon05/proyecto-final
/conexion.php
UTF-8
365
2.828125
3
[]
no_license
<?php function conectar(){ try { $base= new PDO('mysql:host=localhost; dbname=login','root','mnjjar05'); $base->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $base->exec("SET CHARACTER SET utf8"); return $base; } catch (PDOExeption $e) { echo 'Error:...
true
70790561d6c1db0d2408f8ee929b69610267797e
PHP
zetacomponents/Graph
/src/math/transformation.php
UTF-8
3,624
3.125
3
[ "Apache-2.0" ]
permissive
<?php /** * File containing the ezcGraphTransformation class * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you ...
true
4145051de7f45b39ff269e4e4c5b516881f823fb
PHP
lewisliang82/wDesign
/strategy/Context.php
UTF-8
268
3.09375
3
[]
no_license
<?php namespace strategy; class Context { private $strategy; public function __construct(StrategyInterface $strategy) { $this->strategy = $strategy; } public function show() { echo $this->strategy->caculatePrice(); } }
true
374536dce512cd9f57d17cd3a920a30803de4d67
PHP
Muxthafa/music_library_system
/demo.php
UTF-8
2,581
2.53125
3
[ "MIT" ]
permissive
<?php if (isset($_POST['submit'])){ $name = $_POST['name']; $phone = $_POST['phone']; $email = $_POST['email']; $pass = $_POST['password']; $cpass =$_POST['cpassword']; if(!empty($name) || !empty($phone) || !empty($email) || !empty($pass) || !empty($cpass)){ if($pass!=$cpass){ echo "password does...
true
b466cdbc936590de9325c9ba5bfea7a668a6922c
PHP
haswalt/RancherPHP
/src/Resource/Type/Project.php
UTF-8
3,614
2.828125
3
[ "MIT" ]
permissive
<?php namespace Rancher\Resource\Type; use Rancher\Resource\Resource; /** * Class Project * @package Rancher\Resource\Type */ class Project extends Resource { /** * @var string */ protected $id; /** * @var string */ protected $type; /** * @var string */ prot...
true
b14feb78b9643cd87359b7d338186d51b10b039a
PHP
da-chi-code/demo-php-src
/htdocs/php17/practice_preg_match_intermediate.php
UTF-8
2,316
3.1875
3
[]
no_license
<?php $mail =''; $passwd =''; $error = []; $regexp_mail = '|^[0-9a-z_./?-]+@([0-9a-z-]+\.)+[0-9a-z-]+$|'; // メールアドレスの正規表現を入力 $regexp_passwd = '/^[a-zA-z0-9]{6,18}/'; // パスワードの正規表現を入力 $success_massage = '$/\.(jpg|png)/'; if ($_SERVER['REQUEST_METHOD'] === 'POST'){ if (isset($_POST['mail']) === TRUE){ $mail ...
true
650a9d2852b9626cf1cedc3d10538c45538ac019
PHP
540266969/yii2study
/backend/models/RoleFrom.php
UTF-8
2,981
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2017/6/16 0016 * Time: 13:43 */ namespace backend\models; use yii\base\Model; use yii\helpers\ArrayHelper; use yii\rbac\Role; class RoleFrom extends Model { public $name; public $description; public $permissions=[]; public function ...
true
4e22370afb2f1011b6accfb840e2dac8e20c7a1d
PHP
kunalaski/FUBAR2k19
/Template/cv/cv.inc.php
UTF-8
6,668
2.609375
3
[]
no_license
<?php //header('Location: ../../object.php'); ///file_put_contents("../cv1/home.html", ""); class CopyPaste extends Exchange { function CoPy() { $source = 'index.html'; $dest = '../cv1/home.html'; if (!copy($source, $dest)) { echo "failed to copy $source...\n"; }else { echo "copied $source i...
true
358fe0df2d72f06cc766e0ba94f07491e650ea3f
PHP
bkdotcom/Form
/src/ControlDefinitions/Dollar.php
UTF-8
1,239
2.765625
3
[ "MIT" ]
permissive
<?php namespace bdk\Form\ControlDefinitions; use bdk\Form\Control; /** * Dollar Amount */ class Dollar extends Control { /** * Get formated value * * @param Control $control instance * * @return string */ public function getValFormatted(Control $control) { $val = ...
true
68871e420898ac3193f2357042ac4b1d6cb144fa
PHP
daulat9107/noframework
/app/Providers/ViewServiceProvider.php
UTF-8
572
2.546875
3
[]
no_license
<?php /** * App Service Provider */ namespace App\Providers; use App\Views\View; use Twig_Loader_Filesystem; use Twig_Environment; use League\Container\ServiceProvider\AbstractServiceProvider; class ViewServiceProvider extends AbstractServiceProvider { protected $provides=[ View::class ]; public function regi...
true
14c34e02ea88c144af865a8f527a9edcbfa73d72
PHP
madapaja/Ray.Aop
/src/Ray/Aop/ReflectiveMethodInvocation.php
UTF-8
2,291
2.78125
3
[ "BSD-2-Clause" ]
permissive
<?php /** * Ray * * @package Ray.Aop * @license http://opensource.org/licenses/bsd-license.php BSD */ namespace Ray\Aop; use Ray\Aop\MethodInvocation; /** * Ray's implementation of AOP Alliance MethodInvocation interface. * * @package Ray.Aop * @author Akihito Koriyama<akihito.koriyama@gmail.com> */ class ...
true
45442169ea3da166a3e067a893e3a5c9c91a780f
PHP
trunda/pyrocms-galleries-module
/src/Item/Form/Command/AddFormFromItem.php
UTF-8
960
2.6875
3
[]
no_license
<?php namespace Signifymedia\GalleriesModule\Item\Form\Command; use Signifymedia\GalleriesModule\Gallery\Contract\GalleryInterface; use Signifymedia\GalleriesModule\Item\Contract\ItemInterface; use Signifymedia\GalleriesModule\Item\Form\ItemEntryFormBuilder; /** * Class AddFormFromItem * @package Signifymedia\Galle...
true
dbcc1d32743e36840b037621966ff9f7f2d46e84
PHP
btnguyen2k/ngoc-you
/dao/ClassCategoryWatchDao.php
UTF-8
2,601
2.765625
3
[]
no_license
<?php require_once 'includes/denyDirectInclude.php'; require_once 'dbUtils.php'; require_once 'ClassCategory.php'; require_once 'ClassUser.php'; require_once 'ClassUserDao.php'; class CategoryWatchDao { /** * Gets list of watchers for a category. * * @param Category * @return Array() index ar...
true
2ef76fdb7143d2f1d89b9980001cd47004edf897
PHP
gperl27/liftr
/app/Http/Controllers/HomeController.php
UTF-8
4,496
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Auth; use Carbon; use DateTime; class HomeController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middleware('auth'); } ...
true
ce1466cadba67b825a5f8cc14da2320a89e2d771
PHP
panrafal/ductape
/src/Ductape/Analyzer/DependencyAnalyzer.php
UTF-8
3,202
2.78125
3
[ "MIT" ]
permissive
<?php /* * This file is part of DUCTAPE project. * * Copyright (c)2013 Rafal Lindemann <rl@stamina.pl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Ductape\Analyzer; /** Analyzes dependencies between classes and fi...
true
493c6da0eba94a3be53f84e442206a1eff1cbdcb
PHP
D-Soft-Tech/topphaseglobal
/forms/contact.php
UTF-8
2,958
2.6875
3
[]
no_license
<?php /** * Requires the "PHP Email Form" library * The "PHP Email Form" library is available only in the pro version of the template * The library should be uploaded to: vendor/php-email-form/php-email-form.php * For more info and help: https://bootstrapmade.com/php-email-form/ */ // Replace contact@exa...
true
63e7e9d4cdd4233f353adc5f34c66d065d347ac3
PHP
sharf521/workerman
/app/Model/AppUser.php
UTF-8
1,964
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Model; use System\Lib\DB; class AppUser extends Model { protected $table = 'app_user'; public function __construct() { parent::__construct(); } public function getUser($user_id, $app_id) { $user = $this->where("user_id='{$user_id}' and app_id={$app_id}")-...
true
466ceecca445dc9fe64e0c967237460f9e540f45
PHP
bueckl/silverstripe-watermarking
/code/Image_WatermarkExtension.php
UTF-8
646
2.671875
3
[ "MIT" ]
permissive
<?php class Image_WatermarkExtension extends DataExtension { public function Watermark($position = null, $transparency = null) { $config = SiteConfig::current_site_config(); $watermark = $config->Watermark(); if(!$transparency) $transparency = $config->WatermarkTransparency; if(!$position) $position = $c...
true
ad1ebd30ca13797e26dd2d800e3efe6ec6f1bf40
PHP
vladislavalias/leo
/simpleSender.class.php
UTF-8
20,199
2.921875
3
[]
no_license
<?php class simpleSender { CONST CONFIG_READ_BLOCKS = 1; protected $name, $logFile, $logger, $outBuffer, $inBuffer, $stream, $splitResult = array(); /** * @var array */ protected $streamData; /** * @var array */ protected $streamFiles; /** * * @var array */ protect...
true
57037dfe22b37c10cedff700a03422f35bd5a137
PHP
krivov/yahoo-finance-api
/src/Results/FundamentalTimeseries.php
UTF-8
1,153
2.984375
3
[ "MIT" ]
permissive
<?php namespace Scheb\YahooFinanceApi\Results; class FundamentalTimeseries implements \JsonSerializable { /** * @var string */ private $name; /** * @var string */ private $value; /** * @var string */ private $date; /** * @var string */ private...
true
99c26b548d341dcf3ee0a82675cf89d188c8dd4f
PHP
sotnikoff/test
/kernel/ORM.php
UTF-8
942
2.84375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: mikhailsotnikov * Date: 19.11.16 * Time: 14:10 */ namespace Kernel; use Kernel\ORMInterface; abstract class ORM implements ORMInterface { private $DB; protected $table; abstract public function setTable(); private function DBConnect() { $th...
true
ddddd0fb69d188b0092927e4a0f9391aace81c6d
PHP
matthiasnoback/code-sniffer-sniff-dsl
/tests/Matthias/Codesniffer/Tests/Sequence/Expectation/ExactMatchTest.php
UTF-8
1,525
2.609375
3
[ "MIT" ]
permissive
<?php namespace Matthias\Codesniffer\Tests\Sequence\Expectation; use Matthias\Codesniffer\Sequence\Expectation\ExactMatch; use Matthias\Codesniffer\Sequence\ForwardSequence; use Matthias\Codesniffer\TokenBuilder; class ExactMatchTest extends \PHPUnit_Framework_TestCase { /** * @test * @dataProvider tok...
true
c13d5c0bbc8289052af65bffa7a9e681633b07c8
PHP
zozep/PHP.Projects
/procedural/html_tables/html_tables.php
UTF-8
1,308
3
3
[]
no_license
<?php $users = array( array('first_name' => 'Michael', 'last_name' => 'Choi'), array('first_name' => 'John', 'last_name' => 'Supsupin'), array('first_name' => 'Mark', 'last_name' => 'Guillen'), array('first_name' => 'KB', 'last_name' => 'Tonel') ); ?> <html> <head> <title>html tables</title> <link re...
true
d6b86302f3335b5d5b1afbefb1ae1a6165e90271
PHP
hcsoft/xingkang
/core/framework/libraries/stpl.php
UTF-8
4,825
2.546875
3
[]
no_license
<?php /** * 模板驱动 * * 模板驱动,商城模板引擎 * * * @package tpl * @copyright Copyright (c) 2014-2020 SZGR Inc. (http://www.szgr.com.cn) * @license http://www.szgr.com.cn * @link http://www.szgr.com.cn * @author ShopNC Team * @since File available since Release v1.1 */ defined('InShopNC') or exit('A...
true
6938eac64730e833c082e8a63c66a7570b09ded5
PHP
lynt-smitka/php4-knihovna
/a_knihy.php
WINDOWS-1250
7,309
2.78125
3
[]
no_license
<?php session_start(); $PHP_SELF = $_SERVER['PHP_SELF']; if (!$_SESSION["username"]) { // nen-li u&#65533;ivatel pihl&#65533;en, je pesmrovn na pihla&#65533;ovac strnku Header("Location:login.php?back=$PHP_SELF"); exit; } include "header.php"; $show = true; // Promn urujc, zda m bt zobrazen zkladn formul switch...
true
5a5fe8052f7928f846718a2bf58c2d2efbdb789f
PHP
Nikkoz/yii2
/core/services/auth/AuthService.php
UTF-8
1,009
2.828125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace core\services\auth; use core\entities\User; use core\forms\auth\LoginForm; use core\repositories\UserRepository; class AuthService { private $users; public function __construct(UserRepository $users) { $this->users = $users; } public function auth(LoginForm $form): User ...
true
13325da21a0b825d77d2b0c5d28d2ca4c8178a2c
PHP
yeedomliu/interfaces
/eventfields/Result.php
UTF-8
457
2.8125
3
[ "MIT" ]
permissive
<?php namespace wii\interfaces\eventfields; trait Result { /** * 请求结果 * * @var string */ protected $result = ''; /** * @return string */ public function getResult(): string { return $this->result; } /** * @param string $result * * @return...
true
2880352c687719abd24a34a46bb27394c62c296b
PHP
NadineAstakhova/ScienceRating
/app/Models/ReportModels/CreateDocReport.php
UTF-8
4,740
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Models\ReportModels; use App\Models\RankingModels\DataInRanking; use App\Models\UsersOwners; use Illuminate\Database\Eloquent\Model; use PhpOffice\PhpWord\PhpWord; /** * Class CreateDocReport * Creating Report at docx format with help PjpWord library * @package App */ class CreateDocReport ex...
true
3fd9728cf65a809a0f34895409adc25ac03ab459
PHP
lavalava/gamepub
/actions/gamewebnew.php
UTF-8
1,782
2.53125
3
[]
no_license
<?php /** * Shaishai, the distributed microblog * * Apply a new web link of the game * * PHP version 5 * * @category Game * @package Shaishai * @author AGun Chan <agunchan@gmail.com> * @copyright 2009-2010 Shaier, Inc. * @link http://www.shaishai.com/ */ if (!defined('SHAISHAI')) { exit(1); ...
true
4b4ea90d1b33130446364e6441e92a7549fff2a0
PHP
vellmur/CRM-System
/src/Service/AuthorizedRedirect.php
UTF-8
1,037
2.671875
3
[]
no_license
<?php namespace App\Service; use Symfony\Component\Routing\RouterInterface; use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface; use Symfony\Component\Security\Core\User\UserInterface; class AuthorizedRedirect { private $auth; private $router; private $moduleChecker; pu...
true
fdce929898c404e2b2262c6b2b7a2e74b0fd351b
PHP
juananruiz/inscripcion
/src/Entity/Persona/Persona.php
UTF-8
5,776
2.546875
3
[]
no_license
<?php namespace App\Entity\Persona; use App\Entity\Inscripcion\Inscripcion; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Security\Core\User\UserInterface; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Bridge\Doctrine\Validator\Constraints...
true
b9f5c58510f66ba13c07dfc9d22ab9026937233b
PHP
artyomderyavka/delivery
/domain/deliveryContext/collections/AbstractCollection.php
UTF-8
737
2.84375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Artyom * Date: 14.10.2017 * Time: 16:20 */ namespace Delivery\Domain\DeliveryContext\Collections; class AbstractCollection implements \Iterator { protected $position = 0; protected $items = []; public function __construct() { $this...
true
e4d9b79421524e4541603b2f1a59df4ed30f3e26
PHP
Makkssimka/TaskManadger
/core/Route.php
UTF-8
679
2.578125
3
[]
no_license
<?php namespace Core; class Route{ public function set($routes){ $urlArray = parse_url($_SERVER['REQUEST_URI']); $url = explode('/', $urlArray['path']); $request = new Request(); $param = filter_var(isset($url[2])?$url[2]:'', FILTER_SANITIZE_NUMBE...
true
ac5c68aa82affeacbddc1a24a7625bdbb2ef9d33
PHP
linuxserver/Heimdall
/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factories/CrossJoinSequence.php
UTF-8
538
2.59375
3
[ "MIT" ]
permissive
<?php namespace Illuminate\Database\Eloquent\Factories; use Illuminate\Support\Arr; class CrossJoinSequence extends Sequence { /** * Create a new cross join sequence instance. * * @param array $sequences * @return void */ public function __construct(...$sequences) { $cr...
true
2ea67718b7d9a69d99dda65cda3af61402104db9
PHP
mtmind80/mymovies
/app/Http/Requests/UserRequest.php
UTF-8
877
2.78125
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class UserRequest extends FormRequest { public function authorize() { return true; } public function rules() { $rules = [ 'name' => 'string|min:3|max:55', 'email' => 'email|min...
true
559b7d2e5efb3b55af21b95313e6abd788225b69
PHP
lithium/hlidskialf-blog
/lib/model/Post.php
UTF-8
1,770
2.78125
3
[]
no_license
<?php /** * Subclass for representing a row from the 'post' table. * * * * @package lib.model */ class Post extends BasePost { public function getPostedAt($fmt='M d Y') { return parent::getPostedAt($fmt); } public function getUrl() { return '/rant/'.$this->getSlug(); } public function getHref() { return ...
true
5c93bc15fb0ca933fbe36a2a49a9efa3ff8ddde3
PHP
Coakaze/MDS-Project
/register-process.php
UTF-8
3,138
2.640625
3
[]
no_license
<?php use PHPMailer\PHPMailer\PHPMailer; /* if(!isset($_SESSION)) { session_start(); } */ function validate_text($text) { if(!empty($text)) { $trimText = trim($text); $sanitizeText = filter_var($trimText, FILTER_SANITIZE_STRING); return $sanitizeText; } return ""; } functio...
true
ea56dd8b203cd3a1a0b62728d562e26223901b5b
PHP
keribend/sandbox-laravel5-vuejs
/app/PollingExecution.php
UTF-8
881
2.609375
3
[ "MIT" ]
permissive
<?php namespace App; use Validator; use Illuminate\Database\Eloquent\Model; class PollingExecution extends Model { protected $fillable = [ 'age', 'gender', 'drivingLicenseOwned', 'drivetrain', 'drifting', ]; public $errors; private static $validationRules = [...
true
9ddf257a8c53d35153b0f311accfa733ac84593e
PHP
Maykonx23/TCC-STA
/entity/Servico.php
UTF-8
1,157
2.890625
3
[ "MIT" ]
permissive
<?php class Servico{ protected $id_servico; private $titulo; private $mediaTempo; private $descricao; private usuario $id_u; private $rua; private $numero; public function getId_servico() { return $this->id_servico; } public function setId_servico($id_s...
true
f70191ada7e1e8ca9db03f0b3e63b4eb2125845f
PHP
BuiXuanBach93/sieuthithuoc365
/app/Entity/Comment.php
UTF-8
3,588
2.53125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Nam Handsome * Date: 11/1/2017 * Time: 2:14 PM */ namespace App\Entity; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Support\Facades\Log; class Comment extends Model { use SoftDeletes; protected $softDelete...
true
e8c7fb998c24c2974671410cfa7a05883a160fdf
PHP
karngenie/balades-paris
/database/migrations/2016_10_10_153747_create_walks_langs.php
UTF-8
823
2.671875
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateWalksLangs extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('walks_langs', fun...
true
5d7efb78bd07eadd9059ef207076d9c900025b9c
PHP
Ascron/labtrpo
/fw/class/RequestMapper.php
UTF-8
1,421
2.53125
3
[]
no_license
<?php class RequestMapper { public static function take($rid) { $db = Database::getInstance(); $user = User::getInstance(); $result = $db->query("INSERT INTO `request_dos` VALUES ({$user->getUid()},{$rid})"); } public static function accept(){} public static function decline...
true
25cff9ce7b92c777882f955e7bfce953cc574aef
PHP
GruppoMeta/Movio
/src/core/libs/PHPTAL5/PHPTAL/Php/State.php
UTF-8
7,402
2.765625
3
[ "MIT", "LGPL-2.1-only", "BSD-3-Clause", "LGPL-2.1-or-later", "GPL-1.0-or-later", "LGPL-2.0-or-later" ]
permissive
<?php /** * PHPTAL templating engine * * PHP Version 5 * * @category HTML * @package PHPTAL * @author Laurent Bedubourg <lbedubourg@motion-twin.com> * @author Kornel Lesiński <kornel@aardvarkmedia.co.uk> * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License * @version SVN: ...
true
84b0290308d61872d33214030f2ac1f2a1843d82
PHP
LazarPanchev/e_shop
/src/AppBundle/Controller/UserController.php
UTF-8
3,981
2.546875
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Controller; use AppBundle\Entity\User; use AppBundle\Form\UserType; use AppBundle\Service\Purchase\PurchaseServiceInterface; use AppBundle\Service\User\UserServiceInterface; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security; use Symfony\Bundle\FrameworkBundle\Controller\Controlle...
true
fcdb47626733c18b1d2676e565487c2405eb218c
PHP
carlcasbolt/tantrum
/tests/QueryBuilder/JoinTest.php
UTF-8
2,641
2.515625
3
[]
no_license
<?php namespace tantrum\tests; use tantrum\QueryBuilder; class JoinTest extends TestCase { /** * @test */ public function setAliasSucceeds() { $alias = uniqid(); $join = new QueryBuilder\Join(); $join->setAlias($alias); $this->assertEquals($alias, $join->get...
true
51f6b718c5bf562cb3adf6b281e3453d315349ee
PHP
15210168509/wscloud2
/backoffice/Application/Admin/Model/AdminMsgModel.class.php
UTF-8
956
2.5625
3
[]
no_license
<?php /** * Created by 李文起 * User: 01 * Date: 2018/3/5 * Time: 11:36 */ namespace Admin\Model; class AdminMsgModel extends ApiModel { public function getList($para){ $url = '/Manager/managerMsg/'; foreach($para as $key=>$value){ $url .= $key.'/'.$value.'/'; } $res...
true
db6a8ba6bf10d49f199e5db176c01d8f866499fd
PHP
Theodule007/Gestion-bibliotheque
/functions/auto_search_abonnes.php
UTF-8
590
2.78125
3
[]
no_license
<!-- <?php require_once('../database/db_credentials.php'); ?> <?php // make connection to db $con = mysqli_connect(DB_SERVER, DB_USER, DB_PASS, DB_NAME); function get_city($con , $term){ $query = "SELECT * FROM abonnes WHERE Nom_abonn LIKE '%".$term."%' ORDER BY Nom_abonn ASC"; $result = mysqli_query($con, $query)...
true
4f6ff5b6e00bf6c8684ecc9056e0bae878d4d9bf
PHP
marcelus20/booking_platform-PHP
/backend/routers/serviceProviderRouter.php
UTF-8
4,211
2.84375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: felipe * Date: 02/12/18 * Time: 18:48 */ include_once "../models/SessionModel.class.php"; include_once "../controllers/ServiceProviderController.class.php"; include_once "../models/entityRepresentation/BookingSlot.class.php"; session_start(); /** * This router will han...
true
3ee5b441e86c95bdc95f9b1bf673c525b843f9d5
PHP
umair90/MIK
/app/UserClassicAdImage.php
UTF-8
632
2.515625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class UserClassicAdImage extends Model { /** * The database table used by the model. * * @var string */ protected $table = 'user_classic_ad_images'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable =...
true
90a0dd1e01ab302009e12ee1624b1fbffdfe18d3
PHP
DitaAjiPratama/sayembara-jwt-php-sederhana
/config/database.php
UTF-8
813
2.90625
3
[ "MIT" ]
permissive
<?php /* PLEASE CREATE THIS TABLE BEFORE RUN create table Users ( id int auto_increment primary key, fullname varchar(150) not null, username varchar(50) not null, phone varchar(20) not null, email varchar(50) null, password varchar(255) null ); */ class DatabaseService { private $db_host = "localhost:8889";...
true
12d3cd0dc49cb0735ba58217125eb665ad3e178b
PHP
ihuryferreira/Html5-php-etc...
/estnot/arquivo.php
UTF-8
1,637
2.625
3
[]
no_license
<?php $arquivo = "<link rel='stylesheet' href='https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css' integrity='sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO' crossorigin='anonymous'> <script src='https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js' int...
true
575a45b69ef18e95637271072ec4bc1630f7e734
PHP
nicolagaldiolo/laraveluprunning
/routes/partials/response.php
UTF-8
4,178
2.890625
3
[ "MIT" ]
permissive
<?php /* * RESPONSE * */ $xmlData = file_get_contents(public_path() . '/storage/file.xml'); $fileData = public_path() . '/storage/images/customName.png'; /* * RESPONSE AUTOMATICA GESTITA DA LARAVEL * Tutte le rotte e i controllers restituiscono una risposta al browser che in automatico laravel converte in una ...
true
79c4f9d9c7e63cb9b55dc138d7f89f5058046e54
PHP
robertijtsma/Smurfhotel
/app/tpl/skins/Habbo/admin/hklogging.php
UTF-8
556
2.578125
3
[]
no_license
<?php if($_SESSION['user']['rank'] >= 6){ ?> <table align = "center"> <tr> <th>ID</th> <th >Art</th> <th>Zeitpunkt</th> <th >Benutzer</th> </tr> <?php $q = mysql_query("SELECT * FROM hk_logs"); while ($m = mysql_fetch_array($q)) { ?> <tr align = "center"> <td ><?php ...
true
11906d0df4d112f82d46de85b44952953b6dec69
PHP
khobbits/iDM
/public_html/includes/a-banadmin.php
UTF-8
7,943
2.515625
3
[]
no_license
<?php if($session['status'] == FALSE) { echo "No direct access"; return; } if($session['session']->rank < ADMIN_RANK) { echo "Invalid page access"; return; } $operation = isset($_POST['operation']) ? strtolower(trim($_POST['operation'])) : ''; $id = isset($_POST['id']) ? (int)(trim($_POST['id'])) : ...
true
8e75d42755c126b3b800982e2079b26383bd7e26
PHP
ayushmaheshwari1728/PHPPROJECT
/login.php
UTF-8
903
2.53125
3
[]
no_license
<?php session_start(); $username=$_POST['name']; $_SESSION['x']=1; $password=$_POST['password']; $flag=0; $con=mysqli_connect('localhost','root'); mysqli_select_db($con,'groupchat'); $q="select * from user"; $result=mysqli_query($con,$q); $num=mysqli_num_rows($result); mysqli_close($con); for($i=1;$i<=$n...
true
2a7d3da40a08c6f1e273d91538741c0e1afe5c5e
PHP
eriyezab/grade1112stuff
/htdocs/register.php
UTF-8
2,533
3.046875
3
[]
no_license
<?php $title = 'Register'; require 'header.php'; require 'functions.php'; if( $_SERVER['REQUEST_METHOD'] === 'POST') { // check if there is any missing data if(!isset($_POST['username']) || !isset($_POST['password']) || !isset($_POST['confirm'])) { die('Error, missing data. <a href="register.ph...
true
fbd6b2c9846b60b197811f596a6fde0a2815eca2
PHP
rsikka99/work
/library/MPSToolbox/Entities/ExtPeripheralEntity.php
UTF-8
662
2.90625
3
[ "Apache-2.0" ]
permissive
<?php namespace MPSToolbox\Entities; /** * * @Entity * @Table(name="ext_peripheral") */ class ExtPeripheralEntity extends ExtHardwareEntity { /** @Column(type="string") * @var string */ private $appliesTo = ''; /** * @return string */ public function getAppliesTo() { ...
true
850be07165e5b500063bd42aa4985817eff597d2
PHP
chukdo/framework
/src/Helper/Stream.php
UTF-8
812
2.8125
3
[ "MIT" ]
permissive
<?php namespace Chukdo\Helper; /** * Stream. * * @version 1.0.0 * @copyright licence MIT, Copyright (C) 2019 Domingo * @since 08/01/2019 * @author Domingo Jean-Pierre <jp.domingo@gmail.com> */ final class Stream { /** * Stream constructor. */ private function __constru...
true
03f7d6bbd887b03e11f2ca95d042a93ec7053dcf
PHP
opsway/tocat-opsdesk-platform
/modules/OpsWay/TocatBudget/code/Repository/MyRepository.php
UTF-8
1,722
2.578125
3
[]
no_license
<?php namespace OpsWay\TocatBudget\Repository; use OpsWay\TocatCore\Library\Traits\DoctrineHydratorAwareInterface; use OpsWay\TocatCore\Library\Traits\DoctrineHydratorAwareTrait; use Doctrine\ORM\EntityRepository; use OpsWay\TocatBudget\Entity\Issue as IssueEntity; /** * @method null|IssueEntity find($id, $lockMod...
true
31d4f0c50133e5651abf4fcc3ae6c7d8bcd5263e
PHP
PawelBystrzejewski/semi-twitter
/readMessage.php
UTF-8
1,884
2.8125
3
[]
no_license
<?php require_once 'src/connection.php'; require_once 'src/init.php'; require_once 'src/User.php'; require_once 'src/Tweet.php'; require_once 'src/Comment.php'; require_once 'src/Message.php'; if (!isset($_SESSION['loggedUserId'])) { header('Location: login.php'); } else { $loggedUserId = $_SESSION['loggedUs...
true
17036093aef6f48a2f52a074e46d3687440fc454
PHP
permag/menu-scrape
/public/WebScrape.php
UTF-8
1,921
3.359375
3
[]
no_license
<?php class WebScrape { /** * Scrape page with curl * @param string $url url to page * @return string scraped page */ private function scrapeWithCurl($url) { $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt( $ch, ...
true
4b7d4d152ba7c1caa46e39435c1f3f3b59c64fa0
PHP
Mirrai20/PFE_cr-ation_site_publication_scientifique
/PFE_création_site_publication_scientifique/pfe/Classes/ArticleReviewed.php
UTF-8
3,645
3.125
3
[]
no_license
<?php class ArticleReviewed extends Model { //ATTRIBUTES private $article_reviewed_id; private $reviewer_id; private $observation; private $created_at; public function __construct() { $this->article_reviewed_id = 0; $this->reviewer_id = 0; ...
true
8bd0e85569071ccfe1fbfa323f26a4c276c92db1
PHP
alexlanni/systema
/api/src/Systema/src/Entities/LocalType.php
UTF-8
1,052
2.515625
3
[]
no_license
<?php namespace Systema\Entities; use Doctrine\ORM\Mapping as ORM; /** * LocalType * * @ORM\Table(name="local_type") * @ORM\Entity(repositoryClass="Systema\Entities\Repository\LocalType") */ class LocalType { /** * @var int * * @ORM\Column(name="local_type_id", type="integer", nullable=false)...
true
7235f3e703066766d322c91b835a8902b9bd0fc4
PHP
xdire/dude
/Core/App.php
UTF-8
4,642
3.046875
3
[]
no_license
<?php namespace Xdire\Dude\Core; use Xdire\Dude\Core\Face\Controller; use Xdire\Dude\Core\Face\Middleware; use Xdire\Dude\Core\Face\OptionsMiddleware; use Xdire\Dude\Core\Face\RoutingController; use Xdire\Dude\Core\Server\Request; use Xdire\Dude\Core\Server\Response; final class App extends Kernel { protected fu...
true
8e1126335e5be3e6b874ea26c2742034cd8f9067
PHP
IancuIulian/movieCity
/src/Controller/UserController.php
UTF-8
2,592
2.84375
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Controller; use Model\Repository\UserRepository; use Router; use View\View; class UserController { public function login() { if (isset($_SESSION['user'])) { Router::redirect('home'); } $error = null; if (isset($_POST['em...
true
cf475dd3a643ac413458a2a680669a58e1bea47b
PHP
Liza-Kozlovskaya/Lab.-Internet-programming
/lab7.ru/www/task2.php
UTF-8
1,742
3.734375
4
[]
no_license
<!DOCTYPE html> <html> <head> </head> <body> <?php /*В массиве размером n (1<n<30) найти сумму всех отрицательных элементов. Вывести на экран массив и сумму. */ start(); function generation_array(&$array, $A, $B) { for($i=0; $i<$B; $i++) { ...
true