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
6cd77b06dd5958ee2c6ce036d357fb498e721ca8
PHP
jeromeklam/freeedms
/src/FreeEDMS/Core/Edms.php
UTF-8
17,411
2.578125
3
[ "MIT" ]
permissive
<?php namespace FreeEDMS\Core; use \FreeEDMS\Constants as FECST; /** * */ class Edms implements \Psr\Log\LoggerAwareInterface, \FreeFW\Interfaces\ConfigAwareTraitInterface { /** * comportements */ use \Psr\Log\LoggerAwareTrait; use \FreeFW\Behaviour\ConfigAwareTrait; // use \FreeFW\B...
true
92694dcee2dce660082df0d63d9989d3bd115ae9
PHP
NadineAstakhova/SystemOfIndividualWorks
/models/Individual_Work.php
UTF-8
5,382
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: Nadine * Date: 12.04.2016 * Time: 19:26 */ namespace app\models; use Yii; use yii\behaviors\TimestampBehavior; use yii\db\Query; /** * This is the model class for table 'Individual_Work' **/ //status of work class Enum_Status extends Enum { const NEW_WORK = 'new';...
true
18afccbb18cce04761bb22b36c2fa82b94a69ada
PHP
thiagocouts/livro-php
/exemplo_tdg.php
UTF-8
1,024
2.59375
3
[]
no_license
<?php require_once 'Classes/tdg/ProdutoGateway.php'; $data1 = new stdClass; $data1->descricao = 'Vinho Brasileiro Tinto Merlot'; $data1->estoque = 10; $data1->preco_custo = 12; $data1->preco_venda = 18; $data1->codigo_barras = '1234545903'; $data1->data_cadastro = date('Y-m-d'); $data1->origem = 'N'; $data2 = new st...
true
4afb823bf45df2518f227beecfc5b56e3c4d7f05
PHP
oawu/Quick
/app/core/php-activerecord/DateTimeInterface.php
UTF-8
234
2.53125
3
[]
no_license
<?php namespace ActiveRecord; interface DateTimeInterface { public function attribute_of ($model, $attribute_name); public function format ($format=null); public static function createFromFormat ($format, $time, $tz = null); }
true
09611f34ec1076a3f7df99f10c01791df85b9e8e
PHP
LucasFurioFranco/bro_bath
/scripts/getProduct.php
UTF-8
4,553
3.015625
3
[]
no_license
<?php class ProductList{ private $product_list; public function __construct(){ $this->product_list = new Product(); } public function getProductListByCategory($cat){ //Envia um array de informações $ret_list = array(); for($i=1;$i<=5;$i...
true
a37f7ab8257718ce390a1a4da8e7671ea80f7c4b
PHP
EdwardN1/pawprint
/wp-content/plugins/pawprint-badges/includes/activityExport.php
UTF-8
7,718
2.765625
3
[]
no_license
<?php use Mpdf\Tag\P; if ( ! defined( 'ABSPATH' ) ) { exit; } class activityExport { public $general = array( 'title', 'badges', 'age', 'subject', 'cost', 'soft skills', 'craft', 'food', 'games', 'other', 'spring', 'summer', 'autumn', 'winter', 'indoor', 'outdoor', 'day', 'nigh...
true
30bb24a03e82b2f23942cc3a075504ec958019b0
PHP
4slv/expression
/Operation/OperationName.php
UTF-8
1,649
3.046875
3
[]
no_license
<?php namespace Slov\Expression\Operation; use MabeEnum\Enum; /** Название операции */ class OperationName extends Enum { const ADD = 'add'; const MULTIPLY = 'multiply'; const SUBTRACTION = 'subtraction'; const DIVISION = 'division'; const REMAINDER_OF_DIVISION = 'remainderOfDivision'; const...
true
11811cd4c602da1d4b5ed32e135ee8e278ceeeed
PHP
Nikolaev01/shop
/objects/menuDB_class.php
UTF-8
723
2.625
3
[]
no_license
<?php class MenuDB extends ObjectDB { protected static $table = "menu"; public function __construct() { parent::__construct(self::$table); $this->add("title", "Validatetitle"); $this->add("link", "ValidateURL"); $this->add("parent_id", "ValidateID"); $this->add("exter...
true
555f0081abbb77b401850b273da742ad0077506d
PHP
jblossomweb/sproutloud
/inc/Runner.php
UTF-8
836
3.703125
4
[]
no_license
<?php // Abstract Classes focus on a kind of things similarity. // In PHP, an Abstract class may not be instantiated. // for example: // A Runner is a type of Person. // A Runner must define methods outlined in the Athlete interface. abstract class Runner extends Person implements Athlete{ protected $maxSpeed = ...
true
9641cae3acda137fe29d7a0a827b5b2389f8edb7
PHP
stadline/linkdata-bundle
/Entity/Activity/DataSummary.php
UTF-8
2,521
2.671875
3
[]
no_license
<?php namespace Geonaute\LinkdataBundle\Entity\Activity; use Geonaute\LinkdataBundle\Utils\Datatype; use Geonaute\LinkdataBundle\Entity\Common\Value; use JMS\Serializer\Annotation as Serializer; class DataSummary { /** * @Serializer\SerializedName("VALUE") * @Serializer\XmlMap(inline = true, entry = "...
true
4c964255f3c49324512f0fc51fd0820ae0eef9ba
PHP
xclydes/x-keepass-php
/src/Util/Reader/DigestReader.php
UTF-8
1,432
3.21875
3
[ "MIT" ]
permissive
<?php namespace KeePassPHP\Util\Reader; /** * A Reader implementation, backed by another reader, which can compute the * hash of all the read data. */ class DigestReader extends Reader { private $_base; private $_resource; /** * Constructs a new DigestReader implementation, reading from the Reade...
true
d5d861722f987bc84b80331d98fec7f280341307
PHP
annamaltseva/students
/controllers/SubjectController.php
UTF-8
2,140
2.703125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\controllers; use app\models\Subject; use yii\data\ActiveDataProvider; use Yii; class SubjectController extends AdminController { public function actionIndex() { $session = Yii::$app->session; $session->set('RETURN_URL', Yii::$app->request->absoluteUrl); $dataProvi...
true
286107a0c1262eb7d3d2311767d4fe29c4061b0a
PHP
lysender/lysender.com
/application/classes/controller/about.php
UTF-8
829
2.78125
3
[ "BSD-3-Clause" ]
permissive
<?php defined('SYSPATH') or die('No direct script access.'); class Controller_About extends Controller_Cached { protected $_birth_date = '1985-08-08'; public function action_index() { $this->template->title = 'About'; $this->template->description = 'About Lysender'; $this->template->keywords = 'about, lysend...
true
2688bb75a2e8729054a72efd2be88542a55d9dfa
PHP
ravialdo/web-based-application
/APLIKASI-CRUD/index.php
UTF-8
1,695
2.671875
3
[ "MIT" ]
permissive
<?php // Memangggil koneksi database require 'connection.php'; // Menggunakan structur HTML Layouts::head('Selamat Datang di aplikasi Crud Sederhana!'); ?> <!-- Tombol create data--> <a class="btn btn-primary mb-3 mt-5" href="create.php" role="button">Tambah Data Barang</a> <h3 class="text-center mb-...
true
eb2d351d74a65173ef370223bf75177b6f6a167e
PHP
PetrosMAMALIOGKAS/QCMserveur
/code/control/ListerQuestionsThemeControle.php
UTF-8
584
2.515625
3
[]
no_license
<?php namespace Code\Control; // require_once('Controle.php'); // require_once('ThemeLogique.php'); // require_once('QuestionLogique.php'); class ListerQuestionsThemeControle extends Controle { public $page = "listerQuestionsParTheme.php"; function executer() { global $vue; $logique = new \Code\Logique\ThemeLo...
true
00cbb7bf5d62672472a0282c66f42d8795955ca5
PHP
alanshortanjungkapal/Rapor-Digital
/application/models/dao/CbtSoalSiswaDAO.class.php
UTF-8
2,486
2.640625
3
[ "MIT" ]
permissive
<?php /** * Intreface DAO * * @author: http://phpdao.com * @date: 2021-03-25 11:46 */ interface CbtSoalSiswaDAO{ /** * Get Domain object by primry key * * @param String $id primary key * @Return CbtSoalSiswa */ public function load($id); /** * Get all records from table */ public function quer...
true
a26bd2b1afa22bf6fa3ba13e750d5c97a5cf02c9
PHP
sibrand132/gamesempire
/api/application/models/admin/Users_model.php
UTF-8
915
2.5625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Users_model extends CI_Model{ public function get($id =false) { if($id==false){ $q = $this->db->get('users'); $q=$q->result(); } else{ $this->db->where('id',$id); $q = $this->db->get('users'); $q=$q->row(); ...
true
d7ec800b918c72b18f7647d5a30d3a085cd0accf
PHP
hktr92/oopize
/src/Util/DirUtil.php
UTF-8
2,922
2.953125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * @author hktr92 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Oopize\Util; use RecursiveDirectoryIterator; use RecursiveIteratorIterator; use function dirname; use function is_dir; u...
true
363857c7967423cfa60fa4cacf4a1d9358814f8d
PHP
kubw19/dManagerAPI
/common/Login.php
UTF-8
3,620
2.78125
3
[]
no_license
<?php class Login { public $authorized; public $message; public $apiKey; public $authKey; public $expire; public $userId; public $sessionId; public function __construct($authorized, $userId, $sessionId, $apiKey, $authKey, $expire, $message) { $this->authorized =...
true
483f91bec11adfda339053142a43945a0aa925f1
PHP
CAROLMIRAB/iopa-web
/app/BackPage/Repositories/SpecialtyRepo.php
UTF-8
1,667
2.640625
3
[]
no_license
<?php namespace App\BackPage\Repositories; use Illuminate\Support\Facades\DB; use App\Office; use App\Specialty; class SpecialtyRepo { public function createSpecialty($data) { $specialty = new Specialty(); $specialty->fill($data); $specialty->save(); return $specialty; ...
true
666b01ceeb21c6daf5543f8da032bbb0924889f4
PHP
nijalsedulous/blackstone
/app/Http/Controllers/ServiceController.php
UTF-8
4,563
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Service; use Validator; use File; class ServiceController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $service...
true
31a1b12e95b9116f5e1f1d9734c95881ff775c1b
PHP
al10508222/controlV1
/controlgestionback/database/seeders/ImssDeductionsSeeder.php
UTF-8
489
2.53125
3
[]
no_license
<?php namespace Database\Seeders; use App\Models\ImssDeductions; use Illuminate\Database\Seeder; class ImssDeductionsSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { ImssDeductions::create([ "id" => 1, ...
true
9c2b121e7a244ebb8a949613ba66d12cda8246fb
PHP
dannykopping/extjs-experiments
/com/dannykopping/php/services/ProfileViewService.php
UTF-8
1,519
2.671875
3
[]
no_license
<?php import("aerialframework.service.AbstractService"); require_once("UserService.php"); class ProfileViewService extends AbstractService { public $modelName = "ProfileView"; /** * Captures a recruiter's viewing of a jobseeker's profile * * @throws Exception * @p...
true
34f28a4854d568c28bb2e1144f1d0a9e4a17ac6a
PHP
ItsMeRomian/ModTools
/rooms.php
UTF-8
4,898
2.546875
3
[]
no_license
<?php include_once("include.php"); $room = new room; $user = new user; createLog('lookAtRoom', $_SESSION['id'], $room->get('id')); ?> <div class="container-fluid"> <div class="row"> <div class="col"> <?php if (isset($_GET["back"])) { if ($_GET["back"] == "success") { ?> <div class="alert alert-success" ...
true
beddc402cbd80b030caae629151e2c0606e19530
PHP
bolongxi/Plan-for-Smart-Services
/api/connect.php
UTF-8
856
2.8125
3
[]
no_license
<?php /* Connects to MySQL Database */ function constructError($e) { return json_encode(array('status' => 'Failed', 'error' => '"' . $e . '"')); } function respond($response_code, $payload) { http_response_code($response_code); header('Content-Type: appliction/json; charset=UTF-8'); if (400 <= $response_code && $...
true
d093eb3c16d24406023885844e93bf8b91e18852
PHP
japjaphet14/ViewBox_Cinema_reserve
/create_from_home.php
UTF-8
8,016
2.5625
3
[]
no_license
<?php include 'function.php'; require 'database.php'; $errors = array(); $com = ""; $username_err = $mobile_err = $lname_err = $fname_err = $password_err = $email_err = ""; if (isset($_POST['register_btn'])){ // keep track post values $username = $_POST['username']; $pa...
true
d2e3da0129cd92218f63e8ad845d652bd1f6c4df
PHP
mafd16/curious-george
/src/User/UserModel.php
UTF-8
6,660
3.125
3
[ "MIT" ]
permissive
<?php namespace Mafd16\User; use \Anax\Configure\ConfigureInterface; use \Anax\Configure\ConfigureTrait; use \Anax\DI\InjectionAwareInterface; use \Anax\Di\InjectionAwareTrait; /** * User model for Comment system. */ class UserModel implements ConfigureInterface, InjectionAwareInterface { use Configure...
true
381754d8f5511185eae4d85687f8912490b597c9
PHP
bstanty/reactcode
/_db_sqlite.php
UTF-8
1,805
2.84375
3
[ "Apache-2.0" ]
permissive
<?php $db_exists = file_exists("daypilot.sqlite"); $db = new PDO('sqlite:daypilot.sqlite'); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); date_default_timezone_set("UTC"); if (!$db_exists) { //create the database $db->exec("CREATE TABLE IF NOT EXISTS events ( id INTEGER PRIMARY KEY, ...
true
38206fcb7f1394fa7c0d8307046c0bb7c8eba180
PHP
dfridrich/CzechDataBox
/src/Api/tMultipleMessageCreateInput.php
UTF-8
1,848
2.5625
3
[ "MIT" ]
permissive
<?php namespace Defr\CzechDataBox\Api; class tMultipleMessageCreateInput { /** * @var tMultipleMessageRecipients $dmRecipients */ protected $dmRecipients = null; /** * @var dmEnvelope $dmEnvelope */ protected $dmEnvelope = null; /** * @var tFilesArray $dmFiles */ ...
true
217631cb399ed390f685e175955fee312a9164ea
PHP
EbonyMarques/fbd-ufrpe-20172
/controlador/partida.php
UTF-8
3,358
2.71875
3
[]
no_license
<?php require $_SERVER["DOCUMENT_ROOT"]."/fbd/modelo/partida.php"; if(isset($_POST["acao"])) { if ($_POST["acao"]=="excluir"){ $dados = array( "nome_time_casa" => $_POST["nome_time_casa"], "nome_time_fora" => $_POST["nome_time_fora"] ); ...
true
5c34fd8d83877e6af7236c3e503713fa425a58df
PHP
vastav-adi/IWP_Project
/upload.php
UTF-8
3,458
2.90625
3
[]
no_license
<?php session_start(); if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true){ header("location: login.php"); exit; } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Upload Images</title> <link rel="stylesheet" href="bootstrap-4.3.1-dist\css\bootstrap.min.css"...
true
0bfc4ed859eeaa932ee242290313c0eea2d8ffaa
PHP
Manish-Pandya/USC
/rsms/src/includes/modules/core/HooksManager.php
UTF-8
823
2.78125
3
[]
no_license
<?php class HooksManager { public static function hook($hookName, $params){ $LOG = Logger::getLogger(__CLASS__); $LOG->info("Processing Hook: '$hookName'"); foreach( ModuleManager::getAllModules() as $module ){ $moduleHooks = ModuleManager::getModuleFeatureClasses($module, 'ho...
true
0fee87636625932460ad10c15b67e2eca58275a6
PHP
geekspeed/sw703e14-backend
/controller/ApplianceController.php
UTF-8
827
2.859375
3
[]
no_license
<?php require_once "./model/ApplianceModel.class.php"; require_once "BaseController.php"; class ApplianceController extends BaseController { function getAppliance($userID, $lang = 'en') { $appliance = new ApplianceModel($this->db); return $appliance->getAppliance($userID, $lang); } fu...
true
b7fec408c3cf219e0127b2abd0f93c232bd30cbf
PHP
ashaku/on-my-own
/lib/publi.php
UTF-8
4,490
2.578125
3
[ "MIT" ]
permissive
<? // Page publication script // Gather all page information and generate html // Call all active elements server-side code (in order to display them) $sql = "select nom from elements where actif=1"; $res = SQLquery ( $db, $sql ); while ( $row = getLine ( $res ) ) require_once ( "lib/".$row["nom"]."/".$row["nom...
true
b623b582c6f8a00ac105c635c29b51186f4b75da
PHP
vipsoft/code-coverage-extension
/tests/VIPSoft/TestCase.php
UTF-8
3,458
2.859375
3
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
<?php /** * Base Test Case * * @copyright 2013 Anthon Pang * @license BSD-2-Clause */ namespace VIPSoft; /** * Test case * * @author Anthon Pang <apang@softwaredevelopment.ca> */ class TestCase extends \PHPUnit_Framework_TestCase { /** * @var array */ static public $proxiedFunctions; /...
true
c561179ec08e518cd6d2098ec9c60dbda66188bd
PHP
andreaowu/adminpanel
/src/AppBundle/Entity/User.php
UTF-8
1,852
2.71875
3
[]
no_license
<?php # php bin/console doctrine:database:create # php bin/console doctrine:schema:update --force # sudo chown -R _mysql /usr/local/var/mysql namespace AppBundle\Entity; use Symfony\Component\Validator\Constraints as Assert; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name="user") */ class Use...
true
6dcb7bd7f017f8758159c96fc413640f034be055
PHP
alabamustapha/analize
/app/Analize/Repositories/UserRepository.php
UTF-8
1,249
2.71875
3
[]
no_license
<?php namespace App\Analize\Repositories; use App\Lab; use App\User; class UserRepository{ protected $user; public function __construct(User $user){ $this->user = $user; } public function all(){ return User::paginate(20); } public function assignLab($user, $lab_id){ ...
true
f7299b0b931ac407820f187de4d1a13663ae1ceb
PHP
JDSDigital/remesas.cl
/console/controllers/RbacController.php
UTF-8
855
2.609375
3
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
<?php namespace console\controllers; use Yii; use yii\console\Controller; class RbacController extends Controller { public function actionInit() { $auth = Yii::$app->authManager; // add "user" role $user = $auth->createRole('user'); $auth->add($user); // add "admin" ...
true
972f20a192b6a9072fc98b38355415f70a53f3cc
PHP
ococo/zfia
/application/forms/ContactForm.php
UTF-8
3,109
2.65625
3
[]
no_license
<?php include_once 'Zend/Form.php'; class ContactForm extends Zend_Form { protected $_actionUrl; public function __construct($actionUrl = null, $options=null) { parent::__construct($options); $this->setActionUrl($actionUrl); $this->init(); } public function setActionUrl($...
true
cfd7d55d19e3f1b736a6299927690334f2f01023
PHP
gopeer/crowdfunding
/includes/theme-stuff.php
UTF-8
2,290
2.6875
3
[]
no_license
<?php /** * Theme Stuff * * Some stuff themes can use, and theme compatability. * * @since Appthemer CrowdFunding 0.1-alpha */ /** * Extend WP_Query with some predefined defaults to query * only campaign items. * * @since Appthemer CrowdFunding 0.1-alpha */ class ATCF_Campaign_Query extends WP_Query { /**...
true
f82d1e48bdb71ca1933aa8ec6fe95a2d6afe957a
PHP
chordstricken/charon
/bin/create-account.php
UTF-8
1,380
2.84375
3
[]
no_license
<?php /** * @author Jason Wright <jason@silvermast.io> * @since 1/4/17 * @package charon */ require_once(__DIR__ . '/../core.php'); require_once(__DIR__ . '/functions.php'); // first, create the Account $account = new models\Account([ 'slug' => mb_strtolower(trim(readline('Account Slug (e.g. mycompany): '))),...
true
dea82cc14c1b53dbf9c92292dc12a8adc1950d8f
PHP
lgmarcosxavier/AlertaWeb
/app/Controllers/Dashboard.php
UTF-8
2,932
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Controllers; #use App\Models\AlertaModel; #use App\Models\UsuarioModel; use App\Models\AlertaModel; use CodeIgniter\Controller; use Config\Services; class Dashboard extends Controller { /** * Access to current session. * * @var \CodeIgniter\Session\Session */ protected $session; /** ...
true
c0bc823cb693a6b10cacc1420dc95ef4e4bb6529
PHP
andiaqsha99/ceria
/app/Repositories/Grade/GradeRepository.php
UTF-8
1,009
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Grade; use App\Models\Grade; use App\Repositories\Grade\GradeRepositoryInterface; class GradeRepository implements GradeRepositoryInterface { public function getAllGrade() { return Grade::all(); } public function getGradeById($id) { return Grade::...
true
87be7f8d557f8ec4d3551720ce26204060c243e0
PHP
vaske454/auction
/includes/User.php
UTF-8
2,805
3.328125
3
[ "MIT" ]
permissive
<?php //include_once('DbConnection.php'); class User { // Refer to database connection private $db; // Instantiate object with database connection public function __construct($db_conn) { $this->db = $db_conn; } // Register new users public function register($firstName, $lastName, $email, $password...
true
c3f0729f2d7305986faf43a153736168df800b10
PHP
Shekharv/cumula-core
/Cumula/Application/Error.php
UTF-8
4,332
2.515625
3
[ "MIT" ]
permissive
<?php namespace Cumula\Application; class Error extends EventDispatcher { public static $files = array(); public static $levels = array( 0 => 'Error', E_ERROR => 'Error', E_RECOVERABLE_ERROR => 'Error', E_WARNING => 'Warning', E_PARSE => 'Parsing Error', ...
true
d295e10ef091fa0ac5242b20c472ca3188868fb4
PHP
nileshgautam/tax-easy
/application/controllers/api/Notification.php
UTF-8
3,425
2.53125
3
[ "MIT" ]
permissive
<?php require APPPATH . 'libraries/REST_Controller.php'; require APPPATH . '/libraries/CreatorJwt.php'; class Notification extends REST_Controller { public function __construct() { parent::__construct(); //load database $this->load->database(); $this->load->model(array("api/main_model", "api/common...
true
e8ac99cc1ec44ece53bb043492abeb970f51d98d
PHP
sergey144010/php-rutracker-spy
/sergey144010/RutrackerSpy/MainFiltr.php
WINDOWS-1251
1,968
3.078125
3
[]
no_license
<?php namespace sergey144010\RutrackerSpy; use sergey144010\RutrackerSpy\Configuration as Config; class MainFiltr implements FiltrInterface { public $theme; public function run(array $theme) { if(Config::$filtrTurn == "on"){ $this->theme = $theme; if($this->checkAllRul...
true
ddf8650de2dfd37a2e027b9a66bcf78d1dff65c0
PHP
TamNguyenCG/PHP-OOP
/OOP-Practise-ShapeClass/index.php
UTF-8
822
3.578125
4
[]
no_license
<?php include_once "Shape.php"; include_once "Circle.php"; include_once "Cylinder.php"; include_once "Rectangle2.php"; include_once "Square.php"; $circle = new Circle("Circle",5); echo "Circle Area is: ".$circle->calculateArea()."<br>"; echo "Circle Perimeter is: ".$circle->calculatePerimeter()."<hr>"; $cylinder = n...
true
ca406d81183a97df13ddf324d9b6201104d8a208
PHP
tah33/ocas
/database/seeds/StudentsTableSeeder.php
UTF-8
780
2.78125
3
[]
no_license
<?php use Illuminate\Database\Seeder; use Illuminate\Support\Str; use App\Student; use App\Subject; use App\Exam; class StudentsTableSeeder extends Seeder { public function run() { $gender = array('male','female'); for($i=1;$i<=15;$i++) { $student=Student::create([ ...
true
332317161b2bdfb040fc84666069ab8388083bf0
PHP
al0fayz/Convert_pdf
/app/Http/Controllers/ReportController.php
UTF-8
15,249
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use DB; use PhpOffice\PhpWord\PhpWord; use PhpOffice\PhpWord\Style\Font; use PhpOffice\PhpWord\Shared\Converter; use PhpOffice\PhpWord\IOFactory; use PhpOffice\PhpWord\Style\TablePosition; use PhpOffice\PhpWord\SimpleType\Jc; use PhpOffice\PhpWord\Sim...
true
2ba4fe5ed6f101cd612591cbd01685e03417ccf3
PHP
RuslanUI/calc-app
/database/migrations/2021_06_19_114348_create_settings_table.php
UTF-8
1,657
2.515625
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateSettingsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('settings', fun...
true
ed90c74771c9cd80cdde56cfdb4a168a96fbb1a8
PHP
officekanev/PHP-Web
/PHP Fundamentals - Jan 2017/08 Exercise Object-oriented Programming/16 Date Modifier/DateModifier.php
UTF-8
754
3.4375
3
[]
no_license
<?php class DateModifier { private $date; const DATE_FORMAT = "Y m d"; public static function calculateDateDifference( $datetimeOne, $datetimeTwo) { $datetimeOne = DateTime::createFromFormat(self::DATE_FORMAT, $datetimeOne); $datetimeTwo ...
true
178865753433943414f775223d9be67d52e3d186
PHP
xidonett/resumeRegistration
/php/forgotPassword.php
UTF-8
1,935
2.5625
3
[]
no_license
<!-- Imported PHP scripts --> <?php require "includes/db.php";// Database PHP script require "includes/functions.php";// Functions PHP script ?> <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <!-- Imported scripts/files--> <link rel="stylesheet" href="../css/main.css" ...
true
a15c195081064616fad0c19fc4c1f9451059deaf
PHP
EnsembleTn/api
/src/Event/FileUploadEvent.php
UTF-8
1,091
3.109375
3
[ "MIT" ]
permissive
<?php namespace App\Event; use Symfony\Contracts\EventDispatcher\Event; /** * Class FileUploadEvent * * @author Daly Ghaith <daly.ghaith@gmail.com> */ class FileUploadEvent extends Event { /** * @var mixed */ protected $object; /** * @var string */ protected $base64EncodedFil...
true
69a9bf247dd40caeeb94442521f04b1eb63e4786
PHP
fankandin/AutoAdmin-Yii-Extension
/helpers/AAWidgetPager.php
UTF-8
1,561
2.75
3
[ "BSD-2-Clause" ]
permissive
<?php /** * Pagination for AutoAdmin * @author Alexander Palamarchuk <a@palamarchuk.info> */ class AAWidgetPager extends CWidget { public $total; public $currentPage; public $maxPerPage; public function init() { } public function run() { $currentPageNum = 1; if($this->total > $this->maxPerPage) {...
true
23885c4bca658fac2f70f2c2a31f79308f99afa0
PHP
kazishuvo22/AirlineReservation
/buy_tickets_insertion.php
UTF-8
821
2.671875
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "airline_db"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $u_id = $_POST['u_id']; $f_i...
true
e9e12738118a79011235d6ee940aee4188535d16
PHP
Edixon112/lavado
/core/app/model/ClienteData.php
UTF-8
2,208
2.9375
3
[]
no_license
<?php class ClienteData { public static $tablename = "cliente"; public function ClienteData(){ $this->id = ""; $this->nombre = ""; $this->apellido = ""; $this->cc = ""; $this->celular = ""; $this->activo = 0; $this->idempresa = ""; } public function add(){ $sql = "insert into...
true
8e666fd6d8bec169452b91c48d13a885f0020bd5
PHP
JimenezNestorII/LaravelQuiz
/database/seeds/ProductSeeder.php
UTF-8
822
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; class ProductSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('products')->insert([ 'product_name' => 'Wine', 'product_description' => 'Made from fermented grap...
true
e0b5c0885631a442208058db5081f3350bf85198
PHP
kenoste2/aviabel.cmsoftware.be
/application/models/States.php
UTF-8
1,930
2.59375
3
[]
no_license
<?php require_once 'application/models/Base.php'; class Application_Model_States extends Application_Model_Base { public function getSettingStates() { return $this->db->get_results("select * from FILES\$STATES where ACTIEF='1' order by CODE"); } public function getSetting($state_id) { ...
true
2fcb124a5bafd6303b64e561929b7032287119ff
PHP
dannyrojas28/AnaliticaEmsitel
/Database/conexion/index.php
UTF-8
6,101
2.640625
3
[]
no_license
<?php require_once 'Config/vars.php'; class Conexion extends Variables{ function __Construct() { # code... // session_start(); date_default_timezone_set('America/Bogota'); $var = new Variables(); } public function Conectar(){ $connect = mysqli_connect($thi...
true
c0b29d117b476d052b53c55e8c84fad138e766fd
PHP
copious-world/Copious-CMS
/manager/mlogin.php
ISO-8859-1
9,985
2.921875
3
[]
no_license
<?php ////////// // class phrases { var $index = 0; // function front() { $i = rand(0,3); $str = ""; // switch ( $i ) { case 0: { $str = "aplsijktlelw"; break; } case 1: { $str = "dfpynetlnnjo"; break; } case 2: { $str = "uiaofkbsdfbc"; break; } default: { $str = "hf...
true
ede6dabb2113e2e5640d8bb166067fe7ab0d16e8
PHP
alexismaster/nirvana
/Nirvana/MVC/Router.php
UTF-8
729
3.140625
3
[ "BSD-2-Clause" ]
permissive
<?php /** * Router * * @category Nirvana * @package MVC * @author Alexey Jukov <alexismaster@yandex.ru> */ namespace Nirvana\MVC; class Router { /** * Маршруты * * @var array */ private $_routes = array(); /** * Добавление маршрута * * @param $name - Имя маршр...
true
5860d8f2545e5fde0a9c99911cd6d67aeb3bb0ee
PHP
raselcse33/PHP---Student-Attendance-Management-System
/add.php
UTF-8
1,247
2.53125
3
[]
no_license
<?php include 'inc/header.php';?> <?php include 'lib/student.php'; $stu = new Student(); ?> <div class="panel panel-default"> <div class="panel-heading" style="background-color:lightblue"> <h2> <a class="btn btn-success btn-sm" href="add.php">Add Student </a> <a class="btn btn-info float-right btn-sm" href...
true
527a4da7f2485facc983f30d41147c83f4dce21f
PHP
smilescripts/consina_project
/E-ASSET/modul/data_unit_kerja/data_unit_kerja_action.php
UTF-8
1,177
2.5625
3
[]
no_license
<?php session_start(); include "../../inc/config.php"; session_check(); switch ($_GET["act"]) { case "in": $query = "SELECT MAX(kode_unit) as max FROM as_unit_kerja "; $hasil = mysql_query($query); $data = mysql_fetch_array($hasil); $kodeBarang = $data['max']; $noUrut = (int) substr($kodeBarang, 3, 3); ...
true
ddd1a5a9cd1a4840805909e454dca8a157b66ec5
PHP
AndreevaMaria/site3_shop
/pages/admin.php
UTF-8
2,039
2.671875
3
[]
no_license
<?php if(!isset($_POST['addbtn'])) { ?> <div class="inpcard admin rounded"> <form action="index.php?page=4" method="post" enctype="multipart/form-data"> <h5 class="mb-3">Adding new items</h5> <label for="catid">Category: <select name="catid"> <?php $pdo = Tools::conn...
true
290dfacc5ad15eb14cb7c87f67ffb593942d2a55
PHP
AudreyChob/ProjetsPerso_PHP
/serviceRea/Classes/PatientManager.php
UTF-8
2,007
3.078125
3
[]
no_license
<?php class PatientManager{ private $bdd; public function __construct($pdo){ $this->bdd = $pdo; } public function add(Patient $entrant){ $query = $this->bdd->prepare('INSERT INTO patient (id, idChambre, pathologie, etatConscience, isolement, appareillage) VALUES (:id, :idCham...
true
94851b945edfacb416068f96633c46a0f4821499
PHP
fr05t1k/slim-example
/tests/Unit/Provider/Facebook/FacebookProviderTest.php
UTF-8
3,953
2.53125
3
[]
no_license
<?php declare(strict_types = 1); namespace Fr05t1k\SlimExampleTests\Unit\Provider\Facebook; use Facebook\Exceptions\FacebookSDKException; use Facebook\Facebook; use Facebook\GraphNodes\GraphUser; use Fr05t1k\SlimExample\Provider\AccessToken\AccessTokenInterface; use Fr05t1k\SlimExample\Provider\Facebook\FacebookProvi...
true
030cf63fbc2797a223cc82394758cad5903c4d6d
PHP
cesiztel/principios-solid-para-novatos
/5-dependency-inversion.php
UTF-8
2,959
3.53125
4
[]
no_license
<?php /** * Violación del principio: las capas más altas dependen de la más baja (persistencia en MySQL) * $patas = new CalculatePatas( * [ * new CowAnimal(), * new ChickenAnimal(), * new CowAnimal() * ] * ); * $mySqlConnection = new MySqlConnection($connectionData); * $persist = new AnimalP...
true
52e943bedf83e8e2781ed356b5a2764b033b69c4
PHP
FraSharp/FraSharpBot
/vendor/skrtdev/novagram/src/NovaGram/Database/SQLiteDatabase.php
UTF-8
940
2.75
3
[ "MIT" ]
permissive
<?php namespace skrtdev\NovaGram\Database; class SQLiteDatabase extends AbstractSQLDatabase { protected static bool $need_reset = false; protected static array $create_tables = [ 'CREATE TABLE IF NOT EXISTS {users_table} ( user_id BIGINT(64) UNIQUE )', 'CREATE TABLE IF NOT...
true
60cf337533e0a23a06d41d1064900651463e5dd6
PHP
bryantmaroney/rankalytics-crawler
/api/functions.php
UTF-8
9,956
2.625
3
[]
no_license
<?php function EstimateKeywordTrafficExample( AdWordsUser $user, $projectId, $keywordCount, $config ) { //default pre-sets: $keywords = $result_array = $update_array_array = array(); // Get the service, which loads the required classes. $trafficEstimatorService = $user->GetService( 'TrafficEstimatorSer...
true
90e69df316769df2c716c35c571a6bb2eda64210
PHP
exegeses/goodMorningPHP-OLD
/xtras/upload/procesaArchivo.php
UTF-8
702
2.640625
3
[ "CC0-1.0" ]
permissive
<?php $prdImagen = $_FILES['prdImagen']; /** * array con cinco elementos * ['name'] * ['type'] * ['tmp_name'] (c:\\xampp\tmp\zzzz.tmp) * ['error'] * ['size'] * */ echo '<pre>'; print_r($prdImagen); echo '</pre>'; ### subida del archivo $ruta = 'productos/'...
true
8c0d8200be5772c3eab8576885c15cf0d267a12f
PHP
codacy-badger/PHP-QueryBuilder
/src/Clauses/Select.php
UTF-8
6,397
3.359375
3
[ "MIT" ]
permissive
<?php namespace Ludal\QueryBuilder\Clauses; use InvalidArgumentException; use Ludal\QueryBuilder\Clauses\Clause; use Ludal\QueryBuilder\Exceptions\InvalidQueryException; class Select extends Clause { private $table; // the table from which to select private $columns = []; // columns to select private $co...
true
bb38cf60db75933b12fd2da6c544a6dca0d8dd07
PHP
timelyportfolio/LetsPlanOrg
/app/Console/Commands/ImportBldgPermits.php
UTF-8
3,153
2.6875
3
[]
no_license
<?php namespace App\Console\Commands; use App\Models\BldgPermit; use Illuminate\Console\Command; use Illuminate\Support\Facades\Storage; use MStaack\LaravelPostgis\Geometries\Point; class ImportBldgPermits extends Command { /** * The name and signature of the console command. * * @var string ...
true
95f547518f30b6496b8b558aef26c76d9bac5ea5
PHP
TheComma/restoranu-is
/uzsakymo_redagavimas.php
UTF-8
2,633
2.578125
3
[]
no_license
<?php require_once("Includes/config.php"); require_once("Includes/functions.php"); // Models require_once("Uzsakymai/Models/Patiekalas.php"); require_once("Uzsakymai/Models/Uzsakymo_patiekalas.php"); require_once("Uzsakymai/Models/Patiekalo_tipas.php"); require_once("Uzsakymai/Models/Staliukas.php"); require_o...
true
41ad623311d70c8e144d224110447892e2ba04b5
PHP
kabiden-azamat/kabiden-azamat.github.io
/application/modules/index/ModuleIndex.php
UTF-8
537
2.53125
3
[]
no_license
<?php class ModuleIndex extends Module { protected function init() { $this->addEventPreg('/^index$/i', '/^$/i', 'index'); $this->addEventPreg('/^test$/i', '/^page$/i', '/^$/i', 'test'); } protected function index() { //$this->getRender()->putVar('text', 'Azamat12'); $this...
true
502d171593e5d278bb0f67d1d45e5bd19a2fe2f1
PHP
allanaln2009/get_user_info
/others/erros/insert_base.php
UTF-8
661
2.859375
3
[]
no_license
<?php // Comentado porque não há necessidade de acoplar informações aqui /* $servidor=""; $usr=""; $pass=""; $dbname=""; $conn = new mysqli($servidor, $usr, $pass, $dbname); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $host = gethostbyaddr($_SERVER['REMOTE_ADDR']); $ip = ...
true
462223b93cbea1615e90c6394776d6ae521cd5db
PHP
mhmalekian/laravel_vuejs_sample
/database/seeds/StudentTableSeeder.php
UTF-8
484
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; class StudentTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { \Illuminate\Support\Facades\DB::table('students')->insert( [ "student_number"=>rand(97000000,979...
true
2c44b37610939f6e6de1e7585c235e22bfe35dd0
PHP
argorn-dev/ONLINE-MERIT-BASED-HOSTEL-ADMISSION
/admin/reserve.php
UTF-8
6,083
2.546875
3
[]
no_license
<?php include 'database/connect.php'; $l_admin = $_SESSION['logged_admin']; $query = mysqli_query($connection,"select * from admin WHERE adminid='$l_admin'"); $data = mysqli_fetch_array($query,MYSQLI_ASSOC); $college=$data['collegename']; $sql = mysqli_query($connection,"SELECT...
true
2af9ce76729606ccd3ec867a0a3baa235262fed0
PHP
BekYahia/SocialNetwork
/notifications.php
UTF-8
1,223
2.671875
3
[]
no_license
<?php $title = "Notification | SN"; include_once('classes/DB.php'); include_once('classes/Login.php'); include_once('classes/Post.php'); include_once('assets/templates/header.php'); include_once('assets/templates/navbar.php'); if (Login::isLoggedin()) { $loggedinUserID = Login::isLoggedin(); } else { header("l...
true
08cf831935e45b304a419e97cabe4ec3ade1513a
PHP
lateefakbarfaheem99/seightinterspire
/modules/shoppingcomparison/pricegrabber/module.pricegrabber.php
UTF-8
1,895
2.578125
3
[]
no_license
<?php class SHOPPINGCOMPARISON_PRICEGRABBER extends ISC_SHOPPINGCOMPARISON { /** * Shopping comparison logo destination url */ protected $logoUrls = array('http://www.pricegrabber.com'); /** * Export file settings */ protected $exportFileExtension = ".csv"; protected $exportFileSeparator = ","; /** *...
true
793ee8c1d3d60282c6fb5de9533f293817abdb8e
PHP
alexcicioc/eloquent-migrator
/runMigrations.php
UTF-8
1,210
2.78125
3
[]
no_license
<?php use App\Services\Migrator; use Carbon\Carbon; include "bootstrap.php"; function getRandomDateTime() { return Carbon::create(2019, rand(1, 12), rand(1, 28), rand(1, 23), rand(1, 59)); } function outputMessage($message) { fwrite(STDOUT, $message . "\n"); } function createSchemas() { foreach (SCHEMA...
true
aaedcc38d8b42a0fb8e899e3787c984457e33cbb
PHP
zhangjiquan1/phpsourcecode
/neeke/Yaf.Scaffold/library/db/Cache.php
UTF-8
2,173
3.09375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * 单例cache * @author ciogao@gmail.com * */ class db_Cache { private $cache = NULL; public $debug = FALSE; /** * @var db_Cache */ private static $self = NULL; /** * @static * @param int $cachehost * @param int $cacheport * @param string $cacheType * ...
true
563a8d1fd3ad75f7aea7511f19428a3136ce003f
PHP
evantbyrne/burner
/burner/test/model.php
UTF-8
2,040
2.625
3
[ "CC-BY-4.0", "CC-BY-3.0" ]
permissive
<?php namespace Core\Test; class Foo extends \Core\Model\Base { /** * @option type = Varchar * @option length = 25 */ public $name; } class Bar extends Foo { public static $verbose = 'Blip'; /** * @option type = Text * @option null = true */ public $description; } class FooBaz extends Bar { ...
true
66fa2ab5a6d3edc4afa0ad286502c1a3695dbfca
PHP
repejota/VrRecruit
/tests/unit/TaskMessageTest.php
UTF-8
1,467
2.609375
3
[]
no_license
<?php use Vreasy\Models\Message; /** * Class TaskMessageTest * TaskMessage Unit Tests */ class TaskMessageTest extends \Codeception\TestCase\Test { protected $TaskMessage; protected $TaskMessages; /** * Before test prepare environment */ protected function _before() { $this->T...
true
c9256b0ea12654f5da0db16991722b5bb4583fb0
PHP
zivanovica/leave-test
/Modules/Database/Database.php
UTF-8
3,542
3.21875
3
[]
no_license
<?php namespace Modules\Database; use Modules\Exception\Exceptions\DatabaseException; use Modules\Singleton\Singleton; /** * * Holds connection to MySQL database, and provides facade for fetching, storing and removing to and from database * * @package Core\Libs */ class Database implements IDatabase { // ...
true
b77e2b766eb118c2b51293fb674259772ac47a9e
PHP
Up2110H/task-app
/core/Migration.php
UTF-8
3,507
2.8125
3
[]
no_license
<?php namespace core; use core\interfaces\MigrationInterface; class Migration { public static function up() { $migrated = self::checkDb(); if (is_array($migrated)) { $result = ''; $dir = scandir(Application::MIGRATION_DIR); foreach ($dir as $file) { ...
true
679d4811d357ec8948d990a2020a6c596ccccae9
PHP
sveawebpay/nwt-magento2-checkout
/Cron/CheckPendingPayments.php
UTF-8
2,991
2.546875
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace Svea\Checkout\Cron; use Psr\Log\LogLevel; use Svea\Checkout\Model\CampaignInfoFactory; use Svea\Checkout\Model\Client\ClientException; class CheckPendingPayments { /** * @var \Svea\Checkout\Model\Client\Api\CampaignManagement */ private $campaignManagement; ...
true
2902c0468a09d6aa229a9e3ff62131c6551754d0
PHP
santiagoavilez/cine_imageworkshop
/control/tp3/general/controlSubeArchivos.php
UTF-8
14,538
2.734375
3
[]
no_license
<?php use PHPImageWorkshop\ImageWorkshop; //Variable que almacena el directorio del proyecto $ROOT = $_SERVER['DOCUMENT_ROOT'] . "/$PROYECTO/"; require_once(__DIR__ . '\src\ImageWorkshop.php'); require_once(__DIR__ . '\src\Core\ImageWorkshopLayer.php'); require_once(__DIR__ . '\src\Core\ImageWorkshopLib.php');...
true
8ac4cb02308a117ec58faf807739a1afa47e0281
PHP
mgsmus/payuclient
/src/Payu/Builder/PaymentRequestBuilder.php
UTF-8
5,308
2.703125
3
[ "MIT" ]
permissive
<?php namespace Payu\Builder; use Payu\Component\Basket; use Payu\Component\Billing; use Payu\Component\Delivery; use Payu\Component\Order; use Payu\Component\Product; use Payu\Configuration; use Payu\Request\PaymentRequest; use Payu\Serializer\PaymentRequestSerializer; use Payu\Validator\PaymentRequestValidator; cla...
true
fd8db7592ef9cc2e99c123386e90a47fdb70c99d
PHP
nawnaw90/CRUD
/edit.php
UTF-8
3,481
2.53125
3
[]
no_license
<?php require 'database.php'; if(isset($_POST['save'])) { // Find jeux by Jeux_Id $stmt = $conn->prepare('select * from jeux where Jeux_Id = :Jeux_Id'); $stmt->bindValue('Jeux_Id', $_POST['Jeux_Id']); $stmt->execute(); $jeux = $stmt->fetch(PDO::FETCH_OBJ); ...
true
49bf4528a60a38860327ec18730b6e0a3592b8ce
PHP
csolisre/MVC
/deleteobject/personenform.php
UTF-8
1,455
2.671875
3
[]
no_license
<?php require_once 'Personenlist.php'; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ if (isset($_GET['action']) && $_GET['action'] == 'add') { $npers = new PersonelLijst(); ...
true
4a997248d519ccfb76ee5738c163e11e8fdb187c
PHP
Relewise/relewise-sdk-php
/src/Models/TriggerConfigurationCollectionResponse.php
UTF-8
1,774
2.625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Relewise\Models; use DateTime; class TriggerConfigurationCollectionResponse extends TimedResponse { public string $typeDefinition = "Relewise.Client.Responses.Triggers.TriggerConfigurationCollectionResponse, Relewise.Client"; public array $configurations; public s...
true
a617b98359f9017ae04ebf26bed393098c42058d
PHP
Pawel9903/rss
/app/src/Factory/CsvCreator.php
UTF-8
1,768
2.71875
3
[]
no_license
<?php declare(strict_types=1); namespace PawelGedRekrutacjaHRtec\Factory; use DI\Container; use PawelGedRekrutacjaHRtec\Command\AddingDataCsvFileCommand; use PawelGedRekrutacjaHRtec\Command\CreateCsvFileCommand; use PawelGedRekrutacjaHRtec\Command\OverwriteDataCsvFileCommand; use PawelGedRekrutacjaHRtec\Command\RssDo...
true
ac306bc14edd94ca468f5c2377057a9af47fc4aa
PHP
brunosann/teste_php
/array_calculation.php
UTF-8
278
3.65625
4
[]
no_license
<?php $valores = [1, 3, 5, 9, 12, 10]; $soma = 0; foreach ($valores as $valor) { $soma += $valor; } ?> <?php include('./layout/header.php') ?> <pre>$valores = [1, 3, 5, 9, 12, 10];</pre> <h1>A soma do Array acima é: <?= $soma ?></h1> <?php include('./layout/footer.php') ?>
true
587597f7d1eecce296aecce7a9060a77f77af31b
PHP
ilhamaulanap/Simple-IoT-Website-Bootstrap
/Logger and Graphic/relay/coba_relay.php
UTF-8
1,887
2.671875
3
[ "MIT" ]
permissive
<?php $status = ""; if ($_GET['relay']=="on") { $status = file_get_contents("http://www.komputronika.com/iot/simpan/rly1saya?relay=on"); } if ($_GET['relay']=="off") { $status = file_get_contents("http://www.komputronika.com/iot/simpan/rly1saya?relay=off"); } if (!empty($status)) { $response["status"] = $s...
true
12adb1a06e5926dbefdd9d0f32e9be3c03e77dce
PHP
neterslandreau/gmp-dev
/app/Item.php
UTF-8
952
2.609375
3
[]
no_license
<?php namespace App; //use Illuminate\Database\Eloquent\Model; class Item extends Model { protected $table = 'items'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'slug', 'store_nbr', 'upc_code', 'qty_onhand',...
true
4f2ac3b2c8aeae7d6529abd4ee146281d3d2facc
PHP
Formula9/Framework
/Nine/Containers/Forge.php
UTF-8
9,659
2.59375
3
[ "MIT" ]
permissive
<?php /** * F9 (Formula Nine) Personal PHP Framework * * Copyright (c) 2010-2016, Greg Truesdell (<odd.greg@gmail.com>) * License: MIT (reference: https://opensource.org/licenses/MIT) * * Acknowledgements: * - The code provided in this file (and in the Framework in general) may include * open sourced software...
true
52675cb31da44b9ba8fa235210e56deca707855e
PHP
moscoquera/workana-gestor
/app/Models/User.php
UTF-8
2,676
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Carbon\Carbon; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; use Backpack\CRUD\CrudTrait; use Illuminate\Database\Eloquent\Builder; use Backpack\Base\app\Notifications\ResetPasswordNotification as ResetPasswordNotification; class User...
true
d7283eb3103155928de6e0c9c7204c8a232c28a7
PHP
xiaosang/bangbang
/app/Models/Wx/News.php
UTF-8
1,321
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Models\Wx; use DB; use Illuminate\Database\Eloquent\Model; /** * Class News * @package App\Models\Wx * 订单消息模型 */ class News extends Model { /** * @param $user_id * @return bool * 检测某用户是否有未读的消息 */ static function check_unread($user_id){ $result = DB::table('m...
true
f08dc979c961758e6f39aaf67cfce4d10f33fb53
PHP
atsunori-nishiyama/PHP-training
/training/loop1.php
UTF-8
110
2.9375
3
[]
no_license
<?php for ($i=0; $i < 10; $i++) { if ($i == 12) { break; } echo $i . PHP_EOL; } echo "end" . PHP_EOL;
true