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
f3dfc3cf9506020614d0cf46e11712d2cb2ca3a7
PHP
ryanavilar/TR-AV
/app/Army.php
UTF-8
796
2.671875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Army extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'archer', 'swordsman', 'horseman', 'archerLv','swordsmanLv','horsemanLv','user_id' ]; /** ...
true
4e98cc6cc4b2f20000ae80ca79dcfa9977a238fd
PHP
shipko/flotr
/admin/engine/classes/other/other.class.php
UTF-8
3,486
2.703125
3
[]
no_license
<?php /* * Developed by Mukovkin Dmitry */ class someFunction { function isIssetTrueAnswer($array) { foreach ($array as $key => $value) { if ($value['check'] == '2') return true; } return false; } function countTrueAnswer($array) { $i = 0; foreach ($a...
true
57e7c298290c1b0e5896d2f4192ef5cffaf57edf
PHP
VasilSlavchev/ColorspaceConverter
/ColorspaceConverter.php
UTF-8
4,354
3.53125
4
[]
no_license
<?php class ColorspaceConverter { /** * Converts RGB to HSV * * @access public * @param integer red * @param integer green * @param integer blue * @return array */ public static function rgb2hsv($r, $g = NULL, $b = NULL) { $hsv = array(); $rgb = array(); $delta_rgb = array(); ...
true
8d946f33f655ffcf007734488fa8b59c5eb97707
PHP
DajanaStojanovic/diplomski
/mailer/mailer.php
UTF-8
1,322
2.8125
3
[]
no_license
<?php include 'PHPMailer.php'; function sendMailWithPdf($path, $filename) { $result = false; //recipient email details $mailTo = 'dajana.stojanovic994@gmail.com'; $subject = "PDF"; //from email details $fromMail = 'dajana.stojanovic994@gmail.com'; $fromName = 'My APP'; //email text ...
true
f40c68a77b172ba365067fbda84a60377d7617ce
PHP
Julienr85/EyesHelp
/Test/test.php
UTF-8
1,368
2.59375
3
[]
no_license
<?php // Use https://github.com/wonderpush/wonderpush-php-lib // Our library has an easy API for each endpoint! // Take a look at POST /deliveries. // For completeness, here is how you would place an arbitrary call $Accesstoken = "YTUyODk0NjEwOGEwNzJiNThhN2E1NzA5ZGY0MDgyMDQ1ZDY1NmRjOTM2YTU1MTQ4NjM2NTIxZTBkZWFmNjEzZA"...
true
c33bad53aad54b1bd4240ae0c5b0a4f10a2accec
PHP
MicioMax/contao-utils-bundle
/src/Salutation/SalutationUtil.php
UTF-8
5,674
2.859375
3
[]
no_license
<?php /* * Copyright (c) 2018 Heimrich & Hannot GmbH * * @license LGPL-3.0-or-later */ namespace HeimrichHannot\UtilsBundle\Salutation; use Contao\CoreBundle\Framework\ContaoFrameworkInterface; use Contao\System; class SalutationUtil { /** * @var ContaoFrameworkInterface */ protected $framewor...
true
2262eb80f98739ebb634bc06f05274917967deb6
PHP
netagora/netagora
/src/ECE/Bundle/NetagoraBundle/Entity/PublicationRepository.php
UTF-8
11,356
2.609375
3
[ "MIT" ]
permissive
<?php namespace ECE\Bundle\NetagoraBundle\Entity; use Buzz\Browser; use Doctrine\ORM\EntityRepository; use Doctrine\ORM\QueryBuilder; use Doctrine\ORM\Query; use ECE\Bundle\NetagoraBundle\AI\CategoryGuesser; use ECE\Bundle\NetagoraBundle\Entity\KnownLink; use ECE\Bundle\NetagoraBundle\Entity\KnownLinkRepository; use ...
true
cbfa638955bb9a49c64c4ffba63b428bfd7072b4
PHP
VamosColar/my-stuff
/src/Exception/FileConfigException.php
UTF-8
396
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: ediaimoborges * Date: 05/08/16 * Time: 20:32 */ namespace MyStuff\Exception; class FileConfigException extends \Exception { public function __construct($message = null) { $newMessage = $message ? $message : 'Arquivo de configuração não encontrado no dire...
true
bd3646d0dce70c31ceda8d6096acedc81684ac19
PHP
beiyannanfei/php_test
/39_异常处理/02.php
UTF-8
1,012
3.515625
4
[]
no_license
<?php /** * Created by PhpStorm. * User: wyq * Date: 18/1/22 * Time: 下午3:04 */ //适当的处理异常代码应该包括: //Try - 使用异常的函数应该位于 "try" 代码块内。如果没有触发异常,则代码将照常继续执行。但是如果异常被触发,会抛出一个异常。 //Throw - 里规定如何触发异常。每一个 "throw" 必须对应至少一个 "catch"。 //Catch - "catch" 代码块会捕获异常,并创建一个包含异常信息的对象。 function checkNum($number) { if ($number > 1) { ...
true
3ebb4521dc28148f2bdf7060c48460aa6c6d58c5
PHP
ayeo/noninvasive-es
/src/Framework/TestScenario.php
UTF-8
850
2.546875
3
[]
no_license
<?php namespace ES\Framework; use PHPUnit\Framework\TestCase; class TestScenario extends TestCase { private $repository; /** * @var \Serializable */ private $events; private $aggregate; public function __construct($repository) { $this->repository = $rep...
true
cafa8b4956af5c25faa90b3f2d6b29251c8dce58
PHP
seguce92/edulaav
/app/User.php
UTF-8
1,770
2.625
3
[ "MIT" ]
permissive
<?php namespace App; use App\Entities\Core\Information; use Illuminate\Support\Facades\Auth; use Illuminate\Notifications\Notifiable; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { use Notifiable; /** * The at...
true
cb7eea2a6258f7d44757d930116b2a9a30f479a5
PHP
glynnforrest/speedy-config
/src/Processor/SchemaProcessor.php
UTF-8
1,027
2.8125
3
[ "MIT" ]
permissive
<?php namespace SpeedyConfig\Processor; use SpeedyConfig\Config; use SpeedyConfig\Schema\Schema; use SpeedyConfig\Schema\ViolationException; use SpeedyConfig\Schema\ErrorCollection; use SpeedyConfig\Schema\InvalidSchemaException; /** * Check the config matches the given schema. * * @author Glynn Forrest <me@glynn...
true
84dd1510cfcd0b81d71fca16e862bc79952dbb0e
PHP
oneway101/onewayfirst.com
/assets/scripts/contact.php
UTF-8
1,461
2.921875
3
[ "MIT" ]
permissive
<?php if (isset($_POST["submit"])) { $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message']; $human = intval($_POST['human']); $from = 'Contact Form'; $to = ''; $subject = "Contact Form: $name"; $headers = "From: $from\r\nReply-to: $email"; $body ="From: $...
true
b34d5a5ede3bd59a0fb54d9830ae2ba82a158545
PHP
FlamingSpork/mipronombres
/pronoun.php
UTF-8
484
3.671875
4
[]
no_license
<?php /* * This prints out the pronoun nicely formatted, as well as each * of the sentences. */ function printPronoun($pronoun, $sentences, $pronounciation = null) { print '<h1>'.$pronoun."</h1>\n"; if($pronounciation != null) { print '<p><h2 style="display: inline;">Pronunciación:</h2> '. $pronoun...
true
3a8eb215bcd8955d4ed92dbbbdb60a6410604daf
PHP
zickieloox/plugins
/hit/inc/wc-category.php
UTF-8
3,810
2.6875
3
[]
no_license
<?php //$product_categories = $categories; $product_categories = explode(",",$categories); $category_word = ">"; foreach($product_categories as $key => $value){ $category_word = ">"; if(strpos($value, $category_word) !== false){ $exp_category = explode(">", $value); $categoryian_id = array(); $i = ...
true
eb588a41d14efe87e313c6cccef4d3ac23658908
PHP
pbnPierre/apitest
/src/Deezer/Controller/EntityLasyLoadable.php
UTF-8
579
2.5625
3
[]
no_license
<?php namespace Deezer\Controller; use Deezer\Query\AbstractModelQuery; Trait EntityLasyLoadable { //Lasyloaded base entities protected $entities = []; protected function getEntity(AbstractModelQuery $query, string $id) { if (!isset($this->entity[$id])) { $entity = $query-...
true
ab3973d684155b707629611d9ec794473e70b6d1
PHP
aweneagle/van
/io/bk.std/web.php
UTF-8
1,486
3.0625
3
[]
no_license
<?php /* stdandard web input/output * * $web->IN_FORMAT = 'xml'; * $web->FORMAT = 'json'; * * $web->PREG = '/^[0-9]{10}$/'; * $all = $web->all(); * $web->output = $all; */ class StdWeb implements IInput, IBuffer{ private $post = new StdPost; /* $_POST */ private $get = new StdGet; /* $_GET */ private $re...
true
d0b2769560d9082873da8477d6368527214fe8f3
PHP
ahmetaykutay/mini_blog
/core/Router.php
UTF-8
980
3.03125
3
[]
no_license
<?php namespace Core; class Router { /** * splits uri into an array, * first index is controller class name * second index is method to call (if there isn't call index method) * send rest of the array as arguments to the method uri[1](uri[2], uri[3], ...) */ public static function route($uri) { ...
true
a6f02935fbff7c0c2f03603451e8402dad197bbe
PHP
slogsdon/php-flat-file
/src/Command/BuildCommand.php
UTF-8
3,451
2.8125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php declare(strict_types=1); namespace FlatFile\Command; use FlatFile\Application; use FlatFile\Files; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class ...
true
710fd495b97a159f97dcfe08aa660729128b895a
PHP
MicroSDA/Polishlanguage
/core/Models/service/admin_model.php
UTF-8
13,736
2.578125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: bansc * Date: 1/22/2018 * Time: 8:57 PM */ require_once URL_ROOT . '/core/Libs/Config/SiteMapGenerator.php'; /** * Class admin_model */ class admin_model extends Model { private $employee; /** * admin_model constructor. */ public function __cons...
true
3a7417cc01fdf902420f6032f0897e0424ce8ce2
PHP
JulielJordao/SisOrganicos
/php/config/database.php
UTF-8
393
2.875
3
[]
no_license
<?php class Database { // specify your own database credentials public $conn; // get the database connection public function getConnection() { try { $conn = mysqli_connect ( 'localhost:3306/sissolucoesagriorganica', 'root', ''); } catch ( PDOException $exception ) { echo "Connection error: ...
true
3a2a53d78c2a3a4b805eed5212b5701002208885
PHP
chuangying2017/yantang
/app/Repositories/Integral/SignHandle/SignSaveClass.php
UTF-8
2,431
2.515625
3
[]
no_license
<?php namespace App\Repositories\Integral\SignHandle; use App\Models\Client\Account\Wallet; use App\Models\Integral\IntegralRecord; use App\Models\Integral\SignMonthModel; use App\Repositories\Common\updateOrSave\CommonInsertMode; use Carbon\Carbon; use Mockery\Exception; class SignSaveClass extends CommonInsertMode ...
true
8aca8fe55fb5686a4f7b7de92160b6142114ce85
PHP
unixbash/MyWebsite
/inc/widget-clients.php
UTF-8
10,942
2.828125
3
[]
no_license
<?php /*----------------------------------------------------------------------------------- Plugin Name: Clients List Widget Plugin URI: http://www.egrappler.com Description: A widget that displays clients list Version: 1.0 Author: Muhammad Shahbaz Saleem Author URI: http://www.egrappler.com ------------------...
true
42913c8f47fd40f39952776a779dbbae226237bc
PHP
wilz5363/Survey
/phpseclib/crypto.php
UTF-8
2,052
2.859375
3
[]
no_license
<?php function generate1024bit() { $a = new Math_BigInteger(3); $b = new Math_BigInteger(3); for($i=0;$i<1024;$i++) { $b=$b->multiply($a); } $b=$b->random($b,$b->multiply($a)); return $b; } function generate1024bithash() { $a = new Math_BigInteger(2); $b = new Math_BigInt...
true
42777ebd9414bdfb72dd554be78d676375ff22b5
PHP
unlikenesses/symfony-kindle-notes
/src/Controller/Api/CategoryApiController.php
UTF-8
3,657
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Controller\Api; use App\Entity\Book; use App\Entity\Category; use App\Entity\User; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; class CategoryAp...
true
462660b6ef263e0c7dada2ac3313588288cc9f4a
PHP
nerds-and-company/schematic
/src/Interfaces/ConverterInterface.php
UTF-8
1,333
2.703125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace NerdsAndCompany\Schematic\Interfaces; use craft\base\Model; /** * Schematic Converter Interface. * * Sync Craft Setups. * * @author Nerds & Company * @copyright Copyright (c) 2015-2019, Nerds & Company * @license MIT * * @see http://www.nerds.company */ interface ConverterInterfac...
true
5c6d64a451d8f9ede3cf484320da27bcbdd3101c
PHP
ajikjs/event_app
/application/models/FunctionsModel.php
UTF-8
8,275
2.6875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class FunctionsModel extends CI_Model { function __construct() { // Call the Model constructor parent::__construct(); } /* Common function starts here */ function edit_function($postdata,$function_id) {...
true
8f47a729d980aef3ba02eafa5013c3a4337c6a70
PHP
DaniloTerra/cleanphp
/src/Domain/Entity/Invoice.php
UTF-8
722
2.796875
3
[]
no_license
<?php namespace CleanPhp\Invoicer\Domain\Entity; class Invoice extends AbstractEntity { private $order; private $invoiceDate; private $total; public function getOrder() { return $this->order; } public function setOrder($order) { $this->order = $order; return $...
true
87fc2c75af60b822d2e38077b5f213174d5c4d8b
PHP
Abduxaliq/cms
/app/Http/Helpers.php
UTF-8
2,544
2.75
3
[]
permissive
<?php /** * Help functions used at project */ namespace App\Http; class Helpers { /** * get youtube link, return embed link * @param $url * @return string */ public static function createEmbedStrin($url) { $urlParts = explode('/', $url); $videoid = explode('&', str_r...
true
3cdb058f1b74512c03dab39ecc3fdc74dcc85e83
PHP
sandftae/Tests
/PHPUnit/tests/unit/calculator/AdditionTest.php
UTF-8
683
2.8125
3
[]
no_license
<?php use \PHPUnit\Framework\TestCase; /** * Class AdditionTest */ class AdditionTest extends TestCase { /** * @var $_addition */ protected $_addition; public function setUp() { $this->_addition = new \App\Calculator\Addition; } /** @test */ public function addsUpGive...
true
43ef8fd6a7d74c743e940c8436b7b6bc165fab5d
PHP
NAONAOx1126/Cherry
/libs/function_account_group.php
UTF-8
3,162
2.59375
3
[]
no_license
<?php /** * This file is part of Twitter auto post application. * * @author Naohisa Minagawa <info@clay-system.jp> * @copyright Copyright (c) 2010, Naohisa Minagawa * @license http://www.apache.org/licenses/LICENSE-2.0.html Apache License, Version 2.0 * @since PHP 5.3 * @version 4.0.0 */ // アカウントグループを取得 f...
true
8408acd45d19cab00c9f94d8b640bcbe410e56a6
PHP
mjaraujo/dbClientes
/classes/CrudCidade.php
UTF-8
1,630
2.859375
3
[]
no_license
<?php include_once ('../classes/Cidade.php'); include_once '../bd/DB.php'; class CrudCidade extends Cidade { function __construct() { parent::__construct(); } public static function getByNomeEIdEstado($cidNome, $estId) { echo $cidNome . ': ' . $estId; $sql = "SELECT * FROM Cid...
true
86b864dcdb211bbb9a2792f609a28ab054a9b587
PHP
bahkali/photo-gallery
/includes/functions.php
UTF-8
1,985
2.921875
3
[]
no_license
<?php function strip_zero_from_date($marked_string =""){ $no_zeros = str_replace('*0', '',$marked_string ); $cleaned_string = str_replace('*', '', $no_zeros); return $cleaned_string; } function redirect_to($loc = null){ if($loc != null){ header("Location: {$loc}"); } } func...
true
3a0227341545b45a638f00d11824f09548912bd5
PHP
digitalbiblesociety/dbp
/database/seeds/ProjectsSeeder.php
UTF-8
2,243
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use Faker\Generator as Faker; use App\Models\User\Project; use App\Models\User\ProjectOauthProvider; class ProjectsSeeder extends Seeder { /** * Run the database seeds. * * @param Faker $faker * * @return void */ public function run(Faker $f...
true
fe4613d9fbdea4d2d0fce223865db118ee19f185
PHP
mta9896/charging_station
/app/Services/Station/ReadStationService.php
UTF-8
1,153
2.609375
3
[]
no_license
<?php namespace App\Services\Station; use App\DTO\StationFiltersDTO; use App\Repository\Station\StationRepositoryInterface; use App\Services\Station\StationFetch\StationFetchStrategyInterface; use App\Station; use Illuminate\Support\Collection; class ReadStationService implements ReadStationServiceInterface { ...
true
a29e4917147cf5ad29a429e8fcc2aee6601e9a46
PHP
marcelonilima/localproject
/php/model/Contato.php
UTF-8
261
2.59375
3
[]
no_license
<? class Contato{ private $id_pessoa; private $email; private $tel1; private $tel2; private $tel3; public function __set($atrib, $value){ $this->$atrib = $value; } public function &__get($atrib){ return $this->$atrib; } } ?>
true
1a7efd351dd7bbac4f72de5ca563063d3d5e030f
PHP
zachborboa/php-curl-class
/examples/get_with_retry.php
UTF-8
420
2.6875
3
[ "Unlicense" ]
permissive
<?php require __DIR__ . '/../vendor/autoload.php'; use Curl\Curl; $max_retries = 3; $curl = new Curl(); $curl->setRetry($max_retries); $curl->get('https://httpbin.org/status/503'); if ($curl->error) { echo 'Error: ' . $curl->errorMessage . "\n"; echo 'attempts: ' . $curl->attempts . "\n"; echo 'retries...
true
801c143f74580e63dc13637563c6a300c462aff4
PHP
UnityEG/validateAPI
/app/EssentialEntities/Transformers/Transformer.php
UTF-8
970
2.859375
3
[ "MIT" ]
permissive
<?php namespace App\EssentialEntities\Transformers; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of Transformer * * @author Sammy Guergachi <sguergachi at g...
true
4bed4d76bdd93f6ed6baff14dd6047dc6ebe915f
PHP
nosun/swoole_app_server
/app/apps/cache/Cache.php
UTF-8
1,323
2.765625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: lancelot * Date: 16-11-22 * Time: 上午12:55 */ namespace cache; use ZPHP\Core\Config; class Cache { const CACHE_API = 1; private static $instance = null; public static function getInstance() { if( self::$instance == null ) { se...
true
f6be49a405261f8b637869d3dfbd70958afb846b
PHP
abiusx/php-emul
/test/operators_pre.php
UTF-8
290
3.078125
3
[]
no_license
<?php $a = true; $b = false; assert(!$a === $b); assert(!$b === true); $c = 2; // 0000 0010 assert(~$c === -3); // 1111 1101 $d = -5; assert(-$d === +5); assert(+$d === -5); $e = 5; assert(++$e === 6); assert($e++ === 6); assert(--$e === 6); assert($e-- === 6); assert($e === 5);
true
544377bbb147c122dc321e0be2a27031c47d111f
PHP
rapidadress/hetic-p2017
/exercices/exercice-silex/menant/web/models/snippets.class.php
UTF-8
6,030
2.984375
3
[]
no_license
<?php /** * SNIPPETS */ class Snippets_Model { function __construct($pdo) { $this->pdo = $pdo; } function get($id = NULL) { if(empty($id)) return $this->get_by_page(); $prepare = $this->pdo->prepare(' SELECT s.id, s.t...
true
28eec5768699f7d53f21cf56bfc87c3266f9a450
PHP
arbind212306/pattern_programs
/pattern1.php
UTF-8
185
3.90625
4
[]
no_license
<?php /* * 1 * 1 2 * 1 2 3 * 1 2 3 4 * 1 2 3 4 5 */ function pattern($n){ for($i=1; $i<=$n; $i++){ for($j=1; $j<=$i; $j++){ echo $j.' '; } echo "\n"; } } pattern(5);
true
2826091ae994cf2fbe681f215b3ce68d0cb7ac24
PHP
jonasnoynay/applicants-api
/app/Http/Controllers/ApplicantController.php
UTF-8
4,329
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Validator; use App\Applicant; use Carbon\Carbon; use Illuminate\Http\Request; use App\Http\Resources\ApplicantResource; use Illuminate\Validation\ValidationException; class ApplicantController extends Controller { /** * Display a listing of the resource. * ...
true
014bc2de4fdd7d9e0e0b5aff542181dd3cf8bd85
PHP
nemein/org_maemo_userdata
/interface.php
UTF-8
5,442
2.703125
3
[]
no_license
<?php /** * @package org_maemo_userdata * @author The Midgard Project, http://www.midgard-project.org * @copyright The Midgard Project, http://www.midgard-project.org * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License */ /** * Basic component * * @package org_maemo_userdata */ ...
true
fb7c58013c217ff1d2452a11b8aa1d3e55525b5e
PHP
Tedebo/Store-Project
/checkout.php
UTF-8
5,696
2.640625
3
[]
no_license
<?php session_start(); // session_unset(); // session_destroy(); $servername = 'localhost'; $username = 'root'; $password = ''; $dbname = 'Store'; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die('Connection fail...
true
f766649dc71b41aea4a94d2c80936b98c564e656
PHP
ArunasNorvaisa/BT
/php/20180425-26/pratimas3.php
UTF-8
292
2.8125
3
[]
no_license
<?php $a = 'abrikosas 1223 587, bananas ananasas'; // rasti ar yra raidžių 'ssss' kombinacija preg_match('/s{4}/', $a); var_dump(preg_match('/s{4}/', $a)); // grąžina 0 arba 1 $rezultatas = []; preg_match_all('/s{4}/', $a, $rezultatas, PREG_OFFSET_CAPTURE); var_dump($rezultatas); ?>
true
033625927605bf743e6daf536f6c3a4220685544
PHP
comicat-hu/yiitest
/protected/components/MathAction.php
UTF-8
1,244
2.609375
3
[]
no_license
<?php class MathAction extends CAction { public function run($a = 0, $b = 0) { $show = ''; $result = $this->calc($a, $b); $model = new MathForm; // Yii::app()->controller->performAjaxValidation($model); if (isset($_POST['MathForm'])) { $model->setAttribute...
true
7e137dc0c7ebd808ae2f9766a97ae2671910b18d
PHP
Alfansuri/stainim
/bahan/plugins/quform/lib/Quform/Validator/Abstract.php
UTF-8
2,577
3.203125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /** * Quform_Validator_Abstract * * Abstract class for validators. All validators should extend this class. * * @package Quform * @subpackage Validator * @copyright Copyright (c) 2009-2015 ThemeCatcher (http://www.themecatcher.net) */ abstract class Quform_Validator_Abstract implements Quform_Validator_I...
true
cac759cd650949fe02ab1162dcf4823fd9280db8
PHP
matteoauger/m2-fullstack-lab
/api/src/DataFixtures/DepartmentFixtures.php
UTF-8
973
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\DataFixtures; use App\DataFixtures\ORM\CSVFixture; use Doctrine\Common\DataFixtures\DependentFixtureInterface; use App\Entity\Department; use App\Entity\State; use Doctrine\Common\Persistence\ObjectManager; use Doctrine\ORM\EntityManager; class DepartmentFixtures extends CSVFixture implements Dep...
true
3fc78f1e0888c7bd6ceb1744d7482daaf21d4b65
PHP
ThainaMarini/Curso
/TPI/PHP + MySQL/Ex2/clientes_compras.php
UTF-8
1,496
2.890625
3
[]
no_license
<?php // conexão com o BD $sgbd = "localhost"; $usuario = "root"; $senha = ""; $banco = "loja"; $conexao = mysql_connect($sgbd, $usuario, $senha) or die("ERRO: ".mysql_error()); mysql_select_db($banco, $conexao); // cria o comando SELECT $sql = "select c.cod_cliente, nome, co.cod_compra from cliente c join compra ...
true
9caaf5ca8235de3d7bd6ddb06b81c1fd443943fb
PHP
bryanrite/horde
/framework/Image/lib/Horde/Image/Effect/Imagick/Border.php
UTF-8
1,505
3.015625
3
[]
no_license
<?php /** * Image border Effect for the Horde_Image package. * * @author Chuck Hagenbuch <chuck@horde.org> * @package Image */ class Horde_Image_Effect_Imagick_Border extends Horde_Image_Effect { /** * Valid parameters for border effects: * * bordercolor - Border color. Defaults to black....
true
7b5002230485595468f785e28e5a3a7be8a176a1
PHP
plixgen-labs/quiz
/database/migrations/2018_11_24_175302_questions_table.php
UTF-8
3,020
2.5625
3
[ "Apache-2.0" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class QuestionsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('images', function (...
true
8fcdc9b57be989678637964493db0e18362cfdd4
PHP
Assia-Megueni/bankNTR
/Site-e-commerce/site/includes/soap.php
UTF-8
5,787
3.109375
3
[]
no_license
<?php /* permet de normaliser le json */ function convertJson($str){ $str = str_replace("idPersonne",'"idPersonne"',$str); $str = str_replace("{nom",'{"nom"',$str); $str = str_replace("prenom",'"prenom"',$str); $str = str_replace("'",'"',$str); return $str; } /* r...
true
e9dcf92d6858f0ad6dbb98f134d8103184b490cf
PHP
jhgreenblatt/Pickle--Please
/functions.php
ISO-8859-2
16,727
2.75
3
[]
no_license
<?php // // Custom Child Theme Functions // // I've included a "commented out" sample function below that'll add a home link to your menu // More ideas can be found on "A Guide To Customizing The Thematic Theme Framework" // http://themeshaper.com/thematic-for-wordpress/guide-customizing-thematic-theme-framework/ ...
true
e1915abb58424b208e4be571958c8d58201f6228
PHP
am9u/ge-api
/application/classes/xml/driver/model.php
UTF-8
1,953
2.578125
3
[]
no_license
<?php defined('SYSPATH') or die('No direct script access.'); abstract class XML_Driver_Model extends XML { public $root_node = 'models'; protected static function initialize(XML_Meta $meta) { $meta ->content_type("application/xml") ->nodes ( array( "models" => array("filter" => ""), ...
true
285c00e794fe010a16681a68028097d440109fb9
PHP
asta-kit/friwahl-docker
/app/Packages/Framework/TYPO3.Eel/Classes/TYPO3/Eel/Helper/MathHelper.php
UTF-8
1,887
2.8125
3
[]
no_license
<?php namespace TYPO3\Eel\Helper; /* * * This script belongs to the TYPO3 Flow package "TYPO3.Eel". * * * * It is free software; you can redistribute it and/or mo...
true
e4d66acdc2d0c35b696205d0482a87b8c41a820e
PHP
chelsea596949/finalproject
/midterm/index.php
UTF-8
529
2.84375
3
[]
no_license
<?php session_start(); //啟用session 變數功能 require("dbconnect.php"); //匯入連結資料庫之共用程式碼 if (! isset($_SESSION["uID"])) //檢查紀錄login成功所用的session變數是否已被定義 $_SESSION["uID"] = 0; //若沒有->定義此變數,並設初值為0 (未登入) header("Location: view.php"); if ($_SESSION["uID"] <= 0) { //如果未登入, 輸出請登入之訊息 //header("Location: login.php"); echo "Please ...
true
20b4a9c04da871585ca679b8a4ea233fb4c29296
PHP
guillaumeaillaud/projet
/todolist_ajax_project/api/controller/todoController.php
UTF-8
2,677
3.390625
3
[]
no_license
<?php class todoController { // proprietes de classe private $model; // constructeur prend en parametre une instance de ma classe model public function __construct($model) { $this->model = $model; } // methodes de classe public function getAll() { $data = $this->...
true
a73c3d155e293804de6962703b0c1ac94e6f8894
PHP
Juhanson/2.kodutoo-IV-ruhm
/class/Event.class.php
UTF-8
3,649
3.375
3
[]
no_license
<?php class Event { private $connection; function __construct($mysqli) { $this->connection = $mysqli; } function saveEvent($email, $datestamp, $exercise, $sets, $reps, $weight) { $stmt = $this->connection->prepare("INSERT INTO workouts (email, datestamp, exercise, ...
true
52f533ea4cd3e47a73dbdd77cef2ff82ddcd1fe2
PHP
Rola-Ahmed/coffee-shop-project
/dbclassDrink.php
UTF-8
622
2.5625
3
[]
no_license
<?php class Database { var $host="localhost"; var $user="root"; var $pass=""; var $tbname="coffeeshopse"; public function connect() { $con=mysqli_connect($this->host,$this->user,$this->pass,$this->tbname); return $con; } public function saveRecords($drinkname,$cost,$image,$description,$drinktype) { $conn=$...
true
da565f4a8f93c4ea22bc8a6b0b6ae6729f98b9b3
PHP
idrigan/tfm
/src/ProfileBundle/Api/SendInvitationController.php
UTF-8
1,201
2.59375
3
[]
no_license
<?php namespace ProfileBundle\Api; use ProfileBundle\Controller\BaseController; use ProfileBundle\Events\EventDispatcher\Friends\FriendsEvent; use ProfileBundle\Events\EventSubscriber\FriendsEventSubscriber; use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\HttpFoundation\Request; use Symf...
true
37789ff4301a2dc7997748f6e54a59c3194d1574
PHP
marioAquinoJF/php-poo-01
/app/dao/InsertQuery.php
UTF-8
535
2.515625
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace app\dao; /** * Description of Insert * * @author Mario */ class InsertQuery { public static function get($t...
true
c0c8ce33616c9dd59e40b5e95139179d52f21712
PHP
apanisile/side_hustle_php_class
/registration_form.php
UTF-8
943
3.09375
3
[]
no_license
<!DOCTYPE html> <head> <title>Registraion Form</title> </head> <body> <h2>Simple Registraion Form</h2> <form method="post"> <p>Please enter your First name:</p> <input type="text" name="fname"><br> <p>Please enter your Last name:</p> <input type="text" name="lname"><br> ...
true
b32c455bb3482820c64cabbc7de4327315d4c9c1
PHP
armandoaepp/PHPeru-FrameWork
/v.0.8/clases/Bean/BeanTransmision.php
UTF-8
1,775
2.78125
3
[]
no_license
<?php # Clase Bean Generada - Creado por @armandoaepp class BeanTransmision{ # Constructor public function __construct(){} # Atributos private $idtransmision; private $idpersonajuridica; private $placa; private $longitud; private $latitud; private $direccion; private $velocidad; p...
true
557c58e1cfb084f60dcf1e5793f0fd463ec32f58
PHP
jibundeyare/src-symfony-3.4
/src/Service/TaxCalculator.php
UTF-8
1,485
3.140625
3
[]
no_license
<?php // src/Service/TaxCalculator namespace App\Service; /** * TaxCalculator */ class TaxCalculator { const RATES = [ 'normal' => 1, 'taux réduit 1' => 2, 'taux réduit 2' => 3, 'taux réduit 3' => 4, ]; /** * tax rates are : * - 'normal': 20.0 % * - 'taux ...
true
f5fb96ae165101a36c5620b72462d9a55f598d56
PHP
urik23/apache-uoc
/sample/index.php
UTF-8
2,278
3.15625
3
[]
no_license
<html> <head> <title>Test UOC PFC</title> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'> <style> body { background-color: white; text-align: center; padding: 50px; font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif; } #logo { ma...
true
8ff9e5c04f8540f96b44405326020199f3345c22
PHP
vinicius-alcantara/phpCursoBasico-Atividades
/22-Cont.Reg.for/index.php
UTF-8
118
3.453125
3
[]
no_license
<?php //Contador Regressivo (10-1) for($cont = 10; $cont >= 1; $cont--){ echo "$cont<br/>"; } ?>
true
03a0db752532d31d481f4718ad94ab33d4e0445c
PHP
Fortidude/pull-up
/src/PullUpDomain/Service/StatisticsByUserAndGoalsInterface.php
UTF-8
461
2.65625
3
[]
no_license
<?php namespace PullUpDomain\Service; use PullUpDomain\Entity\Goal; use PullUpDomain\Repository\Response\GoalStatisticsResponse; interface StatisticsByUserAndGoalsInterface { /** * @param Goal[] $currentCircleGoals * @param Goal[] $lastCircleGoals * @param Goal[] $allGoals * @return GoalStati...
true
db5414bd79a931c7a6f64768429c1484df8ea57e
PHP
didebbo/php-ajax-dischi
/apis/genres.php
UTF-8
332
2.609375
3
[]
no_license
<?php require_once __DIR__ . "/../partials/database.php"; header("Content-Type: application/json"); $genres = []; function getGenres($database) { $db = []; foreach ($database as $item) { if (!in_array($item["genre"], $db)) $db[] = $item["genre"]; } return $db; } echo json_encode(getGenres($...
true
b57ceff1ae4a5187e34c5f594dc061795dd6436b
PHP
m-mitchell/site
/Site/SiteViewFactory.php
UTF-8
6,334
2.859375
3
[]
no_license
<?php require_once 'Swat/SwatObject.php'; require_once 'Swat/exceptions/SwatClassNotFoundException.php'; /** * Factory for creating object views * * This factory provides an easy method for overriding the default object views * provided by Site or other packages. * * Example usage: * * <code> * <?php * * /...
true
3572b52d8613db196149b833e3b0482e334f32e3
PHP
rubo066/new-blog
/app/Http/Middleware/HelloMiddleware.php
UTF-8
487
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; class HelloMiddleware { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { $request->session()-...
true
447e60adef2669fb66eba82b38d50710c064c8c4
PHP
lee17026/cs313-php
/web/week03/team03first.php
UTF-8
1,344
2.515625
3
[]
no_license
<!DOCTYPE html> <html lang="en-US"> <head> <title>Wazzap</title> <meta charset="UTF-8"/> </head> <body> <form action="team03.php" method="POST"> Name: <input type="text" name="name" value="Default Name"/> <br/> Email: <input type="text" name="email" value="example@domain....
true
e25c00b47d825516db365e24dea9429487a0d9ed
PHP
andryviktorovich/laba
/models/material/MaterialConsumption.php
UTF-8
1,841
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models\material; use Yii; use yii\helpers\ArrayHelper; /** * This is the model class for table "materials_consumption". * * @property integer $id * @property integer $id_material_coming * @property string $batch * @property string $amount * @property string $date_consumption * @property st...
true
2973231487b66fc92e56dc914810be69e063468f
PHP
squallstar/paperboard-engine
/application/core/Cronycle_Controller.php
UTF-8
1,264
2.515625
3
[]
no_license
<?php /** * Core controller * * @package Cronycle * @author Nicholas Valbusa - info@squallstar.it - @squallstar * @copyright Copyright (c) 2014, Squallstar * @license GNU/GPL (General Public License) * @link http://squallstar.it * */ class Cronycle_Controller extends CI_Controller { pub...
true
23b6a0a2af292f713865894a2559bd5356bebc38
PHP
vancasti/myblog
/system/core/AppContext.php
UTF-8
622
3.1875
3
[]
no_license
<?php /** * An app context to contain data avaiable across the app * * @author Victor Castiñeira <vancasti86@gmail.com> * */ class AppContext { private static $instance = null; private $values = array(); private function __construct() {} static function instance() { if ( is_null...
true
935fb2ccb228579a08a313924df896bc07ba9112
PHP
ferambot/Kata-Dojo
/Projects/CalculatorProject/test/SubstractionTest.php
UTF-8
306
2.765625
3
[]
no_license
<?php namespace CalculatorProject\Tests; use CalculatorProject\Subtraction; class SubstractionTest extends \PHPUnit_Framework_TestCase { public function testFindSubtract() { $mult = new Subtraction(); $result = $mult->run(2, 5); $this->assertEquals(3, $result); } }
true
549c43199f795746b7cc548796a87488823d4030
PHP
rahulyhg/gadis.my
/web plugins/mobiconnector/extensions/ba-mobile-form/inc/Core/BAFormAddFieldCustom.php
UTF-8
7,264
2.59375
3
[]
no_license
<?php namespace DesignForm\Core; class BAFormAddFieldCustom{ public function baform_run_add_field_custom(){ add_filter( 'woocommerce_form_field_radio', array($this,'baform_checkout_fields_radio_field'), 10, 4 ); add_filter( 'woocommerce_form_field_multiselect',array($this,'baform_checkout_fields_multisele...
true
3a903f70ceaad61034cc2b29fb100a9a75021f28
PHP
Kisha1/narwhal
/Database/SQL/MenuQuery.php
UTF-8
1,597
3.171875
3
[]
no_license
<?php /** * @author Kisha * @class MenuQuery */ class MenuQuery { public function GetQuery($query, $menu) { switch ($query) { case "add" : return $this->AddMenuItem($menu); case "edit": return $this->EditMenuItem($menu); case "delete": return $this->DeleteMenuItem($m...
true
ff2d26f0a9d56e8ca631d665296d4b3610aefa74
PHP
gitgrupoift/ift-comercial
/wp-content/plugins/ift-at/services/arrendamento/locatario.php
UTF-8
2,001
3.140625
3
[]
no_license
<?php class locatario { /** * @var nif $nif */ protected $nif = null; /** * @var docIdentificacao $docIdentificacao */ protected $docIdentificacao = null; /** * @var pais $pais */ protected $pais = null; /** * @var retencaoFonte $retencaoFonte */ ...
true
da97c30850b20d28fec2d9929a72d2d42eb28fdb
PHP
CodeExpertsLearning/formacao-php-codigos
/turma6/projeto/src/Cart/Cart.php
UTF-8
703
3
3
[]
no_license
<?php namespace Cart; use Session\Session; class Cart { public function showProducts() { $products = Session::get('products'); if(!$products) return []; return $products; } public function addProduct($product) { $products = Session::get('products'); if(!$products) { $prod...
true
1170183b9a96497af9198c18b564a83119c8de1e
PHP
bb33bb/CTFs-1
/runderground20/back/services/moim/src/app/Library/HtmlBuilder.php
UTF-8
1,401
3.046875
3
[]
no_license
<?php namespace App\Library; use Illuminate\Support\HtmlString; class HtmlBuilder { protected function attributeElement($key, $value) { if (is_numeric($key)) { return $value; } // Treat boolean attributes as HTML properties if (is_bool($value) && $key !== 'value...
true
82f53340a06c8681c881971ffe963c70a881a664
PHP
Lidemy/mentor-program-3rd-yakim-shu
/homeworks/week12/hw1/layout/board.php
UTF-8
2,264
2.515625
3
[]
no_license
<?php require_once('lib/page_control.php'); require_once('lib/render.php'); // 處理按讚 function getLikesTotal($id) { global $render, $db; $sql = "SELECT user_id, COUNT(id) FROM yakim_likes WHERE comment_id = ? GROUP BY user_id"; $db->stmtQuery($sql, 'i', $id); $likes_total = 0; $is_liked = '';...
true
cdaa52a6a83135d91b0c8802c8816c882ab1a47b
PHP
pykotechguy/tinyForum
/tinyPHP/Classes/Core/Form.php
UTF-8
2,711
3.09375
3
[]
no_license
<?php namespace tinyPHP\Classes\Core; /** * * Form * * PHP 5 * * tinyPHP(tm) : Simple & Lightweight MVC Framework (http://tinyphp.us/) * Copyright 2012, 7 Media Web Solutions, LLC (http://www.7mediaws.org/) * * Licensed under The MIT License * Redistributions of files must retain the above copyri...
true
02f9fcdb439eabd8d9df5eb7d4b6cb9e815b1d02
PHP
OzyAst/OTUS_ServiseTime
/src/app/Services/Procedures/Repositories/EloquentProcedureRepository.php
UTF-8
1,234
2.75
3
[]
no_license
<?php namespace App\Services\Procedures\Repositories; use App\Models\Procedure; use App\Services\Procedures\DTOs\ProcedureHandlerDTO; use Illuminate\Database\Eloquent\Collection; class EloquentProcedureRepository implements ProcedureRepositoryInterface { public function find(int $id): ?Procedure { r...
true
346684bcad20cbdc1881f1141eb150a59a1e269b
PHP
jeromegamez/php-psr-testlogger
/src/Exception/InvalidLogLevel.php
UTF-8
678
2.796875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Gamez\Psr\Log\Exception; use Psr\Log\InvalidArgumentException; use Psr\Log\LogLevel; class InvalidLogLevel extends InvalidArgumentException { /** * @var string */ public $level; /** * @var string[] */ public $validLevels; public func...
true
64bfb23f997583b271f551a472cc04e034ccefcd
PHP
pierre9993/Code-Billy-master
/PHP/news (proj1)/controller/articleController.php
UTF-8
1,441
2.640625
3
[]
no_license
<?php //AFFICHE L'ARTICLE SELECTIONNE function article($bdd){ $article = new Article($bdd, $_GET["id_art"]); include('view/articles/article.php'); } function acceuil($bdd){ $articles= new Article($bdd); $topArt= $articles->topArticle($bdd); include("view/articles/acceuil.php"); } function categor...
true
6905e0daad2f850a6c31e8c12be616251b55a938
PHP
Koronich/en-land
/workspace/models/User.php
UTF-8
584
2.65625
3
[]
no_license
<?php namespace workspace\models; use Illuminate\Database\Eloquent\Model; class User extends Model { protected $table = "user"; public $fillable = ['username', 'email', 'role', 'password_hash']; public static function getCurrentUserName() { return $_SESSION['username'] ?? null; } ...
true
3c3963e873b79f157f389ba01e152cea28a3f974
PHP
IbericaSoft/vestirarte
/web/backoffice/kernel/negocio/classes/Cesta.class.php
UTF-8
4,904
3.046875
3
[]
no_license
<? /** * Cesta comun de cualquier tienda * @version 1.0 06.2014 creacion * @version 1.1 11.2014 quitamos los metodos que calculaban la fecha de entrega para ponerlos en portes */ class Cesta extends Tienda_Instanciador { public $listArticulos = null; public function __construct(){ $th...
true
42c62dcf40c1e87117d661f0660d53541b04e008
PHP
Overfinch/cms
/engine/Core/Config/Config.php
UTF-8
1,011
2.796875
3
[]
no_license
<?php namespace Engine\Core\Config; class Config { public static function item($key, $group = 'main'){ // получаем определённый элемент массива определённой группы настроек $groupItems = self::file($group); return isset($groupItems[$key]) ? $groupItems[$key] : null; } public static funct...
true
150d0f639082ff1cbd26090526f75194abeb1124
PHP
LastGraff/yii_basic
/models/Posts.php
UTF-8
1,168
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; use yii\db\ActiveRecord; class Posts extends ActiveRecord { public static function tableName() { return 'posts'; } public function rules() { return [ [['posts_name', 'posts_text', 'posts_cat_id', 'posts_author'], '...
true
3f5b1fddd632684efbedbc6393ab18704b70f026
PHP
digitalowlnyc/PHP-Command-Runner
/command-runner.php
UTF-8
4,303
3.3125
3
[]
no_license
<?php /** * Usage: php command-runner.php composer.json <command-number> * * This will read the "scripts" key from composer.json and run the command number * provided (first command is "1"). * * What this command runner does: * - Creates a dated log file and puts it in command-runner-logs/ * - Records the com...
true
f9367a797fdc430649371762ce0ae03ba882076e
PHP
RobinStudo/carTour
/src/Player.php
UTF-8
2,637
3.0625
3
[]
no_license
<?php namespace Game; use Game\Util\BonusTrait; use Game\Vehicle\Vehicle; final class Player{ use BonusTrait; private $username; private $team; private $vehicle; private $uid; private $level = 1; private $care; private static $counter = 0; public function __construct( $username...
true
c779c446df311c0fa3eb3f39133e85ee1aa5e4c1
PHP
carlos-palalo/2_DAW
/DWES/Php/ejemplos/ejemplo26.php
UTF-8
716
3.78125
4
[]
no_license
<?php $a = 5; # observa que ponemos la etiqueta de fin de script # después de la llave de apertura if ($a == 5) { ?> <!-- Aquí estamos poniendo HTML puro no estamos dentro del script PHP //--> <H1>Esto no ha sido interpretado por PHP</H1> <!-- en la linea siguiente a este comentario volveremos a PHP para in...
true
e74d1c084566ebd9591163146b507554b7194042
PHP
Vindicia/CashBoxAPISamples
/PHP/5.0/reportUsageEvents.php
UTF-8
1,737
2.8125
3
[]
no_license
<?php require_once('Vindicia/Soap/Vindicia.php'); require_once('Vindicia/Soap/Const.php'); $testId = rand(1, 1000000); // random number for some unique IDs $usageEvent1 = new Event(); $usageEvent1->setMerchantEventId("eventID-1-" . $testId); // unique Id $usageEvent1->setEventDate('2015-03-27T06:29:34-07:00'); $usag...
true
a95d538494654dca9c3d91a638f5cc430a7327c2
PHP
fairyly/php_book
/action/addbook.php
UTF-8
2,836
2.78125
3
[]
no_license
<?php header("Content-type: text/html; charset=UTF-8"); // error_reporting(0);// 关闭错误报告 include('../connect.php');//引入数据库连接 //isset()检测变量是否设置 // echo $_POST['authcode'].'/'.$_SESSION['authcode']; // exit; //strtolower()小写函数 //跳转页面 // echo "<script language=\"javascript\">"; ...
true
c4b8a7985aef453dc46581c779253d3a64a3a732
PHP
Adrian978/Sistem-Penyewaan-Sepeda-Motor
/sewa_motor/tampil_data_rental.php
UTF-8
2,156
2.640625
3
[]
no_license
<html> <head> <link rel="stylesheet" type="text/css" href="css/style1.css"> <title>Tabel Rental</title> </head> <body> <h1 align=center>Daftar Rental</h1> <body> <center><h3>Pencarian Data Rental</h3></center> <form method="GET" action="tampil_data_rental.php" style="text-align: center;"> <label>Kata ...
true
f94bd0cfa69c2dc3ea547a9d278c400308782c73
PHP
rnpng/OssDemo
/OssLog.php
UTF-8
514
3.046875
3
[]
no_license
<?php class OssLog { private $filename; public function __construct($filename) { $this->filename = $filename; } public function write($message) { $folder = __DIR__ .'\\LOG\\' . date('Ymd'); if(!is_dir($folder)){ mkdir($folder, 0777, true); } $file = ...
true
05edc12465c7a2a20ee770effaaeaaae0657abd5
PHP
yashuk803/News_portal
/src/Post/Service/FakeHomePageService.php
UTF-8
930
2.6875
3
[]
no_license
<?php namespace App\Post\Service; use App\Post\Collection; use App\Post\PostModel; final class FakeHomePageService implements HomePageServiceInterface { private $postsLimit; public function __construct(int $postsLimit) { $this->postsLimit = $postsLimit; } public function getPosts(): Col...
true
7f16e4b20d59526d18df36e0123abf5ef27b7cdf
PHP
LYignore/bloom
/src/BitArray.php
UTF-8
1,187
2.6875
3
[ "MIT" ]
permissive
<?php namespace Lyignore\Bloom; use Lyignore\Bloom\Contracts\BitArrayInterface; use Predis\Client; class BitArray implements BitArrayInterface{ private $config = [ 'scheme' => 'tcp', 'redis_host' => '127.0.0.1', 'redis_password' => null, 'redis_port' => '6379' ]; private $...
true
3d49e3099b113d1c417cccc5eb4e38b2602f65fc
PHP
travis-ci/php-src-builder
/test.php
UTF-8
850
2.546875
3
[]
no_license
<?php $sslVersions = [ CURL_SSLVERSION_DEFAULT, CURL_SSLVERSION_TLSv1, CURL_SSLVERSION_TLSv1_0, CURL_SSLVERSION_TLSv1_1, CURL_SSLVERSION_TLSv1_2, CURL_SSLVERSION_SSLv2, CURL_SSLVERSION_SSLv3, ]; var_dump(curl_version()); foreach ($sslVersions as $sslVersion) { $uri = "https://api.rep...
true