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
c7bc031a15f6a14f87389b500082e4e9725720d6
PHP
xqueue/maileon-php-api-client
/src/mailings/DispatchLogic.php
UTF-8
9,956
2.8125
3
[ "MIT" ]
permissive
<?php namespace de\xqueue\maileon\api\client\mailings; use de\xqueue\maileon\api\client\xml\AbstractXMLWrapper; /** * The wrapper class for a dispatch logic. This class wraps the XML structure. * * @author Andreas Lange */ class DispatchLogic extends AbstractXMLWrapper { /** * @var DispatchLogicType typ...
true
cae026f774f418f2aaf9c0047cc8e2d3ed751413
PHP
foxcodenine/tutorials
/ice_malta/mysuccess_web_dev/PHP/studies/pages_21_29.php
UTF-8
2,107
3.046875
3
[]
no_license
<?php include './my_print_functions.php'; ppp('A'); //____________________________________________________________ // ----- Yoda Condition, Constant on the left: $w = 'world'; if ($w = 'worlds') { // <- mistake echo 'match <br>'; } else { echo 'does not matcho <br>'; } // if ('worlds' = $w ) { // <- wil...
true
c115cd7c7124a96a79f5ddfcce059b0079fd7dea
PHP
Solweigdev/PHP-System-Login
/index.php
UTF-8
898
2.671875
3
[]
no_license
<?php /** * @author Solweigdev * @link https://github.com/Solweigdev/-PHP-System-Login */ // Include auto loader to call class require ("vendor/autoload.php"); // Include configuration to connection in your database require_once("app/config/config.php"); // Include class login $User = new App\classes\Use...
true
9d51c7085867251cc72c5b1c1972c431f8bd06e5
PHP
nilsonjrsilva1997/lp-trane
/app/Models/State.php
UTF-8
491
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use App\Models\User; class State extends Model { use HasFactory; protected $connection= 'mysql'; protected $fillable = ['state_id', 'state_country_id', 'state_code', 'state_name', ...
true
ebde550b6fc1d09398e4666f5d2239cb7d1050e1
PHP
ImtiH/BAPWD
/www/php-fundamentals/part14.php
UTF-8
754
3.125
3
[]
no_license
<?php function durjoy(){ $name = 'durjoy'; // Local scope echo $name; } durjoy(); echo "<br>"; $location ="Dhaka"; function place(){ global $location; // etake global korar jonno amra er age global likhlam. echo $location; } place(); echo "<br>"; $location ="Dhaka"; function location(){ echo...
true
a4580d2dadffa2d7b60b0c26cf9b95a023a43de4
PHP
Guillaume-RICHARD/cli-env-PHP
/app/sql/mysql.php
UTF-8
830
3.234375
3
[ "MIT" ]
permissive
<?php namespace App\sql; class mysql { protected $db; /** * sql constructor. * @param string $host * @param string $dbname * @param string $username * @param string $password */ public function __construct(string $host, string $dbname, string $username, string $password) {...
true
de2d37abd14f792edaf1e2d3a1b6fecd9a94f115
PHP
OrigamiStructures/foldingTime
/src/View/Helper/CrudViewResources/DecorationFactory.php
UTF-8
2,196
2.609375
3
[]
no_license
<?php namespace App\View\Helper\CrudViewResources; use CrudViews\View\Helper\CRUD\Decorator\BasicDecorationFactory; use CrudViews\View\Helper\CRUD\Decorator; use Cake\Utility\Text; //use CrudViews\View\Helper\CRUD\CrudFields; use App\View\Helper\CrudViewResources\ColumnOutput; use CrudViews\View\Helper\CRUD\Decorator...
true
35b20c6cea2d36e6a9e5d89268f65d73696e3c0f
PHP
PomeloProductions/easy-products
/classes/Admin/ViewProduct.php
UTF-8
4,865
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: bryce * Date: 3/10/17 * Time: 3:00 AM */ namespace EasyProducts\Admin; use EasyProducts\Model\Product; use EasyProducts\Model\Region; use EasyProducts\Model\ShippingOption; use WordWrap\Admin\TaskController; use WordWrap\Assets\Template\Mustache\MustacheTemplate; use Wor...
true
564b7b6657d61061290285747e16b17d35bce7f3
PHP
tauronik/dokuwiki-abbrlist
/syntax.php
UTF-8
3,510
2.6875
3
[]
no_license
<?php /** * DokuWiki Plugin abbrlist (Syntax Component) * * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html * @version 2021-08-12 * @author Michael Schatz <m.schatz@tauronik.de> * * @author (Original by) Andreas Böhler <dev@aboehler.at> */ class syntax_plugin_abbrlist extends DokuWiki_Syntax_Plugin ...
true
774d43d396cedddf5736c81bea705effe778d2d3
PHP
ezreum/phpTraining
/clase/t1/ejer06.php
UTF-8
231
2.75
3
[]
no_license
<?php /* $tiempo = time(); $tiempo = date('D d M Y',$tiempo); echo $tiempo."\n"; $tiempo = '20-3-1993'; $t = strtotime($tiempo); */ setlocale(LC_ALL, "es_ES"); $ts = mktime(0,0,0,10,20,1993); $r = strftime("%B, $ts"); echo $r; ?>
true
aa5763f0cf48c92882c8b24abe1e543723d7bfd9
PHP
jogs78/sslab
/app/Models/Prestador.php
UTF-8
857
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Models; class Prestador extends User { /** * The table associated with the model. * * @var string */ protected $table = 'users'; /** * Obtener el proyecto en el cuál el usuario hace o hizo su servicio. */ public function proyecto() { re...
true
c8afcb2a368c2d9199c94520799489db410a9a04
PHP
marlihams/clinique-v-t-rinaire
/dossierPHP/RDV.php
UTF-8
1,449
2.59375
3
[]
no_license
<div id="nouveau_rdv"> <div class="entete"> Prendre un rendez-vous: </div> <?php $vSql1 = "SELECT intitule FROM Prestation"; $vSql2 = "SELECT id, nom, prenom FROM vveterinaire"; $vQuery1=pg_query($vConn, $vSql1) or die("Requete 1 incomprise"); $vQuery2=pg_query($vConn, $vSql2) or ...
true
e6501402375eaeaa0a221d82351901929002d92d
PHP
trijayadigital/tripay-php
/src/Transaction.php
UTF-8
6,109
3.203125
3
[ "MIT" ]
permissive
<?php namespace Tripay; class Transaction extends Base { private $transactionType; private $returnUrl; private $customerName; private $customerEmail; private $customerPhone; private $expiresAfter; private $items = []; /** * Konstruktor. * * @param int $environment ...
true
20708098b0926b81642c63f2dccac7ecaf57ef34
PHP
lazaroness/cursos-e-exemplos-extras
/facu/php/obras/painel/exportar_xls_tipo_produto.php
UTF-8
2,127
2.625
3
[]
no_license
<?php include ('seguranca.php'); include '../librarys/phpexcel/Classes/PHPExcel.php'; $tipos_produto = TipoProduto::find('all'); $arquivo = "exportar_tipo_produto_".date('d/m/Y').".".date('H:i:s').".xls"; // Instanciamos a classe $objPHPExcel = new PHPExcel(); // Criamos as colunas ...
true
26861867203c67d4eadcd3dd33956c29858c1277
PHP
iulyanp/battle
/src/Entity/Skill.php
UTF-8
3,084
3.390625
3
[]
no_license
<?php namespace Iulyanp\Battle\Entity; /** * Class Skill * @package Iulyanp\Battle\Entity */ class Skill { const SKILL_TYPES = [self::ATTACK, self::DEFENCE]; const ATTACK = 'onAttack'; const DEFENCE = 'onDefence'; private $name; private $type; private $probability; private $formula; ...
true
6851bc90dbd45933be0c810ac4eb27bea25d6b83
PHP
oksuz/github-resume
/tests/Services/DeveloperCvBuilderTest.php
UTF-8
841
2.640625
3
[]
no_license
<?php namespace App\Tests\Services; use App\Services\DeveloperCvBuilder; use PHPUnit\Framework\TestCase; class DeveloperCvBuilderTest extends TestCase { public function testBuildException() { $instance = new DeveloperCvBuilder(); $this->expectException(\Exception::class); $this->exp...
true
be389b8d071e56d018c423b97ac3dec24b7dc160
PHP
adrianowead/cep-gratis
/tests/WS/ApiCEPTest.php
UTF-8
3,066
2.8125
3
[]
no_license
<?php namespace Wead\ZipCode\Tests\WS; use PHPUnit\Framework\TestCase; use Wead\ZipCode\WS\ApiCEP; class ApiCEPTest extends TestCase { /** * @dataProvider getCepDefaultWithOutput */ public function testGetAddressFromApiCEPDefaultUsage(string $zipCode, array $expected) { $cep = new ApiCE...
true
cc1a575cb81443d4f733b01f833027de414b2e75
PHP
jbirch8865/Twilio
/SendSMS.php
UTF-8
3,726
3.015625
3
[]
no_license
<?php require_once 'vendor/autoload.php'; use Twilio\Rest\Client; require_once 'ValidatePhoneNumber.php'; class IniConfigError Extends \Exception{} class MessageBodyTooLong Extends \Exception{} class MessageNotReadyToSend Extends \Exception{} class ThisIsADuplicateMessage Extends \Exception{} class TextMessage { p...
true
b99647d9da79c69d4a25ea08cfdcc58a3435cf71
PHP
shafqatali/code-signal
/fileNaming/file_naming.php
UTF-8
269
3.03125
3
[]
no_license
<?php function fileNaming($names) { foreach($names as $i=>$name){ $c = 1; $newNames = array_slice($names, 0, $i); while(in_array($names[$i], $newNames)){ $names[$i] = $name.'('.$c++.')'; } } return $names; }
true
7b0321cc04a67b2bad9c8ac3d1d74395dad2fa71
PHP
yonykikok/TercerCuatrimestre-DesarrolloWeb-
/Programacion/primer parcial3/Funciones/cargarProveedor.php
UTF-8
2,039
2.703125
3
[]
no_license
<?php include "./Clases/proveedor.php"; include "./Clases/dao.php"; if(isset($_POST['id'])) { if(isset($_POST['nombre'])) { if(isset($_POST['email'])) { if(isset($_FILES['foto'])) { $id=$_POST['id']; $nombre=$_PO...
true
809eb073a87f90cb89f984ad0570c91ca9b1dce0
PHP
razaman2/AccountOnline
/interfaces/format.php
UTF-8
107
2.671875
3
[]
no_license
<?php namespace AccountOnline\interfaces; interface format { public function format(array $data); }
true
5d97359b1583290c493b234bbc24ae7c545e8690
PHP
nasimul007/Internship-Project
/app/Http/Resources/Semester.php
UTF-8
626
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class Semester extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array */ public function toArray($request) { ret...
true
99bb433ec009e93dbabe8341d7b7c0e3b8c4b7aa
PHP
luigif/WsdlToPhp
/samples/amazon-ec2/Describe/Type/AmazonEc2TypeDescribeInstanceAttributeType.php
UTF-8
7,335
2.953125
3
[]
no_license
<?php /** * Class file for AmazonEc2TypeDescribeInstanceAttributeType * @date 10/07/2012 */ /** * Class AmazonEc2TypeDescribeInstanceAttributeType * @date 10/07/2012 */ class AmazonEc2TypeDescribeInstanceAttributeType extends AmazonEc2WsdlClass { /** * The instanceId * @var string */ public $instanceId; ...
true
2596b9efc31d5d5e515cbd6374237b20b4b093b4
PHP
hypermoon/waterMonitors
/frontend/controllers/Socketserver.php
GB18030
2,674
2.78125
3
[]
no_license
<?php namespace res\waterMonitor\frontend\controllers; use Yii; class Socketserver{ private $_port='9000'; private $_address='127.0.0.1'; private $_client_socket_list=array(); public function __set($name,$val){ $this->$name=$val; } private function _showError($error){ exit($error); ...
true
eb9184cd15c53cd138925af41df840806fe747e3
PHP
Cell-V/laravel-posts
/src/Http/Requests/UpdatePostRequest.php
UTF-8
642
2.703125
3
[ "MIT" ]
permissive
<?php namespace CellV\LaravelPosts\Http\Requests; use Auth; use CellV\LaravelPosts\Models\Post; use Illuminate\Foundation\Http\FormRequest; class UpdatePostRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { $post...
true
3df6892bf0f694d834e47b344769d2e075432e88
PHP
threeel/Clarifai
/src/ClarifaiClient.php
UTF-8
4,490
2.953125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: threeel * Date: 6/28/16 * Time: 12:38 AM */ namespace Threeel\Clarifai; use Threeel\Clarifai\Exceptions\AuthorizationException; class ClarifaiClient { private $url; protected $request; private $token; private $tokenRequest = false; public function __...
true
4f8f8339a4d144332475001aa5595a92f2cc9b73
PHP
bintangputera/ws-web-kelompok4
/idabatik-web/admin/action/blog-post.php
UTF-8
2,464
2.53125
3
[ "MIT" ]
permissive
<?php include '../../db/connection.php'; $judul = $_POST['judul_blog']; $thumbnail = $_FILES['gambar']['name']; $kategori = $_POST['select_kategori']; $editorContent = $_POST['contentEditor']; $str = str_replace(" ", "-", $judul); $slug = strtolower($str); $date = date("d-m-Y"); var_dump($date); ...
true
c313e3a249773693b01569f76324477c7b557274
PHP
aolaniran21/weekly_report
/weekly_rep/scripts/remark.php
UTF-8
6,522
2.53125
3
[]
no_license
<?php include('connect.php'); if (isset($_GET['id'])) { $id = $_GET['id']; $query = "SELECT * FROM week_report WHERE id ='$id'"; $result = mysqli_query($conn, $query); $row = mysqli_fetch_array($result); } if (isset($_POST['submit'])) { $id = $_POST['id']; $name = $_POST['fullname']; $d...
true
ae5606409fd125da3383032a9944a0e5eaecc398
PHP
monoulou/meslunettes
/src/MA/MainBundle/Service/FileUploader.php
UTF-8
2,687
2.859375
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace MA\MainBundle\Service; use MA\MainBundle\Entity\Annonce; use MA\UserBundle\Entity\User; use Symfony\Component\HttpFoundation\File\File; use Symfony\Component\Form\FormInterface; use Symfony\Component\HttpFoundation\File\UploadedFile; class FileUploader { private $targetDir; public function _...
true
5e93835ea8f514ebbfb96bde32ec97b96748c201
PHP
peterlembke/laravel_keyvalue
/src/Console/Commands/Read.php
UTF-8
2,505
2.65625
3
[]
no_license
<?php /** * Copyright (C) 2020 Peter Lembke, CharZam soft * the program is distributed under the terms of the GNU General Public License * * Test.php 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, eith...
true
c03314cb25e4309942ab049e0e6fc838bd4c8598
PHP
junaidbhura/gumponents
/inc/rest-api/relationship/class-taxonomies-controller.php
UTF-8
3,564
2.640625
3
[ "MIT" ]
permissive
<?php /** * Posts Rest API Controller. * * @package gumponents */ namespace JB\Gumponents\RestApi\Relationship; use WP_REST_Request; use WP_REST_Response; use WP_Query; /** * Class Rest. */ class TaxonomiesController extends Controller { /** * Register the routes for the objects of the controller. */ pu...
true
f80982b1fe2702ead500fb340b801b5231c96ef1
PHP
ESUCC/Maximd
/application/forms/LanguageSelector.php
UTF-8
2,091
2.796875
3
[]
no_license
<?php /** * * @author sbennett * */ class Form_LanguageSelector extends Zend_Form { /** * * @var Zend_Translate */ protected $translate; /** * * @var string locale */ protected $locale; /** * * @param Zend_Translate $translate */ pub...
true
baefdd47decf7a54a07069a2a0d0f2710a7961c5
PHP
bdougherty/sonic
/lib/Sonic/Collection.php
UTF-8
2,345
3.140625
3
[ "Apache-2.0" ]
permissive
<?php namespace Sonic; use \ArrayObject; /** * Collection * * @category Sonic * @package Collection * @author Craig Campbell */ class Collection extends ArrayObject { /** * @var array */ protected $_ids; /** * @var string */ protected $_object_name; /** * @var Pager...
true
de2767eb9577261661dbbd37ea315b1b6e9d3ca0
PHP
IvayloIV/PHP-Web-Basics
/PHP-Web-Basics-May-2019/Exercise-Introduction_to_PHP/13.Lazy_Sundays.php
UTF-8
279
3.15625
3
[ "MIT" ]
permissive
<?php $month = date('m', strtotime(readline())); $totalDays = cal_days_in_month(CAL_GREGORIAN, $month, 2019); for ($i = 1; $i <= $totalDays; $i++) { if (date('N', strtotime(2018 . '-' . $month . '-' . $i)) == 7) { echo $i . "rd " . $month . ", " . "2018\n"; } }
true
7b862a44d8a096d3a4c5086a132d79ba3eb2ee0b
PHP
znframework/fullpack-edition
/Internal/package-console/UndoUpgrade.php
UTF-8
581
2.65625
3
[ "MIT" ]
permissive
<?php namespace ZN\Console; /** * ZN PHP Web Framework * * "Simplicity is the ultimate sophistication." ~ Da Vinci * * @package ZN * @license MIT [http://opensource.org/licenses/MIT] * @author Ozan UYKUN [ozan@znframework.com] */ use ZN\ZN; /** * @command undo-upgrade * @description undo-upgrade [last|ve...
true
95f0df1160886ab629305cbe843b4cf2a08d5166
PHP
1314jiajia/redis
/class/Model.class.php
UTF-8
1,048
3.078125
3
[]
no_license
<?php /* @return 获取所有数据 @return 链接redis @return array() */ class Model { public $pdo; public $redis; public $key; public function __construct() { $this->redis = new Redis(); // 连接redis $this->redis->connect("localhost",6379); } public func...
true
bfbd3e1a44e4466511819b6b07f7e58b76946e61
PHP
Contedantignano/php6
/moviesite/header.php
UTF-8
994
2.84375
3
[]
no_license
<div style="text-align: center"> <?php date_default_timezone_set('America/New_York'); if (date ('G') >= 5 && date ('G') <= 11) { echo '<p>Welcome to my movie site !<br/></p><h2>Good Moring!</h2>'; } else if (date ('G') >= 12 && date ('G') <= 18) { echo '<h2>Good...
true
b1d072aa8be6adce3ec4b832b02d777c08067bee
PHP
paulomendesdigital/lm-cursos-de-transito
/app/Lib/IntegracaoDetrans/IntegracaoDetransService.php
UTF-8
37,519
2.59375
3
[]
no_license
<?php /** * Integracao Service * Faz a interface entre o sistema e as integrações com os órgãos de trânsito * * @author Douglas Gomes de Souza <douglas@dsconsultoria.com.br> * @copyright LM Cursos de Transito */ App::uses('IntegracaoRetorno', 'IntegracaoDetrans'); App::uses('IntegracaoParams', 'Integra...
true
81b1eba3405f56c479444dbbf6fc02bcda630495
PHP
rohan-pat/dos-iot
/edge/LEDEdge.php
UTF-8
4,389
2.546875
3
[]
no_license
<?php /* Authors: Parth Rampal, Pushparaj Britto, Harsh Shah, Prashant Mishra, Rohan Patil * Last Modified: 26-Nov-2016 * Purpose: Prepared for COP5615 DOS IOT Project * Description: * * This script defines the IoT Edge with which forms the bridge between the * cloud and the IoT End Devices (Beagl...
true
40e1aa81f41dcf2994432ab75b95294de25c8ffa
PHP
nabilelmoudden/2015
/anaconda-project/businessCore/components/EMV/Exception.php
UTF-8
1,646
2.828125
3
[]
no_license
<?php /** * Exception * * @package EMV */ class EMV_Exception extends Exception { /** * Creates an exception from a SoapFault object * * @param SoapFault $soapFault * @return EMV_Exception */ public static function createFromSoapFault(SoapFault $soapFault) { if (isset($soa...
true
630cfebbd677ea30add170aac7474c195aee9e27
PHP
boss59/first
/Es/sync.php
UTF-8
1,140
2.625
3
[]
no_license
<?php # 把 MYSQL 数据 同步到 Es 中 header('content-type:text/html;charset=utf-8'); $limit = 2; $goods_log = __DIR__.'/sync_goods.log'; if (file_exists($goods_log)){ $sync_id = file_get_contents($goods_log); }else{ $sync_id = 0; } // 连接数据库 $mysql = new Mysql...
true
274d7aeb7eb32f0a2f176bbad22c296fb979892d
PHP
StefanRHRO/CCCRM
/application/classes/html2.php
UTF-8
5,923
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * * Copyright (c) 2010, SRIT Stefan Riedel <info@srit-stefanriedel.de> * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * - Redistributions of source code must retain the above co...
true
b5c14a1faab63188a7a84645ead1462c365002cf
PHP
a-ghasemi/algorithm-gaming
/markdown-parser-initial/Bold.php
UTF-8
235
2.953125
3
[]
no_license
<?php class Bold extends RegexRule implements RegexRuleInterface { public function rule() { return '/\*{2}(.*)\*{2}|\_{2}(.*)\_{2}/m'; } public function replacement() { return "<b>$1</b>"; } }
true
0b19890b71c922fa446f7cd5f08daa35bfeefcf5
PHP
antonsmolko/calipari.laravel
/app/Services/Sale/Repositories/CmsSaleRepository.php
UTF-8
1,564
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Services\Sale\Repositories; use App\Models\Sale; use App\Services\Base\Resource\Repositories\CmsBaseResourceRepository; use App\Services\Sale\Resources\ForListCmsCollection as SaleForListCollection; class CmsSaleRepository extends CmsBaseResourceRepository { /** * CmsSaleRepository con...
true
faf72d083e95a28d463275caecfb560d5288aa00
PHP
consumersketch/nilesh
/app/View/Helper/GeneralHelper.php
UTF-8
4,570
2.71875
3
[]
no_license
<?php /** * Created by JetBrains PhpStorm. * User: proses * Date: 1/1/14 * Time: 7:44 PM * To change this template use File | Settings | File Templates. */ class GeneralHelper extends AppHelper { public $helpers = array('Session'); public function first_letter_capitalized($text = null) { $res...
true
afffd84492e3f7177ae18a70e9c2bca209645495
PHP
OsaAjani/cours-php-b2
/examples/oop/pokemon2.php
UTF-8
264
3.109375
3
[]
no_license
<?php class Pokemon { public $name = 'Carapuce'; public $life = 100; public $level = 5; public $type = 'eau'; public $strength = 10; } $pokemon = new Pokemon(); $pokemon2 = new Pokemon(); var_dump($pokemon2);
true
f7d3336babc4ce9fde1a23f2e20546e8358cec53
PHP
urbaniak62/exoLaravel
/app/article.php
UTF-8
1,687
3.015625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class article extends Model { protected $_titre; protected $_contenu; protected $_date; protected $_name_auteur; protected $_categorie; protected $_nb_vue; public function __construct(array $donne){ $this->hydrate($donn...
true
42c1ed799fb46d60d6e283e8938d5c29593ff298
PHP
philsebastian/cs401
/web/app/models/students/StudentAppointmentModel.php
UTF-8
467
2.546875
3
[]
no_license
<?php class StudentAppointmentModel extends StudentsModel { public function __construct() { parent::__construct('appointments'); } public function GetData($content) { $data = parent::GetData($content); $tabcontent = array("tabs" => ["upcoming" => "appointments", "history" =...
true
b72136507d39ef3da3d04e8fdfc76c6c5a636846
PHP
Roave/BetterReflection
/test/core/ReflectionParameter_DefaultValueConstant_basic2.phpt
UTF-8
811
2.890625
3
[ "MIT" ]
permissive
--TEST-- ReflectionParameter::isDefaultValueConstant() && getDefaultValueConstantName() for namespace --FILE-- <?php namespace ReflectionTestNamespace { CONST TEST_CONST_1 = "Test Const 1"; class TestClass { const TEST_CONST_2 = "Test Const 2 in class"; } } namespace { function ReflectionParameterTest($test=Re...
true
a0ae3402392e8440b68e9abcd739f20e2d40ca75
PHP
edouardkombo/EkApiCallerBundle
/Helper/ApiCallerHelper.php
UTF-8
5,785
2.5625
3
[]
no_license
<?php /** * Main docblock * * PHP version 5 * * @category Handler * @package EkApiCallerBundle * @author Edouard Kombo <edouard.kombo@gmail.com> * @license http://www.opensource.org/licenses/mit-license.php MIT License * @version GIT: 1.0.0 * @link http://creativcoders.wordpress.com * @since ...
true
bbe6f84a05a96492ddbaa53647e8fba1576b7950
PHP
srijib/Talentoon2
/talentoon/app/Http/GCMPushMessage.php
UTF-8
2,847
3.265625
3
[ "MIT" ]
permissive
<?php /* Class to send push notifications using Google Cloud Messaging for Android Example usage ----------------------- $an = new GCMPushMessage($apiKey); $an->setDevices($devices); $response = $an->send($message); ----------------------- $apiKey Your GCM api key $devices An array or string of registered d...
true
de4db65f59b97d33029ee309dc20f7befd01ac00
PHP
mkostelcev/va_afl
/models/Flights/ops/BookingDelete.php
UTF-8
952
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: Nikita Fedoseev * Date: 09.10.16 * Time: 0:54 */ namespace app\models\Flights\ops; use app\models\Booking; use app\models\Fleet; use app\models\Services\notifications\FlightOps; class BookingDelete { /** * @var Booking */ private $booking; /** ...
true
88c093ee6bef72c5275a523de86e937c31cd5e18
PHP
Arvraepe/ohm
/general.php
UTF-8
8,747
2.9375
3
[]
no_license
<?php session_start(); /* Controlling the pages and making sure nobody sees things he don't want/needs to see */ // Using general in scripts need to set the $skip_page_control so // general skips this possible redirect and the SQL features and functions can be used i...
true
1440d2c1fcb70c1bc33ddf06f8b6a98fed387187
PHP
Lacustris/Website
/app/User.php
UTF-8
911
2.78125
3
[]
no_license
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { use Notifiable; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'name', 'email',...
true
2f0a2feb0d3911e4ae6a2f4502803ca7ce6037bc
PHP
danieljuniorce/mvcPhp
/Core/Controller.php
UTF-8
867
2.546875
3
[ "MIT" ]
permissive
<?php namespace Core; class Controller { public function view($viewPaste, $viewName, $viewData = array()) { extract($viewData); if ($viewPaste == '') { include 'App/View/' . $viewName . '.php'; } else { include 'App/View/'.$viewPaste.'/'. $viewName . '.php'; ...
true
192c9f16d8a7f1dec23ddaa77d73da076bdb48be
PHP
adamhaley/anastasia
/types/article_desc.php
UTF-8
1,489
2.9375
3
[]
no_license
<?php //THIS IS THE SAME AS DESC BUT IT INSERTS LINE BREAKS IN GET_VALUE_FOR_WEB class article_desc extends type { public function article_desc($key, $value, $bp, $http_vars = '') { //constructor return $this->type($key, $value, $bp, $http_vars); } public function form_field() { ...
true
03354f7dff15455e6eabd5d63429142f9ad5b2c8
PHP
sobwoofer/simpleDocker
/public/index.php
UTF-8
254
2.859375
3
[]
no_license
<?php /** * Test php file */ $first = 'Hello '; $second = 'World!'; echo $first . $second . PHP_EOL; echo 'Congratulations, now you have your own a little docker machine for your big projects. ' . PHP_EOL; echo 'Configure it how you want' . PHP_EOL;
true
686e293356f275892b50fbb2140b6aecf80a8d74
PHP
garbetjie/http-request-logger
/src/Logger.php
UTF-8
7,110
2.84375
3
[ "MIT" ]
permissive
<?php namespace Garbetjie\RequestLogging\Http; use Garbetjie\RequestLogging\Http\Context\SafeRequestContext; use Garbetjie\RequestLogging\Http\Context\SafeResponseContext; use InvalidArgumentException; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInt...
true
6a0230507e2ffa70bd2629e62c61b8934e7d9998
PHP
shefchenkornd/Oop_week_ElisDn
/lesson04/02/demo08/cart/cost/NewYearCost.php
UTF-8
1,474
3.390625
3
[]
no_license
<?php namespace lesson04\example02\demo08\cart\cost; /** * Эффективнее работать с классом \DateTime * потому что с его помощью можно складывать/вычитать даты, форматировать и использовать прочие плюшки */ class NewYearCost implements CalculatorInterface { private $next; private $month; private $percent...
true
43878e18270a431b3f83023125868e23c71ba841
PHP
richardfullmer/rdfbot2
/src/RDF/GithubBotBundle/EventListener/GithubStatusListener.php
UTF-8
2,942
2.765625
3
[ "MIT" ]
permissive
<?php /* * This file is part of ONP * * Copyright (c) 2012 Farheap Solutions (http://www.farheap.com) * * The unauthorized use of this code outside the boundaries of * Farheap Solutions Inc. is prohibited. */ namespace RDF\GithubBotBundle\EventListener; use RDF\GithubBotBundle\Event\OnBuildStartedEvent; use RD...
true
20fcda07078a48a1a6d315e89d5fa5a0e2b7cbb2
PHP
Godfather27/FactoryBot
/tests/TestStrategies/JSONStrategy.php
UTF-8
852
2.734375
3
[]
no_license
<?php namespace FactoryBot\Tests\TestStrategies; use FactoryBot\Strategies\StrategyInterface; class JSONStrategy implements StrategyInterface { public static function beforeCompile($factory) { $factory->notify("before"); } public static function result($factory, $instance) { $fac...
true
019e8c2e1cb4ae117b28bf39fefd22e8b0174961
PHP
Flowfly/Mudespacher_Florian_Travail_Diplome
/backend/tests/Unit/QuestionTest.php
UTF-8
2,077
2.546875
3
[]
no_license
<?php /* Florian Mudespacher * Quiz interactif - Diploma work * CFPT - T.IS-E2A - 2019 */ namespace Tests\Unit; use App\Proposition; use App\Question; use Tests\TestCase; use Illuminate\Foundation\Testing\WithFaker; use Illuminate\Foundation\Testing\RefreshDatabase; class QuestionTest extends TestCase { publi...
true
66910cb02c5be8f21b19c9bf4196b0f51d3ccb5c
PHP
CWSBusiness/Webservant
/php/classes/ErrorCollector.php
UTF-8
2,028
3.296875
3
[]
no_license
<?php class ErrorCollector implements IteratorAggregate, Countable { private $level = 0; private $errors = array(); const INFO = 1; const SUCCESS = 2; const WARNING = 4; const DANGER = 8; private static $levels = array( self::INFO => "info", self::SUCCESS => "success", self::WARNING => "warning", sel...
true
971e344e2e35a4960e98ad2a8c60f3614f4dcbb5
PHP
chaim1/Fetch-Words
/Backend/models/model.php
UTF-8
210
2.890625
3
[]
no_license
<?php interface IModel { public function getWord(); public function getScore(); public function setWord($data); public function setScore($data); } ?>
true
7adcd242b6807892cb71993494e1c551bcd78aeb
PHP
MyIceTea/http
/Response/Header.php
UTF-8
512
2.734375
3
[ "MIT" ]
permissive
<?php namespace EsTeh\Http\Response; use EsTeh\Contracts\Http\Response; class Header implements Response { private $headers = []; private $headerF = []; public function __construct($headerF) { $this->headerF = $headerF; } public function buildHeader() { $this->headers['X-EsTeh-Framework-Version'] = EST...
true
4e531771d357476bde5ebc5bce3f684e4f5bb616
PHP
eddy147/oop-principles-exercises
/SingleResponsibility/TreatmentServiceInterface.php
UTF-8
204
2.5625
3
[]
no_license
<?php namespace SingleResponsibility; interface TreatmentService { public function create(array $treatmentData); public function update(Treatment $treatment); public function find($id); }
true
e2531607a7bdcd084ee1dab720fe7392dadd2daf
PHP
nisnaker/tu
/server/model/User.php
UTF-8
1,543
2.59375
3
[ "MIT" ]
permissive
<?php use Phalcon\Mvc\Model\Validator\Email as EmailValidator; class User extends Base { protected $_attrs = ['userid', 'name', 'avatar', 'email', 'status']; public function getSource() { return 'user'; } public function beforeCreate() { parent::beforeCreate(); $this->status = 2; // 未激活 $this->userid = ...
true
22f0c81c303994ebea562ceecd5b633cd68c5808
PHP
GSushma11/TechAspect-Codeathon
/form.php
UTF-8
680
2.5625
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "MSA"; $conn = new mysqli($servername, $username, $password, $dbname); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $a=$_REQUEST('t1'); $b=$_REQUEST('t2'); $c=$_REQUEST('t3'); $d=$_REQUEST...
true
7d180ab5960c52dd7cf86cc65c3d2561234a6e38
PHP
benplummer/calendarful
/src/Event/InMemory/InMemoryEventRepository.php
UTF-8
1,283
2.8125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Plummer\Calendarful\Event\InMemory; use DateTimeImmutable; use Plummer\Calendarful\Event\EventCollection; use Plummer\Calendarful\Event\EventInterface; use Plummer\Calendarful\Event\EventRepositoryInterface; class InMemoryEventRepository implements EventRepositoryInterface {...
true
2b310000bdbea44384757cfe123939918dd15d88
PHP
xuzhijian17/Yii2-backend
/common/lib/ErrorHandler.php
UTF-8
4,109
2.59375
3
[]
no_license
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace common\lib; use Yii; use yii\base\Exception; use yii\base\ErrorException; use yii\base\UserException; use yii\web\HttpException; /** * ErrorHandler handles ...
true
f61528b50221dc4175792755974aab15cc992fac
PHP
Nushrat-Jahan/atpProject
/database/migrations/2021_03_11_191545_create_teacher_courses_table.php
UTF-8
936
2.578125
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTeacherCoursesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('teacher_...
true
d189b508f371ecf78f56212d5ab430c09722d3e0
PHP
davbaster/php
/php_desde_cero/paginacursos/includes/Visitante.inc.php
UTF-8
332
2.828125
3
[]
no_license
<?php /** * */ class Visitante extends Persona { private $badge; public function __construct($nombre, $apellido, $email, $badge) { parent::__construct($nombre, $apellido, $email); $this->badge = $badge; } public function despedida(){ echo "Hola {$this->nombre} te esperamos en ED team.";...
true
b3b59f3d2fc8c5ffc54120e69c4480875a298317
PHP
rezieno/Tugas-RPL-revisi-
/barangmasuk_edit.php
UTF-8
2,958
2.546875
3
[]
no_license
<?php include_once 'include/class.php'; include_once 'include/lib.php'; // instansiasi objek user $user = new User(); // instansiasi objek nsb $bm = new Barangmasuk(); $iduser = $_SESSION['id']; if (!$user->get_sesi()) { header("location:index.php"); } // proses hapus data if (isset($_GET['aksi'])) { if ($_GET['ak...
true
fc0f6ba809b7091369552b51fbc447efbb62064e
PHP
SvenFlower/mightybattle_queue
/src/Match/MatchChance.php
UTF-8
1,393
3.203125
3
[]
no_license
<?php declare(strict_types=1); namespace MightyBattle\GameQueue\Match; use MightyBattle\GameQueue\Entity\WaitingPlayerInterface; class MatchChance { private WaitingPlayerInterface $waitingPlayer; private float $levelChance; private float $cardsCountChance; private float $deckPointsChance; publi...
true
e8b28ac18014bb88cdf52369e061d054065b051e
PHP
serj271/shop33
/modules/acl/classes/Kohana/ACL/Auth/Interface.php
UTF-8
510
2.734375
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php defined('SYSPATH') OR die('No direct script access.'); interface Kohana_ACL_Auth_Interface extends ACL_Role_Interface { /** * Singleton pattern * * @return object of class */ public static function instance(); /** * Gets the currently logged in user from the session. * Returns NULL if no user is...
true
9d3b8195cc48d5eaecca82ef1e6d01fed27d1619
PHP
JeckPikachan/Pancakes
/requires/adminPageGen.php
UTF-8
904
2.875
3
[]
no_license
<?php function showOrdersTable() { $mysqli = new mysqli("localhost", "root", "", "pancakesdb"); $mysqli->query("SET NAMES 'utf8'"); $orders = $mysqli->query("SELECT `id`, `pancakeName`, `fillings`, `done`, `totalPrice` FROM `orders` WHERE `show` = 1"); echo '<table class="table table-hover"> <thead><tr><th>№...
true
81610ad3d58dc93f0cc707262f8881145b822fe0
PHP
truffo/ie-numbers
/src/ArrayDigit.php
UTF-8
1,558
3.59375
4
[]
no_license
<?php class ArrayDigit { private $digits; /** * ArrayDigit constructor. */ public function __construct() { $this->digits = []; } public static function createWithInteger(int $i): self { if ($i < 0) { throw new LogicException('Invalid value'); ...
true
abe9826c154137b5dc0f961a709c3963db84576e
PHP
ArtemBaranovsky/code-kata-php
/tests/SongTest.php
UTF-8
2,171
3
3
[]
no_license
<?php namespace App; use App\Song; use PHPUnit\Framework\TestCase; class SongTest extends TestCase { /** @test */ function ninety_nine_bottles_verse() { $expected = <<<EOT 99 bottles of beer on the wall 99 bottles of beer Take one down and pass it around 98 bottles of beer on the wall EOT; ...
true
dc1b0799728cdfbe51c179da9256f5837e2b3722
PHP
ckissane/HTML5
/Server/html5/rest/v0.2/dto/SetRotationStyleBrickDto.class.php
UTF-8
280
2.6875
3
[]
no_license
<?php class SetRotationStyleBrickDto extends BaseBrickDto { public $selected; //index public function __construct($selected = "1") { parent::__construct("SetRotationStyle"); $this->selected = $selected; //{0: left-right, 1: all around, 2: don't rotate} } }
true
7a3b56cf1311d190add7400abf814d5df0ced532
PHP
eonx-com/flowconfig-wrapper
/tests/Stubs/External/FlowConfig/CompositeConfigRepositoryStub.php
UTF-8
1,959
2.546875
3
[]
no_license
<?php declare(strict_types=1); namespace Tests\LoyaltyCorp\FlowConfig\Stubs\External\FlowConfig; use CodeFoundation\FlowConfig\Interfaces\EntityIdentifier; use CodeFoundation\FlowConfig\Interfaces\Repository\CompositeConfigRepositoryInterface; /** * Stub for providing the equivalent functionality of CascadeConfig. ...
true
1c7e3610fed58bec2a123a52d4837d44a2bd3141
PHP
Team-Tea-Time/thaliak
/code/app/Http/Lodestone/FreeCompanyListing.php
UTF-8
816
2.8125
3
[ "MIT" ]
permissive
<?php namespace Thaliak\Http\Lodestone; /** * Convenience class used by the API when returning a list of free * companies. */ class FreeCompanyListing { public $id; // String public $crest; // Array (string) public $name; // String public $world; ...
true
bb3ab0c525fb274c242496336e2037d18d7e2d34
PHP
oidcphp/core
/src/Traits/Psr7ResponseBuilder.php
UTF-8
1,859
2.578125
3
[ "MIT" ]
permissive
<?php namespace OpenIDConnect\Traits; use MilesChou\Psr\Http\Client\HttpClientAwareTrait; use OpenIDConnect\Http\Query; use Psr\Http\Message\UriInterface; trait Psr7ResponseBuilder { use ConfigAwareTrait; use HttpClientAwareTrait; /** * Using form post * * @param string $uri * @param...
true
e9b2eb8e230c85d9c5f595257a5137f9d13f0f38
PHP
SebiLob/Project_Insead
/src/inseadBundle/Entity/createTrip.php
UTF-8
1,442
2.71875
3
[]
no_license
<?php namespace inseadBundle\Entity; /** * createTrip */ class createTrip { /** * @var int */ private $id; /** * @var string */ private $place; /** * @var \DateTime */ private $start; /** * @var \DateTime */ private $end; /** * Ge...
true
f07e05f4827626f426435072cc23ca327741bc13
PHP
DASPRiD/dagr
/src/Format/DateTimePrinterParserInterface.php
UTF-8
696
3.21875
3
[]
no_license
<?php declare(strict_types = 1); namespace Dagr\Format; interface DateTimePrinterParserInterface { /** * Prints the date-time object to the buffer. * * The context holds information to use during the format. It also contains the date-time information to be printed. */ public function forma...
true
7b82069b901d0a618ca7dde03ebd70b0aca68f64
PHP
Rajilatha/Hall-Booking-Website-System
/hotel1/search.php
UTF-8
1,246
2.75
3
[]
no_license
<html> <body> <form action="home.php" method="post"> <label for="Date">Date</label> <input type="date" name="Date" ><br> <select name="Time"> <option value="morning">Morning</option> <option value="evening">Evening</option> </select> <input type="submit" name="submit" value="O...
true
1418d151461b4306edba51b9085970c1f1bc7d3d
PHP
ViktorOrda/PHP-school
/lesson4/diamond.php
UTF-8
496
3.53125
4
[]
no_license
<?php $argc !== 2 ? exit('Error! You\'ve not entered size') : $count = $argv[1]; if ($count % 2 === 0) { exit('Error! Size should be odd number!'); } $start = $end = ceil($count/2); for ($i = 1; $i <= $count ; $i++) { for ($j = 1; $j <= $count; $j++) { echo ($j >= $start && $j <= $end) ? "*" : " " ;...
true
333c1c055c7545d0aeee9f8da74e38658a38733e
PHP
denzelsc1337/proyecto_inventario
/Modelo/Productos.php
UTF-8
2,383
2.6875
3
[]
no_license
<?php //include_once('../config/Conexion.php'); $listProducto; class pProductos { function __construct() { $this->listProducto = array(); $this->selectorProd = array(); } public function obtenerProducto() { $cnx = new conexion(); $cadena = $cnx->abrirConexion(); $query = 'SELECT secuence_prod, razon...
true
b03cad72d7d6eaf7cecb19bef9968e5cd247bc87
PHP
mecca2/bsrg
/includes/autoload/Property.php
UTF-8
4,774
2.59375
3
[ "MIT" ]
permissive
<?php namespace Crb; /** * Represent a property Entry * Used to display Property in Frontend */ class Property { protected $meta_keys = array( 'agent_id', 'api_id', 'price', 'neighborhood', 'street_number', 'street_prefix', 'street_name', 'unit_number', 'street_dir_suffix', ...
true
f53c3f77937c9cb54ea3f2dd07e55dec091017d0
PHP
Profilan/apibasiclabel
/module/Webshop/src/Webshop/V1/Rest/Verkooporder/VerkooporderMapper.php
UTF-8
5,374
2.5625
3
[]
no_license
<?php namespace Webshop\V1\Rest\Verkooporder; use Doctrine\ORM\EntityManager; use Zend\Stdlib\Hydrator\ArraySerializable as ArraySerializableHydrator; use Zend\Stdlib\ArrayUtils; use Traversable; use InvalidArgumentException; use Doctrine\Common\Collections\ArrayCollection; use DoctrineModule\Paginator\Adapter\Colle...
true
59071df8fc485d93246f2cb87e6154281489e08e
PHP
singee77/socket-io
/app/Component/ClientManager.php
UTF-8
2,541
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * * This is my open source code, please do not use it for commercial applications. * * For the full copyright and license information, * please view the LICENSE file that was distributed with this source code * * @author CodingHePing<847050412@qq.com> * @link https://github...
true
d055c3a9758b43aa98ff16d31ad6d8f85842a358
PHP
gebe678/TCO-Web-Tool
/webtool/root/assets/PHP/getFuelCostData.php
UTF-8
5,506
2.5625
3
[]
no_license
<?php function getFuelID($index) { include "getID.php"; $costComponentQuery = "SELECT Fuel_ID FROM aeo_fuel_prices"; $result = $connect->query($costComponentQuery); $output; $i = 0; while($row = $result->fetch_assoc()) { $output[$i] = $r...
true
efbcf22f5d0db75168c364d0680e88d5bfd3e15c
PHP
chenqianfang/PHP-Python--Data-capture
/hello.php
UTF-8
2,258
2.765625
3
[]
no_license
<?php set_time_limit(0); //执行时间无限 ini_set('memory_limit', '-1'); //内存无限 ini_set("display_errors","On"); error_reporting(E_ALL); ob_end_flush(); ob_implicit_flush(1); $book_url = 'https://www.zwdu.com'; $url = 'https://www.zwdu.com/book/8167/'; $data = file_get_contents($url); //页面源是gbk的编码格式,需要进行转换 ...
true
7801dcfcba468321d5945005a626ee80b7c82d3e
PHP
james-projet/partage
/src/Model/AccountManager.php
UTF-8
1,280
2.703125
3
[ "MIT" ]
permissive
<?php namespace Acme\Model; class AccountManager extends BddManager { public function accountById($id){ $accounts = array(); $bdd = $this->getBdd(); $req = $bdd->prepare('SELECT * FROM account WHERE account_groupe=:id'); $req->bindValue('id', $id); $req->execute(); while ($donnees = $req->fe...
true
6c5ce298ad6ecdc5b31c81dee664e7e61dcae349
PHP
owenvoke/PHPTorrent
/src/Logger/Logger.php
UTF-8
2,090
3
3
[ "Zlib" ]
permissive
<?php namespace genaside\PHPTorrent\Logger; use genaside\PHPTorrent\Config\Config; /** * Class Logger * @package genaside\PHPTorrent\Logger */ class Logger { // Message types const STATUS = 1; const CRITICAL = 2; // exit program const WARNING = 3; const DEBUG = 4; /** * @param string...
true
f9eb09bcbd4bc0078b5a6fd85e4c03fc9a1db447
PHP
felipecechin/company-system
/Class/Funcionario.class.php
UTF-8
664
3.1875
3
[]
no_license
<?php class Funcionario extends Pessoa { protected $profissao; public $salario; protected $empresa, $poupanca; function __construct($nome, $idade, $endereco, $profissao) { parent::__construct($nome, $idade, $endereco); $this->poupanca = 1000; $this->profissao = $pro...
true
8cc885c15c8b58841c0cc7ae9df155253f0a543c
PHP
extremeframework/extremeframework
/library/external/PEAR/Image/Graph.php
WINDOWS-1252
26,800
2.734375
3
[ "MIT" ]
permissive
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * Image_Graph - Main class for the graph creation. * * PHP versions 4 and 5 * * LICENSE: This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * ...
true
62eee892dfee2858e9986aa9acf24ace5c7b1bd6
PHP
shrink0r/workflux
/src/Param/Input.php
UTF-8
1,222
2.84375
3
[ "MIT" ]
permissive
<?php namespace Workflux\Param; use Workflux\Param\InputInterface; use Workflux\Param\OutputInterface; use Workflux\Param\ParamHolderTrait; final class Input implements InputInterface { use ParamHolderTrait; /** * @var string $event */ private $event; /** * @param mixed[] $params ...
true
a0455531c1fcbd7947db11efbf34e7a5858455c9
PHP
riki1/smr2b_ricardo
/Else b.php
UTF-8
144
2.828125
3
[]
no_license
<?php $nota = 6.5; $r= 'PENDIENTE'; if ($nota>=5) $r= 'APROBADO'; if($nota>=7) $r='NOTABLE'; if ($nota>=8.5) $r= 'SOBRESALIENTE'; echo $r;
true
07735c4fa87e02e597ccf51a819291ca202fa9c7
PHP
punkstar/snake
/lib/snake.php
UTF-8
2,410
3.453125
3
[]
no_license
<?php class Snake { public static $NORTH = 2; public static $EAST = 3; public static $SOUTH = 4; public static $WEST = 5; protected $_length = 1; protected $_trail = null; protected $_head; public function __construct($length) { $this->_setLength($length); $th...
true
f71c95999cc729769f7ce007ece315f8ddd264b1
PHP
leonardoivo/Trilhos-Do-Rio
/Acervo/Livros/TesteComSecao.php
UTF-8
234
2.875
3
[]
no_license
<?php session_start(); // store session data $_SESSION['views']=1; $_SESSION['name']="Leonardo Ivo"; ?> <html> <body> <?php //retrieve session data echo "Pageviews=". $_SESSION['views']; echo "Nome:".$_SESSION['name']; ?> </body> </html>
true