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
84e4a84b8dc87404b2ae5c0ab4313b35d2c1d499
PHP
Cyc87/Projet4
/model/managers/CommentManager.php
UTF-8
2,306
2.921875
3
[]
no_license
<?php class CommentManager{ private $db; public function __construct(){ try { $this->_db = new PDO('mysql:host=localhost;dbname=projet4;charset=utf8', 'root', 'root'); } catch (Exception $e) { die('Erreur : ' . $e->getMessage()); } } pub...
true
20150bea12ad5ec4a0a9733d16339835ba649e27
PHP
goldstar0415/Staging
/backend/app/Services/SpotsImportFile.php
UTF-8
1,255
2.8125
3
[]
no_license
<?php namespace App\Services; use Illuminate\Foundation\Application; use Maatwebsite\Excel\Excel; use Maatwebsite\Excel\Files\ExcelFile; /** * Class SpotsImportFile * @package App\Services */ class SpotsImportFile extends ExcelFile { protected $delimiter = ','; protected $enclosure = '"'; protected $...
true
9483f957798b610b52a043a315b1544eae725f83
PHP
jkeiski/ploi-php-sdk
/src/Ploi/Exceptions/Resource/Server/Site/DomainAlreadyExists.php
UTF-8
433
2.734375
3
[ "MIT" ]
permissive
<?php namespace Ploi\Exceptions\Resource\Server\Site; use Exception; /** * Class DomainAlreadyExists * * @package Ploi\Exceptions\Resource\Server\Site */ class DomainAlreadyExists extends Exception { /** * DomainAlreadyExists constructor. * * @param string $message */ public function ...
true
61b3726f2db21269005f00a810589b58981f7f4e
PHP
mikehofm/todolist
/includes/user.php
UTF-8
1,287
2.65625
3
[]
no_license
<?php class Model_User extends RedBean_SimpleModel { public function dispense() { $this->bean->created = R::isoDateTime(); } } class User { public static function current() { return isset($_SESSION['user']) ? $_SESSION['user'] : null; } public static function isLoggedIn() { return !empty($_SESSION['us...
true
a65ab56a7dc9ec3532cfc1936a05c2a147d05e09
PHP
abq-at-night/capstone-project
/php/public_html/api/tag/index.php
UTF-8
5,267
2.84375
3
[ "Apache-2.0" ]
permissive
<?php require_once dirname(__DIR__, 3) . "/vendor/autoload.php"; require_once dirname(__DIR__, 3) . "/php/Classes/autoload.php"; require_once dirname(__DIR__, 3) . "/php/lib/xsrf.php"; require_once dirname(__DIR__, 3) . "/php/lib/jwt.php"; require_once dirname(__DIR__, 3) . "/php/lib/uuid.php"; require_once("/var/www/...
true
8e10b8eff51e122055bb1be9d3bba33c5ef7e2fe
PHP
agarwalamit662/StudyChem
/application/controllers/home.php
UTF-8
6,368
2.5625
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* This controller contains the functions /* of the home page. /*******************************************************/ class Home extends CI_Controller { function __construct() ...
true
8907bb2575c98e3a9c6b01907ef2128b669a6e18
PHP
yushengling/wechat_fristShop
/Rice/WeChat/WxLogic.php
UTF-8
6,742
2.515625
3
[]
no_license
<?php /* * author:DMF */ namespace core; class wxLogic{ private $config; public function __construct() { $this->config = require_once ROOT_PATH . '/Conf/Wechat.php'; $this->config['access_token'] = $this->getAccessToken(); } /* * 自定义菜单操作 */ public function menu...
true
b15fd070af5d915d58cb8e238d12fadfa43ae012
PHP
netzindianer/fine
/src/lib/f/c/helper/arrayDiff.php
UTF-8
812
3.109375
3
[ "MIT" ]
permissive
<?php class f_c_helper_arrayDiff { /** * Oblicza roznice pomiedzy tablicami * * <b>Przyklad:</b> * <code> * >> f_c_helper_arrayDiff::helper(array('a', 'b', 'c', 'd'), array('a', 'c', 'e')); * => array('b', 'd') * </code> * * @param array $aMinuend Odjamna * @param...
true
d4cabe972db02ffd0d39a5b7759a30e3bbb8861c
PHP
viper091/fundation6-trab
/buscar.php
UTF-8
716
2.765625
3
[]
no_license
<?php include 'db.php'; $_POST = json_decode(file_get_contents('php://input'), true); $name = $_POST['nome'] ; //resultado da pesquisa /* * procura em 3 colunas(nome, tipo, origem) e retorna as aeronaves mais parecidas com o valor pesquisado * */ if(isset($name)){ $stmt = $conn->prepare("SELECT * from ai...
true
5a5410a9e120388545dd44374fdb18e0794af4c8
PHP
wendeehsu/automation
/bossdb.php
UTF-8
761
2.75
3
[]
no_license
<?php $link = mysqli_connect("localhost", "newuser1", "lab301", "newdb2"); if (!$link) { echo "Error: Unable to connect to MySQL." . PHP_EOL; echo "Debugging errno: " . mysqli_connect_errno() . PHP_EOL; echo "Debugging error: " . mysqli_connect_error() . PHP_EOL; exit; } $query = "SELECT * FROM Client_info"; $re...
true
dde8088b06575a6cf98a59607fb16018a2f2b299
PHP
luckofthelefty/PhpRbac-FE
/api/get_roles_of_perm.php
UTF-8
2,210
2.84375
3
[ "MIT" ]
permissive
<?php // // File: get_roles_of_perm.php // // Rbac->Permissions->roles() // Description // // public mixed Rbac->Permissions->Roles(mixed $Permisson, bool $OnlyIDs = true) // // Returns all Roles assigned to a Permission. // Parameters // // Permission // Accepts one of the following: // int ID // s...
true
1b3fb7837edf010068acc7ef1987acdae3d7b2b0
PHP
stewpidtnlvr/web-proxy
/src/Plugin/LinkModifierPlugin.php
UTF-8
2,211
2.671875
3
[ "MIT" ]
permissive
<?php namespace Dootech\WebProxy\Plugin; use Dootech\WebProxy\Event\ProxyEvent; use Dootech\WebProxy\Parser\ContentParser; use Symfony\Component\DomCrawler\Crawler; /** * LinkModifierPlugin is used to modify all the links in the HTML, CSS, JS documents. */ class LinkModifierPlugin extends AbstractPlugin ...
true
cbf8134e88693723345868ff07dc5efdfa1c3398
PHP
BTSSIO2LRS/bmg
/modele/Bll/Prets.class.php
UTF-8
3,593
3.125
3
[]
no_license
<?php /** * * BMG * © GroSoft, 2016 * * Business Logic Layer * * Utilise les services des classes de la bibliothèque Reference * Utilise les services de la classe PretDal * Utilise les services de la classe Application * * @package default * @author Baptiste et Alicia ,28/09/2016 * @version 1.0 *...
true
aa149d624785a2a855b2e87b5b7908c157dbf8db
PHP
prodigeris/lithuanian-name-addresser
/src/GetNounSuffix.php
UTF-8
452
3.0625
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php namespace Prodigeris\LithuanianNameAddresser; /** * Class GetNounSuffix * * @package Prodigeris\LithuanianNameAddresser */ class GetNounSuffix { const MALE_SUFFIX = 's'; public static function find($noun) { $lastLetter = substr($noun, -1, 1); if ($lastLetter === self::MALE_SUFFI...
true
a60f4fdf48024bc33c99b38982c372ac6c9a8623
PHP
Koudela/eArc-observer
/src/Interfaces/ObserverInterface.php
UTF-8
1,212
2.65625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * e-Arc Framework - the explicit Architecture Framework * psr-14 compatible observer blueprint * * @package earc/observer * @link https://github.com/Koudela/eArc-observer/ * @copyright Copyright (c) 2018-2021 Thomas Koudela * @license http://opensource.org/licenses/MIT MIT Lice...
true
3873b5815600ca039ed6f6dcc0e5db0f4545c3db
PHP
doanmelody2607/ThucHanhPHP
/BTthuchanh/ARRAY/Bai1/index.php
UTF-8
5,315
2.515625
3
[]
no_license
<!doctype html> <html lang="en"> <head> <title>Bài tập 1</title> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="stylesheet" href="form.css"> <!-- Bootstrap CSS --> <link rel="stylesheet" ...
true
ac14e97bb3101dae26d1406a0773434ee0839afb
PHP
netgen-layouts/layouts-core
/lib/View/Renderer.php
UTF-8
719
2.671875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Netgen\Layouts\View; /** * @final */ class Renderer implements RendererInterface { private ViewBuilderInterface $viewBuilder; private ViewRendererInterface $viewRenderer; public function __construct( ViewBuilderInterface $viewBuilder, ViewRende...
true
6fa926607edb55502bdbf9b8f6e32d0edd2e6cf3
PHP
philburnett/football-league-api-demo
/src/Security/JwtUser.php
UTF-8
1,155
2.890625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Security; use Symfony\Component\Security\Core\User\UserInterface; class JwtUser implements UserInterface { /** * @var null|string */ private $username; /** * @var array */ private $roles; /** * JwtUser constructor. * ...
true
11f3574fe0937e5ed3d5d4aec31750f1d6ce3e71
PHP
Fabex/AdstSF2
/src/Fabex/Bundle/Addic7edSubtitleBundle/Provider/Addic7edSubtitleProvider.php
UTF-8
2,265
2.5625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: fabex * Date: 03/05/15 * Time: 01:21 */ namespace Fabex\Bundle\Addic7edSubtitleBundle\Provider; use Fabex\Bundle\AppBundle\Provider\Subtitle\SubtitleProviderInterface; use Goutte\Client; use Symfony\Component\DomCrawler\Crawler; /** * Class Addic7edSubtitleProvider * @...
true
be7269c9dbb08cde81445cfffadb1e930710ef06
PHP
Insolita/php-acme-client
/src/AcmeClient/Application/AccountService.php
UTF-8
12,898
2.515625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace AcmeClient\Application; use AcmeClient\ClientInterface; use AcmeClient\Domain\Model\Account\Account; use AcmeClient\Domain\Model\Account\AccountFactory; use AcmeClient\Domain\Model\Account\AccountRepository; use AcmeClient\Domain\Model\Account\Id as AccountId; use AcmeClient\D...
true
4df46515fdce65d3155903c9ff734990c182e550
PHP
geraldofjunior/php-fp-calc
/tests/Point_Calc_Php/entities/counted_function/CountedFunctionTest.php
UTF-8
2,508
2.625
3
[ "Apache-2.0" ]
permissive
<?php use Point_Calc_Php\Entities\Counted_Function\CountedFunction; use Point_Calc_Php\Entities\Counted_Function\ICountedFunction as CountedFunction_interface; use Point_Calc_Php\Entities\Counted_Function\CountedExternalInterfaceFileFunction; use Point_Calc_Php\Entities\Counted_Function\CountedInternalLogicalFileFuncti...
true
f76b2e7ce8d46ffddee89eb0fb649563ba8ed089
PHP
mckernanin/divi-flickity
/divi-flickity.php
UTF-8
1,922
2.53125
3
[]
no_license
<?php /* Plugin Name: Divi Flickity Plugin URI: https://github.com/mckernanin/divi-flickity Description: Replace Divi slider with a flickity one Author: Kevin McKernan Version: 1.0.0 Author URI: https://mckernan.in Text Domain: divi-flickity Domain Path: /languages/ // Released under the GPL license // http://www.open...
true
000bc05eeddf44a32886bbade15fbc7db48605cd
PHP
phuangpila/hr
/include/db.php
UTF-8
4,436
2.703125
3
[]
no_license
<?php //include('include/connect.php'); //ฟังก์ชั่น insert การใช้งาน /* $data = array( "type_name"=>$_POST["type"], ); insert("tb_typepro",$data);*/ function insert($table,$data,$id="") { $fields=""; $values=""; $i=1; foreach($data as $key=>$val) { if($i!=1) { $fields.=", "; $values.=", "; } $fields.="$key"...
true
7d92f76ac699ff4db05e5fa7dda1ece55425b4a4
PHP
mbabenko21/likedimion
/MB/Glor/Params/AbstractList.php
UTF-8
2,960
3.109375
3
[]
no_license
<?php namespace MB\Glor\Params; /** * Created by JetBrains PhpStorm. * User: mbabenko21 * Date: 20.12.12 * Time: 17:02 * To change this template use File | Settings | File Templates. */ use Iterator; use MB\I\ExportableInterface; abstract class AbstractList implements ExportableInterface, Iterator { /** ...
true
6799e67f58ce91b56a31817dd356877ae59fe4ba
PHP
phossa/phossa-config
/tests/src/Phossa/Config/ConfigTest.php
UTF-8
2,834
2.59375
3
[ "MIT" ]
permissive
<?php namespace Phossa\Config; /** * Config test case. */ class ConfigTest extends \PHPUnit_Framework_TestCase { /** * @var Config */ private $object; /** * Prepares the environment before running a test. */ protected function setUp() { parent::setUp(); $this...
true
01699ea641bea4d7ffad58e87baa1ccf1e42dfc5
PHP
davidkyalo/TeaPress
/src/Database/Capsule.php
UTF-8
1,064
2.78125
3
[]
no_license
<?php namespace TeaPress\Database; use TeaPress\Contracts\Core\Container; use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Database\Capsule\Manager as BaseCapsule; class Capsule extends BaseCapsule { protected $dispatcher; /** * Create a new database capsule manager. * * @param \Illuminate\Contai...
true
531874124b4302fdbcf9fe5ce98940ff902215c7
PHP
FrontasticGmbH/common
/src/php/HttpClient/Logger.php
UTF-8
2,532
2.6875
3
[]
no_license
<?php namespace Frontastic\Common\HttpClient; use Frontastic\Common\HttpClient; use GuzzleHttp\Promise\PromiseInterface; use Psr\Log\LoggerInterface; /** * Logs HTTP request to our logger together with some metadata. */ class Logger extends HttpClient { /** * @var HttpClient */ private $aggregate...
true
fe76b69d929db53e29e75ba41f91518207924fea
PHP
GreyInori/sup
/application/testing/controller/api/ErrorWhere.php
UTF-8
2,930
2.625
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2019/9/8 * Time: 23:07 */ namespace app\testing\controller\api; use think\Controller; /** * Class ErrorWhere * @package app\testing\controller\api */ class ErrorWhere extends Controller { private $where = array( 'st.trust_id' => ['st....
true
7132e47056313e7a92fd53167b5d4027f6b48ffa
PHP
xrogaan/taplod
/library/Taplod/Templates.php
UTF-8
7,189
2.78125
3
[]
no_license
<?php /** * @category Taplod * @package Taplod_Templates * @copyright Copyright (c) 2009, Bellière Ludovic * @license http://opensource.org/licenses/mit-license.php MIT license */ /** * @author Bellière Ludovic * @category Taplod * @package Taplod_Templates * @copyright Copyright (c) 2009, Bellière Ludovic *...
true
9704dc9340ef81f2bdd3fa6bf6b84bb78579fd42
PHP
victorykong/php-learn-native
/语言参考/类与对象(重点)/对象复制(clone).php
UTF-8
731
3.625
4
[]
no_license
<?php class MyObject { public $arr = [1, 2, 3]; public $arr2 = [ 'foo' => 'bar', 'ref' => [ 0, 1 ] ]; } // $ins = new MyObject(); // $clone = $ins; // $ins->arr[] = 4; // var_dump($ins); // var_dump($clone); // $ins = new MyObject(); // $clone = clone $in...
true
216b7e852feb93877d1006ba2eaea65ba2c22a67
PHP
irazasyed/telegram-bot-sdk
/src/Objects/Venue.php
UTF-8
1,019
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Telegram\Bot\Objects; /** * Class Venue. * * @link https://core.telegram.org/bots/api#venue * * @property Location $location Venue location. * @property string $title Name of the venue. * @property string $address Address of the venue. * @property st...
true
8a41ed5fab438418eae01c0aab05dfd4726f87c5
PHP
suporte-avdesign/store-src
/app/Repositories/Web/OrderRepository.php
UTF-8
2,768
2.703125
3
[]
no_license
<?php namespace AVD\Repositories\Web; use AVD\Models\Web\Order as Model; use AVD\Interfaces\Web\OrderInterface; class OrderRepository implements OrderInterface { public $model; /** * Create construct. * * @return void */ public function __construct(Model $model) { $thi...
true
23989623df132ce29a77134c90f6a612da4e7695
PHP
ub-spectrum/Crowdsource-Data-Reviews
/pdfsplitandstore/blobdemo.php
UTF-8
4,077
2.921875
3
[]
no_license
<?php class BobDemo { const DB_HOST = 'localhost'; const DB_NAME = 'test'; const DB_USER = 'root'; const DB_PASSWORD = ''; /** * PDO instance * @var PDO */ private $pdo = null; /** * Open the database connection */ public function __construct() { // ...
true
565d9b087127343850caf356b422799fc92b09aa
PHP
MahmoudFahmy5210/Profile-system-task3
/registerBack.php
UTF-8
3,913
2.703125
3
[]
no_license
<?php session_start(); include 'ConnDB.php'; $usernameerr=$emailerr=$passerr=$fullnameerr=$aderr=$agerr=$facultyerr=$univererr=""; if(isset($_POST['submit'])) { $fullname=$_POST['fullname']; $email=$_POST['email']; $username=$_POST['username']; $password=$_POST['password']; $address=$_POST['address']; $age=$_POST['age...
true
0a13caeb9656d2d3740768e8e09f6855de93756f
PHP
omarali-me/stagehand-fsm
/tests/StateMachine/StateMachineTest/CallableGuardEvaluator.php
UTF-8
775
2.515625
3
[ "BSD-2-Clause" ]
permissive
<?php namespace Stagehand\FSM\StateMachine\StateMachineTest; use Stagehand\FSM\Event\EventInterface; use Stagehand\FSM\StateMachine\StateMachineInterface; use Stagehand\FSM\Transition\GuardEvaluatorInterface; /** * @since Class available since Release 3.0.0 */ class CallableGuardEvaluator implements GuardEvaluator...
true
7f5efe67fbda7eebc4ed08fdb5f6976e23856cd6
PHP
AlexandrTs/some-code
/app/Services/API/APIService.php
UTF-8
7,339
2.515625
3
[]
no_license
<?php namespace App\Services\API; use App\Exceptions\InvalidConfigurationException; use App\Facades\CsEvent; use Illuminate\Http\Client\Factory; use Illuminate\Http\Client\PendingRequest; use Illuminate\Http\Client\Request; use Illuminate\Http\Client\Response; use App\Contracts\APILoggerInterface; use App\Contracts\A...
true
62483d4398f6e1e228a5a03c23792e5d8b363eb2
PHP
Novando/rokunensa_web
/database/factories/ProductFactory.php
UTF-8
1,148
2.6875
3
[]
no_license
<?php namespace Database\Factories; use App\Models\Product; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Str; class ProductFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Product::class; ...
true
b65c6d0f8b86579e718428a9bfe3b5920ae4edc0
PHP
gilshwartz/appserver
/src/AppserverIo/Appserver/PersistenceContainer/PersistenceContainerValve.php
UTF-8
3,483
2.609375
3
[]
no_license
<?php /** * \AppserverIo\Appserver\PersistenceContainer\PersistenceContainerValve * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * * PHP version 5 * * @autho...
true
c0d5af213138d5336a6982613d382410d7ea4524
PHP
SebastianVieghofer/Prefa-Probebeispiel
/Models/CompanyModel.php
UTF-8
439
3.15625
3
[]
no_license
<?php class CompanyModel{ private $CompanyId; private $CompanyName; public function getCompanyId(){ return $this->CompanyId; } public function getCompanyName(){ return $this->CompanyName; } public function setCompanyId(int $CompanyId){ $this->CompanyId = $Compan...
true
98c26a97b417ec0c5ffaae607f9adef3587bcfba
PHP
KeerthanaHK/Grocery-store-management-
/Grocery/process.php
UTF-8
737
2.8125
3
[ "MIT" ]
permissive
<?php //Get values passed from form in login.php file $username = $_POST ['user']; $password = $_POST ['pass']; //to prevent mysql injection $username = stripcslashes($username); $password = stripcslashes($password); //connect to the sever and select database $db = mysqli_connect("localhost", "root", ""...
true
442336a534fc8853ee1be2c71a624441eecf006a
PHP
irpsv/ExpertSystem
/es1/protected/modules/manager/controllers/QuestController.php
UTF-8
5,239
2.90625
3
[]
no_license
<?php class QuestController extends CrudController { public function getClass() { return new Quest(); } public function actionTest() { $this->render('test'); } /** * Редактирование / добавление записи * @param integer $id идентификатор записи */ public f...
true
3ab7a53ad2168806bc69f195056f23c478e58cbd
PHP
locphan57910/laravel-solid-example
/app/Http/Controllers/VideoGenerator/VideoGenerateController.php
UTF-8
928
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\VideoGenerator; use App\Http\Controllers\Controller; use App\Http\Requests\VideoGenerateRequest; use Illuminate\Http\JsonResponse; use App\Http\Services\VideoGenerator\VideoGeneratorServiceInterface; class VideoGenerateController extends Controller { /** * Video generator...
true
2ceaeb695fc3663e7cf383a04e94256f1ffad46e
PHP
zhangxiangliang/swbbx
/database/seeds/SkillsWumingFlySeeder.php
UTF-8
2,017
2.53125
3
[ "MIT" ]
permissive
<?php use App\Models\Map; use App\Models\Npc; use App\Models\Skill; use Illuminate\Support\Carbon; use Illuminate\Database\Seeder; class SkillsWumingFlySeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $map = Map::where('name', '无...
true
9e09e074ad86661b43119b81354ee4f2a202607d
PHP
openclassify/streams-platform
/src/Ui/Form/Component/Action/ActionTranslator.php
UTF-8
754
2.625
3
[ "MIT" ]
permissive
<?php namespace Anomaly\Streams\Platform\Ui\Form\Component\Action; use Anomaly\Streams\Platform\Support\Translator; use Anomaly\Streams\Platform\Ui\Form\FormBuilder; class ActionTranslator { /** * The translator utility. * * @var Translator */ protected $translator; /** * Create...
true
5e8111454ea90a7399ffb27311473286e105268a
PHP
JulsGB/Ave
/BDEstaciones.php
UTF-8
896
2.765625
3
[]
no_license
<?php /** * @author AveTEAM if (0 > version_compare(PHP_VERSION, '5')) { die('This file was generated for PHP 5'); } /** * includes */ require_once ("./BDatosConexion.php"); /** * clase Usuario * representa todos los usuarios de la aplicacion */ class BDEstaciones { private $BD = null; //creamos una un objeto de...
true
0994c1724bde1e6b05744fdf4b4e0103a4285da4
PHP
mobilerider/mobilerider-client-php
/lib/Mr/Exception/MultipleServerErrorsException.php
UTF-8
1,859
2.75
3
[]
no_license
<?php namespace Mr\Exception; use Mr\Api\Model\ApiObject; use Mr\Api\AbstractClient; /** * MultipleServerErrorsException Class file * * PHP Version 5.3 * * @category Class * @package Mr\Exception * @author Michel Perez <michel.perez@mobilerider.com> * @license Copyright (c) 2013 MobileRider Networks LLC...
true
1fdbc2289cd986242836946bd65459a08c64c0fd
PHP
hashbangcode/sitemap_checker
/tests/Result/ResultTest.php
UTF-8
1,079
2.609375
3
[ "MIT" ]
permissive
<?php namespace Hashbangcode\SitemapChecker\Test\Result; use Hashbangcode\SitemapChecker\Result\Result; use Hashbangcode\SitemapChecker\Url\Url; use PHPUnit\Framework\TestCase; class ResultTest extends TestCase { public function testResultCreation() { $url = new Url('https://www.example.com/'); $result = ...
true
6c2ca7dd050b32574d10192bee0ab9d8f4b6982d
PHP
itedev/FormBundle
/Util/MixedEntityUtils.php
UTF-8
2,378
2.625
3
[]
no_license
<?php namespace ITE\FormBundle\Util; use Symfony\Component\Form\Extension\Core\View\ChoiceView; /** * Class MixedEntityUtils * * @author c1tru55 <mr.c1tru55@gmail.com> */ class MixedEntityUtils { /** * @param string $value * @param string $alias * @return string */ public static funct...
true
7955a1a2da110ea653afaafa66eb776b790e22de
PHP
uglyoldbob/web-admin
/web/include/contacts.php
UTF-8
29,360
2.765625
3
[ "MIT" ]
permissive
<?php #TODO : add capability to delete password of a user class contacts { protected $contact_list; //holds the list of contact information public $contact; protected $start_page; function __construct() { //load the page number if (!(array_key_exists("page", $_GET))) { $this->start_page = 0; } else...
true
e7bacf4926af196899be7f7327c41d4e30837348
PHP
ale-mendoza/logicav2
/edecision/nombremes.php
UTF-8
950
2.90625
3
[]
no_license
<?php //evalua el mayor de 2 numeros, los casos pueden ser: //uno de los numeros es mayor //ambos son iguales //autor: balduinorollins $xdianumero = $_POST['dianumero']; echo "<p>El numero digitado fue: " . $xdianumero . "<br>"; if($xdianumero ==1 ){ echo "Corresponde a Enero"; }elseif($xdianumero ==2){ echo "Corres...
true
250e422c6b933cc6e232be0ea0d76c11dd9389b5
PHP
jrinard/Launch-PhoneFix
/public_html/system/libraryold/form/form_hidden.php
UTF-8
2,017
2.96875
3
[]
no_license
<?php /** * object for the form submit element */ class form_hidden extends form_base{ function __construct($name, $value = ''){ // call parent construct so object is setup correctly parent::__construct(); // custom configuration $this->type = 'hidden'; $this->name ...
true
be3369eddae0a6a2fc995cc1cd122ad9cfb3b2d7
PHP
vaersaagod/geomate
/src/models/RedirectInfo.php
UTF-8
861
2.59375
3
[ "MIT" ]
permissive
<?php /** * GeoMate plugin for Craft CMS 4.x * * Look up visitors location data based on their IP and easily redirect them to the correct site.. * * @link https://www.vaersaagod.no * @copyright Copyright (c) 2022 Værsågod */ namespace vaersaagod\geomate\models; use craft\base\Model; use craft\models\Site;...
true
40d4ddfdba087082159f99322aee8eec6d8a86a2
PHP
digits21/smarteventproject-master
/config/config.php
UTF-8
5,389
3.25
3
[]
no_license
<?php /** * le fichier config.php regroupe toutes les fonctions en rapport avec la base de donnees * le fait de mettre toutes les fonctions dans ce fichier me permet de faciliter les futurs modifications */ /** * cette fonction retourne une variable de la connexion a la base de donnees ...
true
a8cdf9e786f253a9129571c6ca917180cf9c531c
PHP
Josiah/IncidentReporting
/src/JJs/IncidentReporting/Error/Handler.php
UTF-8
2,670
3.171875
3
[]
no_license
<?php namespace JJs\IncidentReporting\Error; use JJs\IncidentReporting\ReporterInterface; /** * Error Handler * * Generates incidents when php errors are triggered. * * @api * @author Josiah <josiah@jjs.id.au> */ class Handler { /** * Reporter * * @var ReporterInterface */ protect...
true
ac2589dd886c57066430eff5c9d4e0d8e3dd1f14
PHP
boyu2011/bob-world
/admin/output_fns.php
UTF-8
3,181
2.609375
3
[]
no_license
<?php include_once '../post_categories_fns.php'; function do_admin_html_header () { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Administrator.</title> </head> <body> <h1>Administrator</h1> <?php } function do_html_footer ()...
true
88d29649acae504f315fa768e2bd38380026a15e
PHP
edu-ofernandes/Uc5
/phpbasico/gamecontroler/admin/Classes/Atividade.php
UTF-8
1,110
3.09375
3
[ "MIT" ]
permissive
<?php // herança de ClasseBase // conexao com a outra pagina e classe require_once("ClasseBase.php"); require_once("JogoUser.php"); class Atividade extends JogoUser { // propriedades private $id; private $data; private $pontuacao; private $tempo; ...
true
24ec8d3a1467fe4889519275ddb749036610580b
PHP
RockyBin/yz-front
/app/Modules/ModuleShop/Libs/OpLog/OpLog.php
UTF-8
2,199
2.59375
3
[]
no_license
<?php /** * 操作记录抽象类 * Created by wenke. */ namespace App\Modules\ModuleShop\Libs\OpLog; use App\Modules\ModuleShop\Libs\Constants; class OpLog { /** * 记录操作日志 * * @param integer $type 日志类型 * @param string $target 操作对象,如操作订单,那应该是订单ID,如操作会员,那应该是会员ID * @param $beforeData 变化前数据 * @p...
true
753219659398206815bfc0d2e64ac3c3dd7bb5fa
PHP
LucasBullen/gitOutside
/api.php
UTF-8
8,710
2.578125
3
[ "MIT" ]
permissive
<?php error_reporting(E_ALL); ini_set('display_errors', '1'); $dbh = null; $CONSUMER_KEY = 'mmLVht1-g298aTsgU2oPUw'; $CONSUMER_SECRET = 'iVuj0D5jnRuwXmradkhE6EoYBxc'; $TOKEN = 'Az9oQdcqm_ch8ZG-KjZ-hq82FXSBq_I9'; $TOKEN_SECRET = 'KWJw7eCaMEojK1uBn5T0cpOqQaI'; $API_HOST = 'api.yelp.com'; $DEFAULT_TERM = '...
true
7eedebba24ceab754a00682b01ee0912e0b57534
PHP
orchestral/resources
/src/Factory.php
UTF-8
3,083
2.921875
3
[ "MIT" ]
permissive
<?php namespace Orchestra\Resources; use Closure; use Illuminate\Support\Str; use InvalidArgumentException; class Factory { /** * Dispatcher instance. * * @var \Orchestra\Resources\Dispatcher */ protected $dispatcher; /** * Response instance. * * @var \Orchestra\Resourc...
true
9026a051ed23f2eecfce08bfd80c49ae719dd438
PHP
GetX113/audits_interne
/application/model/processus_model.php
UTF-8
11,317
2.859375
3
[ "Apache-2.0" ]
permissive
<?php class processusModel { /** * @param object $db A PDO database connection */ function __construct($db) { try { $this->db = $db; } catch (PDOException $e) { exit('Database connection could not be established.'); } } public function getA...
true
cce93e62b5b12beb9823baea5aaad176b047079f
PHP
sanjay7500/sanjay.github.io
/forloop.php
UTF-8
93
3.1875
3
[]
no_license
<?php $a=10; $b=20; if($a>$b) { echo "A is greter"; } else { echo "B is greter"; } ?>
true
5fc2e3c82a95b21377418857ff01599e66234baa
PHP
pablovi97/DSW
/SegundoTrimestre(PHP)/ProyectoSitios/clavesalumnos.php
UTF-8
1,610
2.828125
3
[]
no_license
<?php //$clave . "-" .$correo. "-" .$num $clave = $_POST['clave']; $res = leerarray($clave); //echo($res); if ($res != -1) { //echo ("acertado!"); if($res == 0){ header('location:elecciondestios.php?orden=' . $res); die(); }else{ //se envian los datos al index por la url ...
true
1158f4fb0672f0ef130612caddd7a768f613a94b
PHP
bayuindra091191GMG/carefast
/app/Models/AddressCountry.php
UTF-8
858
2.515625
3
[ "MIT" ]
permissive
<?php /** * Created by Reliese Model. * Date: Wed, 17 Jul 2019 13:35:27 +0700. */ namespace App\Models; use Reliese\Database\Eloquent\Model as Eloquent; /** * Class AddressCountry * * @property int $id * @property string $code * @property string $name * @property string $phone_code * @property string $cu...
true
8be08a5ffa54d981f5405b47b6edf23d76f78da7
PHP
LamboDWJ/P4
/index.php
UTF-8
6,202
2.515625
3
[]
no_license
<?php session_start() ?> <?php require('controller/frontend.php'); try { if (isset($_GET['action'])) { /* Bouton premier chapitre */ if ($_GET['action'] == 'firstChap') { firstChap(); } /* Bouton dernier chapitre */ elseif ($_...
true
3c46ba333c60d3f25994d50b823103024e5df4cd
PHP
beshoo/iost-webapp
/webapp-test/protected/extensions/translate/IOSTranslate.php
UTF-8
1,417
2.65625
3
[ "MIT" ]
permissive
<?php class IOSTranslate extends CApplicationComponent { public $dict; public $dictDir; public $validLang = array('en', 'zh'); public $lang = 'en'; public $cookieName = 'lang'; public function init() { $this->initLang(); $this->loadDict(); } protected function...
true
e877c950b89d48ba9dab296e32de3927e5c23e6b
PHP
thewakingsands/cafemaker-web
/src/Service/Maps/Mappy.php
UTF-8
3,323
2.75
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
<?php namespace App\Service\Maps; use App\Entity\MapPosition; use App\Repository\MapPositionRepository; use Doctrine\ORM\EntityManagerInterface; class Mappy { /** @var EntityManagerInterface */ private $em; /** @var MapPositionRepository */ private $repository; public function __construct(Entity...
true
c4b6d376f3e21fb5ec957a4c8e2ac6554330830a
PHP
luiscarlosjunior/aulas-graduacao
/programming/php/05-pdf/mpdf-8.0.11/mpdf/src/Barcode/I25.php
UTF-8
3,181
3.03125
3
[ "MIT", "GPL-2.0-only" ]
permissive
<?php namespace Mpdf\Barcode; /** * Interleaved 2 of 5 barcodes. * Compact numeric code, widely used in industry, air cargo * Contains digits (0 to 9) and encodes the data in the width of both bars and spaces. */ class I25 extends \Mpdf\Barcode\AbstractBarcode implements \Mpdf\Barcode\BarcodeInterface { /** *...
true
b7216fd1e8c215774b4f7e89bc9151f44be77181
PHP
rullywahyubintoro/Topsis
/topsis.php
UTF-8
4,207
2.609375
3
[]
no_license
<?php /** * Sumber : https://tugasakhir.id/contoh-perhitungan-spk-metode-topsis/ */ /** Data */ $kriteria = [ [ 'kode' => 'c01', 'nama' => 'Jumlah Penghasilan Orangtua', 'atribut' => 'cost', /** cost -> Semakin kecil nilai semakin bagus */ 'bobot' => 5, ], [ 'kode' => 'c02', 'nama' => '...
true
5525214884fd04cd326ef98bfeae15a8cc18fe76
PHP
aldzgo/my-laravel
/database/migrations/2021_09_17_094820_create_students.php
UTF-8
1,024
2.65625
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateStudents extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('Students', function...
true
196cdf3e03a985f3ed89a2bb850af8da1865a327
PHP
hostkerala/dkshtest-2
/yiitest/app/modules/user/controllers/AuthController.php
UTF-8
7,019
2.59375
3
[]
no_license
<?php /** * AuthController * * @package application.modules.user.controllers * @version 0.1 * @author Ionut Titei */ class AuthController extends Controller { public $layout = '//layouts/main'; /** * User Login */ public function actionLogin() { $this->breadcrumbs = array('Login'); ...
true
4eedd87aa2016533ad2d880761ace8740ad57699
PHP
anac4mily/amigo
/contact.php
UTF-8
1,051
2.6875
3
[]
no_license
<?php $name= isset($_POST["inputname"]) ? $_POST["inputname"] : ''; $email= isset($_POST["inputemail"]) ? $_POST["inputemail"] : ''; $phone= isset($_POST["inputphone"]) ? $_POST["inputphone"] : ''; $company= isset($_POST["inputcompany"]) ? $_POST["inputcompany"] : ''; $subject= isset($_POST["inputsubject"]) ? $_POST["...
true
c46b0366ec3ca1bd7d5f7e9e1946af608ffc45b5
PHP
efraxpc/api-mercadopago-php-test
/registra_fat.php
UTF-8
1,727
2.828125
3
[]
no_license
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); require_once 'conn/conn.php'; // Aqui voc� tras junto com POST ou GET o ID do produto para montar a fatura // Para buscar por ex o valor e o produto que � // Aqui tamb�m voc� tras o id do usuario que est� gerando est...
true
bd8138811455aff0a32b934e5ca7d6a02d497d1c
PHP
rajeshkoirala/NewPark
/app/Repositories/NewsRepository.php
UTF-8
4,212
2.671875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: User * Date: 3/24/2017 * Time: 4:08 PM */ namespace App\Repositories; use DB; class NewsRepository { public function getSeo($newsID) { $sql = "SELECT * FROM seo WHERE type_id='$newsID' and type='NEWS'"; $seoDetail = DB::select($sql); ret...
true
5957d4a406e2e4f38eda6c11dd180d55b538e40f
PHP
marzukipilliang/royal-inventory
/application/helpers/mip_helper.php
UTF-8
1,588
3.015625
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); function checkLogin() { $obj = null; if (isset($_SESSION['admin'])) $obj = $_SESSION['admin']; if (!$obj) header ("Location:".base_url('Dashboard/login')); return $obj; } /** * Function: sanitize * Returns a sanitized string, typical...
true
537f38f114e48af1fe9469ce596bc35cf331a804
PHP
Sporkyy/leetcode
/1042-flower-planting-with-no-adjacent.php
UTF-8
2,152
3.578125
4
[]
no_license
<?php // 1042. Flower Planting With No Adjacent // https://leetcode.com/problems/flower-planting-with-no-adjacent/ // Runtime: 296 ms, faster than 100.00% of PHP online submissions // for Flower Planting With No Adjacent. // Memory Usage: 35.1 MB, less than 100.00% of PHP online submissions // for Flower Planting Wit...
true
1cba2ccff1e9d284b52066d7ae417700a053b48e
PHP
mem-memov/phprussia2019
/service/src/Rent/CheckedRent.php
UTF-8
437
2.8125
3
[]
no_license
<?php namespace CarSharing\Rent; class CheckedRent { private $user; private $car; private $rent; public function __construct(User $user, Car $car, Rent $rent) { $this->user = $user; $this->car = $car; $this->rent = $rent; } public function start(): void ...
true
148abca05f62a142604917b79c63b36b2d85968d
PHP
pierreprime/sf-nmap-demo
/src/Form/VanillaRequest.php
UTF-8
1,630
2.765625
3
[]
no_license
<?php namespace App\Form; use Symfony\Component\Validator\Constraints as Assert; class VanillaRequest { /** * @Assert\Ip() */ public $fromIp; /** * @Assert\Type( * type="integer", * message="First port must be an integer" * ) * @Assert\Range( * min=1, * m...
true
2d2e1e754ae0ed58b6c90e141aebc0714b20121b
PHP
sujanshsh/basic-php-framework
/system/framework/App.php
UTF-8
1,146
3.078125
3
[ "MIT" ]
permissive
<?php /** * @author Sujan Shakya */ class App { private $singletons = []; private $singleton_params = []; private $singleton_instances = []; public function setSingletons($array) { if(is_array($array)) { foreach($array as $key => $value) { i...
true
88406669862cb3ee6a7d80cc57fdebe982a278b8
PHP
CLumini/record
/controllers/detail_controller.php
UTF-8
954
2.71875
3
[]
no_license
<?php require "../src/connexion_bdd.php"; $disc_id = $_GET['disc_id']; $db = connexion_base(); $requete = "SELECT disc_id, disc_picture, disc_title, artist.artist_name, artist.artist_id, disc_year, disc_label, disc_genre, disc_price FROM disc join artist on artist.artist_id = disc.artist_id WHERE artist.artist_id=di...
true
8795e3dd6c4502568b47783b3c34f061d931f93e
PHP
figdice/figdice
/src/figdice/classes/Plug.php
UTF-8
757
3.125
3
[ "MIT" ]
permissive
<?php /** * @author Gabriel Zerbib <gabriel@figdice.org> * @copyright 2004-2016, Gabriel Zerbib. * @version 2.3 * @package FigDice */ namespace figdice\classes; class Plug { /** * @var ViewElementTag */ private $tag; /** * @var string */ private $renderedString; /** * @var bool */ private $appen...
true
03eb26255fe16fbd1d931f519434745db6e6243c
PHP
robinmackenzie/voynich-api
/api/v1/requestmanager.php
UTF-8
1,689
2.890625
3
[ "MIT" ]
permissive
<?php class apiRequestManager { const DSN = 'sqlite:requests.sqlite'; const REQUEST_FACT = 'requests'; const INSERT_SQL = 'insert into '.self::REQUEST_FACT.' (ip, ts, url) values (?, ?, ?)'; const COUNT_SQL = 'select count(ip) from '.self::REQUEST_FACT.' where ip=:ip and ts between :start and :end'; const...
true
279f1ea6cad9dc6f8da53781f5d16694594330ad
PHP
markeilander/validator
/src/LaravelValidator.php
UTF-8
1,527
2.9375
3
[ "MIT" ]
permissive
<?php namespace Eilander\Validator; use Eilander\Validator\Contracts\ValidatorInterface; use Illuminate\Validation\Factory; /** * Class LaravelValidator. */ abstract class LaravelValidator implements ValidatorInterface { protected $errors; protected static $rules; protected static $messages = []; ...
true
488406761935f4e6b1992c6e271f0c04f85a354a
PHP
OskarStark/continuouspipe
/api/src/ContinuousPipe/CloudFlare/AnnotationManager/ChainAnnotationManager.php
UTF-8
1,836
2.609375
3
[ "Apache-2.0" ]
permissive
<?php namespace ContinuousPipe\CloudFlare\AnnotationManager; use ContinuousPipe\Pipe\DeploymentContext; use Kubernetes\Client\Exception\Exception; use Kubernetes\Client\Model\KubernetesObject; class ChainAnnotationManager implements AnnotationManager { /** * @var array|AnnotationManager[] */ privat...
true
d54c1133ba399006d7fdeb6901d202f5c0d24c5e
PHP
joe-bq/html5
/Php_PatternPractices/AdvancedFeatures/InterfaceBasics.php
UTF-8
212
2.9375
3
[]
no_license
<?php /* demonstrate the interfaces and others */ interface Chargeable { public function getPrice(); } class ShopProduct implements Chargeable { public function getPrice() { return 1; } } ?>
true
51e6bedce00f8eac9f5c18af823931a41cce2237
PHP
radford/phar-composer
/src/Clue/PharComposer/Package.php
UTF-8
2,626
2.625
3
[ "MIT" ]
permissive
<?php namespace Clue\PharComposer; use Symfony\Component\Finder\SplFileInfo; use Clue\PharComposer\Bundler\Explicit as ExplicitBundler; use Clue\PharComposer\Bundler\Complete as CompleteBundler; use Clue\PharComposer\Package\Autoload; class Package { public function __construct(array $package, $directory) {...
true
a81cfd050f9504dbcb479ee862e76c2408b8b5e4
PHP
axypro/config
/nodes/Data.php
UTF-8
1,703
2.9375
3
[ "MIT" ]
permissive
<?php /** * @package axy\config\nodes */ namespace axy\config\nodes; use axy\config\IRootNode; /** * The node of array * * @author Oleg Grigoriev <go.vasac@gmail.com> */ class Data extends Base { /** * The constructor * * @param array $data * @param string $path * @param IRootNode ...
true
05f75e76ff0bce9e1a4dd99aaf8d5ad15fe34132
PHP
aigletter/oop
/patterns/Observer/OrderObserverSpl.php
UTF-8
260
2.921875
3
[]
no_license
<?php namespace Patterns\Observer; class OrderObserverSpl implements \SplObserver { /** * @param OrderSpl $order */ public function update(\SplSubject $order) { echo 'Status is changed to ' . $order->getStatus() . PHP_EOL; } }
true
4be4464f673ca765435621c3a1ba3390c70a3723
PHP
tolan/SmartHome
/server/Common/Utils/Timer.php
UTF-8
3,287
3.140625
3
[ "MIT" ]
permissive
<?php namespace SmartHome\Common\Utils; use DI\Container; /** * This file defines class for measure timing. * * @author Martin Kovar <mkovar86@gmail.com> */ class Timer { /** * Container * * @var Container */ private $_container; /** * Start time * * @var float ...
true
ac5e3def06205ff4c61275faf40844f318ab8570
PHP
yokoyam49/twitterBot
/twitterapi/media/media_upload.php
UTF-8
1,494
2.5625
3
[]
no_license
<?php class media_upload { private $twObj; private $ApiUrl = 'media/upload'; private $Response = null; private $Options = array(); private $media_data = null; private $media = null; public function __construct($twObj) { $this->twObj = $twObj; } public function setMed...
true
be9269e32790613619a65c9d7c77b90603b16f79
PHP
webenfold/cyzer-jdb
/example/codes/add-row-code.php
UTF-8
441
2.578125
3
[ "MIT" ]
permissive
<pre><code><?php echo htmlspecialchars('<?php // Requiring JDB Library require_once "JDB/JDB.php"; // Setting up DB directory $jdb = new CYZ_JDB(__DIR__."/db_directory/"); // Initialize DB $jdb->db_init("db_name"); // Table Name $table_name = "table_name"; // Create Table $jdb->add_table($table_name); // Row Dat...
true
e23ad7b1beaf840c9ba7d4018276d65c1fa13c10
PHP
albanducos87/ProjetTuteure
/ProjetTuteure/classes/Ville.class.php
UTF-8
992
3.03125
3
[]
no_license
<?php class Ville{ private $idVille; private $libVille; private $idPays; public function __construct($valeurs = array()) { if (!empty($valeurs)) $this->affecte($valeurs); } public function affecte($donnees){ foreach ($donnees as $attribut => $valeur){ swit...
true
654fc2ef19d66d4f9a8eff6d3a03a8328cfca7c2
PHP
AmphiBee/wpgb-extended
/src/Models/Database.php
UTF-8
942
2.828125
3
[ "MIT" ]
permissive
<?php namespace AmphiBee\WpgbExtended\Models; /** * Getter * * Abstract class for querying Gridbuilder ᵂᴾ database * * @link https://github.com/AmphiBee/wpgb-extended/ * @author amphibee * @link https://amphibee.fr * @version 1.0 * @license https://opensource.org/licenses/mit-license.html MIT License ...
true
0806753870df228e073d617a94bd060512bc1263
PHP
alexKostomarov/insta
/app/Mysql.php
UTF-8
995
2.90625
3
[]
no_license
<?php namespace App; class Mysql{ protected $host, $user, $password, $dbname; private static $instance = null; private function __construct() { $config = require ("config.php"); $this->host = $config['db']['host']; $this->user = $config['db']['user']; $this->p...
true
f7419f8a6be8394ffb213847da8159b833e8a81d
PHP
UFOP-CSI477/2016-02-atividades-kmdeoliv
/atividade01/app/Model/Exame.php
UTF-8
670
2.53125
3
[]
no_license
<?php /* Exames são solicitados por procedimentos/paciente. */ class Exame extends AppModel{ public $name = 'Exame'; public $belongsTo = array('Paciente', 'Procedimento'); public $validate = array( 'data' => array( 'required' => array( 'rule' => array('notBlank'), 'message' => 'Data é ...
true
3709b4d7e95f3ec069d8684743bd5e7c32268c6f
PHP
glauberportella/braspress
/classes/BraspressCep.php
UTF-8
2,030
2.90625
3
[ "Apache-2.0" ]
permissive
<?php /** * Classe para realizar a consulta de CEP através da Braspress. * * @author Ivan Wilhelm <ivan.whm@me.com> * @package braspress * @version 1.0 * @final */ final class BraspressCep extends Braspress { /** * Contém o CEP para a consulta de endereço. * @var double ...
true
fba41fbb7a433ab0aba205ffb232c73e74c23f01
PHP
bishojit/P7-Treencol
/packages/bikiran/ScanAllDir.php
UTF-8
882
3.125
3
[]
no_license
<?php namespace Packages\bikiran; class ScanAllDir { public string $path = ""; private array $fileAr = []; private array $dirAr = []; function __construct($path) { $this->path = $path; $this->scanDir($path); } function scanDir($path) { $pathAll_ar = scandir(...
true
53e2163f4f7f8ef1feedfdbb5798965895620230
PHP
sterligov/currency_yii2
/components/currency/Updater.php
UTF-8
1,477
2.8125
3
[]
no_license
<?php namespace app\components\currency; use app\components\InvalidModelValueException; use app\models\Currency; class Updater implements UpdaterInterface { private FetcherInterface $fetcher; public function __construct(FetcherInterface $fetcher) { $this->fetcher = $fetcher; } /** ...
true
984a6035ff232dbad637ad6c27d0982362dfad7f
PHP
cjeruen/h-zan-tmp
/http-demo/vendor/zanphp/zan/test/Utilities/Types/ArrTest.php
UTF-8
3,493
2.75
3
[ "MIT" ]
permissive
<?php /** * Created by IntelliJ IDEA. * User: winglechen * Date: 15/12/2 * Time: 16:55 */ namespace Zan\Framework\Test\Utilities\Types; use Zan\Framework\Utilities\Types\Arr; class ArrTest extends \TestCase { public function testArrJoin() { $before = [0, 1, 2]; $after = ['a', 'b', 'c'];...
true
28ef3892651150047e45bc5f017a591c99f6c481
PHP
isabella232/application-support
/Tectonic/Application/Commanding/Command.php
UTF-8
313
2.6875
3
[]
no_license
<?php namespace Tectonic\Application\Commanding; use Illuminate\Support\Contracts\ArrayableInterface; class Command implements ArrayableInterface { /** * Returns an array of properties the command has registered. * * @return array */ public function toArray() { return get_object_vars($this); } }
true
bdf6707e7cfa357fb3e55e73952d3718948bf60d
PHP
thienhaxanh2405/alego-api-wrapper
/examples/game_prepaid_card.php
UTF-8
5,790
2.6875
3
[]
no_license
<?php require_once "../vendor/autoload.php"; use AlegoApiWrapper\Constant\AlegoProduct; use AlegoApiWrapper\Resource\Buy; use AlegoApiWrapper\Constant\PrepaidCardPrice; use AlegoApiWrapper\Constant\GamePublisher; if ($_POST) { // define an array contain Alego's product code $products = [ GamePublisher...
true