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
61b83faa4925bc86a40cc6c9d9c0bd30745c3e7e
PHP
mariusadam/the-bee-game
/bee-game/src/Http/Session.php
UTF-8
666
2.796875
3
[]
no_license
<?php declare(strict_types=1); namespace BeeGame\Http; /** * Not covered by tests */ class Session { public function set(string $key, $value): void { $this->ensureIsStarted(); $_SESSION[$key] = $value; } private function ensureIsStarted(): void { if (PHP_SESSION_NONE =...
true
f4a88dcffcd0b520627c97551e9ee08d1104cd02
PHP
snipcart/snipcart-october-buybutton
/components/Product.php
UTF-8
1,355
2.703125
3
[]
no_license
<?php namespace Snipcart\buybutton\components; use Cms\Classes\ComponentBase; class Product extends ComponentBase { public function componentDetails() { return [ 'name' => 'Product', 'description' => 'Add a snipcart product to your page' ]; } public fun...
true
770e18d8ac23ab44544a304f6e87f9a1a34dde10
PHP
dhugog/ibjmc
/model/dao/UsuarioDAO.class.php
UTF-8
3,763
2.859375
3
[]
no_license
<?php require BASE_URI . 'connection\ConnectionFactory.class.php'; class UsuarioDAO { private static $db_name = "ibjmc"; private static $db_table = "usuarios"; public static $lastId; public static function create(Usuario $user) { $con = ConnectionFactory::getConnection(); $sql = "...
true
6deaa989422ec18d05d51e67a920370fcd1eaa69
PHP
comm644/kphp_experiments
/testRpc/Sigmalab/Database/Sql/SQLGroup.php
UTF-8
1,162
2.96875
3
[ "Apache-2.0" ]
permissive
<?php namespace Sigmalab\Database\Sql; use Sigmalab\Database\Core\DBColumnDefinition; class SQLGroup implements ICanGenerate { public DBColumnDefinition $column; /** * Construct SQL ORDER operator. * * SQL order render code by next rules: * - if $column is string - value used as column na...
true
384be49bec195750bf093a79610396605dae786c
PHP
zhaozuowu/order
/library/order/define/Format.php
UTF-8
2,344
2.75
3
[]
no_license
<?php /** * @name Order_Define_Format * @desc * @author jinyu02@iwaimai.baidu.com */ class Order_Define_Format { /** * 格式化设备信息数据 * @param array $arrDevices * @return string */ public static function formatDevices($arrDevices) { $strDevices = ''; if (empty($arrDevices)) {...
true
f360b785f246b91155559833798d8196c2d67fde
PHP
agustinistmo/amagukphp
/lib/amaguk/framework/Amaguk_dao.php
UTF-8
8,168
2.671875
3
[ "Apache-2.0" ]
permissive
<?php require_once('lib/amaguk/framework/IAmaguk_dao.php'); require_once('lib/amaguk/utils/Amaguk_database_access.php'); /** * * Data Access Object * @author agustin corona jimenez @agustinistmo * @version 2014.02.24 agustinistmo. Se agregan metodos para tomar el erro y numero de error * @version 2014.01.23 agu...
true
fb1940aa3f7d2f85394d6c23fe4a68843821b168
PHP
sonitwilli/portfolio
/app/Models/Contact.php
UTF-8
2,002
2.578125
3
[ "MIT" ]
permissive
<?php namespace Models; use Illuminate\Database\Eloquent\Model; class Contact extends Model { // protected $table = "contacts"; /** * @param $id * Delete only one row */ public static function DeleteById($id) { $check = self::find($id); if($check != null) { ...
true
05977a91ff263103573ab76484dca03905c18581
PHP
texnder/e-lms
/vendor/texnder/bootex/src/Middelware.php
UTF-8
1,390
2.75
3
[ "MIT" ]
permissive
<?php namespace bootex; use sessnex\persistent\persistentTrait; use SessionManager; class Middelware { use persistentTrait; /** * check user is logged in or authenticated * * @return true|username */ public function user($username = null) { if (!$username) { if (isset($_SESSION[$this->sess_aut...
true
26da2d526a2f5460534da478a7325e4d4a410156
PHP
danielsan80/jobboy
/src/JobBoy/Process/Domain/ProcessHandler/ProcessHandlers/Base/AbstractByCodeProcessHandler.php
UTF-8
976
2.921875
3
[ "MIT" ]
permissive
<?php namespace JobBoy\Process\Domain\ProcessHandler\ProcessHandlers\Base; use JobBoy\Process\Domain\Entity\Id\ProcessId; use JobBoy\Process\Domain\ProcessHandler\ProcessHandlerInterface; use JobBoy\Process\Domain\Repository\ProcessRepositoryInterface; /** * It is a generic base for all ProcessHandlers who manages ...
true
e8619cd3c64932561a66b14e6988361644c81f9d
PHP
hoangsvit/lumen-lighthouse-graphql
/app/Repositories/UserRepository.php
UTF-8
1,285
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Repositories\UserRepository as Contract; use App\Models\User; use Ksoft\Klaravel\Repositories\EloquentRepo; use Ksoft\Klaravel\Traits\QueryFiltersTrait; class UserRepository extends EloquentRepo { // use QueryFiltersTrait; // helpfull methods to search many fields. ...
true
5c0853267428399a29eac57e14b8fcd67f6ff054
PHP
adrianbaez/easysf-bundle
/tests/Utils/FileUploaderTest.php
UTF-8
2,760
2.53125
3
[]
no_license
<?php namespace AdrianBaez\Bundle\EasySfBundle\Tests\Utils; use AdrianBaez\Bundle\EasySfBundle\Utils\FileUploader; use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\File\UploadedFile; class FileUploaderTest extends TestCase { /** * @var UploadedFile $uploadedFile */ protected $up...
true
3360c53cff2319684d3bed942eecccfdcf0b70a7
PHP
vostpt/api
/app/Http/Serializers/OccurrenceSerializer.php
UTF-8
2,961
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace VOSTPT\Http\Serializers; use Tobscure\JsonApi\AbstractSerializer; use Tobscure\JsonApi\Relationship; use Tobscure\JsonApi\Resource; use VOSTPT\Models\Occurrence; use VOSTPT\Models\ProCivOccurrence; class OccurrenceSerializer extends AbstractSerializer { /** * {@inhe...
true
ec68f9a7a20b00d1f918d01f084b9ebaff1bd913
PHP
horstoeko/ubl
/src/entities/xades/ObjectIdentifierType.php
UTF-8
2,671
2.859375
3
[ "MIT" ]
permissive
<?php namespace horstoeko\ubl\entities\xades; /** * Class representing ObjectIdentifierType * * XSD Type: ObjectIdentifierType */ class ObjectIdentifierType { /** * @var \horstoeko\ubl\entities\xades\IdentifierType $identifier */ private $identifier = null; /** * @var string $descript...
true
52c8f3015ebd191b2994953f60b6632403dad206
PHP
domgoodwin/uni
/1A/IAT/coursework/www/parts/db.php
UTF-8
12,221
2.734375
3
[]
no_license
<?php $db = null; init(); function init(){ global $db; $myfile = fopen("database.json", "r") or die("Unable to get details"); $text = fread($myfile,filesize("database.json")); $json = json_decode($text); fclose($myfile); $servername = $json->{'servername'}; $username = $json->{'us...
true
473105a9ba1043f2623bf13387feeeeba9e4060e
PHP
jnbptstcpln/plexus4
/src/FormValidator/RangeValidator.php
UTF-8
918
2.921875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: jeanbaptistecaplan * Date: 01/08/2019 * Time: 16:40 */ namespace Plexus\FormValidator; use Plexus\FormField\AbstractField; class RangeValidator extends CustomValidator { /** * @var int */ protected $min; /** * @var int */ protecte...
true
26c188685b8d6676a31e8b05e1ed01dca50d164f
PHP
misthioseagle/CodeChallengeSwahiliPot
/index.php
UTF-8
4,238
2.734375
3
[]
no_license
<?php // NGROK and sandbox $phonenumber = $_GET['MSISDN']; $sessionID = $_GET['sessionId']; $servicecode = $_GET['serviceCode']; $ussdString = $_GET['text']; // $phonenumber = $_POST['phoneNumber']; // $sessionID = $_POST['sessionId']; // $servicecode = $_POST['serviceCode']; ...
true
e8f789417ced41c949fa672f4014228b21c0e500
PHP
Abouba-Haidara/rest-api-location
/app/modeles/classes/inc/Database.php
UTF-8
1,655
3.0625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Abouba * Date: 21/11/2016 * Time: 00:16 */ class Database { private $dbname ; private $hostDB ; private $pwdBD ; private $userDB; private $pdo ; public function __construct($hostdb ="localhost", $dbname, $userdb, $pwdb ) { $thi...
true
669b3826c5997409b03ada0b6a606b89fe784d2d
PHP
SistemasTecTlaxiaco/Oaxaqueando
/controllers/lista.php
UTF-8
1,243
2.546875
3
[]
no_license
<?php class Lista extends Controller{ function __construct(){ parent::__construct(); $this->view->usuarios=[]; } function render(){ $usuarios=$this->model->listas(); $this->view->usuarios=$usuarios; $this->view->render('lista/index'...
true
a56725f4e98bebb0c3c9773fc60dbf0442e157e1
PHP
AbdullahAlfaraj/project-euler
/php/problem_30.php
UTF-8
1,189
3.8125
4
[]
no_license
<?php /* Problem: Digit Fifth Powers Surprisingly there are only three numbers that can be written as the sum of fourth powers of their digits: 1634 = 1^4 + 6^4 + 3^4 + 4^4 8208 = 8^4 + 2^4 + 0^4 + 8^4 9474 = 9^4 + 4^4 + 7^4 + 4^4 As 1 = 14 is not a sum it is not included. The sum of these numbers is 16...
true
38ebd6805fa5879249224fdf931a5e64b2c8ed11
PHP
MeilinLu/IS218_program1
/alltogether/CSVtoJson.php
UTF-8
781
2.953125
3
[]
no_license
<?php function CSVtoJson($filename, $getArray) { //open csv file if (!($fp = fopen($filename, 'r'))) { die("Can't open file..."); } //read csv headers $key = fgetcsv($fp, "1024",","); //parse csv rows into array $json = array(); while($row = fgetcsv($fp, "1024",",")) { $json[] = array_combine($...
true
e0d6822d3239bd6819a28e2e5e1520f6f3dd2974
PHP
iolevel/peachpie-samples
/extension-library/samplephp/index.php
UTF-8
184
2.859375
3
[ "Apache-2.0" ]
permissive
<?php function demo() { // Example usage in PHP: myecho(mystrlen("Hello PHP")); echo MYCONST; echo MYCONST2; echo (new SampleClass)->foo(); } demo();
true
7fe722e76c1fac8ed3e241cc4e7de4320c9992c1
PHP
Nangeiswezinphyo/dltwdphpbatch1
/helloworld.php
UTF-8
144
2.609375
3
[]
no_license
<?php echo "Hello Myanmar"; print "Hello Thailand"; printf("Hello Laos",true); echo "<hr/>"; $thint="thint thint htun"; echo "$thint"; ?>/
true
50fef886a4fac174bf25b80dea2c80b0349fbc24
PHP
the-refinery/Sandstone
/5.0/codebase/lib/namespace/spec/namespace.spec.php
UTF-8
1,589
2.53125
3
[]
no_license
<?php class NamespaceSpec extends DescribeBehavior { public function ItShouldIncludeClasses() { SandstoneNamespace::Using("lib.namespace.spec.utility"); $condition = class_exists("NamespaceTest") && class_exists("NamespaceTest2"); return $this->Expects($condition)->ToBeEqualTo(true); } public function ItS...
true
e8b83a799c21197d96fcc2750918c025e7936b41
PHP
thephpleague/uri-schemes
/src/functions.php
UTF-8
1,080
2.734375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * League.Uri (http://uri.thephpleague.com). * * @package League\Uri * @subpackage League\Uri\Schemes * @author Ignace Nyamagana Butera <nyamsprod@gmail.com> * @license https://github.com/thephpleague/uri-schemes/blob/master/LICENSE (MIT License) * @version 1.2.1 * @link https://git...
true
9512af64f6a302fdbcaec4e225b457e24c7f5658
PHP
szymek/libphp
/lib/ju1ius/Text/Source/Position.php
UTF-8
704
3.40625
3
[]
no_license
<?php namespace ju1ius\Text\Source; /** * A position in a source string - includes offset, line and column. */ class Position { protected $offset, $line, $column; /** * @param String $source * @param int $offset * @param int $line * @param int $column **/ public function __const...
true
de13fb61ebb2ac323a9e99955b011f755f2131e8
PHP
Abu-Shamaa/Web-System
/agrifarm/send_link.php
UTF-8
4,101
2.515625
3
[]
no_license
<?php if(isset($_POST['submit_email']) && $_POST['email']) { include 'conn.php'; $email=$_POST['email']; $select="select * from users where email='$email'"; $row1 = $conn->query($select); if ($row1->num_rows == 1) { $row=mysqli_fetch_array($row1); $email=$row['email']; $pass=md5($row['p...
true
5e2a18f6cad8f19b84c8e9869d525ca0c8dfd50a
PHP
deidee/detijd
/class.detijd.php
UTF-8
11,346
2.859375
3
[]
no_license
<?php class Detijd { const HEIGHT_MULTIPLIER = 9; const ROWS = 9; const WHITE = '#ffffff'; private $format = 'H:i:s'; private $height = 300; private $width = 300; private $type = 'gif'; private $x = 0; private $y = 0; private $size = 12; private $c = []; private $text =...
true
f28b42e34bf05ed216120deb7451729259f53648
PHP
zuhamursheed/homteq
/checkout.php
UTF-8
2,431
2.546875
3
[]
no_license
<?php session_start(); include("db.php"); $pagename="Order Confirmation"; //Create and populate a variable called $pagename echo "<link rel=stylesheet type=text/css href=mystylesheet.css>"; //Call in stylesheet echo "<title>".$pagename."</title>"; //display name of the page as window title echo "<body>"; include...
true
2b34215217442fa7b0c764167aec17af3d19ca43
PHP
Tharindu1214/projectt
/application/models/EmptyCartItems.php
UTF-8
1,448
2.546875
3
[]
no_license
<?php class EmptyCartItems extends MyAppModel { const DB_TBL = 'tbl_empty_cart_items'; const DB_LANG_TBL ='tbl_empty_cart_items_lang'; const DB_TBL_PREFIX = 'emptycartitem_'; public function __construct($id = 0) { parent::__construct(static::DB_TBL, static::DB_TBL_PREFIX . 'id', $id); }...
true
fe4ff3063e06d4fba64a1677e5661ccf6f6f5bd7
PHP
sah-comp/bienlein
/src/Model/Language.php
UTF-8
2,694
2.640625
3
[]
no_license
<?php /** * Cinnebar. * * @package Cinnebar * @subpackage Model * @author $Author$ * @version $Id$ */ /** * Language model. * * @package Cinnebar * @subpackage Model * @version $Id$ */ class Model_Language extends Model { /** * Constructor. * * Set actions for list views. */ pu...
true
8232cd4f164e338904c6756d9ad1b80f5658d530
PHP
LuffyQAQ/ESreptile
/vendor/easyswoole/annotation/src/AbstractAnnotationTag.php
UTF-8
449
2.75
3
[]
no_license
<?php namespace EasySwoole\Annotation; abstract class AbstractAnnotationTag { //当没有指定key的时候,所有的值都在value字段 public $value; private $aliasFrom; abstract public function tagName():string; public function aliasFrom(?string $from = null):string { if($from){ $this->aliasFrom ...
true
31aed9b4ede342ef0b6ccb382946e509109ef606
PHP
PritomAhsan/accounting_app
/app/Http/Controllers/IncomeController.php
UTF-8
1,795
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Income; use App\SubIncome; use Illuminate\Http\Request; use DB; class IncomeController extends Controller { public function index() { $incomes = Income::all(); $subIncomes = DB::table( 'sub_incomes' ) ->join( 'incomes', 'sub_incomes.income_id', ...
true
e0700987a8a29a3085b9ae8587a4feb1c4dfb79e
PHP
acerus/WordPressify
/www/wp-content/themes/jobify/vendor/astoundify/content-importer/app/ItemImport.php
UTF-8
7,476
2.875
3
[ "MIT", "GPL-3.0-or-later", "GPL-3.0-only", "GPL-1.0-or-later", "GPL-2.0-only", "Apache-2.0", "GPL-2.0-or-later" ]
permissive
<?php /** * Single item import * * @implements Astoundify_ItemImportInterface * * @since 1.0.0 */ abstract class Astoundify_AbstractItemImport { /** * The item data that is being acted upon. * * @since 1.0.0 * @access public * @var array */ public $item; /** * The action that is being taken on ...
true
35b93447b391f7012421b649cb8924aee323c7e0
PHP
xiaoleifeng/phpstudy
/chongxie.php
UTF-8
947
3.328125
3
[]
no_license
<?php header('string'); class goods { public $tiji=0; public $weight=0; public function __construct($tiji=0,$zhongliang=0) { $this->tiji=$tiji; $this->weight=$zhongliang; } public function jisuantiji(){ return $this->tiji*$this->weight; } public function jisuanweight(){ return $this->tiji-$this->weig...
true
fc9080bb4cd45a20604c02993888fe19515e8b6d
PHP
arbor-education/sis-sdk-php
/src/Arbor/Model/SenEvent.php
UTF-8
4,328
2.6875
3
[]
no_license
<?php namespace Arbor\Model; use Arbor\Resource\ResourceType; use Arbor\Query\Query; use Arbor\Model\ModelBase; class SenEvent extends ModelBase { public const START_DATETIME = 'startDatetime'; public const END_DATETIME = 'endDatetime'; public const LOCATION_TEXT = 'locationText'; public const LOC...
true
e9c6417d1f45abcd3a8c0aad2e50fb6385ae93c1
PHP
Vraj11590/CS-490-Front
/take.php
UTF-8
3,873
2.65625
3
[]
no_license
<?php include 'curl.php'; include 'header.php'; if(isset($_POST['Grade'])){ $temp = $_POST; print_r($temp); } //show all quizzes $quizzes = get_all_quizzes(array("action"=>"send_all_quizzes")); $res = json_decode($quizzes); ?> <?php if( !isset($_GET['id']) ) { ?> <center> <p> Please ...
true
56ddd0347e918b1a33372e26b883a0598778f5dc
PHP
EvhgenShevchenkoZKR/try
/ex -cope.php
UTF-8
881
2.65625
3
[]
no_license
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>Тег FORM, атрибут accept-charset</title> </head> <body> <?php include('simple_html_dom.php'); function bineks_cron_horoscope_parser(){ $znaki = array("aries","taurus","gemini","cancer","leo","virgo","libra","scorpio","sagittarius","capricorn","a...
true
d4be8be97eaf7e519daafefbdbd08b90e7c1475a
PHP
patricio127/php-natural
/sitio/paginas/menu.php
UTF-8
5,169
2.53125
3
[]
no_license
<?php /** @var PDO $db */ require_once __DIR__ . '/../clases/ProductoRepository.php'; $buscar = $_GET['buscar'] ?? null; $busqueda = []; if($buscar) { $busqueda['buscar'] = $buscar; } $paginaActual = (int) ($_GET['p'] ?? 1); $repo = new ProductoRepository($db); $repo->paginacionHabilitar(); $repo->setPaginacionPa...
true
826859e5ccb0084ef052a9338ddf9696b8b311b7
PHP
rizky172/Peminjaman-Barang
/app/Http/Controllers/_DummyController.php
UTF-8
5,085
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use \App\DummyModel; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Facades\Hash; class DummyController extends Controller { public function count(){ try { $response['totalRecords'] = DummyModel::count(); ...
true
2c85ffc5a78b4e1b2751ee6d4df6578a3f729f0d
PHP
flosolcher/Hausnetz
/Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Core/LockManager.php
UTF-8
3,842
2.546875
3
[]
no_license
<?php namespace TYPO3\Flow\Core; /* * * This script belongs to the TYPO3 Flow framework. * * * * It is free software; you can redistribute it and/or mod...
true
56033cc21f14d2f3e13087a30b12192a7de2e4c8
PHP
grynhas/DH-PHP
/aula11-php/aparelhoDeSom.php
UTF-8
1,022
3.125
3
[]
no_license
<?php require_once("Equipamento.php"); class aparelhoDeSom extends Equipamento { public $volume; public $numeroFaixa; public $usb; public function __construct(){ $this->volume = 0; $this->numeroFaixa = 0; } public function conectar($penDrive){ $this->usn = $penDrive; ...
true
6b382f154dd75c4a00b00db5be5b8f9d6b179b72
PHP
CSchool/AIBattle
/site/userAuthorization.php
UTF-8
2,439
2.5625
3
[ "Apache-2.0" ]
permissive
<?php include_once('procedures.php'); if (isActiveUser()) header("Location: /"); $loginFailed = false; $userBanned = false; if (isset($_POST['submitAuth'])) { $reason = ""; $data = getAuthorizationData(); //var_dump($data); if (!empty($data)) ...
true
1fb0d0ed512071fa1728480b386c8f571f1f6f43
PHP
Conserto/pomm-symfony-bridge
/sources/lib/PropertyInfo/Extractor/TypeExtractor.php
UTF-8
3,576
2.515625
3
[]
no_license
<?php /* * This file is part of Pomm's SymfonyBidge package. * * (c) 2015 Grégoire HUBERT <hubert.greg@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PommProject\SymfonyBridge\PropertyInfo\Extractor; use Pom...
true
0d17380aad351b3b86f41e58ae822d88cb58e84c
PHP
boudra/yapf
/src/Utils/Image.php
UTF-8
2,208
3.125
3
[]
no_license
<?php namespace App\Utils; class Image { private $image; private $file; public function __construct($file = null) { if(!empty($file)) { $this->load_file($file); } } public function load_file($file) { $ctx = stream_context_create(array('http'=> ...
true
b41841e9852efaac0fb09c4504139550f61894da
PHP
Luis-Angel-Santos/Integradora-I
/uñaspaty/login_cod.php
UTF-8
2,175
2.78125
3
[]
no_license
<?php //INICIALIZAR SESION session_start(); if(isset($_SESSION["loggedin"]) && $_SESSION ["loggedin"] === true){ header("location: inicio.php"); exit; } require_once "conexion.php"; $email = $pass =""; $email_error = $pass_error=""; if($_SERVER["REQUEST_METHOD"] === "POST"){ ...
true
23d030577fde7873324d171926296e3b59dab1eb
PHP
ngmautri/nhungttk
/module/User/src/User/Controller/IndexController.php
UTF-8
6,483
2.59375
3
[ "Apache-2.0" ]
permissive
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New...
true
30d0a9fce75481a4e34105045888dce0d7d2b8d9
PHP
Asmotym/projet-exametrics-acer
/webservice/controllers/areas-controller.php
UTF-8
2,229
3.25
3
[]
no_license
<?php class AreaController { /** * Request to the DB all areas */ public static function getAllAreas() { $db = Flight::db(false); $response = new stdClass(); $req = $db->query('select * from area'); if ($result = $req->fetchAll(PDO::FETCH_OBJ)) { $response->count = count($result); $response->resu...
true
73fa76d98024fcd5455305ec09eeed7f233bf86a
PHP
mominzahid/ip-insert-php
/insert_ip.php
UTF-8
2,891
2.75
3
[]
no_license
<html lang="en-us"> <style> h2 { color: red; text-align: center; padding: 25px; } table { text-align: center; padding: 5px; } th { padding: 10px; } td { padding: 10px } .left-align, .right-align { width: 40%; ...
true
97723d1923a5024ba4a032cd95774d4d22696cd1
PHP
viraniaman/ug-academics-iitb
/projects/ppa/tatti php files/apply.php
UTF-8
14,400
2.625
3
[ "MIT", "Apache-2.0" ]
permissive
<?php session_start(); require_once('connection.php'); // var_dump($_POST); // var_dump($_SESSION); require_once('department_assoc_array.php'); if(!isset($_SESSION['ldap_id'])) { die( 'hahaha clever guy first login'); } if($_SESSION['user_type']!='student') { ...
true
74274c4cf0e1445709a5e6ae2d55bcdb7224bfa9
PHP
arunkullu64/uksalon
/salon/app/database/seeds/DatabaseSeeder.php
UTF-8
1,899
2.53125
3
[ "MIT" ]
permissive
<?php class DatabaseSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { Eloquent::unguard(); $this->call('UserTableSeeder'); $this->command->info('User table seeded!'); } } class UserTableSeeder extends Seeder { public function run() { ...
true
b9e5ffa165187efd88a051b5be290f22a1dc7604
PHP
sunguide/nest
/app/Http/Requests/Api/FormRequest.php
UTF-8
602
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests\Api; use Dingo\Api\Http\FormRequest as BaseFormRequest; class FormRequest extends BaseFormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** ...
true
5df4885e8ef3029a66ee3d809cb21642de19ec52
PHP
iagoid/localiza-ai-alto-jacui
/App/Db/database.php
UTF-8
2,991
3.046875
3
[]
no_license
<?php namespace App\Db; use \PDO; use PDOException; class Database { const HOST = 'localhost'; const NAME = 'localiza_ai'; const USER = 'root'; const PASSWORD = ''; private $table; private $connection; function __construct($table = null) { $this->table = $table; $thi...
true
b73714b2850a6a1cc60381e3984dca9441cdc0ef
PHP
presseddigital/listit
/src/services/Lists.php
UTF-8
2,362
2.609375
3
[ "MIT" ]
permissive
<?php namespace presseddigital\listit\services; use Craft; use craft\base\Component; use presseddigital\listit\models\ListModel; use presseddigital\listit\models\Subscription; use presseddigital\listit\records\Subscription as SubscriptionRecord; class Lists extends Component { // Private // ================...
true
d5f9e2987cf263b6d2329d63dda71572bcfca92b
PHP
arunintegrass/HRMDBMigration
/messagelog.php
UTF-8
402
2.75
3
[]
no_license
<?php function msg_log($log_msg,$filename) { $carriageReturn = "\r\n"; $br = "<br>"; $log_filename = $filename.".log"; if (!file_exists('log')) { // create directory/folder uploads. mkdir('log', 0777, true); } $log_file_data = 'log/' . $log_filename; file_put_contents($l...
true
3321fb56d1be70d381fea6a08c9a56b4a1f6fc31
PHP
TreSach/it5236
/website/editprofile.php
UTF-8
3,511
2.96875
3
[]
no_license
<?php // Import the application classes require_once('include/classes.php'); // Declare an empty array of error messages $errors = array(); // Create an instance of the Application class $app = new Application(); $app->setup(); // Check for logged in user since this page is protected $app->protectPage($errors); //...
true
673ec6d9aa51d787a0be2c8417617a282f2b111c
PHP
benjaminkott/bootstrap_package
/Classes/Utility/TypoScriptUtility.php
UTF-8
2,902
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); /* * This file is part of the package bk2k/bootstrap-package. * * For the full copyright and license information, please read the * LICENSE file that was distributed with this source code. */ namespace BK2K\BootstrapPackage\Utility; use Psr\Http\Message\ServerRequestInterface; u...
true
b20ab6bd9c72152dbcae2342ef2d955c8e6d0870
PHP
itsmee/test-books
/autoload.php
UTF-8
704
2.640625
3
[]
no_license
<?php /** * Autoload function. * * Used PSR-0 autoload from https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md * @param string $class_name */ function autoload($class_name) { $class_name = ltrim($class_name, '\\'); $file_name = ''; $namespace = ''; if ($last_ns_pos = strrpos($...
true
cfa05a4b4bf6bd654ec69d116f56fbc6fa6db4e8
PHP
mclantta/Tsoha-Bootstrap
/app/controllers/BookController.php
UTF-8
3,456
2.796875
3
[]
no_license
<?php /** * This class uses book model to make book's views. */ class BookController extends BaseController { public static function listingBooks() { $books = Book::all(); // self::sort_books($books); View::make('book/all_books.html', array('books' => $books)); } public static ...
true
dfa7e9c9e63553914826afc4d87d3d9d5f40d646
PHP
wildanSawaludin/fv
/serialcom/xpmtohex.php
UTF-8
1,767
3.109375
3
[]
no_license
<?php /*$xpm = array( "8 8 7 1", " c #000000", ". c #FF0000", "+ c #FFFFFF", "@ c #A05000", "# c #FFB57F", "$ c #FFFF00", "% c #00AEFF", " ...+ ", " .....", " @#@ # ", " @##@@#", " @### ", " ..$%%$ ", "+ %%%%%#", " @ @ " );*/ function getImageStringFromFile($xpmfile) { $file = ...
true
8edbe943599ecac1793f00e85d8f806fa4d783c4
PHP
tim-hogan/glidingops
/todayxml.php
UTF-8
3,321
2.53125
3
[ "MIT" ]
permissive
<?php include 'helpers.php'; include 'timehelpers.php'; header('Content-type: text/xml'); if ($_SERVER["REQUEST_METHOD"] == "GET") { $org=$_GET['org']; if ($org < 1) { echo "<resp><error>No organisation number specified</error></resp>"; exit(); } $dateTimeZoneNZ = new DateTimeZone("Pacific/Auckland");...
true
4235cf1d11837eb85d4a74d320327801b1668fa8
PHP
SandySaenz/process
/database/migrations/2014_07_02_015800_create_rols_table.php
UTF-8
1,031
2.640625
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; class CreateRolsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { ...
true
10cf826b80de5699cf97ad6d54f4215e758d4105
PHP
ltk/Old-Checkmate
/add_student.php
UTF-8
904
2.609375
3
[]
no_license
<?php $edit_class = $_POST['edit_class']; $edit_first_name = $_POST['edit_first_name']; $edit_last_name = $_POST['edit_last_name']; $edit_student = $_POST['edit_student']; $class = $_POST['class']; $first_name = $_POST['first_name']; $last_name = $_POST['last_name']; require_once('db_connect.php'); if (!$edit_stud...
true
1f594a9945aec3c417700c806f85330173258c6d
PHP
lupel31/CodeIgniter-cms
/application/modules/file_manager/helpers/fileset_helper.php
UTF-8
925
2.65625
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * * A helper for the directory manager. * @package CMS * @author Danny Nunez <dnunez@300Development.com> * @copyright (c) 2013, 300 Development * @since 0.1 * */ class fileset_helper extends Admin_Controller { p...
true
d1d199d0f4e0c1d5089ee3503de1c14c2aefbda1
PHP
i3logix/coding_challenge_php
/test/GameOfLifeTest.php
UTF-8
2,560
3.15625
3
[ "MIT" ]
permissive
<?php namespace GameOfLife; class GameOfLifeTest extends \PHPUnit\Framework\TestCase { /** * @test */ public function itCanSimulateAStaticBlock() { $block = <<< EOBLOCK 1 1 0 1 1 0 0 0 0 EOBLOCK; $largeBlockWindow = <<<EOLARGEBLOCK 0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0 EOLAR...
true
5c686eb6708eb6acebe7f199a5e16818feb6b53d
PHP
IanGoodwill/woofer
/app/Http/Controllers/CommentController.php
UTF-8
3,561
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Auth; use App\Post; use App\Profile; use App\User; use App\Comment; class CommentController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index()...
true
d890aeadeff917733a71f751fd3e64c6304aa11f
PHP
EduardBob/village-app-backend
/Modules/Village/Packback/Transformer/SurveyTransformer.php
UTF-8
1,521
2.578125
3
[]
no_license
<?php namespace Modules\Village\Packback\Transformer; use League\Fractal\Resource\Item; use League\Fractal\TransformerAbstract; use Modules\Village\Entities\Survey; use Modules\Village\Entities\SurveyVote; use Modules\Village\Entities\User; class SurveyTransformer extends TransformerAbstract { /** * @var Us...
true
529e7fc4fdbb5f2e3c15a21710f9baa0c9cdc39f
PHP
tijsdeleu/openshift
/src/AppBundle/Entity/User.php
UTF-8
3,251
2.515625
3
[]
no_license
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * User * * @ORM\Table() * @ORM\Entity */ class User { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var s...
true
252dc16cfd742c8ba3772c6d5ddf6c72c2e95305
PHP
bdsoftpro/Mastercard
/services/Restaurants/domain/restaurant/Restaurants.php
UTF-8
889
3.140625
3
[ "MIT" ]
permissive
<?php class Restaurants { private $PageOffset; private $TotalCount; private $Restaurant; public function __construct($PageOffset, $TotalCount, $Restaurant) { $this->PageOffset = $PageOffset; $this->TotalCount = $TotalCount; $this->Restaurant = $Restaurant; } functi...
true
c35e30038b3de4148d34ea52ce922f62df122474
PHP
nextras/orm
/src/Entity/PropertyWrapper/BackedEnumWrapper.php
UTF-8
1,285
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Nextras\Orm\Entity\PropertyWrapper; use BackedEnum; use Nextras\Orm\Entity\ImmutableValuePropertyWrapper; use Nextras\Orm\Exception\NullValueException; use function array_key_first; use function assert; use function is_int; use function is_string; use function is_subclass_o...
true
ea203e74cf7f2e1e157a8e432fcfe628362616ad
PHP
OskarStark/continuouspipe
/api/src/ContinuousPipe/DevelopmentEnvironment/InitializationToken/InitializationToken.php
UTF-8
1,475
2.734375
3
[ "Apache-2.0" ]
permissive
<?php namespace ContinuousPipe\DevelopmentEnvironment\InitializationToken; use Ramsey\Uuid\UuidInterface; use JMS\Serializer\Annotation as JMS; class InitializationToken { /** * @JMS\Type("uuid") * * @var UuidInterface */ private $flowUuid; /** * @JMS\Type("uuid") * * ...
true
d7a590978d0453b5563a286b0a76914f6fa0d414
PHP
AdrianMrn/gotquiz
/app/Console/Commands/exportexcel.php
UTF-8
2,795
2.625
3
[]
no_license
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use Carbon\Carbon; use Mailgun\Mailgun; use App\Contest, App\Participation, App\User; use App\Http\Controllers\ContestController; class exportexcel extends Command { /** * The name and signature of the console command. * * @var...
true
3222f703aaf68d24c2a84c8d5be34e61a151e979
PHP
elie91/ESGI_Cours
/4emeAnnee/Test_unitaires/TodoList/app/User.php
UTF-8
818
2.5625
3
[ "MIT" ]
permissive
<?php namespace App; use Carbon\Carbon; use Illuminate\Database\Eloquent\Model; class User extends Model { protected $fillable = [ 'first_name', 'last_name', 'email', 'password', 'birthday' ]; protected $hidden = [ 'password' ]; public function todoList() { return $t...
true
b3ddea405313a7252fb7fbe05cbb4e37105e9000
PHP
swapnilbirajdar09/repoSoftComp
/application/controllers/Admin_login.php
UTF-8
3,284
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php error_reporting('E_ALL'); defined('BASEPATH') OR exit('No direct script access allowed'); class Admin_login extends CI_Controller { // Login controller public function __construct() { parent::__construct(); // load common model $this->load->model('admin/Adminlogin_model'); }...
true
0461ca1b822c229b147ce64f2eea1346cc0fb019
PHP
petrkotek/phpunit-naughtytestdetector
/tests/PHPUnit/Listeners/Dummy/MultiCountingFetcher.php
UTF-8
683
2.921875
3
[ "Apache-2.0" ]
permissive
<?php namespace PetrKotek\NaughtyTestDetector\Tests\PHPUnit\Listeners\Dummy; use PetrKotek\NaughtyTestDetector\MetricFetcher; /** * Dummy metric fetcher, which has two counters - every time returns incremented value: * - counter1 increments by 1, * - counter2 increments by 2. */ class MultiCountingFetcher impleme...
true
57ff708ee14190904282d2bf6fedd0e9d9f92382
PHP
fatorx/laminas-start
/module/Tags/src/Entity/TagPoint.php
UTF-8
3,811
2.75
3
[]
permissive
<?php namespace Tags\Entity; use Doctrine\ORM\Mapping as ORM; use Laminas\Hydrator\ClassMethods; use Laminas\Hydrator\NamingStrategy\UnderscoreNamingStrategy; /** * @ORM\Entity * @ORM\Table(name="tags_points") **/ class TagPoint { /** * @var integer * * @ORM\Column(name="id", type="integer", n...
true
57d741890b52d58fbbc3fbe1e0ffaa6da25a74e9
PHP
richardtape/themeists-widgets
/widgets/logo-showcase/logo-showcase.php
UTF-8
7,446
2.578125
3
[]
no_license
<?php if( !class_exists( 'ThemeistsLogoShowcase' ) ) { class ThemeistsLogoShowcase extends WP_Widget { /** * The name shown in the widgets panel * * @author Richard Tape * @package ThemeistsLogoShowcase * @since 1.0 */ const name = 'Themeists Logo Showcase'; /** ...
true
430f23b9527a7e6e488432116d396478035e6848
PHP
cxsdtxz/yii2shop
/backend/models/LoginForm.php
UTF-8
1,188
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\models; use yii\base\Model; class LoginForm extends Model { public $username; public $password; public $auto_login; public $verify; public function rules() { return [ [['username', 'password'], 'required'], ['auto_login', "safe"], ...
true
edf6f19db181181789c877738ae5421d3af718e1
PHP
Florence2016/KainosEs
/database/migrations/2018_02_16_005122_create_students_table.php
UTF-8
1,210
2.65625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateStudentsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('students', fun...
true
07a8582a0b33dac4e243bdb966c80484dec9235e
PHP
rkgladson/PHPixme
/src/PHPixme/RootTypeTrait.php
UTF-8
556
2.640625
3
[ "MIT" ]
permissive
<?php namespace PHPixme; /** * Class HeadTypeTrait * Place into * @package PHPixme */ trait RootTypeTrait { use TypeTrait; /** * A helper function to retrieve the name of the parent class * @return string */ final static public function rootType() { return self::class; } /** * @param mix...
true
c8432a8de6d478cb8345223964280c2e69e1f5e1
PHP
birbosluk/yengec-php
/src/Entities/User.php
UTF-8
1,212
3.0625
3
[]
no_license
<?php namespace Yengec\Entities; use Illuminate\Contracts\Support\Arrayable; class User implements Arrayable { public string $name; public string $email; public ?string $phone; /** * @return string */ public function getPhone(): ?string { return $this->phone; } /**...
true
1b9cb1acea6d3e5e4eb1c5383e65b91f5b123638
PHP
OskarStark/continuouspipe
/api/tests/ContinuousPipe/River/Managed/Resources/TracedUsageHistoryRepository.php
UTF-8
1,638
2.578125
3
[ "Apache-2.0" ]
permissive
<?php namespace ContinuousPipe\River\Managed\Resources; use ContinuousPipe\River\Managed\Resources\Calculation\Interval; use ContinuousPipe\River\Managed\Resources\History\ResourceUsageHistory; use ContinuousPipe\River\Managed\Resources\History\ResourceUsageHistoryRepository; use Ramsey\Uuid\UuidInterface; class Tra...
true
7a9fb122f682934685f87b33ef88ce371a185bed
PHP
nicolashefti/tower
/htdocs/rss.php
UTF-8
1,511
2.875
3
[]
no_license
<?php require '../vendor/autoload.php'; use Symfony\Component\DomCrawler\Crawler; $url = $_GET['url']; $html = file_get_contents($url); $crawler = new Crawler($html); $rssfeed = '<?xml version="1.0" encoding="ISO-8859-1"?>'; $rssfeed .= '<rss version="2.0">'; $rssfeed .= '<channel>'; $rssfeed .= '<title>My RSS fee...
true
cb6b345bcb968ae8a949f1bd1977351d87df04f2
PHP
hasancanucak/quizy
/app/Controllers/Admin/NotificationController.php
UTF-8
2,868
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Controllers\Admin; use App\Core\AdminController; use App\Models\NotificationModel; use CodeIgniter\Entity; class NotificationController extends AdminController { /** @var NotificationModel **/ protected $notificationModel = null; public function initController($request, $response, $logger) {...
true
6353d4dc3e34e0ecf84a88916820eb7bcfdaa1ca
PHP
marscore/hhvm
/hphp/test/zend/good/ext/date/tests/date_period.php
UTF-8
623
2.78125
3
[ "Zend-2.0", "PHP-3.01", "MIT" ]
permissive
<?php <<__EntryPoint>> function main() { date_default_timezone_set('UTC'); $db = new DateTime( '2008-01-01' ); $de = new DateTime( '2008-12-31' ); $di = DateInterval::createFromDateString( 'first day of next month' ); foreach ( new DatePeriod( $db, $di, $de ) as $dt ) { echo $dt->modify( "3 tuesday" )->format( "l ...
true
450e530455a3d29d99c47450a01bfa6d97d1edda
PHP
swijetunge/git
/randomnumber/index.php
UTF-8
261
2.8125
3
[]
no_license
<?php /* rand — Generate a random integer ran($min, $max) any number betweet £min and $max need a cryptographically secure value, consider using openssl_random_pseudo_bytes Generate a pseudo-random string of bytes */ $rand = rand(100,2000); echo $rand; ?>
true
644fe9ba47ad9272ace9b394295457628ceecd21
PHP
acmarche/bottin
/src/Cap/ApiUtils.php
UTF-8
5,848
2.59375
3
[]
no_license
<?php namespace AcMarche\Bottin\Cap; use AcMarche\Bottin\Entity\Category; use AcMarche\Bottin\Entity\Classement; use AcMarche\Bottin\Entity\Fiche; use AcMarche\Bottin\Repository\ClassementRepository; use AcMarche\Bottin\Repository\HoraireRepository; use AcMarche\Bottin\Serializer\CategorySerializer; use AcMarche\Bott...
true
4f0190a9a7f740cf73811490a84634810f65fb31
PHP
tropotek/tk-auth
/Tk/Auth/Adapter/Trapdoor.php
UTF-8
2,078
2.609375
3
[]
no_license
<?php /* * @author Michael Mifsud <info@tropotek.com> * @see http://www.tropotek.com/ * @license Copyright 2007 Michael Mifsud */ namespace Tk\Auth\Adapter; use Tk\Auth; use Tk\Auth\Result; /** * A authenticator adaptor * * NOTICE: This is only to be enabled for test sites, not to be used in production. * * T...
true
46aed1b7afff986f8c1f0c821f81b93fd5d111c9
PHP
kevin92dev/Word-reverser
/src/AppBundle/Reverser/Application/Service/WordReverserService.php
UTF-8
554
3.125
3
[]
no_license
<?php namespace AppBundle\Reverser\Application\Service; class WordReverserService { /** * Return an imploded words reversed. * * @param array $words * @return string */ public function reverse(array $words): string { return implode(' ', array_reverse(array_map([$this, 'rev...
true
24d854b9ff07b93ede7abc2864ea4ec6a9ddec4c
PHP
phpro/zf-charts
/src/Phpro/Chart/ChartJs/Doughnut/DoughnutChart.php
UTF-8
791
2.765625
3
[]
no_license
<?php namespace Phpro\Chart\ChartJs\Doughnut; use Phpro\Chart\ChartJs\AbstractChart; /** * Class DoughnutChart * * @package Phpro\Chart\ChartJs\Doughnut */ class DoughnutChart extends AbstractChart { const TYPE = 'Doughnut'; /** * @var string */ protected $type = self::TYPE; /** ...
true
5d808d1278ed31844b0e1d4fc27a7b7b91f597e5
PHP
millidavids/PHP
/loop-control.php
UTF-8
507
3.9375
4
[]
no_license
<?php $numbers = array(); foreach (range(0, 100, 3) as $i) {array_push($numbers, $i);} $num = 0; do { if (array_search($num, $numbers) == 0) { echo "First number.\n"; } elseif (array_search($num, $numbers) == sizeof($numbers) - 1) { echo "Last number.\n"; } elseif ($num % 7 == 0) { ...
true
bce0389d85d18abd86e01b78445f7ced8a680c77
PHP
harsh62/Copy-File-from-FTP-server-using-php
/ftps_connection.php
UTF-8
1,193
2.609375
3
[]
no_license
<?php //The server from where the file needs to be copies $server = "209.222.222.55"; //file name to copy $filename = "folder_name/file_to_be_copied.html"; //path on your server where you want to srore the copied file $path = "/path/to/copy/file.html"; //user name of the server from where the file needs to be co...
true
c03073201de0542071ae78bb759973069b8e9c15
PHP
Perryvw/DBLAppDevelopment
/Backend/modules/updateuserroute.php
UTF-8
1,182
2.625
3
[]
no_license
<?php /* Hitch back-end module. Throw an error throwError ( message, errorCode0 ); Database object: $db Module: UpdateUserRoute Input parameters: routeID: The ID of the user owning the route. startpoint: The starting point of the route. endpoint: The endpoint of the route. timestamp: ...
true
da9b5e0031ac2f4e3e6ea4a11d484862c5204bf5
PHP
mariampogh/laravelvue
/app/Http/Controllers/User/CvController.php
UTF-8
863
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\User; use App\Cv; use App\Question; use App\Profession; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class CvController extends Controller { //create user cv public function createCv(Request $request, $id) { $id = auth()->user()->id; $questionsCount =...
true
c3870821e7a056b241467cfda041cf6775724040
PHP
colonBurro/Similaritipsum
/src/Objects/Document.php
UTF-8
1,861
3.34375
3
[]
no_license
<?php namespace App\Objects; class Document { /** * @var The number of words inside the document */ private $wordCount; /** * @var a 2d array containing the list of document tokens * (tokens can be: vectorized occourances, relativized occourances and idf weighted occourances) */ ...
true
4c88b33ed99c784f2aa636e2de2e0da97b10bb4e
PHP
LuizdeSouza16/php
/Estruturas de repetição/Switch.php
UTF-8
610
3.59375
4
[ "MIT" ]
permissive
<?= '<title>Estrutura SWITCH</title>' ?> <?php $diaDaSemana = date("l"); echo $diaDaSemana . "</br>"; $diaDaSemana = date("w"); switch ($diaDaSemana) { case 0: echo "Domingo"; break; case 1: echo "Segunda - Feira"; break; case 2: echo "Terça - Feira"; b...
true
3cffd6814d00da0ffa04a70396272d45ac935618
PHP
jhonatanTeixeira/restfull-client-orm
/src/Serializer/Denormalizer.php
UTF-8
1,023
2.703125
3
[ "MIT" ]
permissive
<?php namespace Vox\Serializer; use ReflectionClass; use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; use Vox\Data\ObjectHydratorInterface; /** * a data denormalizer aimed to be used with the symfony serializer component * * @author Jhonatan Teixeira <jhonatan.teixeira@gmail.com> */ class Deno...
true
d6f29a01b32a5cf5e7998137309da38206e1db6e
PHP
njerucyrus/project2
/views/includes/register_group.inc.php
UTF-8
836
2.59375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: New LAptop * Date: 26/04/2017 * Time: 15:37 */ $successMsg = ''; $errorMsg = ''; if(isset($_POST['group_name'],$_POST['ref_no'])) { $group = new \Hudutech\Entity\Group(); $group->setGroupName($_POST['group_name']); $group->setRefNo($_POST['ref_no']); $group...
true
379d16bdc64e735fb9a0d3455fc96f97f4e314ae
PHP
mnudelman/elize
/backEnd/ConceptFunction.php
UTF-8
7,047
3.3125
3
[]
no_license
<?php /** * класс - набор функций, определяющих понятия(concept) запроса */ class ConceptFunction { private $functList = ['ru_names']; // список определённых функций private $phraseWords = []; // список слов запроса private $db; // объект для обращений к БД priv...
true
a55847bd5ed677cd7a8c9063dfb7c584d1ac0aa8
PHP
epalen/codekids
/database/migrations/2014_10_12_000000_create_users_table.php
UTF-8
1,790
2.59375
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function ...
true
1d24a46644a679158a1ad1e7ef639b8fffea7f8f
PHP
michellebalos/phpex2-BALOS
/process.php
UTF-8
1,130
3.359375
3
[]
no_license
<?php class Range { function mr($s1, $s2) { if(!empty($s1 && $s2)) { $max = (($s1 + $s2) - 1); return $max; } else { return 0; } } } class Ones { function countOnes($n) { $count = 0; while ($n) ...
true