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
f17c2b4351340e44f94e08a8c69d42edbd238fdd
PHP
JavierRamosVillarejo/pccomponentes
/src/Entity/Articulo.php
UTF-8
2,787
2.5625
3
[]
no_license
<?php namespace App\Entity; use App\Repository\ArticuloRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=ArticuloRepository::class) */ class Articulo { /** * @ORM\Id * @ORM\Genera...
true
a24ce9c7ce563659a3aa470330caa09be474a925
PHP
stevenmyhre/laravel-starter-53
/app/helpers.php
UTF-8
1,690
2.6875
3
[ "MIT" ]
permissive
<?php if (!function_exists('build_asset')) { /** * Get the path to a versioned Elixir file. * * @param string $file * @return string */ function build_asset($file) { static $manifest = null; if (is_null($manifest)) { if(file_exists(base_path().'/rev-...
true
a911f1f211c2c343fa7fcf0d49363e1547f042e6
PHP
awjudd/pdo-wrapper
/src/Database/ValueType.php
UTF-8
2,161
2.9375
3
[]
no_license
<?php namespace Awjudd\PDO\Database; /** * Used as an enumeration for all of the different keys which are available * for data type validation. * * @author Andrew Judd <contact@andrewjudd.ca> * @copyright Andrew Judd, 2012 * @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 */ class ValueType { /** ...
true
b06e06dd178d2ba81e79bcc0c9331aff2d7a971e
PHP
Acacio-coding/Crud-PHP
/app/db/Database.php
UTF-8
2,622
2.984375
3
[]
no_license
<?php namespace App\db; use \PDO; use PDOException; class Database { const HOST = 'localhost'; const DBNAME = 'db_crud_php'; const USER = 'root'; const PASSWORD = '0501'; private $table; private $connection; public function __construct($table = null) { $this -> table = $table; ...
true
c7039267e31d323992a28a80c3e3fd943abbf004
PHP
ayodeleoniosun/games-catalog
/database/migrations/2020_07_11_100523_create_invitations_table.php
UTF-8
1,387
2.578125
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateInvitationsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('invitations...
true
f386408fe8e6ca9ece7fbe3f5c40ae60f4d0e8da
PHP
itcreator/custom-cmf
/Module/View/src/Cmf/View/ViewProcessor.php
UTF-8
1,339
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * This file is part of the Custom CMF. * * @link https://github.com/itcreator/custom-cmf for the canonical source repository * @copyright Copyright (c) 2011 Vital Leshchyk <vitalleshchyk@gmail.com> * @license https://github.com/itcreator/custom-cmf/blob/master/LICENSE */ namespace Cmf\View; use...
true
02a57c238a27ab2c05d25bc86c4374b766d6457e
PHP
armasmontse/power-beam
/app/Http/Requests/Users/Production/RoutingRequest.php
UTF-8
1,256
2.546875
3
[]
no_license
<?php namespace App\Http\Requests\Users\Production; use App\Http\Requests\Request; class RoutingRequest extends Request { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validation rules that apply to the...
true
9f940250b0e688c7f91630acea4c1d9b1bc54e90
PHP
nickdenardis/euler
/php/tests/P02Test.php
UTF-8
713
3.1875
3
[ "MIT" ]
permissive
<?php use PHPUnit\Framework\TestCase; use Euler\P02; class P02Test extends TestCase { /** @test */ public function zeroIsZero() { $this->assertEquals(0, P02::subEvenFibonacci(0)); } /** @test */ public function oneIsZero() { $this->assertEquals(0, P02::subEvenFibonacci(1))...
true
b8787c5deebb4f882c5872e413b6296643d72b33
PHP
HenryTaylor2019/week-6-namespace
/app/hello.php
UTF-8
165
3.265625
3
[]
no_license
<?php namespace App; class Hello { private $greeting; public function hello(string $greeting) : string { return "Hello {$greeting}"; } }
true
efa4ac3e570bb8e0bd4d2f0a5c0f5affa9a32d38
PHP
a37395345/qczn11
/site/libraries/imag/registry/registry.php
UTF-8
13,578
2.921875
3
[]
no_license
<?php // Check to ensure this file is within the rest of the framework defined('PATH_BASE') or die(); //Register the session storage class with the loader Loader::register('RegistryFormat', dirname(__FILE__).'/format.php'); /** * Registry class * * @package Imag.Framework * @subpackage ...
true
b6a5d8aafcd801d74b89c45aedc48e1af3f22e95
PHP
lidiaha/hyperdimensionmedia
/WEBSITE/phplib/image-mean-color.php
UTF-8
2,023
3.15625
3
[]
no_license
<?php $docroot = str_replace($_SERVER['SCRIPT_NAME'], "", $_SERVER['SCRIPT_FILENAME']); function imageCreateFromAny($filepath) { $data = getImageSize($filepath); $type = $data[2]; // [] if you don't have exif you could use getImageSize() $allowedTypes = array( 1, // [] gif 2, // [] jpg ...
true
1183b172df02230008472672022e88741fb4a7b9
PHP
ViniciusRViana/Exercicios-em-aula-php
/AulasPhp/aula4/aula4_06.php
UTF-8
62
2.703125
3
[]
no_license
<?php $x = 100; echo "x = ".--$x; echo "<br>x final = ".$x; ?>
true
404dce7fd3a9d6af821b4cec6a3f204e90b6d844
PHP
lichao20000/Photos
/app/Http/Plugins/Image.php
UTF-8
2,832
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Plugins; use Illuminate\Support\Facades\Storage; class Image{ /* * desription 压缩图片 * @param sting $imgsrc 图片路径 * @param string $imgdst 压缩后保存路径 */ public static function resize($imgsrc,$path){ $pdst = public_path().$path; if(!is_dir($pdst)){ ...
true
bee80e34492e0e6036a29a22b11920e7f168d30e
PHP
grebe1991/Guzzle-Practice
/requests/query_requests.php
UTF-8
424
2.703125
3
[]
no_license
<?php use GuzzleHttp\Client; $client = new Client(['base_uri' => 'https://jsonplaceholder.typicode.com/']); // Get posts belonging to the user with id = 1 $request = $client->get('posts?userId=1'); echo $request->getBody(); echo PHP_EOL . PHP_EOL; // Get posts belonging to the user with id = 1, better way $request...
true
b17f52db7639cc211eb8add95852e43b666a108e
PHP
xtuling/study_center
/trunk/Public/Apicp/Controller/Sms/VerifyLocalController.class.php
UTF-8
1,103
2.703125
3
[]
no_license
<?php /** * 验证手机验证码(本地验证) * Created by PhpStorm. * */ namespace Apicp\Controller\Sms; use Com\Validator; use Common\Common\Sms; class VerifyLocalController extends AbstractController { public function Index() { // 获取手机号 $mobile = I("post.mobile"); $smsSign = I("post.smsSign"); ...
true
b5c7e7aa444d76f80b796572b17b1bd864c8ca05
PHP
Rkm11/jwelleryapp
/application/models/register_model.php
UTF-8
1,044
2.53125
3
[]
no_license
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Register_Model extends CI_Model { public function getUserInformation($table_to_pass, $fields_to_pass, $condition_to_pass, $order_by_to_pass = '', $limit_to_pass = '', $debug_to_pass = 0) { $this->db->select($fields_to_pass...
true
acade84957b00b63ba365eaa6b700baa7dab6fe1
PHP
ard3/eserciziPHP
/index.php
UTF-8
10,080
2.953125
3
[]
no_license
<?php include 'dati_anag_db.php'; ?> <html lang="en"> <head> <title>Esercizio</title> </head> <body> <?php require 'vendor/autoload.php'; use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Writer\Xlsx; $spreadsheet = new Spreadsheet(); $sheet = $spr...
true
657788e1d9f7d71e459996a95344a5e595ed182e
PHP
kellyreef/url-shortener
/app/Http/Controllers/Api/V1/ShortLinkController.php
UTF-8
3,244
3.0625
3
[]
no_license
<?php namespace App\Http\Controllers\Api\V1; use Illuminate\Http\Request; use Illuminate\Http\JsonResponse; use App\Http\Controllers\Controller; use App\ShortLink; use Validator; class ShortLinkController extends Controller { /** * Generates random slug. * * @param Request $request * @return ...
true
215a870246825b098c48a1a09dc9bfa6654be917
PHP
Scorpion011195/ILearnv2
/app/Console/Commands/StatisticManagement.php
UTF-8
846
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use App\Http\Controllers\StatisticManagementController; class StatisticManagement extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'command:statistic'; ...
true
db368c04462039ee6a07355084d66004ee3fc12c
PHP
Futbollist/web
/index.php
UTF-8
2,589
3.046875
3
[]
no_license
<!DOCTYPE html> <html lang="ru"> <head> <meta charset="UTF-8"> <meta http-equiv="refresh" content="3"> </head> <body> <?php $index = ["name", "id", "password", "city", "sex"]; //Массив ключей массива $people $number = 0; //Число строк, выведенных в таблицу $people = [ [ ...
true
461459f0198a6bdfd75c7e3aa0d77baa6c5c4bd6
PHP
faustxv/Lesson-6
/Ex2.php
UTF-8
1,214
2.953125
3
[]
no_license
<form method="POST"> Login: <input type="text" name="login" required> Password: <input type="password" name="pass" required> <input type="submit" value="Enter"> </form> <?php $d = 'test'; $u = 'root'; $p = ''; try { $db = new PDO('mysql:host=localhost; dbname='.$d.'; charset=utf8', $u...
true
e4a4fd31b3c32dd8b2af1ee32991a1356a2074e6
PHP
PacktPublishing/Wordpress-Web-Application-Development-Third-Edition
/Chapter11/wpwa-forum/classes/class-wpwaf-linkedin-connect.php
UTF-8
3,295
2.53125
3
[ "MIT" ]
permissive
<?php class WPWAF_LinkedIn_Connect extends WPWAF_Social_Connect{ public function login(){ $callback_url = wpwaf_add_query_string($this->callback_url(), 'wpwaf_social_login=Linkedin&wpwaf_social_action=verify'); $wpwaf_social_action = isset($_GET['wpwaf_social_action']) ? $_GET['wpwaf_social_action'] : ''; ...
true
fc4017b36e83b5b1b4a68d8901f46b7aad0c7213
PHP
borkowskai/SymfonyGreenfy-ecommerce
/src/Controller/FrontController.php
UTF-8
3,395
2.640625
3
[]
no_license
<?php namespace App\Controller; use App\Entity\User; use App\Form\RegistretionUserType; use App\Security\FormLoginAuthenticator; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\Security\Guard\GuardAuthen...
true
322bc3bba9bbd46685ce4cd9dcb9c4c4782d3c9f
PHP
AdamKyle/flare
/app/Flare/ServerFight/Fight/Ambush.php
UTF-8
6,973
2.796875
3
[ "MIT", "LicenseRef-scancode-free-unknown" ]
permissive
<?php namespace App\Flare\ServerFight\Fight; use App\Flare\Builders\Character\CharacterCacheData; use App\Flare\Models\Character; use App\Flare\ServerFight\BattleBase; use App\Flare\ServerFight\Monster\ServerMonster; class Ambush extends BattleBase { private array $healthObject; public function __construct...
true
e5961a8aff24aa8e6af6570e32e75585ab746ca1
PHP
Argornst/messenger
/src/Services/PushNotificationService.php
UTF-8
5,344
2.59375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace RTippin\Messenger\Services; use Illuminate\Contracts\Container\BindingResolutionException; use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Contracts\Foundation\Application; use Illuminate\Support\Collection; use RTippin\Messenger\Contracts\BroadcastEvent; use RTippin\Messenger\Contracts\Mes...
true
e72f5a46d5019d1d63be701e8aaec6d7b1cafd04
PHP
milosh012/social-graph
/app/repositories/EloquentFriendRepository.php
UTF-8
1,911
2.796875
3
[]
no_license
<?php namespace Repositories; use User; use Friendship; use DB; class EloquentFriendRepository implements FriendRepositoryInterface { /** * Get friends for specific user * * @param integer $userId * * @return EloquentCollection */ public function getUserFriends($userId) { return User::f...
true
7fa82fd6b5b88b4400206dfbdbc448598b9a03a8
PHP
push-ad/push-ad-php-lib
/src/PushAd/Model/Request/CreateNotification.php
UTF-8
3,179
2.796875
3
[ "MIT" ]
permissive
<?php namespace PushAd\Model\Request; /** * Request for sending/(creating pending) notification */ class CreateNotification extends Request{ /** * 'pl' => 'contents', * 'en' => 'contents', * @var array */ protected $contents = []; /** * 'en' => 'title', * 'pl' => ...
true
d0b221a92875f96224c76907271799832b5bf722
PHP
alimukhtar123/meanwhilein
/reportcsc343.php
UTF-8
2,002
2.5625
3
[]
no_license
<?php session_start(); require_once('configcsc343.php'); if(!isset($_SESSION['id'])) { Header('Location: csc343.php'); die(); } $dbh =new PDO("mysql:host={$dbhost};port={$dbport};dbname={$dbname};charset=utf8", $dbuser, $dbpass); $zip=filter_input(INPUT_GET,'zip',FILTER_...
true
151122398c5fd823b8e9580cd085ec39cc01b416
PHP
HaSa1002/card-payment-cashier-system
/kassensystem/app/controllers/AdminController.php
UTF-8
938
2.5625
3
[ "MIT" ]
permissive
<?php class AdminController extends ControllerBase { public function indexAction() { if (!parent::authorized(ControllerBase::ADMIN)) return; if ($this->request->isPost()) { $ausweis = $this->request->getPost('ausweis', 'int'); $user = Users::findFirstByAusweis($ausweis); ...
true
738f3044c2da83ec87fe2c3ecd49d3dd65c090bd
PHP
dalbertsson/codebird
/app/libs/functions.php
UTF-8
425
2.734375
3
[]
no_license
<?php function stdDate() { return date("Y-m-d H:i:s"); } function prettify($_) { $_ = preg_replace("/(\[.*\])/", '<span style="color:#e74c3c;">$1</span>', $_); $_ = preg_replace("/(\=>.*)/", '<span style="color:#2c3e50;">$1</span>', $_); echo $_; } function dump($_) { echo '<pre style="color: #222;display; bloc...
true
f538cfc0e6a9bbaed503a7706450bcb76b5bd921
PHP
sachin-cloudnix/sachin8891
/conc.php
UTF-8
1,131
2.671875
3
[]
no_license
<?php $conn; $status; function connect(){ $server="localhost"; $username="root"; $password="root"; $dbname="NDataB"; $GLOBALS['conn']=new mysqli($server,$username,$password,$dbname); if($GLOBALS['conn']->connect_error){ die("Connection failed ".$conn->connect_error); } $GLOBALS['status']="DATABASE CONNECTED"; } ...
true
79fd16efd405901e2edcb39b79cf7d12264d8187
PHP
GrandMasterX/skrill
/src/Models/QuickWithdraw.php
UTF-8
3,658
2.90625
3
[ "MIT" ]
permissive
<?php namespace grandmasterx\Skrill\Models; use grandmasterx\Skrill\Components\AsArrayTrait; /** * @package grandmasterx\Skrill\Models * @see https://www.skrill.com/fileadmin/content/pdf/Skrill_Quick_Checkout_Guide.pdf */ class QuickWithdraw extends Model { use AsArrayTrait; const PREPARE = 'prepare'; ...
true
72517613d311be788100ebbfff8fb8580717e9ba
PHP
LastDragon-ru/lara-asp-graphql-printer
/src/Blocks/Document/Directive.php
UTF-8
2,126
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace LastDragon_ru\LaraASP\GraphQLPrinter\Blocks\Document; use GraphQL\Language\AST\ArgumentNode; use GraphQL\Language\AST\DirectiveNode; use GraphQL\Language\AST\InputValueDefinitionNode; use GraphQL\Language\AST\TypeNode; use GraphQL\Type\Definition\Type; use LastDragon_ru\Lara...
true
9bad64ca9412d54107067451acf4ca8be87dc3d0
PHP
wxb/phpLab
/Dingtalk/Common/Util/Http.class.php
UTF-8
1,195
2.953125
3
[]
no_license
<?php namespace Dingtalk\Common\Util; /** * http请求 工具类 * Class Http * @package Dingtalk\Common\Util */ Class Http { const TIME_OUT = 10; // 超时时间 public static function get($path, $params) { $url = self::joinParams($path, $params); $response = \Requests::get($url, array(), array('tim...
true
22bf72f1219d28eb4c61e82e3789629256a48f3d
PHP
fthomas/newsposter
/trunk/include/passwd.php
UTF-8
6,278
3.078125
3
[]
no_license
<?php /* $Id$ * * This file is part of Newsposter * Copyright (C) 2001-2004 by Frank S. Thomas <frank@thomas-alfeld.de> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 ...
true
94a6580ef7edf82840ddb740e5ccbf6187b9ca86
PHP
MaheshRaturi211/student-library-portal
/project1/bookshow.php
UTF-8
1,462
2.5625
3
[]
no_license
<?php $con=mysqli_connect("localhost","root","","university"); ?> <html> <head> <style> .color{ background-color:#28d2fc; } #btn{ background-color:mediumseagreen; border:none; width:70px; padding:10px; border-radius:10px; } td{ background-color:#eee; } </style> </head> <body> <?php $sq...
true
5f3efc04dfbb0489783fd659d08ed957682463b6
PHP
johnzhouinfo/Project-Vex
/lib/account.php
UTF-8
14,214
2.640625
3
[ "MIT" ]
permissive
<?php require_once "../lib/config.php"; session_start(); try { if (isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true) { $id = $_SESSION["id"]; if ($_SERVER['REQUEST_METHOD'] === 'GET' && isset($_GET["type"])) { $get_type = $_GET["type"]; switch ($get_type) { ...
true
4353bc3752b1e142d2878909128f776f54b4dce8
PHP
meyer-archives/portfolio-cms
/system/classes/typogrify/misc.php
UTF-8
499
2.90625
3
[]
no_license
<?php // Miscellaneous functions define( "SPACE", "NBSP".md5(time()) ); function widont($str = ''){ return preg_replace( '|([^\s])\s+([^\s]+)\s*$|', '$1&nbsp;$2', $str); } function amp( $text ){ $amp_finder = "/(\s|&nbsp;)(&|&amp;|&\#38;|&#038;)(\s|&nbsp;)/"; return preg_replace($amp_finder, '\\1<span class="amp...
true
d475a8684abb12800211c07ee691790a6b02218a
PHP
powerstar13/codeigniter-4.0.4
/modules/Pattern/Controllers/Ex07Session.php
UTF-8
3,396
3.015625
3
[ "MIT" ]
permissive
<?php namespace Modules\Pattern\Controllers; use App\Controllers\BaseController; /** * 세션 컨트롤러 */ class Ex07Session extends BaseController { private $session; public function __construct() { parent::__construct(); $this->session = session(); } /** * 세션에 저장할 값을 입력받기 위한 View...
true
bacecaf23ccad1983b5ecd915c5c1a4a5b0a5781
PHP
lopezramon/my_prueba
/abrir_csv.php
UTF-8
361
2.96875
3
[]
no_license
<?php $fp = fopen ( "inscripcion.csv" , "r" ); while (( $data = fgetcsv ( $fp , 1000 , "," )) !== FALSE ) { // Mientras hay líneas que leer... $i = 0; foreach($data as $row) { echo htmlentities ("Campo $i: $row"); // Muestra todos los campos de la fila actual echo "<br>"; $i++ ; } ...
true
481dc373dc32979071dd5f63193791eb0094a5da
PHP
DaisukeDaisukeTeam/learn-more
/EconomyLand/src/onebone/economyland/database/YamlDatabase.php
UTF-8
6,526
2.609375
3
[]
no_license
<?php /* * EconomyS, the massive economy plugin with many features for PocketMine-MP * Copyright (C) 2013-2016 onebone <jyc00410@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundati...
true
3d45c5da7c5ae2cad4740a7c8846479727fb695d
PHP
valdezalbertm/assignment-php
/app/database/migrations/2021_09_02_121312_create_translations_table.php
UTF-8
695
2.53125
3
[]
no_license
<?php declare(strict_types=1); use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateTranslationsTable extends Migration { public function up() { Schema::create('translations', function (Blueprint $table) { ...
true
3795cfe3f3593fb1bb7cc0de365fa465ef73fea1
PHP
salesigniter/SalesIgniter2
/includes/classes/html/widgets/formTable/passwordconfirm.php
UTF-8
449
2.546875
3
[]
no_license
<?php class formTableFieldPasswordconfirm extends formTableField { public function __construct(){ $this->setLabel('Confirm Password: '); $this->setName('entry_password_confirm'); $this->setRequired('false'); $this->setMinLength(0); $this->setMaxLength(32); $this->setValue(''); } public function getFie...
true
8f317a5f259e3b20477f9b786f3e80a9454a9504
PHP
suraj776/Laravel-blog-project
/routes/web.php
UTF-8
3,085
2.53125
3
[ "MIT" ]
permissive
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | ...
true
f6a6980673c067d137d608b0c3f8d6bc3665460d
PHP
paveli/Tweeem
/libs/core/Open/Security.php
UTF-8
14,962
2.859375
3
[]
no_license
<?php /** * Обеспечение безопасности - класс Open_Security * @package OpenStruct */ /** * Подключаем необходимые файлы */ require_once CORE_PATH .'Open/Config'. EXT; require_once CORE_PATH .'Open/Convert'. EXT; /** * Обеспечение безопасности */ class Open_Security extends Open_Singleton { /************* * К...
true
fd1958e31ed93a9141d6e2fc5bb19f86edd07613
PHP
wtouch/Real-Estate-Portal
/Server-api/modules/upload.php
UTF-8
2,480
2.78125
3
[ "MIT" ]
permissive
<?php require_once 'db/dbHelper.php'; $db = new dbHelper(); $reqMethod = $app->request->getMethod(); if($reqMethod=="GET"){ if(isset($id)){ $where['id'] = $id; $data = $db->select("websites", $where); echo json_encode($data); }else{ $where=[]; // this will used for user specific data selection...
true
414334c65540e226dc061a0bb7e35ee26e2a8dd5
PHP
retailcrm/api-client-php
/src/Model/Request/Store/ProductBatchEditRequest.php
UTF-8
1,007
2.609375
3
[ "MIT" ]
permissive
<?php /** * PHP version 7.3 * * @category ProductBatchEditRequest * @package RetailCrm\Api\Model\Request\Store */ namespace RetailCrm\Api\Model\Request\Store; use RetailCrm\Api\Component\FormData\Mapping as Form; use RetailCrm\Api\Interfaces\RequestInterface; /** * Class ProductBatchEditRequest * * @catego...
true
7c87a41d720554c0ce76a3480470722aaab9d4ac
PHP
sasor/db2_project_scp
/app/Controllers/CitaController.php
UTF-8
4,013
2.625
3
[]
no_license
<?php namespace App\Controllers; use \Psr\Http\Message\ServerRequestInterface as Request; use \Psr\Http\Message\ResponseInterface as Response; use \App\Controllers\Controller; class CitaController extends Controller { public function create(Request $req, Response $res, $args = []) { $out = null; $d...
true
107defc207ef396756751ff6411fd07c1408cc9c
PHP
aslijiasheng/ciFramework
/example/beans/UserBean.php
UTF-8
1,538
2.703125
3
[]
no_license
<?php class UserBean extends CBean{ private $userID; private $userName; private $userPassword; private $userEMail; protected $_isValidata = array( array('user_id', 'required' => TRUE, 'ingore' => TRUE), array('user_name', 'type' => 'string', 'length' => 10, 'required' => TRUE, 'r...
true
c166c03fde8e7145cfd1ef9a32fc91667acd0041
PHP
igld/curriculum
/models/insert_skills_crea_mdl.php
UTF-8
441
2.640625
3
[]
no_license
<?php $id_users = $_SESSION['id_users']; // insertion des Formations dans la BDD try{ $req = $pdo->prepare("INSERT INTO skills (title_skill, desc_skill, users_id_users ) VALUES (:title_skill, :desc_skill, :users_id_users)"); $req ->execute(array( 'title_skill' => $title_skill, 'desc_skill'=> $d...
true
a6ccf918f36fd14fef8e14d5119b15cca07b7d2b
PHP
efce/Scripts
/getPM2.5.php
UTF-8
1,354
2.515625
3
[ "MIT" ]
permissive
<?php /* * This is PHP script to be used with CONKY * e.g.: ${execi 30 php getPM2.5.php} * It is designed to monitor the PM2.5 pollution * in Kraków, and display it with in conky window. * It uses data mined from monitoring.krakow.pios.gov.pl */ $pm25dopuszczalny = 25; $url = 'http://monitoring.krakow.pios.gov.p...
true
172349ccff03f6a53af97b73f2bf9f15070fd8b4
PHP
hackishmax321/garbage_disposal_service
/Login/register.php
UTF-8
2,918
2.71875
3
[]
no_license
<?php /* session_start(); $con = new mysqli('localhost','root','','newdb'); if(isset($_POST['rebb'])){ $useN = $con->real_escape_string($_POST['uname']); $pass = $con->real_escape_string($_POST['pass']); $cpass = $con->real_escape_string($_POST['Cpass']); $email = $con->real_escape_string($_POST['emai...
true
737397c349c0e94ba226370c452dd52fe4fa3deb
PHP
hilalahmad32/iNotebook-website-php-ajax
/php/update-notes.php
UTF-8
447
2.5625
3
[]
no_license
<?php include "config.php"; session_start(); if (isset($_POST["id"]) || isset($_POST["title"]) || isset($_POST["note"])) { $id=$_POST["id"]; $title = mysqli_real_escape_string($conn, $_POST["title"]); $notes = mysqli_real_escape_string($conn, $_POST["note"]); $sql = "UPDATE notes SET title='{$title}' ,...
true
bd93199389bbb7e5d64d7e0d37ec040a121bdf32
PHP
wkjin/api-ecm-fans
/Application/Home/Controller/FragmentController.class.php
UTF-8
782
2.8125
3
[]
no_license
<?php namespace Home\Controller; class FragmentController extends CommonController { private $fragmentService = null;//使用的service对象(一个model) public function __construct() { parent::__construct(); //初始化对象 $this->fragmentService = CS('Fragment');//定义使用service } //获取碎片信息 publi...
true
8996d9a517bc9661c29482817821fdaecb931fad
PHP
sarapmax/Veggie-Box-Bachelors-Senior-project
/database/migrations/2016_10_14_144403_create_farmer_ratings_table.php
UTF-8
873
2.609375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateFarmerRatingsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('farmer_ratings', function(Blueprint $table) { ...
true
d1b44f52e09fd1f004275670795c288acf79e860
PHP
5ctechforgood/projectcaring
/piwik/core/ExceptionHandler.php
UTF-8
3,886
2.671875
3
[ "LicenseRef-scancode-warranty-disclaimer", "GPL-3.0-or-later", "LGPL-2.0-or-later", "LGPL-2.1-or-later", "GPL-3.0-only", "GPL-1.0-or-later", "MIT" ]
permissive
<?php /** * Piwik - free/libre analytics platform * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * */ namespace Piwik; use Exception; use Piwik\API\Request; use Piwik\API\ResponseBuilder; use Piwik\Container\ContainerDoesNotExistException; use Piwik\Plugins\CoreAdm...
true
27bd980452cc1e3745fdb18500e6863ab674af7e
PHP
syaiful6/expressive
/src/app/Foundation/Http/SkipMiddlewarePipe.php
UTF-8
2,980
2.921875
3
[]
no_license
<?php namespace App\Foundation\Http; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Interop\Container\ContainerInterface; use Zend\Expressive\MarshalMiddlewareTrait; use Zend\Stratigility\MiddlewarePipe; use Zend\Stratigility\FinalHandler; /** * This middleware used to disa...
true
da93e9537daeb17e480610b6a49e9a7f11c0f1f4
PHP
potofcoffee/peregrinus_pulpit
/Classes/CustomFormats/AbstractTemplatedCustomFormat.php
UTF-8
3,227
2.53125
3
[]
no_license
<?php /* * PULPIT * A sermon plugin for WordPress * * Copyright (c) 2018 Christoph Fischer, http://www.peregrinus.de * Author: Christoph Fischer, chris@toph.de * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the F...
true
7a18dc6934cc545e1133daea344a87a9b4dcb665
PHP
oneideasestafa/app
/app/Models/MongoDB/Clubs.php
UTF-8
546
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Models\MongoDB; use Jenssegers\Mongodb\Eloquent\Model as Eloquent; class Clubs extends Eloquent { protected $connection = 'mongodb'; protected $table = 'Clubs'; const CREATED_AT = 'Creado'; const UPDATED_AT = 'Actualizado'; //scope para buscar por borrado public function...
true
dc5300c16a6a3fc945bef448d428767e8fecccdf
PHP
goetas-webservices/xsd-reader
/src/Schema/AbstractNamedGroupItem.php
UTF-8
594
2.671875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace GoetasWebservices\XML\XSDReader\Schema; abstract class AbstractNamedGroupItem { use NamedItemTrait; protected Schema $schema; protected ?string $doc; public function __construct(Schema $schema, string $name) { $this->schema = $schema; $t...
true
a1916aff90951f9d1141a9d09bdad23d98ec8ff0
PHP
Rezouce/katas
/src/SortAnimals/Animal.php
UTF-8
438
3.625
4
[]
no_license
<?php declare(strict_types=1); namespace Kata\SortAnimals; class Animal { private $name; private $numberOfLegs; public function getName() { return $this->name; } public function setName($name) { $this->name = $name; return $this; } public function getNumberOfLegs() { return $this->numberOfLegs...
true
7ad94ac24685943c66ec54012d48dcdaa7db20fb
PHP
Pitalla/SIM-Guaymas
/modelo/Rol.php
UTF-8
183
2.546875
3
[ "MIT" ]
permissive
<?php /** * */ class Rol extends AnotherClass { public $id; public $nombre; function __construct($id, $nombre) { $this->id=$id; $this->nombre=$nombre; } } ?>
true
cca46f4d23412de199d0c228e2457299d77c59e5
PHP
chapmang/activities
/src/Application/Geoconversion/GeoDecode.php
UTF-8
801
2.984375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Application\GeoConversion; use App\Application\GeoConversion\Decoder\GeoDecoderStrategyInterface; /** * Class GeoEncode * @package App\Application\GeoConversion */ class GeoDecode { private $strategies; /** * @param GeoDecoderStrategyInterface $strategy ...
true
45614d34b6e9874ed2ab438fd3149e995d836b7a
PHP
MatteoPetracci/php-oop-dipendenti
/classes/Dipendente.php
UTF-8
1,917
3.015625
3
[]
no_license
<?php include_once __DIR__ . '/../traits/Accesso.php'; class Dipendente { use Accesso; private $dipendenteid; // (int) private $nomeCognome; // (stringa) private $cf; // (stringa) private $ruolo; // (int) private $euroGiorno; // (int) public $anniAnzianità; // (int) public $tipoContratto; ...
true
9dd9531ed4a1876cd153bc1605bcc65311d3e507
PHP
mateuszGieron/php-recruitment-test
/src/Controller/CreateVarnishLinkAction.php
UTF-8
1,368
2.75
3
[]
no_license
<?php namespace Snowdog\DevTest\Controller; use Snowdog\DevTest\Model\UserManager; use Snowdog\DevTest\Model\VarnishManager; class CreateVarnishLinkAction { /** * @var UserManager */ private $userManager; /** * @var VarnishManager */ private $varnishManager; public function _...
true
3030a2455ee77e785ec9cd85668ef035229cc3f7
PHP
Triplkrypl/QafooLabsNoFrameworkBundle
/src/QafooLabs/Bundle/NoFrameworkBundle/SymfonyFlashBag.php
UTF-8
428
2.515625
3
[]
no_license
<?php namespace QafooLabs\Bundle\NoFrameworkBundle; use Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface; use QafooLabs\MVC\Flash; class SymfonyFlashBag implements Flash { private $flashBag; public function __construct(FlashBagInterface $flashBag) { $this->flashBag = $flashBag; ...
true
15f3b0721761b038134fbe299c4145b66a4dac7a
PHP
VCalegarim/Estudo_Dirigido2
/exercicio17.php
UTF-8
305
3.578125
4
[]
no_license
<?php print "Informe a base do número:"; $base = fgets (STDIN); print "Informe o expoente do número:"; $expoente = fgets (STDIN); $potencia =1; for($cont=0; $cont<$expoente; $cont++){ $potencia = $potencia * $base; } print "O resultado de $base elevado a $expoente é $potencia\n";
true
dc8f31c6fe876a25ed2610220cff89c28fa4400b
PHP
lulanyin/ethereum-rpc-api
/src/ETH.php
UTF-8
3,574
2.859375
3
[]
no_license
<?php namespace ETHRpc; use stdClass; class ETH{ /** * @var [ETHRpc] */ private static $rpc = []; public static function init(string $host="127.0.0.1", ?int $port=8545, bool $ssl=false, string $name="default") : ETHRpc { return self::$rpc[$name] = new ETHRpc($host, $port, $ssl); } ...
true
24e9b2fc53977defd71aec3522d65509a223759d
PHP
imcj/mqk
/src/MQK/Queue/Outbound/NotificationCenter.php
UTF-8
314
2.59375
3
[]
no_license
<?php namespace MQK\Queue\Outbound; use MQK\Queue\MessageNormal; interface NotificationCenter { /** * @param RouterEntry $routerEntry * @param MessageNormal $message * @return string */ public function notify( RouterEntry $routerEntry, MessageNormal $message ); }
true
7fd6be871e12c2ebe3602c3193a9348ae6e07208
PHP
P79N6A/cts-project
/Lib/Comm/Weibo/Jsversion.php
UTF-8
1,395
2.578125
3
[]
no_license
<?php /** * 应用广场接口操作类 * * @package Comm * @copyright copyright(2011) weibo.com all rights reserved * @author jianbin <jianbin@staff.sina.com.cn> * @version 2012-1-11 */ class Comm_Weibo_JsVersion { //获取JS/CSS版本号 const GET_JS_VERSION_URL = "http://i.api.weibo.com/2/proxy/admin/content/version....
true
65b2663e15e217ae1225c4db26cb2e44ac264b59
PHP
olegkazakov/expert
/expert/resources/UserDAOArr.php
UTF-8
874
2.828125
3
[]
no_license
<?php namespace expert\resources; use expert\user\User as User; use expert\resources\UserDAO as UserDAO; use expert\user\InternalUser as InternalUser; class UserDAOArr implements UserDAO{ private $users = array(); function find($id){ $fUser=NULL; foreach ($this->users as $user){ if ($user->getId()=...
true
eaa5939751ebd3f96feabe7e7cde59f9977ed316
PHP
ogxone/config-renderer-twig
/src/FileInfo.php
UTF-8
928
2.78125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: valentinyelchenko * Date: 9/23/18 * Time: 10:39 PM */ namespace Ogxone\ConfigRendererTwig; /** * Class FileInfo * @package ConfigRendererTwig\Config */ class FileInfo extends \SplFileInfo { /** * @var string */ private $basePath; /** * FileI...
true
cc0c12d5ee5349b6b92f8e4c191b27376ce09ece
PHP
nextcompute/bookdb
/includes/account.php
UTF-8
224
2.59375
3
[]
no_license
<?php class Account extends DatabaseObject { protected static $table_name="accounts"; protected static $db_fields = array('id', 'name' ,'parent',); public $id; public $name; public $parent; }
true
d4b8c0e5680a2725a733ce4d5c5709317b89ce6c
PHP
marcyves/dynasite
/fonctions.inc.php
UTF-8
3,927
3.109375
3
[]
no_license
<?php function prepareMenu($dossier_menu, $page_active){ // Construction du menu $tmp = '<ul class="links">'; $fichiers = scandir( $dossier_menu , SCANDIR_SORT_ASCENDING ); foreach($fichiers as $fichier){ $ext = substr($fichier, strrpos($fichier,'.')+1); if($ext == 'menu'){ // Nom de la page ave...
true
dd2a6caf42e6857ca5ce1bed67d7a72b2bcaa6c8
PHP
Gauwan/B3_Coup2Pousse
/src/dbUsers.php
UTF-8
2,798
2.75
3
[]
no_license
<?php /** * Created by PhpStorm. * User: gauth * Date: 05/10/2016 * Time: 14:08 */ class dbUsers extends database { /*-------------------------*/ /*----- Zone Public -----*/ /*-------------------------*/ public function registrationUser($establishment, $login, $password, $fullname,...
true
ba985e163e464b583a3b56141cdc23cd4eb3a967
PHP
Altmanmike/Zenith-Kings
/admin_war_edit.php
UTF-8
2,105
2.703125
3
[]
no_license
<!-- Page d'administration: édition d'un géoconflit (noms de guildes + logos) --> <?php require_once 'application/functions.php'; ?> <?php if(getAdmin() == null) { // Redirection vers l'acceuil. header('Location: index.php'); exit(); } include 'application/bdd_connectio...
true
3b280af4e1156cf18b147aaebcb1a0cbdf6b5e68
PHP
08haozi/whcms_php
/Application/Admin/Model/ArticleAlbumItemsModel.class.php
UTF-8
487
2.546875
3
[]
no_license
<?php namespace Admin\Model; use Think\Model; /** * 图文-图片详情 * @author Administrator * */ class ArticleAlbumItemsModel extends Model { protected $tableName = 'cms_article_album_items'; /** * 获取封面图片 * @param unknown $articleID */ function getTitle($articleID){ ...
true
052cb6a54d4dbc0a3b3228faf4435817b7262ad5
PHP
Danack/example
/vendor/dmore/chrome-mink-driver/src/DevToolsConnection.php
UTF-8
2,962
2.8125
3
[ "MIT" ]
permissive
<?php namespace DMore\ChromeDriver; use Behat\Mink\Exception\DriverException; use WebSocket\Client; use WebSocket\ConnectionException; abstract class DevToolsConnection { /** @var Client */ private $client; /** @var int */ private $command_id = 1; /** @var string */ private $url; /** @var ...
true
527081f65a4c76c910acc25a65874ff86b8132f4
PHP
imjerrybao/zanphp
/src/Network/Connection/ConnectionManager.php
UTF-8
4,844
2.546875
3
[ "MIT" ]
permissive
<?php namespace Zan\Framework\Network\Connection; use Zan\Framework\Contract\Network\Connection; use Zan\Framework\Foundation\Core\Condition; use Zan\Framework\Foundation\Core\Config; use Zan\Framework\Foundation\Exception\ConditionException; use Zan\Framework\Foundation\Exception\System\InvalidArgumentException; us...
true
e59cd0fc9afb913f83482a9d6c41f18c08b5da0c
PHP
pi-engine/pi
/lib/Pi/Debug/Debug.php
UTF-8
11,741
3
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Pi Engine (http://piengine.org) * * @link http://code.piengine.org for the Pi Engine source repository * @copyright Copyright (c) Pi Engine http://piengine.org * @license http://piengine.org/license.txt BSD 3-Clause License */ namespace Pi\Debug { use Closure; use Pi...
true
23e9537403462f690d9bdced2664c79692b9775d
PHP
vivait/taskstack-communicator-bundle
/src/Vivait/TaskstackCommunicatorBundle/Client/TaskstackClient.php
UTF-8
2,517
2.625
3
[]
no_license
<?php namespace Vivait\TaskstackCommunicatorBundle\Client; use Symfony\Component\HttpKernel\Exception\HttpException; use Vivait\TaskstackCommunicatorBundle\Client\Http\HttpAdapter; use Vivait\TaskstackCommunicatorBundle\Model\Issue; use Vivait\TaskstackCommunicatorBundle\Model\TaskStackUserInterface; class Taskstack...
true
19cd095ff6860e3e39e5ffc6477e64a838f80200
PHP
fredcarneiro/the-php-practitioner
/Little User Test/src/Setup/Setup.php
UTF-8
780
3.03125
3
[]
no_license
<?php namespace Carneiro\Setup; Use Carneiro\DB\DBConnection; /** * */ class Setup { private $connection; function __construct(DBConnection $conn) { $this->connection = $conn->connect(); } public function createDatabase() { $query = "DROP TABLE IF EXISTS user"; $result = mysqli_query($this->con...
true
41bd223c1722b4938e03e305638c8f460ddfdbf9
PHP
coeojt/ComputerEngineeringDepartmentInformationSystem
/editsubjects.php
UTF-8
3,156
2.671875
3
[]
no_license
<?php include ("connection.php"); include ("admin_navbar.php"); $id = $_GET["id"]; $coursecode=""; $subject=""; $units=""; $days=""; $time=""; $instructor=""; ?> <!DOCTYPE html> <html> <head> <title>edit profile</title> <style type="text/css"> .form-control { width:250px; height: 3...
true
6bfb3846f7218299b90aa5c397fccaa0093f44e2
PHP
joshblack/lectureloot-web
/app/models/Checkin.php
UTF-8
473
2.578125
3
[]
no_license
<?php class Checkin extends Eloquent { protected $guarded = array(); public static $rules = array(); /** * Defines a one-to-many relationship between Checkin and Meeting. * * @return Eloquent Relationship */ public function meeting() { return $this->belongsTo('Meeting'); } /** * Defines a one-to-...
true
0b0fca224a4bb7f1fb85a4355559ee50aedbfd4b
PHP
royalsoftkv/smartyfaces
/src/view/VarView.php
UTF-8
452
2.890625
3
[]
no_license
<?php class VarView { static function increment() { $formVars = &SmartyFacesContext::$formVars; $formVars['counter']++; } static function get_array() { return array("a"=>"123","b"=>"456"); } static function addToArray() { $formVars = &SmartyFacesContext::$formVars; $formVars['array']["c"]="789"; ...
true
af831772b07564c96c4b598e405ef7097526a52c
PHP
samboosa5k/movie_chain_backend
/app/Http/Controllers/TheaterController.php
UTF-8
1,217
2.71875
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use DB; class TheaterController extends Controller { public function index() { // SHOWS ALL THEATERS // INIT QUERY $query = DB::table('theaters') ->select('id', 'name', 'slug'); $all = $query->g...
true
9ebbdb8ad98813d7dcb03ac13ba315f08ff0f0f8
PHP
k810202771/world
/yanjing/WriteData.php
UTF-8
1,365
2.515625
3
[]
no_license
<?php error_reporting(0); // 设置返回json格式数据 header('content-type:application/json;charset=utf8'); //连接数据库 require_once('root.php'); $data = json_decode(stripslashes($_POST["data"])); $text = ""; $sql = "SELECT * FROM article order by id desc limit 0,1"; $result = mysql_query($sql,$link); $row = mysql_fetch_array($resul...
true
ae54c0b7222d1249f081af6783dfd16eebd338e6
PHP
apaccou/coteo_c5_seo
/controllers/dashboard/coteo/seo/controller.php
UTF-8
12,372
2.609375
3
[]
no_license
<?php class DashboardCoteoSeoController extends Controller { public $fileExportXsdName = 'coteo-seo.xsd'; public $fileExportXmlName = 'coteo-seo-export.xml'; public $fileExportCsvName = 'coteo-seo-export.csv'; public function on_before_render() { $htmlHelper = Loader::helper('html'); $this->addHeader...
true
9b904dd7d684f86aa115dd0f3859174d57378a22
PHP
pinoyprogleague/phpops
/system/library/Exceptions/InvalidStringException.php
UTF-8
240
2.71875
3
[ "MIT" ]
permissive
<?php namespace POPS\Exceptions; /** * Exception for invalid string values */ class InvalidStringException extends \Exception { public function __construct() { parent::__construct('Not valid string was provided'); } }
true
b95947389b756c14cb80d7a62ca6628925747775
PHP
afpa-mission-7/ABI
/src/Forms/CustomerForm.php
UTF-8
3,603
2.96875
3
[]
no_license
<?php namespace App\Forms; use \PDO; use App\Config\DbConfig; use App\Entity\Customer; use App\Repository\Repository; class CustomerForm extends Form { protected ?int $id; protected $company_name; protected $sector_activity; protected $address; protected $zip; protected $city; protected ...
true
f4a65e9be3282a5032bf02607c8b4c6761106028
PHP
Jobkanis/csrdelft.nl
/lib/view/formulier/keuzevelden/EntityDropDown.php
UTF-8
1,017
2.640625
3
[]
no_license
<?php namespace CsrDelft\view\formulier\keuzevelden; /** * @author Jan Pieter Waagmeester <jieter@jpwaag.com> * @author P.W.G. Brussee <brussee@live.nl> * @author G.J.W. Oolbekkink <g.j.w.oolbekkink@gmail.com> * @date 30/03/2017 * * Select an entity based on the primary key while showing the label attributes */...
true
63a70589dd4495453ae742dec087e503500c65a4
PHP
stubbles/star
/src/main/php/org/stubbles/star/StarStreamWrapper.php
UTF-8
8,596
2.78125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Class for reading data from star archives via stream wrapper. * * @package star * @version $Id$ */ /** * Class for reading data from star archives via stream wrapper. * * This class contains code from lang.base.php of the XP-framework, * written by Timm Friebe and Alex Kiesel. * * @package sta...
true
c2b68a086e01cf77c8d68e79bc11810bf7418bfa
PHP
catchup-forks/PackageEws365
/src/StructType/EwsEncryptedSharedFolderDataType.php
UTF-8
2,708
2.75
3
[ "MIT" ]
permissive
<?php namespace Ews\StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for EncryptedSharedFolderDataType StructType * @package Ews * @subpackage Structs * @author WsdlToPhp <contact@wsdltophp.com> */ class EwsEncryptedSharedFolderDataType extends AbstractStructBase { /** ...
true
52753730bda6b3eda16fd68b8ab68d80e20e6c0c
PHP
andreHenriqueJp/grenciador-pedidos
/src/Entity/Produto.php
UTF-8
3,138
2.53125
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use PhpParser\Node\Scalar\String_; /** * @ORM\Entity(repositoryClass="App\Repository\ProdutoRepository") * @ORM\Table(name="produto") */ class Produto { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ ...
true
6625f7dc6338a25c298c87024ea713ba0cf55e06
PHP
jhgalvin/Software_dev
/FinalUnitTesting/signUpClass.php
UTF-8
1,693
2.96875
3
[]
no_license
<?PHP include "Database.php"; ini_set("display_errors",E_ALL); Class signUpClass { public $post; public $company_User; public $company_Pass; public $db; public $result; public function __construct(Array $post) { $this->db = new Database(); $this->post = $post; // $_POST array from f...
true
0542b45116dd279fa4d44f7012f24b3e7a9ef0c3
PHP
ambroise04/ITLCompta
/gescompta-api/ecriture/getTotalDebit.php
UTF-8
745
2.65625
3
[ "MIT" ]
permissive
<?php function getTotalDebit($journal,$dateDebut,$dateFin) { require("../connexionClassique.php"); $statement = $bd->prepare( "SELECT SUM(montant) AS totalDebit FROM ecritures WHERE idJournal = :idJournal AND dateEcrit <= :fin AND dateEcrit >= :debut AND idTypeEcrit = ...
true
a040a76b349e8abedd6cc92b04e2c954d0dae1c8
PHP
loveorigami/php-highcharts
/src/Highchart.php
UTF-8
2,233
2.828125
3
[ "MIT" ]
permissive
<?php namespace lo\highcharts; use ArrayAccess; use lo\highcharts\chart\Chart; use lo\highcharts\chart\Legend; use lo\highcharts\chart\Series; use lo\highcharts\chart\SubTitle; use lo\highcharts\chart\Title; use lo\highcharts\chart\XAxis; use lo\highcharts\chart\YAxis; use lo\highcharts\chart\ZAxis; /** * Represent...
true
642e9a830d9e344aab5b45bcbb6559b5ee60c99e
PHP
wizaster/php_room_rental
/Classes/User.class.php
UTF-8
4,668
3.0625
3
[]
no_license
<?php class User { private $nomUtilisateur; private $password; private $id; private $nom; private $prenom; private $adresse; private $email; private $description; private $Type_utilisateur_Id; private $create_time; public function __construct( $_id = 0, ...
true
707e62eec7fd8eccf9ecb3ad303969abca05eace
PHP
hectane0/projektai
/app/controllers/admin/QuestionsController.php
UTF-8
1,136
2.609375
3
[]
no_license
<?php namespace ASI\Controllers\Admin; use ASI\Forms\NewQuestion; use ASI\Models\Question\Question; class QuestionsController extends ControllerBaseAdmin { public function indexAction() { $questions = Question::find(); $this->view->setVar('questions', $questions); $this->view->pick(...
true
c87243a0ed332cd7fc6ee0119824b3977c6abc40
PHP
fmake/fmake
/fmake/libs/dataBaseController/InsertInToDB.php
WINDOWS-1251
1,116
3.171875
3
[]
no_license
<?php class InsertInToDB { private $filds = array(); private $table = null; private $sql = "INSERT INTO "; private $line = null; private $obj = null; function __construct($obj, $line) { $this->obj = $obj; $this->line = $line; } # function addFild($fild, $value) { $this->filds[] = array("fild"=>$fild, "va...
true