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
fb36d5995641ad84d1b2db252f2c366f6580fef5
PHP
ekyna/Commerce
/Bridge/Doctrine/ORM/Repository/AbstractPaymentRepository.php
UTF-8
3,209
2.59375
3
[ "MIT" ]
permissive
<?php namespace Ekyna\Component\Commerce\Bridge\Doctrine\ORM\Repository; use Doctrine\DBAL\Types\Types; use Ekyna\Component\Commerce\Payment\Model\PaymentMethodInterface; use Ekyna\Component\Commerce\Payment\Model\PaymentStates; use Ekyna\Component\Commerce\Payment\Repository\PaymentRepositoryInterface; use Ekyna\Com...
true
c045cf1aa723511889fc7d6ee489dbb74b3746e4
PHP
maeryuan/tptest
/app/index/controller/User.php
UTF-8
3,069
2.640625
3
[ "Apache-2.0" ]
permissive
<?php namespace app\index\controller; use think\Controller; use app\index\Model\User as userModel; class User extends Controller { public function index() { $user = new userModel(); $result = $user->findOne(['id' => 2]); } /** * 注册操作 * @return type */ public function ...
true
6d1e60867fd5ac271a7ff71aa845085f3f64efba
PHP
badilabassi/cms
/test/VariableTest.php
UTF-8
535
2.734375
3
[]
no_license
<?php require_once('lib/bootstrap.php'); class VariableTest extends PHPUnit_Framework_TestCase { public function __construct() { $this->var = new Variable('title', 'This is a test title'); } public function testMethods() { $this->assertEquals('title', $this->var->key()); $this->assertEquals('This...
true
aac2f025d199e65cbdb9de3a8aa8b5c1ab17d781
PHP
sedoo/sedoo-portalgenerator
/template_catalogue/bd/url_event_role.php
UTF-8
1,498
2.828125
3
[]
no_license
<?php /* * Created on 8 juil. 2010 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ require_once("bd/bdConnect.php"); require_once("bd/url_event.php"); require_once("bd/role.php"); class url_event_role { var $url_event_id; var...
true
b2b8eefbf4d9952f64e5ffebbc6ec0c71c659456
PHP
litondev/docker-laravel-7-nuxt
/backend/database/seeds/DatabaseSeeder.php
UTF-8
763
2.609375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Models\{ Admin, User, News }; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { Admin::create([ "email" => "admin@admin.com", ...
true
73e58b4b25923ff024aeff7e695ae10292d41222
PHP
AnggaPraja/SmartCafeNew
/smartcafe/common/models/User.php
UTF-8
1,530
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "user". * * @property int $iduser * @property string $username * @property string $password * @property string $nama * @property string $kota * @property int $jenis_kelamin * @property string $telp * @property int $saldo * * ...
true
f62a49600a7ad1b8873ced7f18bf418d80eeb761
PHP
myrealjay/Notification-System
/app/Rules/PublishRule.php
UTF-8
923
2.96875
3
[ "MIT" ]
permissive
<?php namespace App\Rules; use App\Http\Requests\PublishRequest; use Illuminate\Contracts\Validation\Rule; class PublishRule implements Rule { private $request; /** * Create a new rule instance. * * @return void */ public function __construct(PublishRequest $request) { $th...
true
ff3afd4fecb4aff678894b7dd720556de4b48c3c
PHP
deadbyback/byTrack
/common/rules/ReporterRule.php
UTF-8
407
2.53125
3
[]
permissive
<?php namespace common\rules; use yii\rbac\Rule; class ReporterRule extends Rule { public $name = 'isReporter'; /** * @param int|string $id * @param \yii\rbac\Item $item * @param array $params * @return bool */ public function execute($user, $item, $params) { return ...
true
fd41c7f577142d24d4445e52f30bff55485b825a
PHP
dunglas/phpdoc-to-typehint
/tests/Results/functions2.php
UTF-8
115
2.609375
3
[ "MIT" ]
permissive
<?php namespace foo; /** * @param string|null $a * * @return int */ function test(string $a = null): int { }
true
854fc297237b9d82c3ef0d95b746a68fc86ca932
PHP
ReversonMendes/MarmitaApp-TCC
/controller/funcoes_usuario.php
UTF-8
1,573
2.515625
3
[]
no_license
<?php function listaUsuarios($conexao) { $usuarios = array(); $resultado = mysqli_query($conexao, "select * from usuario"); while($usuario = mysqli_fetch_assoc($resultado)) { array_push($usuarios, $usuario); } return $usuarios; } function insereUsuario($conexao, $nome, $usuario, $senha, $datanascimento, $email...
true
d967da0bde9a54c846e04658327f47d755d2b29f
PHP
daisuke1101/test
/selfphp_2/10/area.php
UTF-8
150
3.421875
3
[]
no_license
<?php class Area { const PI = 3.14159265359; public static function circle($radius) { return pow($radius , 2) * self::PI; } }
true
dbff5d244293d2c1e510f3f4d92a9a0233f1cbb7
PHP
getjump/sanitizer
/src/Formatters/ValidationResult.php
UTF-8
2,818
2.875
3
[ "MIT" ]
permissive
<?php namespace getjump\Sanitizer\Formatters; use getjump\Sanitizer\Types\Error; use getjump\Sanitizer\Types\ErrorCollection; use getjump\Sanitizer\Types\ErrorMessageInterface; class ValidationResult implements ValidationResultInterface { /** * @var bool */ private $valid = true; /** * ...
true
922e89d265583747898f8d77a3976cb859800338
PHP
BillsofHealthApp/yii2ibmBills
/providend/models/old/Submenu.php
UTF-8
832
2.703125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace frontend\models; use Yii; /** * This is the model class for table "submenu". * * @property integer $submenu_id * @property string $sub_name * @property string $sub_link * @property string $sub_pic */ class Submenu extends \yii\db\ActiveRecord { /** * @inheritdoc */ public sta...
true
9f8e3c1388115b26edfe1384d2f43301719933d6
PHP
mooimarkt/mooimarkt
/app/Events/NewNotification.php
UTF-8
1,147
2.515625
3
[]
no_license
<?php namespace App\Events; use App\User; use Illuminate\Broadcasting\Channel; use Illuminate\Queue\SerializesModels; use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Broadcasting\PresenceChannel; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate...
true
b4ddc47ea85e36ed37b1b6bfe1c31af033bd2ab7
PHP
wangkaikai12345/edu
/app/Traits/JoinTrait.php
UTF-8
6,447
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: wangbaolong * Date: 2018/8/23 * Time: 14:11 */ namespace App\Traits; use App\Enums\CouponType; use App\Enums\Currency; use App\Enums\ExpiryMode; use App\Enums\JoinType; use App\Enums\OrderStatus; use App\Enums\Payment; use App\Enums\StudentStatus; use App\Enums\StudentTyp...
true
d4a60a13af410f7c19fd707e7d94fa8f8e40a500
PHP
ParvulaCMS/parvula
/app/routes/api/users.php
UTF-8
1,488
2.53125
3
[ "MIT" ]
permissive
<?php use Parvula\Models\User; use function Parvula\app; /** * @api {get} /users List of users usernames * @apiName Index users * @apiGroup User * * @apiSuccess (200) {array} Array of User usernames * * @apiSuccessExample Success-Response: * HTTP/1.1 200 OK * [ * "admin", * "James", * ...
true
f4deceaa74d8ef96f38839152806b46a11bece4a
PHP
helloanh/ALRP
/plugins/events-manager.4.13/classes/em-ticket-booking.php
UTF-8
6,857
2.765625
3
[]
no_license
<?php class EM_Ticket_Booking extends EM_Object{ //DB Fields var $id; var $booking_id; var $ticket_id; var $price; var $spaces; var $fields = array( 'ticket_booking_id' => array('name'=>'id','type'=>'%d'), 'ticket_id' => array('name'=>'ticket_id','type'=>'%d'), 'booking_id' => array('name'=>'boo...
true
b166f673dad75cd4b29280e75759d2346c6ff63f
PHP
vithaha98/baitap1
/database/seeds/UserTableSeeder.php
UTF-8
532
2.671875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Models\User; class UserTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $faker = Faker\Factory::create(); foreach (range(1, 20) as $value) { User::create([ ...
true
7ea9f66e871740932ed26950b13f29c155b2186a
PHP
tomekkaczmarczyk/Sklep
/src/dbConnection.php
UTF-8
403
2.796875
3
[]
no_license
<?php function connectToDataBase() { $conn = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME); if (!$conn) { die ("Connection failed. Error: " . $conn->connect_error); } return $conn; } function redirectIfNotLoggedIn() { if (!isset($_SESSION['user_id'])) { header('Location: login.ph...
true
c19bd6ca5a7649c0d1f15704c831fedd26dacd98
PHP
dreamds/dreamma_dev
/home/app/models/about_model.php
UTF-8
947
2.625
3
[]
no_license
<?php /** * 网站信息管理 * * @author madesheng * @date 2017-02-18 * @category About_model * @copyright Copyright (c) 2017 * * @version $Id$ */ class About_model extends CI_Model { /** * 获取网站基本信息 * * @param array $params 请求参数 * * @return bool|array */ public function get_website_info($param...
true
fb574dd31e02c428cb1731f664c84eeff5496715
PHP
bozhi91/laravel
/app/Http/Controllers/Controller.php
UTF-8
1,108
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Routing\Controller as BaseController; use Illuminate\Support\Facades\Log; use Illuminate\Container\Container as App; use App\Repositories\User\UserRepository; use App\Src\User\User; class Controller extends BaseController { public function viewRegisters(){ //I...
true
97dd7e25bbbaef35ab19bd8ee683ee61367f3a74
PHP
stuartblavatnik/php-fantasy-football
/php/classes/class.whois.php
UTF-8
442
2.53125
3
[]
no_license
<? Class whois { function lookup($lookup) { $whois = "whois.geektools.com"; $fp = @fsockopen($whois, 43, &$errno, &$errstr, 30); if (!$fp) { $data = 0; } else { $lookup .= "\n"; @fputs($fp, $lookup); ...
true
0466b76a1daa3c4233d21c53f0c794309b98226b
PHP
jibundeyare/cours-php
/code/portee7.php
UTF-8
303
3.375
3
[]
no_license
<?php // la variable `$a` est définie dans une fonction // en utilisant le mot clé `global`, une variable déclarée dans une fonction devient visible par du code se trouvant dans la portée globale function test() { global $a; $a = 'toto'; } test(); // affiche "toto" echo $a; echo "\n";
true
17781b92d6c4007894557e3e94a3f5ddb41458ea
PHP
callmecotedivoire/eServices-Techniques
/eservicetech/admin/controllers/datefct.php
UTF-8
203
2.578125
3
[]
no_license
<?php function conversion2FR($date){ $annee = explode("-", $date); $yr = $annee[0]; $jr = $annee[2]; $m = $annee[1]; $jrh = explode(" ", $jr); echo $jrh[0]; echo "-"; echo $m; echo "-"; echo $yr; } ?>
true
25951229ea4b423adc41fe996bb0435b6def4f31
PHP
megumimorisawa/sanctuary_places
/daos/FavoriteDAO.php
UTF-8
4,013
3.15625
3
[ "MIT" ]
permissive
<?php require_once 'config.php'; require_once 'models/Favorite.php'; //DAO class FavoriteDAO { //データベースへ接続メソッド public static function get_connection(){ $options = array( PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETCH_...
true
5ddb87d6bc36bf98530bf0a97538319cf189822f
PHP
nameiOP/php-tcp
/loop/loop.php
UTF-8
1,394
2.875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2017/9/26 * Time: 11:32 */ namespace loop; use rua\base\event; use server\server; abstract class loop extends event { private $server; public function __construct(server $server) { $this->server = $server; } /** ...
true
2fdbd900059bf3abe70c29ae8b132b66f175fef0
PHP
AhmedHashem2104/ads-project-backend-zte
/core/Request.php
UTF-8
19,816
2.9375
3
[]
no_license
<?php class Request { private static $errors = array(); public static $file; public static function validate($src, $rules = []) { if (is_object($src)) { $src = json_decode(json_encode($src), true); } $state = false; foreach ($rules as $item => $item_value) { $data = explode('|...
true
60bdefba5b503d62248a68724549fe5c13db1b83
PHP
guanguans/laravel-exception-notify
/src/Channels/LogChannel.php
UTF-8
732
2.5625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); /** * This file is part of the guanguans/laravel-exception-notify. * * (c) guanguans <ityaozm@gmail.com> * * This source file is subject to the MIT license that is bundled. */ namespace Guanguans\LaravelExceptionNotify\Channels; use Guanguans\LaravelExceptionNotify\Contracts\Cha...
true
746de11dbf604f684c137edadaa1972082a38b71
PHP
ItsThomas7/HorizonReview
/fetch.php
UTF-8
1,135
2.671875
3
[]
no_license
<?php // Er zijn 2 verschillende databases, comment degenen uit die niet nodig // Local $host = "localhost"; $username = "root"; $password = ""; $dbname = "horizonreview"; // Online $host = "localhost"; $username = "deb77629n2_horizonreview"; $password = "dKPWT0e0K"; $dbname = "deb77629n2_horizonreview"; if(iss...
true
a6f1710770361aa0ac8ddb634ecbc8ebef63b426
PHP
headsnet/living-documentation
/src/Annotation/Refactoring/AwaitingRefactoring.php
UTF-8
1,720
2.71875
3
[ "MIT" ]
permissive
<?php namespace Headsnet\LivingDocumentation\Annotation\Refactoring; use Doctrine\Common\Annotations\Annotation; use Headsnet\LivingDocumentation\Annotation\BaseAnnotation; use Headsnet\LivingDocumentation\Annotation\LivingDocumentationAnnotation; /** * To keep track of items to refactor when planning an application...
true
0d30d25e2e6d7414e16cb4adac85831819319056
PHP
xplo40/cforce
/modules/merchants/get_merchant_notes.php
UTF-8
1,371
2.578125
3
[]
no_license
<?php //check for login session_start(); session_write_close(); if(!isset($_SESSION['valid']) || !$_SESSION['valid']){ echo "Please log in."; die(); } include "../../include/common.php"; connect_to_mysql_database(false); //get merchant details $id = sanitiz...
true
17a7af32c857a38b0b11630e545a058d6ca9e792
PHP
JhonAguiar/orden-trabajo
/controller/fotoUserController.php
UTF-8
2,230
2.609375
3
[]
no_license
<?php require_once '../db/Conectar.php'; $uploaddir = '../img/userImg/'; try { if (!isset($_FILES['foto']['error']) || is_array($_FILES['foto']['error'])) { throw new RuntimeException('Parametros Invalidos'); } switch ($_FILES['foto']['error']) { case UPLOAD_ERR_...
true
c5b32db7f76358566f1304eefa89c21733e4b61f
PHP
new-inventor/form2
/src/Abstractions/NamedObject.php
UTF-8
1,476
2.953125
3
[]
no_license
<?php /** * User: Ionov George * Date: 12.02.2016 * Time: 17:51 */ namespace NewInventor\Form\Abstractions; use NewInventor\Form\TypeChecker\Exception\ArgumentException; use NewInventor\Form\TypeChecker\Exception\ArgumentTypeException; use NewInventor\Form\Abstractions\Interfaces\NamedObjectInterface; use NewInve...
true
298dacc8b6740959346ab208906025b768ddadb6
PHP
shivadentulu/appointmentapp
/application/models/Availability_model.php
UTF-8
2,168
2.765625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Availability_model extends CI_Model { public $user_id; public $date; public $from_time; public $to_time; public function add($user_id, $date, $from, $to) { $this->user_id = $user_id; $this->date ...
true
735f64131473b5e81f2aced183b33339faff78fc
PHP
AlekseyAbramov/less3.3
/libs/classes/pen.php
UTF-8
838
2.953125
3
[]
no_license
<?php namespace classes; require_once 'product.php'; require_once 'interfaces'. DIRECTORY_SEPARATOR. 'view.php'; class pen extends product implements viewPrice { public $colorInk; public $inkType; public $material; public function viewPrice() { if (!empty($this->getPrice)) { ec...
true
bf02390e2365a883740a1d0c0ebc1e45a0614a98
PHP
ambroseang/WAD-supreme-shopping-club
/api/auth/signup.php
UTF-8
2,235
2.8125
3
[]
no_license
<?php // headers header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); require_once '../DAO/UserDAO.php'; $dao = new UserDAO(); $postBody = file_get_contents("php://input"); $postBody = json_decode($postBody, TRUE); function GetErrorMessages($postBody, $dao) { $msg = ...
true
5aa8dcee2555ec542f013e512f7a7d9c23b8cf14
PHP
ddkq/dedao
/newshenzhen/shanghai/application/Department/Common/function.php
UTF-8
7,115
2.71875
3
[ "Apache-2.0" ]
permissive
<?php /** * 获取科室介绍 * @param int $tid 科室id * @param str $tag 读取字段 * @param array $w where条件 * @return array 返回指定科室的介绍 */ function sp_get_department_post($tid,$tag,$w){ $where=array(); $where = $w; $tag=sp_param_lable($tag); $field = !empty($tag['field']) ? $tag['field'] : '*'; /...
true
32dfb8f3227d44fd2e1d73304c44fedcff5be43f
PHP
LangeHenrik/SDU-ITI-F19
/nifil17/mvc/app/controllers/HomeController.php
UTF-8
2,560
2.78125
3
[]
no_license
<?php class HomeController extends Controller { public function index () { $this->view('home/index'); } public function other ($param1 = 'first parameter', $param2 = 'second parameter') { $this->view('home/index'); } public function restricted () { echo 'Welcome - you must be logged in'; } public ...
true
c52784aa6ee42a4733d3e262e651f9771693e3c8
PHP
zhumingliang/canteenService
/vendor/lotofbadcode/phpspirit_databackup/src/mysql/Recovery.php
UTF-8
3,251
2.8125
3
[ "Apache-2.0" ]
permissive
<?php namespace phpspirit\databackup\mysql; use PDO; use Exception; use phpspirit\databackup\IRecovery; class Recovery implements IRecovery { /** * SQL文件所在的目录 * @var string */ private $_sqlfiledir = ''; /** * SQL文件数组 * @var array */ private $_sqlfilesarr = []; ...
true
1adbcdc565856a7deedbd698b5b01a159478ab24
PHP
stediz/traveltainment
/src/StructType/OfferScType.php
UTF-8
7,279
2.71875
3
[]
no_license
<?php namespace StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for OfferScType StructType * Meta informations extracted from the WSDL * - documentation: Ein Offer enthaelt einen Package-, Accomodation- oder Flightknoten, oder einen "Third-party-Knoten" (RentalCar, Insurance ode...
true
b801a03c8e4cb0621902e0b0595e48b0cc17af6d
PHP
fadeeva-alena/yii-test
/console/migrations/m181010_121634_create_employee_table.php
UTF-8
853
2.671875
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Handles the creation of table `employee`. */ class m181010_121634_create_employee_table extends Migration { /** * {@inheritdoc} */ public function safeUp() { $this->createTable('employee', [ 'id' => $this->primaryKey(), 'firstNa...
true
c19a87fad8e17d50ec58205cc77f5771222fdd50
PHP
barracudanetworks/php-ews
/EWSType/FolderQueryTraversalType.php
UTF-8
1,129
2.890625
3
[]
permissive
<?php /** * Contains EWSType_FolderQueryTraversalType. */ /** * Defines how a FindFolder search is performed. * * @package php-ews\Enumerations */ class EWSType_FolderQueryTraversalType extends EWSType { /** * Consider both direct children as well as all subfolders contained within * those children...
true
6ed489bf3c4edb6bd9cae1f1b85169cfc4fe61da
PHP
ovidiuj/wholesaler-integration
/src/Controller/DefaultController.php
UTF-8
950
2.515625
3
[]
no_license
<?php namespace kollex\Controller; use kollex\Service\CsvService; use kollex\Service\JsonService; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; /** * Class DefaultController * @package kollex\Controller */ class DefaultController { /** *...
true
78bd307c10d069d6cf87c99d28cb3493d3174d19
PHP
mtils/php-ems
/src/Ems/Contracts/Model/SupportsTransactions.php
UTF-8
553
2.9375
3
[ "MIT" ]
permissive
<?php /** * * Created by mtils on 02.02.18 at 05:42. **/ namespace Ems\Contracts\Model; interface SupportsTransactions { /** * Run the callable in a transaction. * begin(); $run(); commit(); * * @param callable $run * @param int $attempts (default:1) * * @return mixed Th...
true
3f70d72dc29076e0b66c840f5cdfba306c957e85
PHP
wellol/schema
/tests/Schema/Table/Column/SetColumnTest.php
UTF-8
1,488
2.828125
3
[ "MIT" ]
permissive
<?php /** * @file * @author Lightly Salted Software Ltd * @date 6 March 2015 */ namespace LSS\Schema\Table\Column; use LSS\Schema; class SetColumnTest extends \PHPUnit\Framework\TestCase { public function testConstructorArray() { $subject = new SetColumn($name = 'abc', $desc = 'def', false, [...
true
bfe7b19e31bf82ab87d93b8284a9b995c96dee50
PHP
allenshih1/database
/add_country_func.php
UTF-8
736
2.578125
3
[]
no_license
<? require_once('check_exist.php'); ?> <? session_save_path("./session/"); session_start(); if(isset($_SESSION['isAuth']) && $_SESSION['isAdmin']) { $abbr = $_POST['abbr']; $name = $_POST['name']; if($abbr === "" || $name === "") { echo "insert error"; } else { require_once('db.php'); $sql =...
true
19024692e04d5289ab5a2b5ef334acd57aa261f8
PHP
josefinaherrera/PHP
/Max_Min_Prom_Banderas/maxymin.php
UTF-8
179
3.1875
3
[]
no_license
<?php //https://www.php.net/manual/es/language.types.integer.php $var1=PHP_INT_MAX; $var2=PHP_INT_MIN; echo "El mayor int es ".$var1."\n"; echo "El menor int es ".$var2."\n"; ?>
true
bc48fdd36ec4e4f08ab5930d3c24328131fe801c
PHP
Oleeze/Ecom-Website
/includes/signup.inc.php
UTF-8
1,674
2.84375
3
[]
no_license
<?php $errors = array(); $_SESSION['success'] = ""; if (isset($_POST['submit'])) { include_once 'dbh.inc.php'; $email = mysqli_real_escape_string($conn, $_POST['email']); $uid = mysqli_real_escape_string($conn, $_POST['uid']); $pwd_1 = mysqli_real_escape_string($conn, $_POST['pwd_1']); $pwd_2 = mysqli_real_escap...
true
f9e4b2cbc157373d3e5c9a3bb311822cf57f811a
PHP
txtghana/txtpay-php
/src/Contracts/CallbackInterface.php
UTF-8
1,785
2.828125
3
[ "MIT" ]
permissive
<?php namespace Txtpay\Contracts; use Closure; /** * CallbackInterface. */ interface CallbackInterface { /** * Register the callback if conditions match the request parameters. * * @param string|array $conditions String or associative array matching the request parameters. * ...
true
66409fa55d4b77457b3e598572331e47c60fadae
PHP
jsy135135/ithm5
/learn/2.php
UTF-8
919
2.875
3
[]
no_license
<?php //声明字符编码信息 header('Content-type:text/html;charset=utf-8'); //缓存mysql数据操作 //1.查询memcache的数据 //连接memcache $mem = new Memcache(); $mem->connect('127.0.0.1',11211); $data = $mem->get('data'); //2.如果有直接返回 //如果数据不存在,memcache返回false if($data === false){ sleep(2); // echo 'this is mysqldata'; //如果没有就查询mysql,再缓存 /...
true
4c9f8073ff02843918e2faa5fafa2c7f4c3be895
PHP
baskuis/werock
/public/modules/Media/objects/MediaCreateObject.class.php
UTF-8
3,151
2.953125
3
[]
no_license
<?php /** * Media Create Object * * PHP version 5 * * @package Ukora * @author Bas Kuis <b@ukora.com> * @copyright 2012 Bas Kuis (http://www.ukora.com) * @license http://creativecommons.org/licenses/by-nc/3.0/ Attribution-NonCommercial 3.0 Unported (CC BY-NC 3.0) * @link http://www.ukora.com/cms/documentation...
true
72f226c4580db9ff7c5d3a37fdc4725ca89403da
PHP
aweneagle/van
/io.bk/log.php
UTF-8
1,935
2.96875
3
[]
no_license
<?php class IoLog implements IIo{ protected $filepath; protected $LINE_SP = "\n"; protected $data = array(); public $dir_mod = 0777; public function __construct($params){ van_assert(isset($params["path"]), "empty file path"); $filepath = $params["path"]; /* permi...
true
5f0c0db3e9109d9e315830ff698c437420850d06
PHP
peelvalley/UF_EmailQueue
/src/Database/Seeds/EmailQueuePermissions.php
UTF-8
2,280
2.734375
3
[ "MIT" ]
permissive
<?php namespace UserFrosting\Sprinkle\EmailQueue\Database\Seeds; use UserFrosting\Sprinkle\Core\Database\Seeder\BaseSeed; use UserFrosting\Sprinkle\Account\Database\Models\Permission; use UserFrosting\Sprinkle\Account\Database\Models\Role; class EmailQueuePermissions extends BaseSeed { /** * {@inheritDoc} ...
true
8de440a59758c659dbc80a52e11a2ef4cf1a2c57
PHP
Donwaztok/GerenciadorClientes
/Home.php
UTF-8
9,160
2.75
3
[]
no_license
<?php include("dbconfig.php"); ob_start(); session_start(); $error = false; $errorMsg = ""; if (isset($_POST['btn-login'])) { $name = trim($_POST['username']); $pass = trim($_POST['password']); if (empty($name)) { $error = true; $errorMsg = "Por favor digite um login."; } if (em...
true
e732ab56e51f4053049e2b645e92e9bc048531ca
PHP
KamalDGRT/Event-Aggregator
/console/migrations/m210506_141800_create_prize_table.php
UTF-8
3,137
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Handles the creation of table `{{%prize}}`. * Has foreign keys to the tables: * * - `{{%event}}` * - `{{%user}}` * - `{{%user}}` */ class m210506_141800_create_prize_table extends Migration { /** * {@inheritdoc} */ public function safeUp() { $this...
true
02ba28cadcf1168838c434caaf2b5082aedee0a3
PHP
aaronjcksn/simple-contact-form
/contact-email.php
UTF-8
439
2.515625
3
[]
no_license
<html> <body> <?php $name =$_POST['name']; $email = $_POST['email']; $message = $_POST['message']; $formcontent ="From: $name \n Message: $message"; $recipient = "youremail@address.com"; //Enter in your email address $subject ="Contact Form"; $mailheader = "From: $email \r\n"; mail($recipient, $subject...
true
2eae062dd2c01e5471f81adf59dad717127b77db
PHP
FadhilahKim/kumpulan-latihanku
/log/index.php
UTF-8
897
2.59375
3
[]
no_license
<?php error_reporting(0); include 'koneksi.php'; ?> <!DOCTYPE html> <html> <head> <title></title> </head> <body> <h2>login form</h2> <br> <!--cek pesan notifikassi---> <?php if (isset($_POST['pesan'])) { if ($_POST['pesan'] == "gagal") { echo "login gagal! slh dua2"; }else if ($_POST['pesan'] == "l...
true
e9f857654d591250fb2dc3e7c75ccdb6d5cfa1f0
PHP
melaniephoffmann/web-tech
/Aufgabe7/aufgabe7test.php
UTF-8
4,657
2.734375
3
[]
no_license
<!DOCTYPE html> <html lang="de"> <head> <meta charset="utf-8" /> <title>Aufgabe 7</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"> </head> <body> <style> body { ...
true
ccc4e6a3dd23cc131653342412813ff3f2ddf785
PHP
stubbles/stubbles-1.x
/src/test/php/net/stubbles/rdbms/criteria/stubOrCriterionTestCase.php
UTF-8
2,623
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Test for net::stubbles::rdbms::criteria::stubOrCriterion. * * @package stubbles * @subpackage rdbms_criteria_test * @version $Id: stubOrCriterionTestCase.php 2918 2011-01-13 21:43:40Z mikey $ */ stubClassLoader::load('net::stubbles::rdbms::criteria::stubOrCriterion'); /** * Test for net::stu...
true
b7a9ab985b04d70c91c2d35d8d69f96e41494a40
PHP
Mind-itl/mind
/api/getTransactions.php
UTF-8
946
2.640625
3
[]
no_license
<?php namespace Mind\Api; use Mind\Server\{Api_method, Utils}; use Mind\Db\{Passwords, Users, Db, Transactions}; use Mind\Users\{Teacher, Student}; class getTransactions extends Api_method { public static function handle(): array { if (!Utils::isset_get_fields("login")) return [ "status" => "error", "er...
true
91daed77578d6050b2bde40a2bff979f137fb527
PHP
khandhardhaval100/php-day-1
/php day 2/switchcase1.php
UTF-8
289
3.265625
3
[]
no_license
<?php $a = 1; switch ($a){ case 1: echo "one"; break; case 2: echo "two"; break; case 3: echo "three"; break; case 4: echo "four"; break; default: echo "Select from 1 to 4"; }
true
10706e1b97a69d7d75131ddde2359b91b4052e9b
PHP
ChristopheSim/WebAPI
/src/Entity/Beer.php
UTF-8
2,155
2.59375
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * @ORM\Entity(repositoryClass="App\Repository\BeerRepository") */ class Beer { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; ...
true
05bac5bc78392a4b664013ef401b8b9252ffbaae
PHP
morimartin14/endava-thrive
/src/Controllers/ProductController.php
UTF-8
3,524
2.796875
3
[]
no_license
<?php namespace Controllers; use Models\Products; use Models\RecentlyViewedProduct; include "../Models/Products.php"; include "../Models/RecentlyViewedProduct.php"; $action = $_GET['action'] ?? ''; switch ($action) { case 'getProducts': $currentPage = $_GET['currentPage'] ?? 1; $pagination = Prod...
true
97c44432a33f2dfad7ddc7d59f06e1e91e70f939
PHP
SandroGuerotto/AudioCity
/model/Song.php
UTF-8
2,200
3.265625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Sandro * Date: 21.03.2017 * Time: 21:15 */ class Song { private $id; private $name; private $album; private $length; private $date; private $piclink; private $filelink; private $genre; private $artist; /** * Song constructor....
true
000d0ec13516404b59ee9db37df5cc6f598c86bc
PHP
gopinet/pruebaClaseExcel
/index.php
UTF-8
3,132
2.78125
3
[]
no_license
<?php include_once 'conexion.php'; date_default_timezone_set('America/Bogota'); $sentencia_select=$con->prepare('SELECT * FROM producto ORDER BY fecha_ing DESC'); $sentencia_select->execute(); $resultado=$sentencia_select->fetchAll(); //Opción Buscar if(isset($_POST['btn_buscar'])){ ...
true
ae2125bf241bd7c0fa726d77ef8fb8732f0dc3f4
PHP
gbalbuena/abn-generator
/index.php
UTF-8
475
3.4375
3
[]
no_license
<?php function generateAbn($random_number = null) { $random_number = str_pad(($random_number ?? rand(1, 999999999)), 9, '0', STR_PAD_LEFT); $abn = "10" . $random_number; $weights = [10, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19]; $sum = 0; foreach ($weights as $position => $weight) { $digit = $abn[$...
true
cf1e94e9c9a86aa50198924263c277a54e3a6b0e
PHP
Antekov/simple-teacher
/application/libraries/Auth.php
UTF-8
3,133
2.703125
3
[ "MIT" ]
permissive
<?php class Auth { private $ci; public $user; public $data; public function __construct() { $this->ci =& get_instance(); $this->ci->config->load(); $this->ci->load->helper('url'); } public function has_group($group) { return in_array($this->user['groups'],$group,true); } public function check_auth() {...
true
2d83fe2de3a76ee983b4ff2e7b35d747de2cd483
PHP
harshal-webonise/PhpSpikeTwo
/prevent/security.php
UTF-8
711
2.984375
3
[]
no_license
<?php class security { private $protocol; function __construct() { $this->set_protocol(); return; } private function set_protocol() { if ($_SERVER['HTTPS'] && strtolower($_SERVER['HTTPS']) == "on") { $this->protocol = "https"; }...
true
913bce5213bf6b75c82f5601d64e1bb9bd879a7d
PHP
ubtue/gundert
/lib/Search.php
UTF-8
2,986
3
3
[]
no_license
<?php namespace Gundert; class Search { /** * unique ID of the search * @var string */ private $_id; /** * collections of the search * @var array */ private $_collections; /** * languages of the search * @var array */ private $_languages; /**...
true
cc420dd3e4f4e4271b77d6c7ce24835350500206
PHP
Robson-Carneiro/bancodedados2
/_conexao/conectPDO.php
UTF-8
647
3.140625
3
[]
no_license
<?php $servidor = "localhost"; $usuario = "root"; $senha = "senac"; $database = "crud"; try { // Criando a conexão com PDO $conn = new PDO("mysql:host=$servidor;dbname=$database", $usuario, $senha); // Checar a conexão com PDO se tem erros $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); echo ...
true
5a2fcec40246e8e9d88ea59720adca03734a266d
PHP
pete001/poet-php-sdk
/src/FrostFactory.php
UTF-8
1,043
2.609375
3
[ "MIT" ]
permissive
<?php namespace CryptoPete\Frost; use CryptoPete\Frost\Adapter\Http\GuzzleAdapter; use CryptoPete\Frost\Adapter\Http\HttpInterface; use CryptoPete\Frost\Adapter\Settings\DotenvAdapter; use CryptoPete\Frost\Adapter\Settings\SettingsInterface; use Dotenv\Dotenv; use GuzzleHttp\Client; /** * Class FrostFactory * * S...
true
be0fc244502c83fa6c6ba4835b64c5143d1974f5
PHP
Isaac2Ngeno5/farmsol
/config/database.php
UTF-8
1,019
3.140625
3
[]
no_license
<?php class Database { /** * Make sure you replace with your configuration */ private $host = "localhost"; private $db = "farmsol"; private $port = "3306"; private $user = "root"; private $pass = "54985498"; private $charset = "utf8"; private $pdo; /** * Get a conne...
true
a07f57826ba116562d3de502ad0c0d6c3827fab8
PHP
sukritgulati/CS425-online-theatre-management-system
/www/ProcessPurchase.php
UTF-8
3,350
2.5625
3
[]
no_license
<!-- Joshua D. LaBorde --> <?php include 'connectDB.php'; /* CreditCardCo function for testing is implemented using the php rand function to randomly generate a number between 0 & 9. Numbers higher than 7 are used to indicate an issue with the card. It could be invalid information or could be insufficient fu...
true
784943dff5a0e96833994ea06b42cd6e64426167
PHP
EspowHD/ISAD251_Retake
/pages/SchedulerEndpoint/createNewDeadline.php
UTF-8
711
2.59375
3
[]
no_license
<?php include_once "..\\..\\Classes\\DBContext.php"; session_start(); var_dump($_POST); $db = new DBContext(); if( isset($_POST["NewDeadlineTitle"]) && isset($_POST["NewDeadlineTime"])) { $title = $_POST["NewDeadlineTitle"]; $time = str_replace("T"," ",$_POST["NewDeadlineTime"]); $description = null; $c...
true
a74716a21decf34002316c889ea0afd0bf8a94d3
PHP
MichaelMcGowan/flowerboy
/project4/twitter.php
UTF-8
4,883
2.53125
3
[ "MIT" ]
permissive
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>Flower Boy</title> <meta name="description" content="Flower Boy"> <meta name="author" content="Michael McGowan"> <!-- Latest compiled and minified CS...
true
f24024c2631a8019c959147cc9d4427c2b2086bc
PHP
rohit-gupta/Apicius
/login.php
UTF-8
798
2.515625
3
[ "Apache-2.0" ]
permissive
<?php session_start(); ini_set('display_errors',1); ini_set('display_startup_errors',1); error_reporting(-1); include 'dbconnect.php'; include 'utilities.php'; try{ $conn=connect_db(); //query version $query="SELECT * FROM users WHERE email = '".$_POST['email']."'"; $res=$conn->query($query); $assoc=$res->fetchAl...
true
205becafb11e698be85efe11389ce79f607ecfb8
PHP
CE-KMITL-OOAD-2014/Library_Management_System
/app/controllers/AuthenController.php
UTF-8
1,906
2.609375
3
[ "Apache-2.0" ]
permissive
<?php class AuthenController extends BaseController { //check login when user was arrived to login. public function check_login(){ session_start(); $user = new InterfacePersonRepo; $tmp = $user->getRepository(Input::get('txtUsername')); if($tmp==NULL){ return View::make('alert/authen/alertLogin'); }els...
true
bc3f089ca8b1a999532c2aa121712489a1c67d89
PHP
LucasFrancisco1318/Painel
/leituraBaseXML.php
UTF-8
1,947
2.796875
3
[]
no_license
<?php ini_set('max_execution_time', 300); //300 seconds = 5 minutes try { if (isset($_FILES['fileInputData'])) { date_default_timezone_set('America/Sao_Paulo'); $date = new DateTime('now'); $extensao = pathinfo($_FILES["fileInputData"]["name"], PATHINFO_EXTENSION...
true
1f3bd69b1182a07200e4672a3dc9e8a5ca132c95
PHP
phossa/phossa-route
/tests/src/Phossa/Route/DispatcherTest.php
UTF-8
6,506
2.640625
3
[ "MIT" ]
permissive
<?php namespace Phossa\Route; use Phossa\Route\Route; use Phossa\Route\Status; use Phossa\Route\Collector; use Phossa\Route\Context\Result; use Phossa\Route\Context\Request; use Phossa\Route\Regex\ParserStd; use Phossa\Route\Context\ResultInterface; use Phossa\Route\Handler\ResolverAbstract; /** * Generated by PHPUn...
true
52c1aac0670ebbe917f893a999a7a86a349b1897
PHP
developeryenny/Cookies-php-mysql
/cookis_ejer3/destroy_cookie.php
UTF-8
118
2.53125
3
[]
no_license
<?php setcookie("nombreUsuario", "ana", time()-1);//nombre, valor, duración cookie echo "cookie destruida"; ?>
true
65624444e0e3eff3b3924df17f9e6a0a0d2d8e50
PHP
alex83we/tuning-freunde
/app/Models/Frontend/Album/Album.php
UTF-8
714
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Models\Frontend\Album; use Cviebrock\EloquentSluggable\Sluggable; use Illuminate\Database\Eloquent\Model; /** * @method static where(string $string, string $string1, bool $true) */ class Album extends Model { use Sluggable; /** * Return the sluggable configuration array for this m...
true
4a7dd749c88adb2e4211f57f868ad261cacc65cf
PHP
AlexanderOrpheus/projectX
/index2.php
UTF-8
941
3.609375
4
[]
no_license
<?php class Students { // объявление свойства public $name = ''; function __construct($name, $status) { $this->name = $name; $this->status = $status; $this->getName(); $this->getStatus(); } // объявление метода public function getName() { echo 'user name ...
true
204d051d9c5504181138563cf63d986c18086f0e
PHP
valorin/pinpusher
/src/Pin/Action/Http.php
UTF-8
2,564
2.90625
3
[ "MIT" ]
permissive
<?php namespace Valorin\PinPusher\Pin\Action; class Http extends Base { const GET = 'GET'; const POST = 'POST'; const PUT = 'PUT'; const DELETE = 'DELETE'; /** * @var string */ protected $type = 'http'; /** * @var string */ protected $url; /** * @...
true
fed25512be78c78fe1348971fe6d12241fec4976
PHP
COMP5531/CSM
/www/Controllers/SalesAssociateController.php
UTF-8
1,011
3.046875
3
[]
no_license
<?php include_once '..\Model\DbConnection.php'; class SalesAssociateController extends DbConnection { //example where query does not need to pass parameter to fetch data. public function GetAllProvinces() { $stmt = $this->connect()->query("SELECT DISTINCT Province FROM Address"); ...
true
14b25f6cc802a8751876610635eceaa61c1e42a3
PHP
Guy44/assocope
/modules/GChartPhp/util.php
UTF-8
1,443
3.34375
3
[ "DOC" ]
permissive
<?php class utility{ public static function count_r($mixed){ $totalCount = 0; foreach($mixed as $temp){ if(is_array($temp)){ $totalCount += utility::count_r($temp); } else{ $totalCount += 1; } } return $totalCount; } public static function addArrays($mixed){ $summedArray = array()...
true
5047f09fb5177c653dc138297df052c1a6a44770
PHP
BridgeRock12436/twilightPhp
/twilight/DbRecord/image_DBREC.php
UTF-8
2,769
2.78125
3
[]
no_license
<?php class image_DBREC extends DbRecord { private $date_added; private $description; private $alt; private $src; private $align; private $height; private $width; private $ismap; private $longdesc; private $usemap; private $javascript; private $record_key; private $rowid; public function __construc...
true
45621cb6a84216c1bcf8279484596222f3853b6b
PHP
HansanaPushpakumara/Online-Loan-Management-System-PHP
/Add_and_Remove.php
UTF-8
9,163
2.84375
3
[]
no_license
<?php require_once("connection.php"); //-----------------remove Admin----------------------- if (isset($_POST["delete"])){ $uname=$_POST["uname"]; $sql = "SELECT* FROM login WHERE userName='$uname' AND userCategory='Admin'"; $result=$conn->query($sql); $row=$result->fetch_assoc(); if ($re...
true
945ab308e4d85e874d00672af33c50d79d089502
PHP
vickyg3/social-photos
/utils/http_utils.php
UTF-8
1,511
2.609375
3
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
<?php function http_get($url) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); $response = curl_exec($curl); curl_close($curl); return...
true
8ecb704a98d8850cf30d10abf6f1704b95a28e63
PHP
komagata/plnet
/lib/mixi/phpMixi.class.php
EUC-JP
36,662
2.75
3
[ "MIT" ]
permissive
<?php /** * PHP_Mixi * mixi(mixi.jp)˥뤿Υ饹 * * @package PHP_Mixi * @author riaf <webmaster@riaf.org> * @since PHP 4.0.3 * @version $Id: PHP_Mixi.php,v 0.1.1 2006/02/08 riaf Exp $ */ class PHP_Mixi { /** * @var string ᡼륢ɥ쥹 */ var $email = ""; /** * @var string ѥ */ var $passw...
true
c5d87c36aaa6e411dd8c7b1e819c22d45f184f93
PHP
WF3-Team5/symfony-pfe
/src/Entity/Biometric.php
UTF-8
920
2.6875
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\BiometricRepository") */ class Biometric { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="integer") ...
true
e1aad02c1ef0d1b02b2b27519278da35ad5c5a52
PHP
OneLoneFox/Djaravel
/Utils/Shortcuts.php
UTF-8
398
2.53125
3
[]
no_license
<?php namespace Djaravel\Utils; class Shortcuts { static function redirect($url){ $host = $_SERVER['SERVER_NAME']; $redirectUrl = 'http://'.$host.$url; header('Location: '.$redirectUrl); exit(); } static function redirectBase($url){ $host = $_SERVER['SERVER_NAME']; $redirectUrl = 'http://'.$host.'/'...
true
9367a51c72dcf529953bd62f8335ad3e2d8c881f
PHP
jimmy-wynendaele/PHP
/Tableaux/index.php
UTF-8
907
3.65625
4
[]
no_license
<!DOCTYPE html> <html> <head> <title>taggle again</title> </head> <body> <?php //EX1 $tableau = array("janvier","février","mars","avril","mai","juin","juillet","aout","septembre","octobre","novembre","décembre"); echo $tableau; //EX2 echo "<br>"; echo $tableau[2]; //EX3 echo "<br>"; echo $tab...
true
fc84598ef1f8fdb0c9b764e1f1a72f4aa61af589
PHP
go-spo/gospo
/model/admin/centros/img-insert-centro.php
UTF-8
1,412
2.9375
3
[]
no_license
<?php if ($_FILES["file"]["error"] != 4) { $target_dir = "../../../resources/img/Centros/"; $target_file = $target_dir . basename($_FILES["file"]["name"]); $uploadOk = 1; $imageFileType = strtolower(pathinfo($target_file, PATHINFO_EXTENSION)); // Allow certain file formats if ($ima...
true
421222b0ef061340c29436143698e9758f1203a1
PHP
DisposaBoy/PHPCodeIntel
/PHP/lib/local/PHPIntel/Scanner/ProjectScanner.php
UTF-8
935
2.78125
3
[ "MIT" ]
permissive
<?php namespace PHPIntel\Scanner; use PHPIntel\Dumper\Dumper; use PHPIntel\Intel\IntelBuilder; use PHPIntel\Scanner\Iterator\ProjectIterator; use PHPIntel\Logger\Logger; use \Exception; /* * ProjectScanner */ class ProjectScanner { protected $settings = null; public function __construct($settings=null) ...
true
33a75bce4f0ad62189d1a94fc7dd9ba2c0e97d25
PHP
kenhyuwa/laravel-media
/src/ImageManipulator.php
UTF-8
1,539
2.859375
3
[ "MIT" ]
permissive
<?php namespace Optix\Media; use Optix\Media\Models\Media; use Intervention\Image\ImageManager; class ImageManipulator { /** * @var ConversionRegistry */ protected $conversionRegistry; /** * @var ImageManager */ protected $imageManager; /** * Create a new ImageManipulat...
true
51487748d23917c69b4f3acb4c2fc06f31f1b5b3
PHP
RuliLG/OurHealth
/ourhealth/database/migrations/2020_12_29_154811_create_medications_table.php
UTF-8
878
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateMedicationsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('medications...
true
e49e61f2064012d3f9f3c0d9e4e8b91a6cc5b8d8
PHP
reiheng/PropelTranslationBundle
/Core/Exporter/XliffExporter.php
UTF-8
2,580
2.765625
3
[]
no_license
<?php namespace Propel\TranslationBundle\Core\Exporter; /** * Export translations to a Xliff file. * * @author Cédric Girard <c.girard@lexik.fr> */ class XliffExporter implements ExporterInterface { /** * (non-PHPdoc) * @see Lexik\Bundle\TranslationBundle\Translation\Exporter.ExporterInterface::expo...
true
460d9afaa5dacc71547be179137f786352160b6c
PHP
13231955653/a
/docker_example/pingyin/vendor/yurunsoft/chinese-util/src/Chinese/Driver/Pinyin/FFI.php
UTF-8
998
3.015625
3
[ "MIT" ]
permissive
<?php namespace Yurun\Util\Chinese\Driver\Pinyin; use Yurun\Util\Chinese\Pinyin; use Yurun\Util\Chinese\FFIDriver; class FFI implements BaseInterface { public function __construct() { FFIDriver::getHandler('FFI'); } /** * 把字符串转为拼音结果,返回的数组成员为字符串 * @param string $string * @param ...
true
a4ea542071cc8ad00aa260a3f07993d305c289e0
PHP
mercuryphp/framework
/System/Web/Mvc/HttpMethodAttribute.php
UTF-8
490
2.5625
3
[]
no_license
<?php namespace System\Web\Mvc; class HttpMethodAttribute extends FilterAttribute { protected $methods = array(); public function __construct(){ $this->methods = func_get_args(); } public function isValid(\System\Web\HttpContext $httpContext){ if(!in_array($...
true
8e02f6451cc5804aea23887da5503b0801d8a31f
PHP
GihanGat/A00209188-Blog
/private/app/controllers/bloggerlog.php
UTF-8
4,452
2.640625
3
[]
no_license
<?php class BloggerLog extends Controller{ function __construct(){ parent::__construct(); } function Index(){ $this->view("template/header"); // print_r($_SESSION); $is_auth = isset($_SESSION["username"]); //$this->testLogin(); $this->Login(); $this...
true