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
c5c943e33c6617d310bbefa4e8d423369a010ff6
PHP
agoui/wechat
/app/Http/Controllers/WechatController.php
UTF-8
19,041
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use GuzzleHttp\Client; use Illuminate\Http\Request; use DB; use App\Tools\Tools; use Illuminate\Support\Facades\Storage; class WechatController extends Controller { // public $tools; public function __construct(Tools $tools) { $this->tools=$tools; } ...
true
3c361b5695e1a2b1982701c3430e30e8b4b50cdb
PHP
bitller/nova-manager
/app/Http/Controllers/AdminCenter/UsersController.php
UTF-8
3,835
2.796875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\AdminCenter; use App\Http\Controllers\BaseController; use Illuminate\Http\Request; use App\User; use Auth; /** * Handle users administration. * * @author Alexandru Bugarin <alexandru.bugarin@gmail.com> */ class UsersController extends BaseController { /** * @var arr...
true
cd3f1e67ef58d4bffafbdb6328a8d525701e7d97
PHP
necromant2005/react-process
/_pool.php
UTF-8
2,328
2.96875
3
[]
no_license
<?php require __DIR__ . '/vendor/autoload.php'; function dump(array $pool) { foreach ($pool as $item) { if (!array_key_exists('pointer', $item)) { var_dump($item); } echo ' ' . $item['pointer'] . ' => ' . $item['output'] . ' => ' . $item['exit'] . PHP_EOL; } } functio...
true
e3d41b7f9af1076a6dc5629b374b84b946a3c561
PHP
nicodmf/HighlightBundle
/Bundle/Providers/HttpHiliteme.php
UTF-8
2,002
2.53125
3
[]
no_license
<?php namespace Highlight\Bundle\Providers; use Symfony\Component\Finder\Finder; class HttpHiliteme extends AbstractProvider implements ProviderInterface { protected static $instance = null; protected $highlighter = null; protected $path = null; protected $langsDir = null; protected $cachedLangsFile = null; fun...
true
7b0c61fecfafc5d90be151d7f302d3d95c5f56cf
PHP
answear/getdressed-me-bundle
/src/ValueObject/Product.php
UTF-8
2,886
2.875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Answear\GetdressedMeBundle\ValueObject; use Answear\GetdressedMeBundle\Enum\ProductPropertyEnum; use Webmozart\Assert\Assert; class Product { private string $clientProductId; private string $productName; private string $productNameLang; private string $produc...
true
4059de2550f703cc630e4b6ac47bcc2444f8a645
PHP
PKLTelAcc/proj_telacc
/application/models/M_mitra.php
UTF-8
680
2.5625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * */ class M_mitra extends CI_Model { function view() { $sql = "select * from mitra"; $query = $this->db->query($sql); $return = $query->result_array(); return $return; } public function insert($data) { $this->db->insert('mitra',$data); } public function update($data) { $sql="se...
true
cb8ec26e5acc5cb8bb68780bbc7a1cb958ff9015
PHP
Julienyou/Projet_Reservation
/Reservation.php
UTF-8
1,958
2.875
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <link rel="stylesheet" href="css/style.css" type="text/css" /> <head> <meta charset="UTF-8"> <title>Reservation</title> </head> <body> <h1>RESERVATION</h1> <p> Le prix de la place est de 10 euros jusqu a 12 ans et ensuite de 15 euros.</p> <p> Le prix de l assurance a...
true
0540be57cdc3b97db89fa2b9a8ca2533a4627267
PHP
CoreDaDev/CosmeticsPlus
/src/seeker/CosmeticsPlus/commands/DebugCommand.php
UTF-8
2,275
2.796875
3
[]
no_license
<?php declare(strict_types=1); namespace seeker\CosmeticsPlus\commands; use pocketmine\command\CommandSender; use pocketmine\command\PluginCommand; use pocketmine\plugin\Plugin; use pocketmine\scheduler\Task; use pocketmine\utils\TextFormat; use seeker\CosmeticsPlus\CosmeticsPlus; class DebugCommand extends PluginC...
true
5749ae240c4e9ccf482be9eadc6befae55982af4
PHP
ooberemok/ewsdsupport
/sys/core/init.ini.php
UTF-8
1,173
2.703125
3
[]
no_license
<?php include_once 'SYS'.'/config/config.ini.php'; //$tmp = explode("\\",$page); //$page = $tmp[count($tmp)-1]; /*$page variable is declared in main pages (index.php, dailyalarmcp.php, dailyalarmmp.php, tgrpstat.php, contacts.php, help.php) * switch block - determines page title according to the current page */ swit...
true
9dcd4a8e9fe6af3b4d522eb58508670461c15f23
PHP
jandanielcz/simona
/src/RulesCollection.php
UTF-8
3,293
2.9375
3
[]
no_license
<?php namespace JanDanielCz\Simona; class RulesCollection { protected $rules = []; protected $recipientReducer = null; protected $ruleValidators = []; public function parse($string) { $string = str_replace(["\r\n", "\n", "\r"], ';', $string); $string = preg_replace('/\s+/', '', ...
true
3f6eb352c70555d08bbf448795765eb0362119b6
PHP
errogaht/delivery-aggregator
/src/Carrier/Pec/TermParser.php
UTF-8
1,264
3.0625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: errogaht * Date: 19.05.2017 * Time: 19:16 */ namespace Errogaht\DeliveryAggregator\Carrier\Pec; class TermParser { /** * [1, 2] * @param $maybeArray * @return array */ public static function parseMaybeArrayOfTerms($maybeArray) { $r...
true
6de7b3e5e99090c534b3ab6f4ac522c547e732b4
PHP
kalaomer/main-interfaces
/Interfaces/Converter/Arrayable.php
UTF-8
125
2.515625
3
[]
no_license
<?php /** * Arrayable Interface. */ namespace Interfaces\Converter; interface Arrayable { Public function toArray(); }
true
3eeae89a744f80f28db1876c6c4015c0ad030f96
PHP
ensodev/Pillersmaker
/model/processNewPassword.php
UTF-8
3,029
2.515625
3
[]
no_license
<?php if(!isset($_POST['reset'])){ echo "<script>location.href='/index1.php'</script>"; //header("Location: ../index1.php"); exit(); } if(empty($_POST['password']) || empty($_POST['re-password'])){ $msg = "Please Make sure both password are filled"; echo "<script>location.href='...
true
b30eb6e74d0393595e27d863dc2e93b37149a900
PHP
kkateli/Web_App_ChatsfordApp
/app/Models/ComplaintEntry.php
UTF-8
1,747
2.765625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class ComplaintEntry extends Model { protected $fillable = [ 'complaint_id', 'user_id', 'comment', 'status_changed' ]; /** * Define the relationship to the user that is posting this reply. * ...
true
973ebceaf22f77efd8c967ddb4f89b58a2a91347
PHP
allanf181/teste
/controller/arquivoLog.class.php
UTF-8
639
2.5625
3
[]
no_license
<?php if (!class_exists('Generic')) require_once CONTROLLER . '/generic.class.php'; class ArquivosLogs extends Generic { public function __construct() { // } public function listArquivosLogs($codigo) { $bd = new database(); $sql = "SELECT p.nome FROM Arquiv...
true
7fcee098c7ffafc97b13c2a9c7afa3341b58addd
PHP
Alexromeroperez/Pokepedia
/app/Http/Requests/PokemonRequest.php
UTF-8
1,274
2.796875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class PokemonRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } public functi...
true
1df7e88824afdd7216c436d6366ec930d46cfb62
PHP
Desch/EmuDevstore
/community/wcf/lib/acp/form/OptionImportAndExportForm.class.php
UTF-8
3,117
2.625
3
[]
no_license
<?php // wcf imports require_once(WCF_DIR.'lib/acp/form/ACPForm.class.php'); require_once(WCF_DIR.'lib/acp/option/Options.class.php'); /** * Shows the option import / export form. * * @author Marcel Werk * @copyright 2001-2009 WoltLab GmbH * @license GNU Lesser General Public License <http://opensource.org/licens...
true
3aa7731d785fe1751aa0975ee87554e8501af8d7
PHP
spinking/Everyweek-Report
/visit-ajax.php
UTF-8
1,076
3.140625
3
[]
no_license
<?php $file = 'visiting.txt'; $weekNum = date("W"); /*array from front form*/ if (isset($_POST["next_visit_input"]) ) { // Формируем массив для JSON ответа $result = array( 'week' => $weekNum, 'visit' => $_POST["next_visit_input"], ); // Переводим массив в JSON $get_content...
true
0a29de7852ca8f54c39c874f6c838e4bed19fdf1
PHP
WilliamOnnyx/jamtest
/src/AppBundle/Controller/LoginController.php
UTF-8
1,828
2.5625
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php // src/AppBundle/Controller/LoginController.php namespace AppBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\Security\Http\Authentication\AuthenticationUtils; use Symfony\Component\HttpFoundation\Request; use AppB...
true
e3140841aa5e08c3df9788cba1a3ef087ac3c706
PHP
pvoznenko/front-controller-php-example
/App/Services/Curl.php
UTF-8
4,416
3.171875
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Interfaces\ServiceInterface; use App\Interfaces\CurlInterface; use App\ServiceContainer; /** * Class Curl * @package App\Services * * Curl wrapper */ class Curl implements ServiceInterface, CurlInterface { /** * Url to query * * @var string */ pri...
true
53c408bb81766246abf2d5d3938a4556383da9cd
PHP
Lemurro/api-core
/src/Guide/ControllerInsert.php
UTF-8
1,075
2.578125
3
[ "MIT" ]
permissive
<?php namespace Lemurro\Api\Core\Guide; /** * Добавление элемента в справочник */ class ControllerInsert extends GuideController { public function start() { $checker_checks = [ 'auth' => '', 'role' => [ 'page' => 'guide', 'access' => 'create-up...
true
978fd7d1e55a37630273b9d2bb79737b224c5f31
PHP
Rhilip/mix-framework
/src/Core/Application.php
UTF-8
2,720
2.6875
3
[ "Apache-2.0" ]
permissive
<?php namespace Mix\Core; use Mix\Container\Container; use Mix\Helpers\FileSystemHelper; /** * App类 * @author LIUJIAN <coder.keda@gmail.com> */ class Application extends BaseObject implements \ApplicationInterface { // 应用调试 public $appDebug = true; // 初始化回调 public $initialize = []; // 基础路径 ...
true
62f3a63eb3f3429f37bd7f11005f361ff0e6fe25
PHP
NFarrington/vatsim-url-shortener
/app/Notifications/NewPrefixApplicationNotification.php
UTF-8
1,032
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Notifications; use App\Entities\OrganizationPrefixApplication; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; class NewPrefixApplicationNotification extends Notification implements ShouldQueue { use Queueable; ...
true
685e78a8ba166f267da38e91af88da3d3e82cd15
PHP
helenagarcia90/ocularis-web
/modules/rssReader/components/widgets/RssReaderWidget.php
UTF-8
1,282
2.6875
3
[]
no_license
<?php class RssReaderWidget extends CWidget{ public $limit = 5; public $url; private $_dom; private $_items = array(); public function init() { Yii::import('modules.rssReader.models.Item'); $this->_items = Yii::app()->cache->get($this->getCacheId()); if($this->_items === false) { try { ...
true
031555f0e471ffcc3b9fc1ac66922db1d2e7a193
PHP
freekrai/postulate
/core/system/runtime.php
UTF-8
36,253
2.53125
3
[]
no_license
<?php $_GET['route'] = isset($_GET['route']) ? '/'.$_GET['route'] : '/'; define ('DOCUMENT_ROOT', realpath(dirname(__FILE__))); define("MAX_LENGTH", 6); define('DEBUG',false); #define('DEBUG',true); if (DEBUG) { error_reporting(E_ALL | E_STRICT); ini_set('display_errors', 1); } else { error_reporting(0); @ini_set(...
true
08110bd34526989e0f74f12feac59d689eec5557
PHP
ahlijatinuraminah/canteen165
/class/class.Pembeli.php
UTF-8
3,417
2.6875
3
[]
no_license
<?php class Pembeli extends Connection { private $id =0; private $idaccount =0; private $nama = ''; private $email = ''; private $alamat = ''; private $tempatlahir=''; private $tanggallahir=''; private $handphone=''; private $jeniskelamin=''; private $foto=''; private $currentfoto=''; priva...
true
b6f8118b6f04dca55b54a4546b67169f959d6306
PHP
juan901/sirestamex
/modelos/productos.modelos.php
UTF-8
2,107
2.859375
3
[]
no_license
<?php require_once "modelos/conexion.php"; class ModeloProductos{ static public function mdlMostrarProductos($tabla, $item, $valor) { if($item != null){ $stmt = Conexion::conectar() -> prepare("SELECT * FROM $tabla WHERE $item = :$item"); $stmt -> bindParam(":".$item, $valor, PDO::PARAM_STR); $stm...
true
2664d2683a0aaa6f6ab4b73bc6bf1e0060bb5ec3
PHP
i-xiao-zi/aie
/src/HttpRequest.php
UTF-8
1,024
2.703125
3
[]
no_license
<?php namespace App\MyLib\Express; use GuzzleHttp\Client; trait ERequest { public function request($url, Array $option=[], $method = 'GET'){ $client = new Client(); $response = []; try { $response = $client->request($method,$url,$option); $response ...
true
57b5e048223f6d7ab1b09ef2e96ae982ef4910b2
PHP
marcorieser/php_sandbox
/src/sandbox/arrays/index.php
UTF-8
2,266
3.65625
4
[]
no_license
<?php // A simple array $tuts_sites = array( 'nettuts+', 'psdtuts+', 'webdesigntuts+', 'wptuts+', 'mobiletuts+' ); // Another simple array with // the modern bracket syntax $months = [ 'january', 'february', 'march', 'april', 'may' ]; // A simple associative array $tuts_sites ...
true
adfaab6ecc25eb28ddc80582738230b1a14ac433
PHP
mail47002/food
/app/Http/Controllers/Backend/PagesController.php
UTF-8
2,553
2.59375
3
[]
no_license
<?php namespace App\Http\Controllers\Backend; use App\Page; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class PagesController extends Controller { public function __construct() { $this->middleware('admin.auth'); } public function index(Request $request) { $s...
true
2daa61d2520fe3fd67a7aa093a3d863004fd8032
PHP
pawco/masscan-web-ui
/lib/exceptions/class.db.exception.php
UTF-8
481
2.625
3
[]
no_license
<?php class DBException extends Exception { public function handleError() { if (substr(php_sapi_name(), 0, 3) == 'cli'): echo $this->getMessage(); die; endif; if (preg_match('/^Table (.*) doesn\'t exist/', $this->getMessage())): include DOC_ROOT.'includes/install.php'; elseif(preg_match('/^(.*)Access...
true
eb58de63d0f753f8c6c7b757d5000f72f7099d32
PHP
blaby64/proStages
/src/DataFixtures/AppFixtures.php
UTF-8
5,106
2.875
3
[]
no_license
<?php namespace App\DataFixtures; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Common\Persistence\ObjectManager; use App\Entity\Formation; use App\Entity\Entreprise; use App\Entity\Stage; use App\Entity\User; class AppFixtures extends Fixture { public function load(ObjectManager $manager) { ...
true
785f22d22865de03a561877bfe7874b71c044a8e
PHP
Raman811/birthday-app
/a.php
UTF-8
1,650
2.78125
3
[]
no_license
<?php $birthday = array("sharnjit", "karan", "harwinder", "raman", "raman", "mandeep", "manpreet", "navjot", "jaspreet"); $date = array(7,6,9,7,23,7,14,19,7); $month = array("september", "january", "november", "january", "january", "april", "march", "september", "february"); $years = array(1994,1997,199...
true
68651712a5f5c72f2665a4246de3cf3a9cde7898
PHP
kedomingo/duplicateimagefinder
/src/services/DuplicatesRenderer.php
UTF-8
1,352
3.046875
3
[]
no_license
<?php declare(strict_types = 1); namespace DIF\Services; use DIF\Models\DuplicateFile; final class DuplicatesRenderer implements DuplicatesRendererInterface { /** * @var DuplicatesSorterInterface */ private $sorter; /** * DuplicatesRenderer constructor. * @param DuplicatesSorterInter...
true
26e27809a9def25a8b628e70f53f3e70ae7b9692
PHP
wothag/forteroche
/Application/Backend/Model/WriteManager.php
UTF-8
1,079
3.03125
3
[]
no_license
<?php require_once ('../Frontend/Model/Database.php'); class WriteManager extends Database { /**@function to write a chapter in DB * @param $title , $author, $content * @return bool */ public function write($title,$author,$content) { $db = $this->dbConnect(); $WriteChapter=$db->p...
true
d7cf86cea52b5162dd9b34e59caf3b45d190705a
PHP
SaadmanChowdhury/operations_management_software
/app/Services/UserService.php
UTF-8
1,262
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Services; use Illuminate\Database\Eloquent\Model; use App\Models\User; class UserService { protected $userModel; public function __construct(User $userModel) { $this->$userModel = $userModel; } public function fetchUserList() { $userModel = new User; ...
true
e4002f42a600b99df50e557345314d7444d33b56
PHP
TendoPayPlugins/laravel-dragonpay-api
/src/TendoPay/Integration/DragonPay/SoapClient/Type/GetMerchantSettledTxnsResponse.php
UTF-8
930
2.515625
3
[]
no_license
<?php namespace TendoPay\Integration\DragonPay\SoapClient\Type; use Phpro\SoapClient\Type\ResultInterface; class GetMerchantSettledTxnsResponse implements ResultInterface { /** * @var \TendoPay\Integration\DragonPay\SoapClient\Type\ArrayOfTransaction */ private $GetMerchantSettledTxnsResult; /...
true
0279c4d81c79fbe08b62a8c578fdeb4d62b2d524
PHP
mathh95/delion
/admin/model/tipo_avaliacao.php
UTF-8
707
2.640625
3
[]
no_license
<?php class tipoAvaliacao{ private $tiva_pk_id; private $tiva_nome; private $tiva_flag_ativo; function getCod_tipo_avaliacao(){ return $this->tiva_pk_id; } function getNome(){ return $this->tiva_nome; } function getFlag_at...
true
29d3d407f66381779b532f029815ec4da1ce3e13
PHP
wwb382899012/oil_retail
/protected/ddd/Quota/Domain/IQuotaRepository.php
UTF-8
891
2.703125
3
[]
no_license
<?php /** * Desc: 额度仓储接口 * User: susiehuang * Date: 2018/9/3 0003 * Time: 14:34 */ namespace ddd\Quota\Domain; use ddd\Common\Domain\BaseEntity; use ddd\Common\Domain\IRepository; interface IQuotaRepository extends IRepository { /** * 增加已使用额度 * @param BaseEntity $entity * @param int $quo...
true
e2c5e4788baede5bcc042d65ab70d6d1f0d4b201
PHP
GustavoMenezes01/Projeto-PHP
/php-primeiros-passos/desafios/imc.php
UTF-8
265
2.9375
3
[]
no_license
<?php $peso = 50; $altura = 1.69; $imc = $peso / $altura ** 2; echo "Seu IMC é de $imc. Você está com o IMC "; if($imc < 18.5){ echo "Abaixo do ideal"; }else if($imc < 25){ echo "Ok"; }else{ echo "acima"; } echo " do recomendado!!!!" .PHP_EOL;
true
36225b55cd71a9e20a0fd6c4d8d4caba11708897
PHP
ahuby09/tags
/Personal/ZAHB/balance.php
UTF-8
465
2.734375
3
[]
no_license
<?php session_start(); $Username = $_SESSION['Username']; $xml = new SimpleXMLElement('users/' . $Username . '.xml', 0, true); ?> <!DOCTYPE html> <html> <head> <title>Balance</title> </head> <body> <a href="">Home-page</a> <a href="addnewgoal.php">Add new goal</a><hr /> <?php foreach($xml->savinggoals->goal as $go...
true
33a7b96a58395063d3e72a2d65f630c81be16e35
PHP
tonykiselis/util-raml-code-generator
/tests/PhpGeneratorBundle/RestClient/Fixtures/expected/account/src/AccountClient.php
UTF-8
1,430
2.546875
3
[]
no_license
<?php namespace Paysera\Test\AccountClient; use Paysera\Test\AccountClient\Entity as Entities; use Fig\Http\Message\RequestMethodInterface; use Paysera\Component\RestClientCommon\Client\ApiClient; class AccountClient { private $apiClient; public function __construct(ApiClient $apiClient) { $this...
true
76f5704abf494c819fb49b90271bdfdc693f8fe3
PHP
funkatron/GimmeMe
/libs/GimmeAsset.php
UTF-8
1,537
3
3
[]
no_license
<?php /* * Use this to add lambdas to the Mustache view object */ class GimmeAsset { public function __construct($data_obj) { $props = get_object_vars($data_obj); foreach($props as $key=>$val) { $this->{$key} = $val; } } public function nice_date() { return date("l, F j, Y g:sa", $this->date); } p...
true
bf2e798cf6fa48d176d313068a7caf54085d453a
PHP
SebastianPozoga/raspi-web-diode-meet.php
/raspi/Diode.php
UTF-8
843
2.71875
3
[]
no_license
<?php ini_set("enable_dl", "On"); include('wiringpi.php'); define('DIODE_PIN', 7);//GPIO7 (PHYS pin 26) define('PIN_INPUT', 0); define('PIN_OUTPUT', 1); /** * Class to manage local diode * * @author spozoga */ class Diode { function on() { wiringpi::pinMode(DIODE_PIN, PIN_OUTPUT); return wir...
true
7b10ff7ed4711c2d6963b3a1d33057e8db0a52b2
PHP
Hypefit/hypefit
/includes/funcionesRecetas.php
UTF-8
5,061
2.546875
3
[]
no_license
<?php require_once "autorizacion.php"; use hypefit\DAO\ComentarioRecetaDAO; use hypefit\DAO\RecetaDAO; use hypefit\DAO\UsuarioDAO; function crearListaRecetas($categoria): string { $dao = new RecetaDAO(); $lista = $dao->getRecetasPorCategoria($categoria); $html=""; foreach($lista as $rec...
true
490e5263a87aa58619106977bf49c28189fa9ed0
PHP
flaupretre/mp3-tools
/lib/Library.php
UTF-8
485
3.1875
3
[]
no_license
<?php class Library { private $path; private $artists; // Aray of artist names //------ public function __construct($path) { $this->path=$path; foreach(get_subdirs($path) as $name) { $this->artists[]=$name; } } //------ public function artists() { return $this->artists; } //------ public function artist($nam...
true
56895f6a2e0de3e64df7a14f0e7e15da5e080353
PHP
andersonfariasba/falcao
/application/models/pojo/servicospojo.php
UTF-8
1,572
3.296875
3
[]
no_license
<?php /* Classe Pojo: Serviços oferecidos pela empresa * Autor: Anderson Farias */ //Nome da classe com o nome Pojo no final class ServicosPojo extends CI_Model { //Dados referente a tabela de banco de dados private $id_servico; private $servico; private $deletado = false; //**** Metodo que organizar os dado...
true
f0312fe8ded4ca1609c1306139f33c0dbaa1149a
PHP
Karolisli/_PHP
/19-04-29coffee.php
UTF-8
1,479
3.03125
3
[]
no_license
<?php $dishes= [ 'nut_salad' => [ 'name' => 'nut salad', 'price' => 3.44, 'ingridients' => [ 'nuts', 'jogurt' ] ], 'bulldish' => [ ...
true
26f092ce29803b5e8500a998070ab76a35976b49
PHP
errant/tacit
/src/Instruction/IO/Out.php
UTF-8
239
2.625
3
[ "MIT" ]
permissive
<?php namespace Tacit\Instruction\IO; /** * Output Type * * @author Tom Morton */ class Out extends \Tacit\Instruction\UnaryOperation { public $command = 'OUT'; public function transform($operand, $vm) { echo $operand . "\n"; } }
true
df9522c3c7b59a22606a372f8632934b93c13cae
PHP
hid-nagai/MagicWeapon
/emoji_adapter_Text_Pictogram_Mobile.inc
UTF-8
1,388
2.765625
3
[]
no_license
<?php /** * 絵文字クラス : Text_Pictogram_Mobileモジュール用アダプタ * * http://blog.asial.co.jp/380 * http://blog.asial.co.jp/351 * 参照 * * @package magicweapon * @link http://www.grid-works-guild.net/MagicWeapon/ MagicWeapon * @access public * @author Michiaki Wuzawa <wuzawa@m-fr.net> * @create $LastChangedDate$ * @ve...
true
be95d63a82cd00a754ed68572cb5cc89643166e2
PHP
tirenucci/k-k-
/www/crealearning-api/src/Controller/SkinThemeController.php
UTF-8
3,467
2.515625
3
[]
no_license
<?php namespace App\Controller; use App\Service\SkinThemeService; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\HttpFoundation\JsonResponse; class SkinThemeController extends LibController { /** * @Route("/skintheme/get_all", methods...
true
d1843235db0d8860e59a6cb9fef4600d84ae5877
PHP
andrejr971/desenvolvimento-servidores2
/prova/controllers/ListAllStockHandlingController.php
UTF-8
410
3.15625
3
[ "MIT" ]
permissive
<?php class ListAllStockHandlingController { private IStockHandlingRepository $stockHandlingRepository; public function __construct(IStockHandlingRepository $stockHandlingRepository) { $this->stockHandlingRepository = $stockHandlingRepository; } public function handle() { $products = $th...
true
75c87bbf0cc75d268d016968d2992bd77bec0f93
PHP
convee/core
/src/Singleton.php
UTF-8
391
2.859375
3
[]
no_license
<?php namespace Convee\Core; trait Singleton { private static $instanceList = []; /** * @return static */ public static function instance() { $className = get_called_class(); if (!isset(self::$instanceList[$className])) { self::$instanceList[$className] = new static(...
true
2b76111a32213d7249d0e43fc0c9bdde101f44f0
PHP
KRDS/Validator
/src/validation/LengthLowerThan.php
UTF-8
530
3.046875
3
[ "MIT" ]
permissive
<?php /** * Validates a length lower than a given length. * * @param int $length Length for which the field must be lower than */ namespace Validation; class LengthLowerThan extends \Validator\Validation_Abstract { protected $_length; public function __construct($length) { $this->_length = $length; }...
true
00a26d98bca87d2c986acd2cf9e3c0ddfb7ea297
PHP
gsbDevCorp/LaFleur
/includes/fonctions.php
UTF-8
11,749
2.609375
3
[]
no_license
<?php /** * */ function recupProduitLiteView() { include 'db.php'; try { $db = new PDO('mysql:host='.$host.';dbname='.$dname.'', $user, $pass); $dataArticle=$db->query('SELECT NumArticle, NomArticle, PrixArticle, PhotoArticle FROM ARTICLE'); while ($donnees = $dataArticle...
true
fef1cde654f065bb77c49f2d4025fcb5eb946535
PHP
jazlopez/sample-ws-symfony
/src/AppBundle/Topic/SampleTopic.php
UTF-8
2,068
2.640625
3
[]
no_license
<?php /** * Jaziel Lopez <juan.jaziel@gmail.com> * Software Developer * Tijuana Area, Mexico, 4/9/16 7:44 PM.$year * * https://jlopez.mx * https://linked.in/in/jlopez.mx * */ namespace AppBundle\Topic; use Gos\Bundle\WebSocketBundle\Topic\TopicInterface; use Ratchet\ConnectionInterface; use Ratchet\Wamp\Topic...
true
20c800937e28d52e07ce8d867dffdedbb528683e
PHP
BrunoWeberty/AplicacaoSecretariaEscolar
/prova3/app/Http/Controllers/ProfessorController.php
UTF-8
6,367
2.671875
3
[ "Apache-2.0", "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Professor; use App\Disciplina; use App\Professor_Disciplina; use Carbon\Carbon; use Carbon\CarbonInterval; use DB; class ProfessorController extends Controller { function index(Request $request){ if($request->get("id") == null){ ...
true
6a5278c76271b8e132098760a9833715d71eeebd
PHP
simon28082/swoole-server
/src/Server/Contracts/ServerBindApplicationContract.php
UTF-8
383
2.765625
3
[ "MIT" ]
permissive
<?php namespace CrCms\Server\Server\Contracts; /** * Interface ServerBindApplicationContract. */ interface ServerBindApplicationContract { /** * @param ServerContract $server * * @return void */ public function bindServer(ServerContract $server): void; /** * @return ServerContr...
true
2f86b5c172788cff1b6edf788876043a2c545be7
PHP
Awkan/Neko-Wiki
/src/NekoWiki/Provider/PageProvider.php
UTF-8
2,538
2.671875
3
[ "MIT" ]
permissive
<?php namespace Nekland\NekoWiki\Provider; use Nekland\NekoWiki\Entity\Page; use Doctrine\ORM\EntityManager; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; class PageProvider { private $em; /** * @param EntityManager $em * @para...
true
2ca9b347a4a93a436ba2e91d4fea61b3bd277cc9
PHP
SRC2022/PHP-Sentiment-Analysis
/simulasi.php
UTF-8
3,897
2.90625
3
[]
no_license
<?php $basepath = true; $data['title'] = "Simulasi Rumus"; $data['menu'] = 5; $data['submenu'] = 51; include "header.php"; ?> <br> <h1>Simulasi Analisis Sentimen</h1> <div class="alert alert-info" style="margin-top:1em; font-size:13px">Untuk melihat langkah-langkah dan algoritma penentuan sentimen kalimat yang akan di...
true
f9a56988a52158160417b6556f513decb085ae63
PHP
Ananyasinha/admin_panel
/test.php
UTF-8
1,469
2.609375
3
[]
no_license
<?php $conn = new mysqli("localhost","root","","test"); if(isset($_POST['submit'])){ $fileName = $_FILES['file']['name']; $fileExt = pathinfo($fileName, PATHINFO_EXTENSION); $fileName = rand('11111','99999').'-'.time().'.'.$fileExt; /*$file = $_FILES['file']['name']; $img = rand(11111,999999)."...
true
0b484dfb469a27e02221b918aa854fe6cd9c1254
PHP
webmaster978/gestion_de_stock
/traitement/insertsalaire.php
UTF-8
824
2.515625
3
[]
no_license
<?php require_once('connexion.php') ?> <?php if (isset($_POST['ajouter'])) { if (!empty($_POST['nom']) or (!empty($_POST['salaire']))) { $nom = $_POST['nom']; $salaire = $_POST['salaire']; $devise = $_POST['devise']; $sql = ("INSERT INTO payement (nom,salaire,devise) VALUE...
true
128ed3d8f7f9ad1ef93b3bd16bc9f3d3d834e457
PHP
RafMustafa/allmyles-sdk-php
/src/Allmyles/Classes/Cars.php
UTF-8
5,087
2.90625
3
[ "Apache-2.0" ]
permissive
<?php namespace Allmyles\Cars; use Allmyles\Common\Price; class SearchQuery { private $location; private $startDate; private $endDate; public function __construct($location, $startDate, $endDate) { $this->location = $location; $this->startDate = $this->getTimestamp($startDate); ...
true
b396357d2fe85912e5db3cbb102decd1f26027e0
PHP
sulu/sulu
/src/Sulu/Component/Content/Compat/PropertyInterface.php
UTF-8
4,339
2.59375
3
[ "MIT" ]
permissive
<?php /* * This file is part of Sulu. * * (c) Sulu GmbH * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Sulu\Component\Content\Compat; use Sulu\Component\Util\ArrayableInterface; /** * Property definition and value. */ interface P...
true
a7cf9328d5df12c8f139aa4d73199ad7c5f03fff
PHP
amarriner/KlepekVsRemo
/functions.php
UTF-8
15,921
2.890625
3
[]
no_license
<?php /** * Writes the given text with a border into the image using TrueType fonts. * @author John Ciacia * @url http://www.johnciacia.com/2010/01/04/using-php-and-gd-to-add-border-to-text/ * @param image An image resource * @param size The font size * @param angle The angle in degrees to...
true
aee62f912943cc9e8c826e467a72479bafd23049
PHP
LimTu2000/Capacity-Planning
/functions.php
UTF-8
65,082
2.859375
3
[]
no_license
<?php require_once 'dbConnect.php'; /*Funktionen hauptsächlich für Datei kalender.php */ function createMonthCalendar($connect, $monthNumber, $year, array $workerIDs = null){ /* Diese Funktion generiert den Kalender eines bestimmten Monats. Dabei ist der Parameter $workerIDs der die M...
true
65dd3d2eb0e4be462b26d3b96850a76cb53a977d
PHP
robbydhr/AbsensiBerdikari-API
/AbsensiAPI/tester.php
UTF-8
528
2.59375
3
[]
no_license
<?php require 'connection.php'; global $con; $lat2 = floatval("-6.1715383"); $long2 = floatval("106.822084"); $sql = "SELECT id_kantor, (6371 * ACOS(SIN(RADIANS(lat)) * SIN(RADIANS($lat2)) + COS(RADIANS(lng - $long2)) * COS(RADIANS(lat)) * COS(RADIANS($lat2)))) AS jarak FROM office WHERE type='Toko' ...
true
2e51e3e4f68ac9bce34a4e0d742795975d6b0fc3
PHP
AElfProject/aelf-wallet-server
/api/core/web/app/chart.php
UTF-8
2,660
2.625
3
[]
no_license
<?php /** * 获取币种7天内的金额 */ require_once __DIR__.'/app.php'; class app_chart extends app { public function doRequest() { $parent = trim( post( 'parent' ) ); $address = trim( post( 'address' ) ); $contractAddress = trim( post( 'contractAddress' ) ); if ( empty( $parent ) ) return $this->error( __( '参数错误' ) ...
true
a6b1c9c0a95b64375395673a57d0b7d2059de226
PHP
sprak3000/sports-draft
/mlb/mlb_draft_confirm.php
UTF-8
2,328
2.84375
3
[]
no_license
<?php $page_title = "MLB Fantasy League Draft - Confirm your selection"; include("../../lib/dbconnect.php"); $player = mysql_query(" SELECT player_name FROM mlb_draft WHERE player_id = $player_id ") or die("Could not fetch player"); while ($current_row = mysql_fetch_array($player)) ...
true
fee29ddf05a6f821610dc4bccfbbbc127a9b1691
PHP
horstoeko/zugferd
/src/entities/en16931/ram/DocumentLineDocumentType.php
UTF-8
1,435
2.5625
3
[ "MIT" ]
permissive
<?php namespace horstoeko\zugferd\entities\en16931\ram; /** * Class representing DocumentLineDocumentType * * XSD Type: DocumentLineDocumentType */ class DocumentLineDocumentType { /** * @var \horstoeko\zugferd\entities\en16931\udt\IDType $lineID */ private $lineID = null; /** * @var ...
true
bd8205a9d8dc9e6f530b99464ca046294de78741
PHP
Laboralphy/o876-psyl
/lib/psyl/Evaluator.php
UTF-8
2,199
3
3
[]
no_license
<?php /** * Created by PhpStorm. * User: ralphy * Date: 14/09/17 * Time: 02:11 */ namespace O876\Psyl; require_once 'EvaluationException.php'; /** * Class Evaluator * This class evaluates a structure built by the parser, and calls back functions that matching all first atoms * @package O876\Psyl */ class E...
true
f580ca4f99bcd1285eb436d32343639fa8e5cf8e
PHP
fabioOPimentel/wp_theme_base
/functions/helpers/acfFields.php
UTF-8
1,327
2.6875
3
[]
no_license
<?php namespace Helpers; if ( !defined( 'ABSPATH' ) ) { exit; }; use StoutLogic\AcfBuilder\FieldsBuilder; class acfFields { /** * Singleton */ private static $instance; public static function getInstance() { if (self::$instance == NULL): self::$instance = new sel...
true
a8aecfaa0d374da91f8bff02f91c3a33203a1f79
PHP
alexdodonov/mezon-crud-service-model
/Mezon/CrudService/Tests/InsertBasicFieldsUnitTest.php
UTF-8
1,378
2.578125
3
[]
no_license
<?php namespace Mezon\CrudService\Tests; use Mezon\PdoCrud\Tests\PdoCrudMock; use Mezon\CrudService\CrudServiceModel; use PHPUnit\Framework\TestCase; /** * * @psalm-suppress PropertyNotSetInConstructor */ class InsertBasicFieldsUnitTest extends TestCase { /** * Method tests insertBasicFields method ...
true
c90a6307b335bf37ebba02fe7fc05a85d6331a03
PHP
kulyk-dmytro/test-work
/docker/application/app/Http/Requests/UpdateCompany.php
UTF-8
761
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class UpdateCompany extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { // to do update verification and rules on ...
true
1bd9205862f701594586244d88ae08051e3b30de
PHP
leetmikeal/ipdp
/public_html/library/Common.php
UTF-8
7,163
2.65625
3
[ "MIT" ]
permissive
<?php include_once 'config.php'; include_once 'Zend/Db.php'; include_once 'Smarty/libs/Smarty.class.php'; include_once 'DbManager.class.php'; include_once 'di_lib.php'; include_once 'in_lib.php'; date_default_timezone_set('Asia/Tokyo'); function COMGetFormatDateTime($dateTime) { if($dateTime == '') { return ...
true
a6b25ccc05103ef499c6424aed651973146bdc25
PHP
midiway/MidiPHP
/classes/utils/ajaxcall.php
UTF-8
763
2.703125
3
[]
no_license
<?php class AjaxCall { private $params; protected $json_return = array(); function __construct() { $this->params = $_GET; assert( isset($this->params['func']) ); assert( method_exists($this, $this->params['func']) ); $func_call = $this->params['func']; unset($this->params['func']); $this->$func_...
true
49ed6c8d25746339f13c047a5f36bb5cf3a13045
PHP
Ddsluke/Tourism-website
/Html/php/add_attr.php
UTF-8
1,939
2.625
3
[]
no_license
<?php //connection $servername = "mysql.comp.polyu.edu.hk"; $username = "16098537d"; $password = "iqdobdiy"; // Create connection $link = mysqli_connect($servername, $username, $password); // Check connection if (!$link) { echo "Error: Unable to connect to MySQL." . PHP_EOL; ...
true
fbe331fa7be43a4533354d5ca64119150cdefebd
PHP
limarenataa/ReModa_compilado
/projeto-react/src/php/api/produtos.php
UTF-8
393
2.546875
3
[]
no_license
<?php //API header("Access-Control-Allow-Origin:*"); require_once "../connect_bd.php"; // $result = $conn->query("SELECT * FROM produtos"); // $produtos = []; $sql = "SELECT * FROM produtos"; $result = query($sql); // Puxando a função query da pagina connect_bd $produtos = []; while ($row = mysqli_fetch_assoc($r...
true
3481e8def1bac79a42c9f8f4cd87e11bc02674b2
PHP
hd-webservice/com.woltlab.wcf.comment
/files/lib/system/comment/CommentHandler.class.php
UTF-8
2,340
2.828125
3
[]
no_license
<?php namespace wcf\system\comment; use wcf\data\comment\StructuredCommentList; use wcf\data\object\type\ObjectTypeCache; use wcf\system\comment\manager\ICommentManager; use wcf\system\SingletonFactory; /** * Provides methods for comment object handling. * * @author Alexander Ebert * @copyright 2001-2011 WoltLab ...
true
6b66cb8ccb8b051896813afc018734996abf8d15
PHP
sofico/php-webdriver
/src/RemoteElement.php
UTF-8
766
2.796875
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by IntelliJ IDEA. * User: petr * Date: 25.5.17 * Time: 14:34 */ namespace Sofico\Webdriver; use Facebook\WebDriver\Remote\RemoteExecuteMethod; use Facebook\WebDriver\Remote\RemoteWebElement; class RemoteElement extends RemoteWebElement { /** * @var RemoteDriver */ protect...
true
ab22fa96550bb3bb27b9c983c970c82d0802c83f
PHP
qzkml3/_my
/bwm-core/class/dao/MemberDao.php
UTF-8
705
2.703125
3
[]
no_license
<?php class MemberDao { static function joinMember($req_params) { $query = DBQuery::insert("member"); $values["nick_name"] = $req_params["nick_name"]; $values["email"] = $req_params["email"]; $values["password"] = $req_params["password"]; $query = DBQuery::values($query, $values); return DB::exe...
true
274e799959e844b0d9fa7570d36adcda1c033d35
PHP
im286er/guanbangOa
/xsczpt/weixin_0505/library/Page.php
UTF-8
4,464
3.046875
3
[]
no_license
<?php /** * Page Class * @package Page * @author Adrian·Tian * @date 2009-07-12 */ class Page { protected $style; protected $nums; protected $showPage; /** * 功能:构造函数 * 参数:配置数组 * $params = array('style','nums') */ public function __construct($params = array()){ $this->nums = empty($...
true
5a7dabfd017602f124fad4f1c737acba7618f97b
PHP
dimang12/managing-properties
/module/Application/src/Application/Model/DB.php
UTF-8
680
2.6875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: dimang12 * Date: 10/9/14 * Time: 4:24 PM */ namespace Application\Model; use Zend\Db\ResultSet\ResultSet; use Zend\Db\Sql\Sql; class DB { public function __construct(){} /* * for execute sql statement * @return buffer of resultset * static functi...
true
c35e7cd8c9177ce8716fe63fb88558a164abd53c
PHP
bangnxse04011/photography_club
/php/createAlbum.php
UTF-8
1,721
2.734375
3
[]
no_license
<?php require 'util.php'; $name = trim($_POST['name']); $date = isset($_POST['date']) ? $_POST['date'] : ''; $location = isset($_POST['location']) ? $_POST['location'] : ''; $price = +$_POST['price']; $con->begin_transaction(); if ( $meId && preg_match('/^.{1,200}$/', $name) && (preg_match('/^\d{4,6}-[01]\d-[0-3]...
true
b3bb88a14741cd5530a1a19832898cb3a892091e
PHP
stiger2/Skippur
/app/models/Picture.php
UTF-8
884
2.828125
3
[]
no_license
<?php class Picture extends Model { public $image; function All($site_id){ //return all records $sql = 'SELECT * FROM Pictures'; $stmt = self::$_connection->prepare($sql); $stmt->execute(); $stmt->setFetchMode(PDO::FETCH_CLASS, 'Picture'); return $stmt->fetchAll(); ...
true
934d1092334c82ffd7a86434b2f964755aed8a74
PHP
iainconnor/peace-keeper
/src/IainConnor/PeaceKeeper/Drivers/UnitTest.php
UTF-8
1,448
2.625
3
[]
no_license
<?php namespace IainConnor\PeaceKeeper\Drivers; use IainConnor\GameMaker\ControllerInformation; use IainConnor\GameMaker\Endpoint; use IainConnor\JabberJay\JabberJay; use IainConnor\JabberJay\ResolvedRequest; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Co...
true
90a4f6d5514256d93da83aeceefe6e44f273e884
PHP
manish436/zendsample
/application/controllers/EmployeeController.php
UTF-8
3,690
2.53125
3
[]
no_license
<?php class EmployeeController extends Zend_Controller_Action { public function init() { /* Initialize action controller here */ } public function indexAction() { $employee = new Application_Model_EmployeeMapper(); $this->view->entries = $employee->fetchAll(); } public fu...
true
4c2f179dc5a6ae60f2aacbd537bf095420ce5981
PHP
hpinio/lodata
/src/Drivers/CollectionEntitySet.php
UTF-8
2,224
2.6875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php declare(strict_types=1); namespace Flat3\Lodata\Drivers; use Flat3\Lodata\Entity; use Flat3\Lodata\Helper\PropertyValue; use Flat3\Lodata\Interfaces\EntitySet\CreateInterface; use Flat3\Lodata\Interfaces\EntitySet\DeleteInterface; use Flat3\Lodata\Interfaces\EntitySet\UpdateInterface; use Illuminate\Support\Co...
true
014f73905287b3c03602d0f454d4399d4ffc4aa8
PHP
whldk/tj-frame
/user/models/TeacherModel.php
UTF-8
2,198
2.640625
3
[]
no_license
<?php namespace user\models; use vendor\base\Model; class TeacherModel extends Model { public function _category($school_id) { /* @var $db \vendor\db\Db */ $db = static::getDb(); $res = $db->select(['id AS user_id', 'username', 'realname', 'gender'])->from(TBL_USER) ->where(...
true
6902f85254ac359a7bf5181cbc72fa6cfeceb529
PHP
comely-io/knit
/src/Directories.php
UTF-8
1,813
2.78125
3
[ "MIT" ]
permissive
<?php /** @noinspection PhpUnusedPrivateFieldInspection */ /* * This file is a part of "comely-io/knit" package. * https://github.com/comely-io/knit * * Copyright (c) Furqan A. Siddiqui <hello@furqansiddiqui.com> * * For the full copyright and license information, please view the LICENSE * file that was distribu...
true
6cb7aa629ab3fdc56196a1613a0b4d6c61b63982
PHP
samuel-lexim/kafla
/wp-content/themes/siennawp/framework/modules/shortcodes/social-feed/lib/twitter/twitter-provider.php
UTF-8
3,659
2.921875
3
[]
no_license
<?php namespace Sienna\Modules\Shortcodes\SocialFeed\Lib\Twitter; use Sienna\Modules\Shortcodes\SocialFeed\Lib\FeedCollection; use Sienna\Modules\Shortcodes\SocialFeed\Lib\ParametrizedProviderInterface; use Sienna\Modules\Shortcodes\SocialFeed\Lib\ProviderInterface; /** * Class TwitterProvider * @package Sienna\Mo...
true
5dc553abf1b414e5538db24f910c4f5be99ecb77
PHP
chekrafiq/Comparateur-de-mutuelle-sant--PHP-MySql
/_kernix_/modules/owner/adm/sub/view.inc.php3
ISO-8859-1
1,739
2.625
3
[]
no_license
<?php $l_sql = "SELECT * FROM $table_owner WHERE idowner = '$p_idowner' "; $c_db->query($l_sql); $obj = $c_db->object_result(); ?> <form method="post" action="<?php print($PHP_SELF); ?>"> <input type="hidden" name="p_idowner" value="<?php print("$p_idowner"); ?>"> <table align="center" width="80%"> <tr> <t...
true
17fefbe8adb7584a568238ccebf92610009b8b67
PHP
doenietzomoeilijk/nayru
/src/Nayru/Serializer.php
UTF-8
751
3.015625
3
[ "Apache-2.0" ]
permissive
<?php /** * Nayru Serializer abstract. * * @package Nayru * @subpackage Serializer * @copyright 2013 Jan-Marten "Joh Man X" de Boer */ namespace Nayru; /** * Serializer. */ abstract class Serializer { /** * Serialize the given data. * * @param mixed $data * @return string */ a...
true
e3d1eaca372aead4d2554dd644b484bb762bbc37
PHP
victorfdt/theliteracycenter
/app/MonthlyReport.php
UTF-8
1,196
2.703125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class MonthlyReport extends Model { const FRESH = 1; const OLD = 2; private $monthName = array( '1' => 'January', '2' => 'February', '3' => 'March', '4' => 'April', '5' => 'May', '6' => 'June', '7' => 'July', '8' ...
true
6d2f02ede5f8dbdc51e9aebee7953c7ea269c6eb
PHP
aldrinmartoq/SBIF
/api-sbif.php
UTF-8
574
2.53125
3
[]
no_license
<?php $url = $_SERVER[REQUEST_URI]; $url = str_replace("/huevapi/SBIF/api-sbif.php/", "", $url); $cachefile = "cache/" . preg_replace("/[^a-zA-Z0-9\s]/", "-", $url); $cachetime = 60 * 60 * 3; // 60 seg * 60 min * 3 = 3 horas if (file_exists($cachefile) && (time() - $cachetime < filemtime($cachefile))) { echo file_g...
true
6132fec9644034a563e11685f546a4c006436dda
PHP
dangbert/where-to-live
/tests/test.php
UTF-8
2,370
3.046875
3
[]
no_license
<?php /* * This file takes a GET request with param geo_id * and returns the data from datausa.io as json */ // before running this, make sure you create a database called "code_fury" and a user "code_fury" $host = "localhost"; $dbname = "code_fury"; $username = "code_fury"; $pas...
true
0d63d80f05020dde9a90069e923567dcc5f60d04
PHP
Alexandr-Penkin/Phalcon-With-AdminLTE
/dms/vendor/hprose/hprose/src/Hprose/Future.php
UTF-8
2,440
2.734375
3
[ "MIT" ]
permissive
<?php /**********************************************************\ | | | hprose | | | | Official WebSite: http://www.hprose.com/ | | ...
true
38678b270ad2b377139f3e545a80ba8c7a7f7b12
PHP
sohaha/ZlsPHP-Migration
/phinx/Phinx/Console/Command/Rollback.php
UTF-8
3,784
2.65625
3
[]
no_license
<?php namespace Phinx\Console\Command; use Z; use Zls\Migration\Argv as InputInterface; class Rollback extends AbstractCommand { public function command(InputInterface $input, OutputInterface $output) { $this->bootstrap($input, $output); $version = parent::$target; $environment = pare...
true
3623ace2cfde2d43d041dff88cf4debd7e5bbc80
PHP
Sayali121/oop
/function_overloading.php
UTF-8
839
3.75
4
[]
no_license
<?php //OOPs Concept in PHP function overloading class Test { public function __construct() { echo "Implement function overloading"; } public function __call($name,$arguments) { if($name=="overload") { $count = count($arguments); switch($count) ...
true
02ffadb50c2478adca8c8ca9bf29689d2212eab8
PHP
ajoybaishya90/swasthyaa
/anm/model/savePatientHealthInfo.php
UTF-8
3,735
2.515625
3
[]
no_license
<?php session_start(); $coughDays = '0'; $feverDays = '0'; $weightDays = '0'; $sweatDays = '0'; $coughsputumDays = '0'; // Health Details if(isset($_POST['coughDays'])){ $coughDays = $_POST['coughDays']; } if(isset($_POST['feverDays'])){ $feverDays = $_POST['feverDays']; } if(i...
true