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
a230bd63219cf1b8431dfa8eceefb3fcb36197fe
PHP
TechToThePeople/lonesome
/CRM/Lonesome/Form/Search/NoGroup.php
UTF-8
4,930
2.671875
3
[]
no_license
<?php /** * A custom contact search */ class CRM_Lonesome_Form_Search_NoGroup extends CRM_Contact_Form_Search_Custom_Base implements CRM_Contact_Form_Search_Interface { function __construct(&$formValues) { parent::__construct($formValues); } /** * Prepare a set of search fields * * @param CR...
true
37525ae4a1e359dee6b884260a2ed08349a30d29
PHP
stzef/siacolweb-app
/src/AppBundle/Entity/Matriculas.php
UTF-8
7,217
2.78125
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Entity; /** * Matriculas */ class Matriculas { /** * @var string */ private $nuevo = 'T'; /** * @var integer */ private $cestamatricula; /** * @var string */ private $numregalum; /** * @var string */ private $calum;...
true
beba3625e05a81299f6040915063ade664ec1129
PHP
cezarzaleski/biblioteca-geccal
/application/helpers/Strings.php
UTF-8
639
2.625
3
[]
no_license
<?php class Zend_Controller_Action_Helper_Strings extends Zend_Controller_Action_Helper_Abstract { public function dividirString($string, $qts) { $str = ""; $string = strip_tags($string); $string = str_replace("\n", "", $string); $divide = explode(" ", $string); $total = co...
true
74f41326eae7559ea785e1fb0ab305fe3d91bab9
PHP
jlansner/CIBBOWS
/app/View/Memberships/admin_index.ctp
UTF-8
1,565
2.515625
3
[]
no_license
<div class="row"> <div class="column column12"> <h1> Memberships <?php if ($year > 0) { echo " &ndash; " . $year; } ?> </h1> <p> <?php echo $this->Html->link( 'Email all members', array( 'controller' => 'memberships', 'action' => 'email_members', 'admin' => false ) ); ?> </p> ...
true
9c3d931f81bce83eddd465557c18c42068fd1afe
PHP
drahosj/backup-webapp
/clean.php
UTF-8
161
2.828125
3
[]
no_license
<?php function clean($string) { return str_replace("..","-",preg_replace('/[^A-Za-z0-9.\-\_]/', '-', $string)); // Replaces special chars with hyphens. } ?>
true
c8ee72b00acf4333adc28328a4bdcdb186111886
PHP
azizurcse/restaurant_project
/admin_area/view_brand.php
UTF-8
936
2.5625
3
[]
no_license
<table width="100%" align="center"> <tr align="center"> <td colspan="5"><h2 >View All brands here</h2></td> </tr> <tr align="center"> <th>Brand Id</th> <th>Brand Title</th> <th>Edit</th> <th>Delete</th> </tr> <?php include("includes/db.php"); ...
true
e2072c313ce2050ee214a0d51b6749b91ad71da8
PHP
MehmetMostafa/Web-Project
/database.php
UTF-8
7,772
2.671875
3
[]
no_license
<?php class database { function __construct() { $this->pdo=new PDO("mysql:host=localhost;dbname=train;charset=utf8","root","");//connection } public function disconnect() { $this->pdo=null; } ...
true
890aa6ef6053bc172a1d406f2a077043db76beb7
PHP
graze/transient-fault-handler
/src/TransientFaultHandler.php
UTF-8
4,434
2.75
3
[ "MIT" ]
permissive
<?php /** * This file is part of graze/transient-fault-handler. * * Copyright (c) 2017 Nature Delivered Ltd. <https://www.graze.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @license https://github.com/graze/transient-fau...
true
c8466704ca4229149b1e10f4d5017f56bc06b441
PHP
isanat/ajuda-financeira
/core/app/Model/Repository/EnderecoRepository.php
UTF-8
2,444
2.578125
3
[]
no_license
<?php abstract class EnderecoRepository { public $banco; public function __construct() { global $array_db; $db = $array_db['db']; $this->banco = Banco::conecta('pgsql',$db); } public function VerEmpty(array $filders) { $filders = $this->NullUsuarios($filders); foreach($filders as $key...
true
dddc094f887fbc5ec0d27f892cc319920e21b1ca
PHP
halokid/queue-php-redis
/test.php
UTF-8
1,942
2.5625
3
[]
no_license
<?php class Test extends MY_Controller { public function __construct() { parent::__construct(); } //添加进队列 public function set_queue(){ $this->add_queue('send_mail', array('82049406@qq.com'), 2); } public function send_mail($av, $offset){ set_time_...
true
f94f3a24d04fc638545e3ceb47259d7a5a09b9c5
PHP
homer6/altumo
/source/php/Utils/Console.php
UTF-8
4,350
3.1875
3
[ "MIT" ]
permissive
<?php /** * This file is part of the Altumo library. * * (c) Steve Sperandeo <steve.sperandeo@altumo.com> * (c) Juan Jaramillo <juan.jaramillo@altumo.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Altumo\Utils; /**...
true
b2bfc6d6875732290d6129d009f94ee353eb8ef1
PHP
Laralabs/toaster
/src/Toaster.php
UTF-8
7,919
2.71875
3
[ "MIT" ]
permissive
<?php namespace Laralabs\Toaster; use Laralabs\Toaster\Interfaces\SessionStore; class Toaster { /** * Session Store. * * @var SessionStore */ protected $session; /** * @var string */ protected $currentGroup; /** * @var string */ public $json; /**...
true
e76858443e42cf843d6011c1769fc9bd5d2b3873
PHP
maximomartinezsoria/laragram
/app/Http/Controllers/FollowController.php
UTF-8
767
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Follow; class FollowController extends Controller{ public function __construct(){ $this->middleware('auth'); } public function follow($follower, $followed){ $follow = new Follow(); $follow->follow...
true
c0e5b79cc6a4050b28150c4eb5e263e1a56f1791
PHP
Arasaac/dockerizePHPApp
/php/plugins/html2ps/writer.fastps.class.php
UTF-8
725
2.546875
3
[ "MIT" ]
permissive
<?php // $Header: /cvsroot/html2ps/writer.fpdf.class.php,v 1.3 2005/10/24 15:24:27 Konstantin Exp $ class FastPSWriter extends PSWriter { function create($compressmode, $pdfcompat) { $filename = PSWriter::mk_filename(); return new FastPSWriter($filename); } function FastPSWriter($file_name) { $th...
true
84161c8700ebd7308625c961f18bed37e8fb2434
PHP
JesseVanEvert/php1_oefenopdrachten
/week_1/assignment_4.php
UTF-8
103
3.1875
3
[]
no_license
<?php $money = 0.1; for ($i = 0; $i < 20; $i++ ){ $money += 7.5; $money *= 1.02; } echo $money;
true
6ca0053876220a765af6f7ce0b2588c8f19d5ecd
PHP
seejohnrun/nice_http
/lib/nice_http.php
UTF-8
3,477
2.96875
3
[ "MIT" ]
permissive
<?php require 'exceptions/bad_format_exception.php'; require 'response/response.php'; require 'response/basic_response.php'; require 'request/request.php'; require 'request/get_request.php'; require 'request/post_request.php'; require 'request/delete_request.php'; require 'request/put_request.php'; // Current versi...
true
2da295a1f54f0554bff9f19264fa485f80742cb0
PHP
generalludd/tour
/application/views/person/list.php
UTF-8
2,927
2.59375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') or exit ('No direct script access allowed'); // list.php Chris Dart Dec 16, 2013 10:32:15 PM chrisdart@cerebratorium.com $this->load->view("person/alphabet"); $buttons [] = [ 'text' => 'Add a New Person', 'href' => base_url('person/create'), 'class' => 'button new create-person', ]; $bu...
true
eee4317029cef9f106b01940faac0f07617a7600
PHP
presentator/presentator
/packages/api/models/forms/ScreenCommentForm.php
UTF-8
6,106
2.671875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace presentator\api\models\forms; use Yii; use presentator\api\models\User; use presentator\api\models\ScreenComment; /** * ScreenComment create/update form model. * * @author Gani Georgiev <gani.georgiev@gmail.com> */ class ScreenCommentForm extends ApiForm { const SCENARIO_CREATE = 'scenarioCrea...
true
b6b5b66668b47f96418bcee543852ed61ba7d720
PHP
siteslave/his
/app/classes/Utils.php
UTF-8
2,590
2.6875
3
[ "MIT" ]
permissive
<?php /** * Class Utils * * @author Satit Rinapit <rianpit@gmail.com> * */ class Utils { public static function getCurrentInsurance($person_id) { $ins = DB::table('insurances as i') ->select('i.*', 'h1.hname as hospmain_name', 'h2.hname as hospsub_name') ->leftJoin('h...
true
a65f87abc9814387a7c7971bf2346742e5951160
PHP
kerosan/learning-php-todo
/application/models/model_main.php
UTF-8
301
2.546875
3
[ "Unlicense" ]
permissive
<?php require 'table/todo.php'; class Model_Main { public $todoTable; function __construct() { } public function getTable() { if (!$this->todoTable) { $this->todoTable = new Todo(); } return $this->todoTable; } }
true
d04c786df77e6fbcfaed944af2ffb92e6cf182fc
PHP
imtiazBD/php-oop
/constructor.php
UTF-8
787
3.5625
4
[]
no_license
<?php class Person{ public $name; public $age; public $email; public $phone; public function __construct($nam,$boyosh,$e,$p){ $this->name=$nam; $this->age=$boyosh; $this->email=$e; $this->phone=$p; } public function pers...
true
d06b3f52462d062dbc802174f83829f4d740fd81
PHP
Brown-Amy/scesports
/views/volunteer/parentlist.php
UTF-8
3,180
2.734375
3
[]
no_license
<?php include '../views/layouts/header.php'; ?> <main> <div class="content" <section> <!-- display a table of parents --> <h1>parents</h1> <table id="parentlist"> <tr> <!-- <th class="first">First Name</th> <th>Last Name</th> --> ...
true
fbcaebacc4c4fda9c126b56264ef1d696fd77a98
PHP
smartdesarrollador/elem_pry
/php/php nivel I/clase2/ejemplo16_propiedades array.php
WINDOWS-1250
517
3.59375
4
[]
no_license
<?php $semana = array("lunes","martes","mircoles","jueves","viernes", "sbado", "domindo"); echo "cant de items: ".count($semana)."<br>"; //7 //situamos el puntero en el primer elemento reset($semana); echo "Primer elemento: ".current($semana)."<br>"; //lunes next($semana); echo "Siguiente elemento: ".pos($semana...
true
1ed7d015789c20f8e8cbe9ddd60cc62dedc8c493
PHP
mario-deluna/Jane
/tests/Lexer.php
UTF-8
2,401
3.125
3
[]
no_license
<?php namespace Jane\Tests; /** * Jane Iterator tests ** * * @package Jane * @author Mario Döring <mario@clancats.com> * @version 1.0 * @copyright 2014 - 2015 ClanCats GmbH * * @group Jane * @group Jane_Lexer */ use Jane\Lexer; class Lexer_Test extends \PHPUnit_Framework_TestCase { protected func...
true
31d34d4c6543de85f47fff231c8d3cebfc7468cd
PHP
estebanhiguita/IFMWeb
/GSYSTEM/api/Model/clsUnidadNegocio.php
UTF-8
2,835
2.75
3
[ "Apache-2.0" ]
permissive
<?php class clsUnidadNegocio { private $_id_unidad_negocio; private $_nombre; private $_url_logo; private $_url_video; function __construct($db) { try { $this->db = $db; } catch (PDOException $e) { exit('Database connection could not be est...
true
dde7c3c22ebf32a070ea19f3ea44a5133e6683f8
PHP
jbradley428/ajaxFormHandler
/models/AjaxForm_FormDataModel.php
UTF-8
2,895
2.703125
3
[]
no_license
<?php namespace Craft; class AjaxForm_FormDataModel extends BaseModel { protected function defineAttributes() { return array( 'name' => AttributeType::String, 'template' => AttributeType::Mixed, 'toEmail' => AttributeType::String, 'data' => AttributeType:...
true
aa77c4f36dd0ad1107fdd7bc12684f65cf36f8ee
PHP
snauman817/retirement-home
/caregivers_home.php
UTF-8
6,301
2.5625
3
[]
no_license
<!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <link rel="stylesheet" type="text/css" href="includes/styles.css"> <title>Home</title> </head> <body> <?php if (!isset($is_home)) { $root = $_SERVER['DOCUMENT_ROOT']; include "$root/retirement-home/inclu...
true
5ca3ad434fa0bc768a7ce1a35fd0dcdeb8a53ce5
PHP
erikespana/cascade-server-web-services
/my-php-cascade-ws-ns-examples/bulk-change-custom/bulk-change-from-contentType.php
UTF-8
5,439
2.625
3
[]
no_license
<?php $start_time = time(); /* Migrate pages, related to a content type, and converts them to a new content type. */ // Settings $contentTypeSource = "0734f49e956aa0520099d297d878c8a5"; // Content Types/Human Resources/Job Posting - Faculty $contentTypeDestination = "e713ed19956aa0780f3cae57fcc69e24"; // Co...
true
9069732aadf96e7c4189bdada3a004203c648eb5
PHP
boqianlv/Backend-Development_Study
/index.php
UTF-8
728
3.171875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Boqian * Date: 2018/10/15 * Time: 21:38 */ echo "<h1>Hello World<br></h1>"; define("Welcome","Hello,World!\n<br>"); echo Welcome; echo "传值方式:<br>"; $a="PHP is the best language!"; $b=$a; echo "a = ".$a."<br>"; echo "b = ".$b."<br>"; $a="PHP is not the best la...
true
0b464fc04b0d0b613a1a250ce6411dc7f4fdc6da
PHP
prostokek/2ndQuarter-php-1stCourse-
/main/pages/personalArea.php
UTF-8
694
2.578125
3
[]
no_license
<?php $title = 'Личный кабинет'; $sql_userData = "SELECT fio, login FROM users where id = {$_SESSION['currentUserId']}"; $res_userData = mysqli_query(connectToSQL(), $sql_userData); $userData = mysqli_fetch_assoc($res_userData); if ($_SESSION['isLogged'] == 'YES') { $content = <<<php <h1>$title</h1> <p>Ваш...
true
98b3337aa02ad018e32910a78bfc301e3648bc95
PHP
bohdan-brightgreen/Designer_BLR
/app/Extensions/SSO/Middleware/SSOMiddleware.php
UTF-8
447
2.703125
3
[]
no_license
<?php namespace SSO\Middleware; use Closure; use SSO; class SSOMiddleware { /** * Check if session is syncronised * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { if (!...
true
467b18d961833160b91cf94fa1c1e49e69b834a2
PHP
menglish78/CoxhallGuild
/inc/functions.php
UTF-8
865
3.0625
3
[]
no_license
<?php function full_calendar() { include("connection.php"); //runs query against database, puts results in variable "$results" try { $results = $db->query( "SELECT date_time, event, description FROM events WHERE date_time >= CURDATE() ORDER BY date_time ASC" ); } catch (Excepti...
true
0a41dfd5ae780165f43c4c1b482890c651d503a1
PHP
maytk9597/php_testing
/laravel/Assignment_01/app/Services/Book/BookService.php
UTF-8
3,605
2.9375
3
[ "MIT" ]
permissive
<?php namespace App\Services\Book; use App\Contracts\Dao\Book\BookDaoInterface as BookBookDaoInterface; use App\Contracts\Services\Book\BookDaoInterface; use App\Contracts\Services\Book\BookServiceInterface; use Illuminate\Http\Request; use Illuminate\Support\Facades\Storage; class BookService implements BookService...
true
64485f8f8c0b022e5652f2166b256c79ddc2dfee
PHP
xdimedrolx/regis
/src/Regis/Domain/Model/Git/Diff/File.php
UTF-8
2,915
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Regis\Domain\Model\Git\Diff; use Regis\Domain\Model\Exception\LineNotInDiff; use Regis\Domain\Model\Git\Blob; class File { private $oldName; private $newName; private $oldIndex; private $newIndex; private $isBinary; private $newBlob; /** @var Chan...
true
2f5f000e4d800e528a35ccb588371469db116e23
PHP
jeremyrperry/edcc
/cis251.php
UTF-8
2,781
2.515625
3
[]
no_license
<?php $metaTitle = "Jeremy R Perry's Web Application Development ATA Portfolio - EdCC - CIS 251."; $metaKeywords = "Jeremy Perry, EdCC Web Application Development ATA Portfolio, CIS 251, SQL, Structured Query Language, MySQL"; $metaDescription = "Jeremy R Perry's Web Application Development Portfolio - Structured Quer...
true
2fcd5eda73a285256b2475bba04da194faa9200a
PHP
tabvn/messenger_drupal
/messenger.pages.inc
UTF-8
2,865
2.53125
3
[]
no_license
<?php /** * Handle form settings for Livex api * @param $form * @param $form_state * @return mixed */ function messenger_config_form($form, &$form_state) { $form[MESSENGER_URL] = array( '#type' => 'textfield', '#title' => t('API url'), '#default_value' => variable_get(MESSENGER_URL, ''), '#desc...
true
10d9a8b15b9d862d6d928be9c3fb60d69a56dea0
PHP
tamarasaurus/advanced-testing-workshop
/src/DomainShop/Service/PayService.php
UTF-8
579
2.953125
3
[ "MIT" ]
permissive
<?php namespace DomainShop\Service; use DomainShop\Entity\Order; use DomainShop\Repository\Order\OrderRepositoryInterface; class PayService { /** * @var OrderRepositoryInterface */ private $orderRepository; public function __construct(OrderRepositoryInterface $orderRepository) { $t...
true
ba3bcc93f273798efc403d4586f4a8a4c275e8a1
PHP
nyacg/Hurst-Menu
/dashboard.php
UTF-8
13,403
2.703125
3
[]
no_license
<?php include "./res/php/checkLogin.php"; //ensure user is logged in include "./res/php/connectlocal.php"; //connect to db ?> <!DOCTYPE HTML> <html lang='en'> <head> <?php include "./res/php/header.php" ?> <title>Dashboard - Hurst Menu</title> </head> <body> <?php include "./res/php/navBar.php" ?> ...
true
0a7240e3240208a0dc0d05162e049638b6dfdaba
PHP
ld-web/ynov-b2-api-serializer
/src/Controller/AbstractBaseController.php
UTF-8
995
2.78125
3
[]
no_license
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Form\FormInterface; abstract class AbstractBaseController extends AbstractController { protected function getFormErrors(FormInterface $form): array { $errors = []; // Récupère toutes le...
true
09d3cfc14d14cda8b503274887df966fd9090b22
PHP
guicvs/discord
/func.php
UTF-8
5,272
2.671875
3
[]
no_license
<?php //SCRIPT FEITO NO PHP 7.1; //ERROS IRÃO OCORRER CASO USE PHP INFERIOR À 7; //error_reporting(0); set_time_limit(0); class discord{ public $cookienum; public $email; public $senha; public $token; public $guilds_count; public $login_success; public $login_error_msg; public $guild_master; //public $reques...
true
0c9aa46e7412076d51ce6913671cecf2db0d62a0
PHP
GEHS-Developers/events
/api/eventsToday/room/index.php
UTF-8
955
2.734375
3
[ "MIT" ]
permissive
<?php $room = $_GET['room']; date_default_timezone_set("America/Los_Angeles"); $events = array(); $date = date('Y-m-d'); $servername = "localhost"; $username = "josfei6_ge"; $password = "gibsonek"; $dbname = "josfei6_ge"; // Create connection $connection = mysqli_connect($servername, $username, $password, $dbname);...
true
6cd13264e6efd8120e56afb0490871061ed6b703
PHP
Cakasim/php-payone-sdk
/src/Api/Message/Response.php
UTF-8
785
2.828125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Cakasim\Payone\Sdk\Api\Message; /** * The implementation of the API response interface. * * @author Fabian Böttcher <me@cakasim.de> * @since 0.1.0 */ class Response extends AbstractMessage implements ResponseInterface { /** * Returns the status of the response. ...
true
56f4e07b6281b144dbb879172dd8650df582e21b
PHP
mahmods/shipcompliant
/Http/Request.php
UTF-8
480
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: fred * Date: 8/23/15 * Time: 12:55 PM */ namespace H2\ShipCompliant\Http; /** * Class Request * This class is a thin wrapper around the $_REQUEST object * @package LeagueCMS\Http */ class Request { public static function has($key) { return ! empty( $_REQUEST[ $ke...
true
28542ef42aa27dafa20b1a5d0bfd930075e35681
PHP
swami8223/Swami_April_Hotel_APP
/PHP/app_manger/hotel_menu_details.php
UTF-8
1,059
2.765625
3
[]
no_license
<?php include '../db_manager/dbdetails.php'; class Hotel_menu_details { public $hotel_details_table_name; public $host_name; public $username; public $password; function __construct(){ $dbdetails = new Dbdetails(); $this->hotel_details_table_name = Dbdetails::$hotel_details_table_name; $this->host_name= ...
true
1c629e0736cec46ca0fd6a326dbf4c283de95985
PHP
mahenoor/phpCodeSnippets
/assessments/application/validation.php
UTF-8
2,418
3.171875
3
[]
no_license
<?php class Validation { public function validate($studentRecord) { $resultOfValidation = true; $errorMessageArray = array(); if (empty($studentRecord['studentName']) || !preg_match("/^['a-z']{3,9}$/",$studentRecord['studentName'])) { $studentNameError = "***please enter na...
true
46ab43eccfb80e58bbb8a2aeb6a228c630015205
PHP
DrevardSteven/temperatureVilles
/index.php
UTF-8
534
2.5625
3
[]
no_license
<?php $bdd = new PDO('mysql:host=localhost;dbname=bdd_temperaturevilles;charset=utf8', 'root', ''); ?> <h1>Température météo</h1> <form method="post" action="affichage_temperature.php"> <p> <SELECT name="ville_select" size="1"> <?php $reponse = $bdd->query('SELECT ville FROM `temperaturevilles`'); //$ville = $reponse-...
true
bdec1bbc255473759f5675b4f2f26e16d00041f3
PHP
jonasschilling/restaurando
/backend/sql.php
UTF-8
578
2.65625
3
[]
no_license
<?php $link = false; $MYSQL_IP = 'localhost'; $MYSQL_USER = 'root'; $MYSQL_PW = ''; $MYSQL_DB = 'restaurando'; function getConnection(){ global $link, $MYSQL_IP, $MYSQL_USER, $MYSQL_PW, $MYSQL_DB; if( $link ) return $link; $link = mysqli_connect($MYSQL_IP, $M...
true
f584e2e6428a9b7f7f9b4f7701499df4d4a5bb8e
PHP
OpenDataAarhus/CKANtoORION
/src/AppBundle/Entity/Asset.php
UTF-8
3,441
2.578125
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Entity; use ApiPlatform\Core\Annotation\ApiProperty; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * @ORM\Entity * @ORM\InheritanceType("SINGLE_TABLE") * @ORM\DiscriminatorColumn(name="discr", type="string") */ abstract class Asset { /**...
true
0e6549c85097dea86c94cfdbd93a483b2a760692
PHP
codersclub/forum
/db_schema/lib/classes/mysqli_migration.php
UTF-8
927
2.90625
3
[ "MIT" ]
permissive
<?php /** * This file houses the MpmMysqliMigration class. * * @package mysql_php_migrations * @subpackage Controllers * @license http://www.opensource.org/licenses/bsd-license.php The New BSD License * @link http://code.google.com/p/mysql-php-migrations/ */ /** * The MpmMysqliMigration is an abst...
true
1a40aacdebb4da1fdcd884ac170c19290aa58ef8
PHP
hidkab/bibliotheque
/model/entity/book.php
UTF-8
1,930
3.609375
4
[ "MIT" ]
permissive
<?php // Classe représetant les livres stockés en base de données class Book { protected int $id; protected string $title; protected string $author; protected string $category; protected string $date_of_onset; protected string $abstract; protected ?string $user_id; // construct publ...
true
8fbdd48e0d16396421ed1557b605953e184e34a4
PHP
trenyture/legend-age
/BACK/sources/Controllers/ContactController.php
UTF-8
985
2.671875
3
[]
no_license
<?php class ContactController { public function contact() { if(!isset($_POST) || count($_POST) == 0) { http_response_code(400); echo true; die(); } $validator = new Validator(); $validator->isEmpty($_POST['name'], "Le nom"); $validator->isEmail($_POST['email'], "L'email"); $validator->isEmpty(...
true
b5b7259271242a3ef10ecc83419c3d2cd4c371f9
PHP
Maksat/Reactiva_Project
/ServerSide/upload_answers.php
UTF-8
5,355
3.03125
3
[]
no_license
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); echo "HEEY"; function reformatDate($dateString) { $android_date_format = 'M d, Y H:i:s'; $mysql_date_format = "Y-m-d H:i:s"; $date = DateTime::createFromFormat($android_date_format, $dateString); return ...
true
63a74b82a1cd718aee15fc57acf2b982520269d6
PHP
DonkeyDokie/Donkeydokie
/api/post_trip.php
UTF-8
3,719
2.65625
3
[]
no_license
<?php /* Input: TripID, Title, Time, StartDate, Length, TravelStyleID, TripDescription, Remarks, Requirements, Budget, VisibleAttributes Output: none */ include '../credentials/credentials.php'; $conn = new mysqli($server_name, $db_username, $db_password, $db_name); i...
true
958902aa33d0b3d12de946d9fa094dd656ab7d06
PHP
Dheia/LaravelBackup
/src/Database/Compressors/GzipCompressor.php
UTF-8
738
2.640625
3
[]
no_license
<?php declare(strict_types=1); namespace Arcanedev\LaravelBackup\Database\Compressors; use Arcanedev\LaravelBackup\Database\Contracts\Compressor; /** * Class GzipCompressor * * @author ARCANEDEV <arcanedev.maroc@gmail.com> */ class GzipCompressor implements Compressor { /* -----------------------------...
true
3612600024cf4431d4ecfc05c3e2abeb715626f6
PHP
JRam222/purify
/admin/monthly.php
UTF-8
2,113
3
3
[ "MIT" ]
permissive
<?php include_once 'conn.php'; $query = "SELECT * FROM events"; $eventsArray = array(); if ($result = $mysqli->query($query)) { /* fetch associative array */ while ($row = $result->fetch_assoc()) { array_push($eventsArray, $row); } if(count($eventsArray)){ createXMLfile($event...
true
3273d90167e925c83db570c33b19ba572916d1fa
PHP
pashaUSA/nifty_project
/submit/connection.php
UTF-8
627
2.8125
3
[]
no_license
<?php $databaseName = "caswork_nifty_project"; $databaseUser = "caswork_nifty_u"; $databasePassword = "!nifty503"; define("DB_DSN", "mysql:host=localhost;dbname=$databaseName;charset=utf8"); define("DB_USER", $databaseUser); define("DB_PASS", $databasePassword); // Create a database connection try { // 1. Crea...
true
d3486f57dfbd409b87c9685899c951fb4b7cb321
PHP
RAPOS/lesresurs
/models/LBanners.php
UTF-8
1,222
2.5625
3
[]
no_license
<?php namespace app\models; use Yii; /** * This is the model class for table "l_banners". * * @property integer $id * @property integer $id_image * @property string $header * @property string $link_more */ class LBanners extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static funct...
true
c3185bab4e019bdd7a1a46612e484d01ac1c8d61
PHP
GasparyanG/pc_parts
/src/Services/API/JsonApi/DataFetching/OrderImplementer.php
UTF-8
1,803
2.78125
3
[]
no_license
<?php namespace App\Services\API\JsonApi\DataFetching; use App\Database\Connection; use Doctrine\ORM\EntityManager; use Doctrine\ORM\QueryBuilder; use Symfony\Component\HttpFoundation\ParameterBag; class OrderImplementer { // keywords const ORDER = "order"; const ASC = "ASC"; const DESC = "DESC"; ...
true
b799e867e0a911ebc9f954864510170273745254
PHP
unsetbad/ProgrammingNotes
/PHP/由浅入深掌PHP握面向对象开发/代码/面向对象基础/08class_op.php
UTF-8
285
3.375
3
[]
no_license
<?php # 范围解析操作符 class Saler{ # 类常量 const PI = 3.14; } # $s1 = new Saler(); # echo $s1->PI; # 无法访问 # 类访问类常量 echo Saler::PI; # echo $s1::PI; # 范围解析操作符兼容对象:找到对象所属类最终进行访问
true
fe2b4c1bcdc083e5be0b0fafab49edeea45f5315
PHP
MangoLau/ssc
/admin/ldssc/lib/classes/googleChart/GoogleChartData.php
UTF-8
7,334
2.625
3
[]
no_license
<?php class GoogleChartData { protected $values = null; protected $legend = null; protected $labels = null; protected $chco = false; protected $color = 'ffcc33'; protected $chls = false; protected $thickness = 2; protected $dash_length = null; protected $space_length = null; protected $fill = null; protected $fill_sli...
true
cf62c06828cc522d982048495231cbafbbe882b5
PHP
819239858/zxh_onlinecateringsystem
/includes/global.func.php
UTF-8
1,399
2.703125
3
[]
no_license
<?php //防止非法调用 if(!defined('IN_TG')){ exit('Access Defined.'); } /*验证码*/ function check_code($firstcode,$endcode){ if($firstcode!=$endcode) { echo "<script type='text/javascript'>alert('验证码不正确!');history.back();</script>"; exit; } } /*登录状态*/ function login_state() { if (isset($_COOKIE...
true
fbf7c8d3afb1411019babeed68c66e2d3798e98b
PHP
EdBilous/simple_shop_symfony4
/src/Entity/Discount.php
UTF-8
2,835
2.6875
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\DiscountRepository") */ class Discount { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Colu...
true
0862bf9bab166bdade499cf3f695811ad4de92d1
PHP
erichilarysmithsr/Sudoku
/src/Puzzle.php
UTF-8
6,415
3.046875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* * (c) Jeroen van den Enden <info@endroid.nl> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Endroid\Sudoku; class Puzzle { public $debug = false; public $cells = array(); public $rows = array(); public $colu...
true
6ff71f4496150f8230c85ea98b702a3d038bee51
PHP
bcmediac15/sample-class02
/clsDATABASE.php
UTF-8
3,028
2.953125
3
[]
no_license
<?php class clsDATABASE{ private $cnn, $dbs; function __construct(){ $this->cnn = mysqli_connect("HOSTDBMS","MYSQL_USER","MYSQL_PASSWORD","MYSQL_DATABASE") or die("Koneksi ke DBMS Mysql Gagal<br>"); } function __destruct(){ if($this->cnn){ ...
true
056ff9914001dc6118565c6234b49bcf79fd9b93
PHP
syd-shelby/sydcoffeehouse
/app/Http/Controllers/MenuController.php
UTF-8
556
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Menu; class MenuController extends Controller { public function index (){ $items = Menu::all(); return view('menu', ['items' => $items]); } public function show($id){ $items = Menu::all(); foreach ...
true
d809e03ca3c979f9ca345686d33cf539b657d9a7
PHP
fey/slimmo
/src/ItemRepository.php
UTF-8
377
2.734375
3
[]
no_license
<?php namespace App; use App\Entities\Item; use Doctrine\ORM\EntityRepository; class ItemRepository extends EntityRepository { public function create(array $data): Item { $item = new Item(); $item->setTitle($data['title']); $this->getEntityManager()->persist($item); $this->ge...
true
13a5caee8b99dccc464c5029b83b444baf46262f
PHP
emersonzuliani/SSCookbook
/web/application/models/classificacao_model.php
UTF-8
1,272
2.59375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('Acesso direto não permitido!'); class classificacao_model extends CI_Model { public function __construct() { parent::__construct(); } public function listaTodos() { return $this->db->get("cbclassificacao")->result_array(); } public function salva($class) { //verifica...
true
905e3f1a17164e1262a9abf6fae5ee84dec7b3d9
PHP
pablomolinas/serviceMVC
/controllers/turnos-prestaciones.php
UTF-8
1,123
2.5625
3
[]
no_license
<?php // ../controllers/turnos-prestaciones.php require '../fw/fw.php'; require '../models/TurnosPrestaciones.php'; require '../views/turnosPrestacionesLista.php'; $e = new TurnosPrestaciones(); //modelo $v = new turnosPrestacionesLista(); //vista if(isset($_POST["desde"]) AND isset($_POST["hasta"])){ $...
true
b96e74bc521a6b5dc867c8313fc9661e8034f0bf
PHP
nediam/phraseapp-bundle
/Events/PostDownloadEvent.php
UTF-8
2,076
2.734375
3
[ "MIT" ]
permissive
<?php /** * Author: grzegorz * Date: 14.01.16 20:39 */ namespace nediam\PhraseAppBundle\Events; use Symfony\Component\EventDispatcher\Event; class PostDownloadEvent extends Event { /** * @var array */ private $tempData = []; /** * @var null|string */ private $finalFilePath = n...
true
b10091c18a4d63dba584793fff215f89d6bfcfbe
PHP
AlexandrKozyr/plariummorphy
/class/Morphy.class.php
UTF-8
5,266
3.515625
4
[]
no_license
<?php /* * @ author: Alexandr Kozyr; * @ email: kozyr1av@gmail.com; * @ class Morhpy encapsulates all movements with library phpMorphy (pattern Facade) * and makes a phpMorhpy easier to use. Main goal of this class is to complite task #2 - * declension of words; */ class Morphy { //object of morphy (ph...
true
5b36a4f811123fa9a089aa7052ef67ed604d2738
PHP
KaseaKyra/lew4
/Modules/Sortings/Database/Migrations/2019_01_12_092935465356_create_sortings_sortings_table.php
UTF-8
900
2.578125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateSortingsSortingsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('sortings__sortings', function (Blueprint $tab...
true
a14c4de3b355740c1be4e48255d5b0e253294d6c
PHP
pi-engine/pi
/usr/module/article/src/Model/Category.php
UTF-8
7,453
2.84375
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 Module\Article\Model; use Pi\Application\Model\...
true
4e7c0f4188780aa161011d2948b4712a78414ec4
PHP
iclemens/cas
/src/shared/controllers/EmailtemplateController.php
UTF-8
6,887
2.625
3
[]
no_license
<?php /** * EmailtemplateController, Project CAS * * @author Ivar Clemens <post@ivarclemens.nl> * @package Controllers */ Zend_Loader::loadClass('CT_Smarty_Paginate'); Zend_Loader::loadClass('CT_Paginate_Db'); Zend_Loader::loadClass('CT_Sort_Db'); Zend_Loader::loadClass('CT_Controller_Action'); Zend_L...
true
d9e965b8bcfc7a0eb23f28b13772b0e673ed1427
PHP
xiaobinghhh/LaravelPing
/app/Application/Student.php
UTF-8
1,001
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Application; use Illuminate\Database\Eloquent\Model; class Student extends Model { //定义关联的数据表 protected $table = 'students'; //一个学生对应系统中的一个用户 public function user() { return $this->belongsTo('App\Application\User'); } //学生和课程多对多,但是查询出来的数据只有课程里面相关的数据,想要获取课程的成绩...
true
09bc15d28a4bdfb0a66f0f2787d7c5927108a450
PHP
hukumonline/admin
/library/Pandamp/Controller/Action/Helper/GetHistory.php
UTF-8
5,982
2.5625
3
[]
no_license
<?php /** * @author 2011-2018 Nihki Prihadi <nihki@madaniyah.com> * @version $Id: GetHistory.php 1 2013-12-05 18:00Z $ */ class Pandamp_Controller_Action_Helper_GetHistory { private $catalogGuid; public function getHistory($catalogGuid) { $history = $this->getRelatedItem($catalogGuid,'RELATED_HISTORY'); ...
true
75609433e84ff82ab542498de6590bf4aedf53fe
PHP
seidnur/test
/application/models/Model_employee.php
UTF-8
9,991
2.734375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Model_employee extends CI_Model { function __construct() { parent::__construct(); $this->load->database(); // Paginaiton defaults $this->pagination_enabled = FALSE; $this->pagination_per_page = 10; $this->pag...
true
e99f5b913f2b8c8d493eac2cdbd54e0bd4a9746c
PHP
goksagun/scheduler-bundle
/tests/Fixtures/FooBundle/Command/GreetingSayGoodbyeCommand.php
UTF-8
1,035
2.5625
3
[ "MIT" ]
permissive
<?php namespace Goksagun\SchedulerBundle\Tests\Fixtures\FooBundle\Command; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputI...
true
3f043ba565977a266a1e2d30dfd0cecf19dd0969
PHP
biennd279/VBCode
/app/Models/Problem.php
UTF-8
2,164
2.625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; /** * App\Models\Problem * * @property int $id * @property string $name * @property string $question * @property int $point * @property int $contest_id * @property \Illuminate\Support\Ca...
true
f90baeef5591c6d7ba535209280436afcbce5833
PHP
Leelow/trends-analysis-twitter
/system/clean_process/script_clean.php
UTF-8
967
2.734375
3
[ "Apache-2.0" ]
permissive
<?php ////////////////////////////////////////////////////////////////////// // // // Ce script est chargé du nettoyage des // // champs 'text' des tweets. // // // ////////////////////////////////////////////////////////////////////// require_once dirn...
true
ac79e3179397c1110fdcf1a06cb2687e3914c153
PHP
PranavKartha/DiscoveryParkInteractiveMap
/connect.php
UTF-8
787
2.515625
3
[]
no_license
<?php $IPattern = $_POST['IPattern']; $Transportation = $_POST['Transportation']; $Visited = $_POST['Visited']; echo $IPattern; echo $Transportation; echo $Visited; //Database connection $conn = new mysqli('localhost','root','','patterns2'); if($conn->connect_error){ die('Connection Failed:' .$conn->connect_error);...
true
4c4b5a851174582b79a8617a09ab8d2ed8240b67
PHP
spoorey/nibobee-webinterface
/src/Command/LEDCommand.php
UTF-8
3,520
2.75
3
[]
no_license
<?php /** * Created by PhpStorm. * User: David Spörri * Date: 23.03.2016 * Time: 11:02 */ namespace NiboLib\Command; class LEDCommand extends AbstractCommand { protected $activeLEDs; /** * @return $this */ public function startLED0() { $this->activeLEDs['LED-0'] = 'LED-0'; ...
true
6f45aa57ceeaa02eedac2a25964a12ca0c9ff681
PHP
leafrainy/site-cli
/src/Site.php
UTF-8
1,575
2.765625
3
[ "MIT" ]
permissive
<?php /** * SiteCLI - Help you manage Nginx local development configuration * * @author panlatent@gmail.com * @link https://github.com/panlatent/site-cli * @license https://opensource.org/licenses/MIT */ namespace Panlatent\SiteCli; use Symfony\Component\Filesystem\Filesystem; class Site { const CONNEC...
true
f88869179d0a806d6f5d3bf7093177b9b4b0a6aa
PHP
jeffisaacs/PO-laravel
/seeds/ProductsTableSeeder.php
UTF-8
663
2.5625
3
[]
no_license
<?php use Illuminate\Database\Seeder; use App\Products; class ProductsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('products')->delete(); $json = File::get("database/products.json"); $data = jso...
true
80e1798b313b84275a8cd1ccf5458fbb288c3b7d
PHP
ConcordSuprime/linkBreaker
/app/Helper/NetworkHelper.php
UTF-8
961
2.6875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Алексей * Date: 12.09.2020 * Time: 10:40 */ namespace App\Helper; class NetworkHelper { public static function http_response($url, $status = null) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, ...
true
794db97bebbe87c548e157b3849425759ffb2c54
PHP
Rollins434/travel-buddy
/config.php
UTF-8
472
2.515625
3
[ "CC-BY-4.0", "CC-BY-3.0" ]
permissive
<?php $con = mysqli_connect("localhost","root","","registration"); function escape($string) { global $con; return mysqli_real_escape_string($con,$string); } function redirect($location) { header("location:{$location}"); } function count_rows($result) { return mysqli_num_rows() } function query($query)...
true
b5494a6ec1cedca5dd29a35c66027ee6a7e36120
PHP
eduardoguerrero/videoclub
/src/MovieBundle/Utils/RentCalculateContext.php
UTF-8
1,101
2.984375
3
[]
no_license
<?php declare(strict_types=1); namespace App\MovieBundle\Utils; use App\MovieBundle\Entity\MovieType; /** * Class RentCalculateContext * @package App\MovieBundle\Utils */ class RentCalculateContext { /** @var NewMovie|NormalMovie|OldMovie|null */ private $strategy; /** * RentCalculateContext c...
true
419c79317f5410fdc3d3d5c1825ca1a7fed053ad
PHP
madevara24/interview-test-product-crud-api
/application/modules/v1/models/Products_model.php
UTF-8
1,131
2.828125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Products_model extends CI_Model { public function __construct() { $this->load->database(); //Table Name $this->table_name = "products"; } public function get_products($id = false) { if($id === false){ $query = $this->db->get($this->table_name); ...
true
d7be4bdebd892fc086b37d20d2e94073e3ee32d2
PHP
plexikon/ouste
/src/Domain/Role/RoleValue.php
UTF-8
672
2.921875
3
[]
no_license
<?php declare(strict_types=1); namespace Plexikon\Ouste\Domain\Role; use Plexikon\Ouste\Support\Contracts\Domain\Role\Role; use Plexikon\Ouste\Support\Contracts\Http\Value\Value; class RoleValue implements Role, Value { private string $roleName; public function __construct(string $roleName) { $t...
true
715c667b07f8292ae9ac57a66c34a065b3e7ac06
PHP
AlexMertz/WebToolbox
/login.php
UTF-8
1,716
2.578125
3
[]
no_license
<?php session_start(); $config = parse_ini_file("config.ini", true); $toGet = array( "/cas:serviceResponse/cas:authenticationSuccess/cas:user" => "login", "/cas:serviceResponse/cas:authenticationSuccess/cas:attributes/cas:mail" => "email", "/cas:serviceResponse/cas:authenticationSuccess/cas:attributes/cas:givenN...
true
98cf27fc04ae7d2b111ac458e1164098d8510ec4
PHP
HusainMehdi/web-programming
/PHP_old/updatePlayerStatus.php
UTF-8
1,643
2.671875
3
[]
no_license
<?php require('db.php'); $name = mysqli_real_escape_string($conn, $_POST['username']); $x = mysqli_real_escape_string($conn, $_POST['x']); $y = mysqli_real_escape_string($conn, $_POST['y']); $cellsControlled = "SELECT COUNT(*) AS total FROM `grid` JOIN `playersingame` ON `grid`.`owner`=`playersingame`.`id` WHERE `play...
true
800e6eee68da5b519eaf54be74f95fec791982d7
PHP
gregjoy1/Old-Personal-Website
/src/helpers/log_helper.php
UTF-8
237
2.6875
3
[]
no_license
<?php class LogHelper { public static function AddLog($logEntry) { global $SITE_CONFIG; file_put_contents( $SITE_CONFIG['log_location'], date('Y-m-d H:i:s').'::'.$logEntry.PHP_EOL, FILE_APPEND ); } } ?>
true
34023bf4f9ce3e597dee9164f09779ec1ae337f0
PHP
dmitry575/RedButton3
/inc/lib/model/useragents.php
UTF-8
1,843
2.609375
3
[]
no_license
<?php //+------------------------------------------------------------------+ //| Copyright c 2012, RedButton Web Sites Generator | //| http://www.getredbutton.com | //+------------------------------------------------------------------+ /** * Created by JetBrains Ph...
true
4ea562f01e79a5703f931b1af7fc5b4454e3965a
PHP
364379713/php-remdemo
/php/demo5.php
UTF-8
4,158
3.078125
3
[]
no_license
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <?php //字符串处理 //格式化字符串 //chop()函数移除字符串后面多余的空白。包括新行 //ltrim()函数移除字符串起始处的空白; //rtrim()函数移除字符串后面的空白包括新行==chop(); //trim()函数移除字符串两边多余的空白; //nl2br()函数将字符串作为输入参数用XHTML 中的<br />标记代替字符串中的换行符 //echo nl2br("Teacher!\nStudent!"); //htmlentities();会把...
true
ee09b6916b8dc7a6f48bc9c777253f577f2fcb26
PHP
bacim-oueslati/ProjetWeb_Groupe5
/inscriptionclient/controller/adminC.php
UTF-8
4,481
2.890625
3
[]
no_license
<?PHP include "../config.php"; require_once '../Model/admin.php'; class adminC { function ajouteradmin($admin){ $sql="INSERT INTO admin (nom, prenom, age, email, login, password) VALUES (:nom,:prenom,:age,:email, :login, :password)"; $db = config::getConnexion(); try...
true
6f99531c36f5a2f3d58d15a243711389653b3158
PHP
liubole/ztracker
/src/Server/Shell/MySQLDependencies.php
UTF-8
686
2.71875
3
[ "BSD-2-Clause" ]
permissive
<?php /** * User: Tricolor * Date: 2018/1/17 * Time: 9:36 */ namespace Tricolor\ZTracker\Server\Shell; use Tricolor\ZTracker\Server; /** * Usage: * 1.php dependencies.php `date -u -d '1 day ago' +%F` * 2.dependencies.php: * $day = count($argv) >= 2 ? date("Y-m-d", strtotime($argv[1])) : date('Y-m-d'); * $c...
true
af5d5c955d398dae5bdc9f06dcbaa78af9b74024
PHP
axolo/leophp
/framework/Model.php
UTF-8
488
2.59375
3
[ "MIT" ]
permissive
<?php namespace leophp; use \PDO as PDO; /** * @todo Model::struct() data struct * @todo Model::validate() data validate * @todo Model::storage() data storage * @todo Model::crud() mode CRUD */ class Model extends PDO { protected $config; protected $db; function __construct() { $thi...
true
5f52535e545cab252212bf9ce5cad345030231ad
PHP
DaveRandom/ProgramExecutor
/src/ChildInputPipe.php
UTF-8
568
2.953125
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace DaveRandom\ProgramExecutor; final class ChildInputPipe extends ChildPipe { public function __construct($pipe) { parent::__construct($pipe); } public function write(string $data): void { if (!$this->isOpen()) { throw new \Logic...
true
8e66e84db3bc692c6360dc257603732aeb06909a
PHP
shuangzhu1/workspace
/srv/Library/Components/WeChat/Requests/GroupUpdate.php
UTF-8
826
2.8125
3
[]
no_license
<?php namespace Components\WeChat\Requests; /** * */ use Components\WeChat\AbstractRequest; class GroupUpdate extends AbstractRequest { protected $requestUri = "https://api.weixin.qq.com/cgi-bin/groups/update?access_token="; protected $grantType = "client_credential"; protected $groupId = ''; prote...
true
1c823c5e132bca21533b33d606028049c6312164
PHP
pendex900x/ophthalmologic-welcome_to
/proyecto/core/app/action/addcategory-action.php
UTF-8
702
2.578125
3
[ "MIT" ]
permissive
<?php /** * Sistema control de citas WELCOME * @author localhost **/ if(count($_POST)>0){ $user = new CategoryData(); $user->name = $_POST["name"]; $name=$_POST["name"]; //VALIDANDO CATEGORIA $name=$_POST["name"]; if ($_POST['name']){ if (!preg_match("/^[A-Za-z0-9.,ñÑáéíóúÁÉÍÓÚ ]+$/", $name)) { ...
true
03b25582e8b2022c11b8cbe16e4c1f50d40c00d1
PHP
QQAnh/name
/app/Http/Controllers/Endpoint/ProductsController.php
UTF-8
3,020
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Endpoint; use App\Product; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class ProductsController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { ...
true