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
e240d32d6e1a56f795ab4907d7d418573c30f34a
PHP
Matheus02/DS1
/PHP/Semana 1/Aula_31_07/resultado1.php
ISO-8859-1
271
2.796875
3
[]
no_license
<!doctype html> <head> <title></title> </head> <body> <h1>Exerccio 1</h1> <?php $b = $_GET["b"]; $a = $_GET["a"]; $r = $a * $b; echo "O resultado da area : ". $r; ?> <p><a href="index.php"/>Voltar ao Menu Principal</a></p> </body> </html>
true
923196ddd5b0e30bfe218cf6c476f0829b882182
PHP
luism1905/carrito-compras
/ControladorCarrito.php
UTF-8
2,774
3.109375
3
[]
no_license
<?php require_once("Carrito.php"); require_once("./Producto.php"); class ControladorCarrito{ private $_carrito; function __construct(){ $this->_carrito = new Carrito(); } function printTable(){ $htmlTable = ""; if(count($this->_carrito->getProductos()) == 0){ ...
true
790fdb4ce667058f7b7d47794dc9088803482968
PHP
andparsons/mage-app-start
/app/code/Magento/RequisitionList/Model/AddToCartProcessor.php
UTF-8
1,179
2.671875
3
[]
no_license
<?php namespace Magento\RequisitionList\Model; use Magento\Quote\Api\Data\CartInterface; use Magento\Quote\Api\Data\CartItemInterface; /** * Add a product from a requisition list to cart. */ class AddToCartProcessor implements AddToCartProcessorInterface { /** * @var \Magento\Quote\Model\Quote\Item\CartIt...
true
21fe219ead8cb5658e581587101a952ba7dd8277
PHP
HugoLambrinidis/LampFramework
/Controller/AbstractController.php
UTF-8
261
2.53125
3
[]
no_license
<?php namespace Controller; use src\connection; abstract class AbstractController extends connection { public function render($data = null, $view) { $file = "./Site/View/".$view.".php"; return new ViewController($data, $file); } }
true
eded155b2a0f1dfe8ce0704ac288565f395b02cf
PHP
laraxot/module_theme
/Http/Livewire/Field.php
UTF-8
1,411
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Modules\Theme\Http\Livewire; use Illuminate\Contracts\Support\Renderable; use Livewire\Component; use Modules\Theme\Services\FieldService; /** * Class Field. */ class Field extends Component { public array $field_arr; public array $form_data = []; /** * ...
true
e8554a684f69440f8ffeca14a98665a2e9dabbac
PHP
m-kiszka/PracaInzynierska_FretZone
/scripts/scriptLoginValidator.php
UTF-8
3,510
2.59375
3
[]
no_license
<?php session_start(); $login = $password = ""; require_once('./scriptConnect.php'); if(isset($_SESSION["login_error"])) { unset($_SESSION["login_error"]); } if(isset($_SESSION["userid"])) { ?> <script type="text/javascript">location.href = '../index.php';</script> <?php die(); } //LOGOWANIE if (!is_null($login...
true
dd13e40197b77c6142841a1d6bd2f5a9dd84b936
PHP
achrefouali/octa
/src/Entity/Reservation.php
UTF-8
10,110
2.515625
3
[]
no_license
<?php namespace App\Entity; use App\Traits\BaseEntity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Config\Definition\Exception\Exception; /** * Reservation * * @ORM\Table(name="reservations") * @ORM\Entity * ...
true
89cd6f1ba161a08293c86d9d240e710775a27ac2
PHP
jycy/projectShare
/modele/classes/Photo.class.php
UTF-8
1,517
3.0625
3
[]
no_license
<?php class Photo { private $ID; private $projetId; private $titre; private $photo; private $type; private $extension; public function __construct($id = "", $proj = "",$tit = "",$pic = "",$typ = "",$ext = "") //Constructeur { $this->ID = $id; $this->projetId = $proj; $this->titre = $tit;...
true
5361891fb21cdbe3eb1781f2f48e85167bef7df1
PHP
Marwaibrahim/E-learning-site
/app/Http/helpers.php
UTF-8
1,177
3.15625
3
[]
no_license
<?php function is_base64($s) { // Check if there are valid base64 characters if (!preg_match('/^[a-zA-Z0-9\/\r\n+]*={0,2}$/', $s)) return false; // Decode the string in strict mode and check the results $decoded = base64_decode($s, true); if (false === $decoded) return false; // Encode the s...
true
b2f257b2c5e0b0e52bc5bc9af5011841270eeb18
PHP
selaluimbang/web-programming-tugas
/25-dan-juga-atau.php
UTF-8
776
3.234375
3
[]
no_license
<html> <head> <meta charset="utf-8"> <tittle>Belajar PHP</title> </head> </body> <h1>Logika di PHP</h1> <?php //-------- tipe data boolean --------- // $hasil = true; // $hasil2 = false; //-------- if dan else --------- // operator logika == === > >= < <= != $uang_jajan = 4000000000; $belanja ...
true
67c7b81347888d6f71c39de10f4cea2bb0bdc311
PHP
gyoque/database_455
/main/search.php
UTF-8
3,868
3.125
3
[]
no_license
<?php try{ //set time zone date_default_timezone_set('America/Los_Angeles'); //Prepare error messages $sdErr = $edErr = $stErr = $etErr = $zcsErr = $cmpErr = ""; $success = true; //True if no errors $nonEmptyDates = true; //Check if a date is past another function compareDates($date1, $time1, $date2, $time2) {...
true
f1af71ce88a71448ec6203108f83c1c7704e812d
PHP
bhashithe/DataCollection
/add_node.php
UTF-8
3,908
2.53125
3
[]
no_license
<?php require 'lib/init.php'; if(!$user->loggedIn()) { header("location: login.php"); } if(isset($_POST['submit']) && $_POST['submit']== 'add_node') { $node_name = htmlentities($_POST['node_name']); $node_type = htmlentities($_POST['node_type']); $location = h...
true
059e527f989f6f21856702e44bf66c88f2e745d9
PHP
kilica/xoops-installer
/src/XoopsCube/Installer/InstallerConfig.php
UTF-8
1,703
2.921875
3
[]
no_license
<?php namespace XoopsCube\Installer; class InstallerConfig { /** * @var array */ private $config; /** * @param string $configFilename * @param array $parameters * @throws \InvalidArgumentException */ public function __construct($c...
true
b309d910020de885a73aa064172a09098bb755b1
PHP
AxelDevelop/All_Programming_Code
/PHP/Arrays/Multi-Dimensional_Arrays/Multi-Dimensional_Arrays.php
UTF-8
950
4.28125
4
[]
no_license
<!-- A multi-dimensional array contains one or more arrays. The dimension of an array indicates the number of indices you would need to select an element. - For a two-dimensional array, you need two indices to select an element - For a three-dimensional array, you need three indices to select an element Arrays more t...
true
e219cc76662899b111ba9eb8cef5d63225f72fdb
PHP
Kesyza/kesyza
/json/latihanjson.php
UTF-8
485
3.171875
3
[]
no_license
<?php //file json akan di baca $file = "latihan.json"; //mendapatkan file json $bio = file_get_contents($file); //mengkode anggota.json $data = json_decode($bio, true); //membaca atau menampilkan data array menggunakan foreach foreach ($data as $key => $d) { echo "Nama : " .$d['nama'] ."<br>"; echo "Domisil...
true
2104fefa3153654a92788a814ad7034f2e02b6b7
PHP
kleyla/yo-contribuyo-3-capas
/Presentacion/Home/Home.php
UTF-8
2,576
2.515625
3
[]
no_license
<?php class Home extends Presentacion { public function __construct() { parent::__construct(); require_once("Negocio/ProyectoNegocio.php"); $this->proyecto = new ProyectoNegocio(); require_once("Negocio/ArticuloNegocio.php"); $this->articulo = new ArticuloNegocio(); ...
true
53bbce314d7036418d1cbd7ae6ea85a5d476b344
PHP
devleaks/print
/models/_DocumentLine.php
UTF-8
4,163
2.578125
3
[]
no_license
<?php namespace app\models; use Yii; /** * This is the model class for table "document_line". * * @property integer $id * @property integer $document_id * @property integer $item_id * @property integer $position * @property double $work_width * @property double $work_height * @property double $unit_price *...
true
875774f73f431e6365abb4947349b7ed33589995
PHP
samconny/samconny-test-repo
/FirstPHPProject/index.php
UTF-8
405
2.703125
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> </head> <body> <?php // put your code here echo 'test'; do { Verbinden(); $daten = DatenAbfragen(); ...
true
bed970cb50a06b58a6b1de2e1820b897fdc95cf3
PHP
mrryanjohnston/Kremica
/inc_heal.php
UTF-8
1,906
2.578125
3
[]
no_license
<?php /* Kremica was coded entirely by Ryan Johnston, a senior at the University of Pittsburgh. Kremica is meant to be an enjoyable (yet frustrating) game that will not over-burden a student. Rather, the game functions as something to do on a quick study break. Make a character, play until the character dies, go b...
true
87f6b8432205ecd23d1d7fd67679a4eb043aa088
PHP
codetrees/acc-code
/5More/4PHP/PHP.php
UTF-8
113,948
3.28125
3
[]
no_license
<?php 介绍&说明&概念 PS: PHP,'Hypertext Preprocessor'超文本预处理器,名称来源'Personal_Home_Pages' 一种创建动态交互性站点的服务器端脚本语言,用于服务器端的存取; HTML和js是客户端语言,用于实现页面呈现、特效; 功能 能够生成动态页面内容, 能够创建、打开、读取、写入、删除以及关闭服务器上的文件, 能够接收表单数据, 能够发送并取回cookies, 能够添加、删除、修改数据库中的数据, 能够限制用户访问网站中的某些页面, 能够加密数据, 可以输出图像、PDF 文件,甚至...
true
2f7d4e77bf5d2d3619ac0a261859cf94f131f145
PHP
yvesEfangon/travelleurs
/src/AppBundle/Service/FormServices.php
UTF-8
622
2.734375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Yves Efangon * Date: 30/08/2017 * Time: 09:45 */ namespace AppBundle\Service; class FormServices { private $container; /** * FormServices constructor. * @param $container */ public function __construct($container) { $this->contain...
true
dca8c0ff60456e1ead98b2f29cba453ebde6dbfd
PHP
asdasdasdasddasasdasdas/Vue-Filesharing
/src/models/Model.php
UTF-8
264
2.546875
3
[]
no_license
<?php namespace Test\models; class Model { private $em; /** * Model constructor. * @param $em */ public function __construct($em) { $this->em = $em; } public function save(){ $this->em->flush(); } }
true
e60c58573ab4fae6a72bcf49de733e06adfdd3c4
PHP
Julianoe/gkscrst
/post_img.php
UTF-8
685
2.546875
3
[]
no_license
<?php function echo_first_image ($postID){ $args = array( 'numberposts' => 1, 'order'=> 'ASC', 'post_mime_type' => 'image', 'post_parent' => $postID, 'post_status' => null, 'post_type' => 'attachment' ); $attachments = get_children( $args ); print_r($attachments); if ($attachments){ ...
true
ba1709e41281e30ac94c220bf1359396237a9a07
PHP
Canteen/CanteenFramework
/src/Forms/InstallerForm.php
UTF-8
2,228
2.921875
3
[ "MIT" ]
permissive
<?php /** * @module Canteen\Forms */ namespace Canteen\Forms { use Canteen\Utilities\Validate; use Canteen\Services\ConfigService; use Canteen\Services\PageService; use Canteen\Services\UserService; use Canteen\Services\Service; use \Exception; /** * Update the database to the latest version. Located in t...
true
bf214e04ff59b6d55c6d8a1743163e7d0e38fa89
PHP
murilokzgd/TCC3
/update.php
UTF-8
5,440
2.75
3
[]
no_license
<?php require_once "conect.php"; $email = $senha = ""; $email_err = $senha_err = ""; if(isset($_POST["email"]) && !empty($_POST["email"])){ // Get hidden input value $email = $_POST["email"]; $input_email = trim($_POST["email"]); if(empty($input_email)){ $email_err = "Please enter an email."; ...
true
2d47589212a71a68f31b19163dbf0907ad47a833
PHP
MarteDL/build-your-own-fundamentals
/Model/Article.php
UTF-8
672
3.234375
3
[]
no_license
<?php declare(strict_types=1); namespace Model; class Article { private int $id; private string $title; private string $content; public function __construct(int $id, string $title, string $content) { $this->id = $id; $this->title = $title; $this->content = $content; }...
true
f3f4bf40c92dc5e5e50a5d8c5e8e678432879513
PHP
khamilton177/LearnLaravel
/app/Http/Controllers/PostsController.php
UTF-8
1,156
2.703125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Post; use App\Task; use Illuminate\Http\Request; class PostsController extends Controller { public function index() { $posts = Post::all(); // Show tasks in sidebar $tasks = Task::all(); return view('posts.index', compact('posts'), compact('tasks')); ...
true
0c74f9cd5535e71fe7ab8aed9c0c6c74fd31fb12
PHP
SkyPHP/skyphp
/lib/Sky/Model/Request.php
UTF-8
3,284
3.03125
3
[ "Apache-2.0" ]
permissive
<?php namespace Sky\Model; /** * Handles CRUD requrests to models * See pages/aql/save.php && pages/aql/delete.php for usage */ class Request { /** * @var string */ public $model_name; /** * @var array */ public $response; /** * @var string */ public $a...
true
36240b6be04586e7946183dd3d4b31e5e419651d
PHP
prynix/sakura-panel
/app/Forms/Website/SiteConfigsForm.php
UTF-8
1,251
2.625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); /** * SiteConfigsForm */ namespace Sakura\Forms\Website; use Sakura\Forms\BaseForm; use Phalcon\Forms\Form; use Phalcon\Forms\Element\{ Text, Email, Password, Hidden }; use Phalcon\Validation\Validator\{ PresenceOf , StringLength , Regex, Email as E...
true
6f3610be37f28c91b9de537f50bc154d2c8a1427
PHP
GuillermoRaez/GameLog
/app/Http/Controllers/UserController.php
UTF-8
3,482
2.6875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\User; use Illuminate\Http\Request; class UserController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ // The Administrator can see every user from the app. public functio...
true
b5b32723016ee6a05441219985f9b6deee520e63
PHP
rogeriopontomoura/laravel-microservice-video-catalog
/tests/Feature/Models/GenreTest.php
UTF-8
2,912
2.609375
3
[ "MIT" ]
permissive
<?php namespace Tests\Feature\Models; use Tests\TestCase; use Illuminate\Foundation\Testing\WithFaker; use Illuminate\Foundation\Testing\RefreshDatabase; use App\Models\Genre; use Illuminate\Foundation\Testing\DatabaseMigrations; use Ramsey\Uuid\Uuid; class GenreTest extends TestCase { use DatabaseMigrations; ...
true
c86dc71d05dec38b33f3694d7344d457545e0099
PHP
Tiko0308/callburn-sdk
/src/Client.php
UTF-8
950
2.59375
3
[ "MIT" ]
permissive
<?php namespace Callburn; use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Middleware; class Client { protected $key; protected $url = 'https://api.callburn.com/'; protected $url_2 = 'v1/api/messages'; public function __construct($key = false) { return $this->key = $key; } public...
true
91934e73bcacf56d1405403e5ca0b1692ebd21eb
PHP
WildCodeSchool/orleans-0219-php-live-coding-services
/tests/BinaryServiceTests.php
UTF-8
473
2.53125
3
[]
no_license
<?php namespace App\Tests; use App\Service\BinaryService; use PHPUnit\Framework\TestCase; class BinaryServiceTests extends TestCase { public function testBinary() { $number=new BinaryService(); $this->assertEquals(0, $number->converterBinary(0)); $this->assertEquals(1, $number->conver...
true
edb59e20b32b678dc8a4782c099eb1d6a2b36029
PHP
johnnybarbosa/hopejobs
/app/Helpers/DateHelper.php
UTF-8
1,302
2.875
3
[ "MIT" ]
permissive
<?php namespace App\Helpers; use Carbon\Carbon; use Carbon\Translator; class DateHelper { /** * Difference without the before and after * @param string|Carbon $firstDate * @param string|Carbon $secondDate * @param string $format * @return string * @throws \Exception */ publ...
true
0ae86f73316f4d9ba34d0c548402ee2d572ccf77
PHP
Abhi2707/Sabrang-carnival-2K18
/xssr-sql-view/sabrang_solo_event_data.php
UTF-8
4,859
2.734375
3
[]
no_license
<?php session_start(); if (!$_SESSION) { header("Location: login.php"); exit(); } if(isset($_POST['filter'])) { $value = $_POST['value']; // search in all table columns // using concat mysql function $query = "SELECT * FROM `register` WHERE CONCAT( `event_name`, `participation_typ...
true
4bba7c969fea043d9685c5717b6bc62195c1a8d2
PHP
kevinpak/bj
/app/systeme/route.php
UTF-8
2,066
2.65625
3
[]
no_license
<?php class Route { function start(){ $controller_name = 'Main'; $action_name = 'index'; $routes = explode('/', $_SERVER['REQUEST_URI']); //Get controller name if(!empty($routes[1])): $controller_name = $routes[1]; else: if(!empty(DEFAULT_CONTROLLER)): $controller_n...
true
a92a4d69c5d0d0a76514d7eda2a877ebaff422ee
PHP
raihanalam/DeliveryManagementSystem
/checkrequest.php
UTF-8
1,060
2.578125
3
[]
no_license
<?php include 'server.php'; ?> <!DOCTYPE html> <html> <head> <title>Delivery Request</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <table> <tr> <th>Username</th> <th>Delivery ID</th> <th>Sender Address</th> <th>Recevier Address</th> <th></th> </t...
true
2c9ae827a62ff27966e91017cea2ec263d3b6604
PHP
joachim-junior/sanjaa-1
/functions/flags.php
UTF-8
257
2.6875
3
[]
no_license
<?php function flag($country){ if (strtolower($country) == "cameroon") { return "cm.png"; }elseif (strtolower($country) == "gabon") { return "gb.png"; }elseif (strtolower($country) == "nigeria") { return "ng.png"; } return ""; } ?>
true
1b677b3dc357b7460872643cb702a956949b0184
PHP
Georgkali/Weather
/app/Today.php
UTF-8
317
2.6875
3
[]
no_license
<?php namespace app; class Today extends Api { private array $data; public function __construct(string $url) { parent::__construct($url); $this->data = parent::data()->{"forecast"}->{"forecastday"}; } public function getData(): array { return $this->data; } }
true
73240f977ab167d916d2e9bf79e138c0f718a40a
PHP
purvared/Php-Project
/FN.class.php
UTF-8
5,358
2.9375
3
[]
no_license
<?php class FN { /** * Desc: Function to check session and log out if not logged in */ public static function session_check(){ if(!isset($_SESSION)){ session_start(); } if( !isset( $_SESSION["loggedIn"])){ header("Location: login.php"); } } /** *...
true
55056ad7808278b1261978b57e236915aac3fd15
PHP
tgorczynski1/DMIT2025_PHP
/PHP/classwork/calculator.php
UTF-8
3,444
3.28125
3
[]
no_license
<?php // Collecting post variables $num1 = $_POST['num1']; $math_op = $_POST['math_operator']; $num2 = $_POST['num2']; // Generating an array of mathematical variables $op_arr = array( '+', '-', '*', '/' ); // Variable to capture the result of our calculation $result = ''; // Variable to assemble ...
true
b31fc1a99b546e20f5321b4b28b98360a5af9c86
PHP
SpecterV/php-academy
/php_basics_tasks/4.php
UTF-8
238
2.859375
3
[]
no_license
<?php //4. Выведите фразу "Мне %ваш_возраст% лет", например: "Мне 20 лет". $age = 24; echo "Мне $age лет"; /** * Created by PhpStorm. * User: alex * Date: 11/15/2016 * Time: 7:10 PM */
true
f2ccf4c0cf34bf670371d4c683485f4853bd42ed
PHP
xiaopangzi2333/bookstore-basic
/list-view.php
UTF-8
1,138
2.65625
3
[]
no_license
<?php require_once 'include/common.php'; require_once 'include/protect.php'; $dao = new BookDAO(); $result = $dao->retrieveAll(); ?> <html> <body> <?php include 'header.php' ; echo "<h1><a href='bootstrap-view.php'>Bootstrap</a></h1>"; echo "<h1><a href='json/'>Json API</a>...
true
d94c5f6aaaed41711ba4b30437be1b3c100c13f7
PHP
Thalesrup/appmarket
/blob.php
UTF-8
652
2.59375
3
[]
no_license
<?php $servidor = 'localhost'; $banco = 'mercado'; $usuario = 'root'; $senha = ''; try { $conecta = new \PDO("mysql:host=$servidor;dbname=$banco", $usuario, $senha); $consultaSQL = "SELECT * FROM imagens_blob WHERE id = 1"; $exComando = $conecta->prepare($consultaSQL); $exComando->execute...
true
9a32d0339ff4ae18ecfa140f7c65cf931020eebb
PHP
UedaYui/php
/mission_1-3.php
UTF-8
289
2.875
3
[]
no_license
<html> <head> <title>mission1-3</title> </head> <body> <?php $filename = 'mission_1-2.txt'; //ファイルを変数に格納 $content = file_get_contents($filename); //ファイルを読み込み変数に格納 echo $content; //ファイルの中身を出力 ?> </body> </html>
true
02f0ef2a0c77e653c2d6e04afec4fee364793705
PHP
jiangyu7408/symfony-di
/src/MailerInterface.php
UTF-8
279
2.609375
3
[ "Unlicense" ]
permissive
<?php /** * Created by PhpStorm. * User: Jiang Yu * Date: 2018/12/17 * Time: 15:35. */ namespace App; /** * Class MailerInterface */ interface MailerInterface { /** * @param string $msg * * @return bool */ public function send(string $msg); }
true
c2c284b121404b61da56312483a31ca765a35e79
PHP
Guillermo-Blackspot/laravel-starter
/src/Traits/DB/Sluggable.php
UTF-8
2,831
3.03125
3
[ "MIT" ]
permissive
<?php namespace BlackSpot\Starter\Traits\DB; use Illuminate\Support\Facades\DB; use Illuminate\Support\Str; trait Sluggable { private function getSlugColumn() { if (property_exists($this, 'slugColumn')) { return $this->slugColumn; } return 'slug'; } private functio...
true
5cacf4b144b9f9c5f58097132444fbc067056662
PHP
aminabromand/resume
/index.php
UTF-8
1,968
2.796875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: amina * Date: 29.04.2018 * Time: 09:56 */ require("database.php"); $password = ""; $loggedin = false; if (isset($_POST["psw"])) { $password = $_POST["psw"]; // Create connection $conn = new mysqli($servername, $username, $db_password, $dbname); // Che...
true
8f56f93b18999a3f899466184a0e6daf2c2437e1
PHP
jmabz/dpms
/src/Repository/DoctorRepository.php
UTF-8
1,873
2.59375
3
[]
no_license
<?php namespace App\Repository; use App\Entity\Doctor; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\ORM\Tools\Pagination\Paginator; use Symfony\Bridge\Doctrine\RegistryInterface; class DoctorRepository extends ServiceEntityRepository { public function __construct(RegistryI...
true
c088ececfd6ff0f991df39e0cce8f3644ea7ef5e
PHP
spagi/emailparser
/src/helpers/Strings.php
UTF-8
353
2.78125
3
[]
no_license
<?php declare(strict_types = 1); namespace Spagi\EmailParser\helpers; use Exception; final class Strings { public function __construct() { throw new Exception('Contructor for this class can not be allowed.'); } public static function isEmpty(string $value): bool { return mb_strl...
true
ac42b6ace408f4bbd1e6652ace4f8fb37c0805ec
PHP
kit9/s2sHRMS
/admin/view/modulewise_page/Access Permission/assign_Togroup.php
UTF-8
25,443
2.546875
3
[]
no_license
<?php session_start(); //Importing class library include ('../../config/class.config.php'); //Configuration classes $con = new Config(); //Connection string $open = $con->open(); error_reporting(0); // Set timezone date_default_timezone_set('UTC'); if (isset($_POST['btnLogout'])) { if ($con->logout() == 1) { ...
true
c254ea9c07b8db0f82b85033f3f2bbab11be32af
PHP
lambdatenea/combasa
/delux/Model/Class/Coche.php
UTF-8
5,404
2.6875
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ class Coche{ private $id; private $num_bastidor; private $marca; private $tipo; pri...
true
68fad1a1d78b3f8f14f149eb26102fd45fb64c1a
PHP
peymanforceman/backend-pizza-delivery
/app/Http/Controllers/Auth/SignUpController.php
UTF-8
807
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; class SignUpController extends Controller { public function __invoke(Request $request) { request()->validate([ 'full_name...
true
9c103438d7fb5c73c9adc62112b9289830055474
PHP
moh-arriza-n/uas3
/tampil_barang.php
UTF-8
1,198
2.71875
3
[ "MIT" ]
permissive
<?php // sambungan ke DB, jangan diacak-acak include_once("config.php"); // udah jangan dibaca $hasil = mysqli_query($mysqli, "SELECT * FROM barang ORDER BY id_barang DESC"); ?> <html> <head> <link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.css"> <script type="text/javascript" src="bootstrap/j...
true
151695c0e3cbea660170531e77449ee39a915af4
PHP
dbeurive/backend
/src/Cli/InterfaceConfigLoader.php
UTF-8
678
2.890625
3
[]
no_license
<?php /** * This file describes the interface for a "configuration loader". * A "configuration loader" is just a software component that returns an array that represents a configuration. */ namespace dbeurive\Backend\Cli; /** * Interface InterfaceConfigLoader * * This interface defines a "configuration loader"...
true
312a63d1fa2c2b3db11ea7f304da4bf31589dccb
PHP
ehask71/Homes
/app/Controller/Component/AuthnetArbComponent.php
UTF-8
522
2.53125
3
[]
no_license
<?php /** * CakePHP AuthnetArbComponent * @author Eric */ class AuthnetArbComponent extends Component { public $components = array(); public function initialize($controller) { } public function startup($controller) { } public function beforeRender($contr...
true
ac330aed8864b754733cc18c4fdaab258ed7825a
PHP
savakarun/fk
/get_latlon.php
UTF-8
782
2.59375
3
[]
no_license
<?php function getaddress($lat,$lng) { $url = 'http://maps.googleapis.com/maps/api/geocode/json?latlng='.trim($lat).','.trim($lng).'&sensor=false'; $json = @file_get_contents($url); $data=json_decode($json); $status = $data->status; if($status=="OK") { $full_address=$data->results[...
true
bd9be428ce4ba27703559dfe93c01cd9cb6f1f7d
PHP
matheusmendes1/VivaImoveis
/cadastraCliente.php
UTF-8
4,010
2.671875
3
[]
no_license
<?php session_start(); if(! isset($_SESSION["nomeFuncionario"])){ session_destroy(); // Cancela/Exclui a sessão iniciada header('location: index.php'); } require "conexaoMysql.php"; if ($_SERVER["REQUEST_METHOD"] == "POST") { $nomeCliente = filtraEntrada($_POST["nomeCliente"]); $cpfCliente = filtraEntrada(...
true
5f343e21b407315df74679be5a843e18808aa99e
PHP
flaviocardoso/uniposrio-2021-1
/app/Contracts/TokenRepositoryInterface.php
UTF-8
964
2.90625
3
[ "MIT" ]
permissive
<?php namespace App\Contracts; interface TokenRepositoryInterface { /** * Create a new token. * * @param CanResetPassword $user * @return string */ public function create(CanResetPassword $user); /** * Determine if a token record exists and is valid. * * @param C...
true
888a8560092ad397fd950dad78e6608d805480c1
PHP
nowelium/Hermit
/src/Hermit/statement/HermitStatement.php
UTF-8
204
2.609375
3
[ "Apache-2.0" ]
permissive
<?php /** * @author nowelium */ interface HermitStatement { public function getSqlParameter(); public function execute($parameterValue = array()); public function __call($name, $params); }
true
db92e76e3e2b1ce0fbd70be14bc7c0d10a01c0bc
PHP
swapnilneosoft/php-assignment-2
/register.php
UTF-8
5,549
2.65625
3
[]
no_license
<?php $rand1 = rand(0, 9); $rand2 = rand(0, 9); $captString = $rand1 . " + " . $rand2; $captchaRes = $rand2 + $rand1; if (isset($_POST['submit'])) { $email = $_POST['email']; $username = $_POST['username']; $password = $_POST['password']; $uname = $_POST['name']; $age = $_POST['age']; $gender...
true
a535d2f6340dad845d3c68b4a1e0d37e9841e576
PHP
megawilddaddy/SimplePdoQueryBuilder
/SimplePDOQueryBuilder.php
UTF-8
8,705
2.921875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: vasiliy * Date: 4/29/15 * Time: 11:28 AM */ namespace Megawilddaddy\SimplePDOQueryBuilder; /** * Class SimplePDOQueryBuilder * @package Megawilddaddy\SimplePDOQueryBuilder */ class SimplePDOQueryBuilder { /** * @var */ protected $fields; /** ...
true
4a3ca149f47ef01bb03556ddb24e079f8770f88a
PHP
EwerthonSilva/site-entidade-unesp
/admin/dbo/core/dbo-ui-joins-ajax.php
UTF-8
2,883
2.5625
3
[]
no_license
<? require_once('../../lib/includes.php'); if(DBO_ALLOW_UNLOGGED_AJAX_JOINS !== true) { require_once('../../auth.php'); } $modulo = dboescape($_GET['module']); $field = dboescape($_GET['field']); $term = dboescape(trim($_GET['term'])); $terms = explode(" ", $term); $mod = new $modulo(); $field = $mod->__mo...
true
4d92c7dcdd1a718b4508cfcc21d452b8a11c731d
PHP
gabecescobar/programacao_internet_2015_1
/entregas/trabal_final/diego/class/Conexao.php
UTF-8
557
2.890625
3
[]
no_license
<?php class EntityManager { private static $host = "localhost"; private static $port = 5432; private static $dbname = "Agenda"; private static $user = "postgres"; private static $password = "postgres"; public static function getInstance() { $dbh = new PDO("pgsql:host=" . se...
true
17813ec700b6f2f6e07925554f46148213460918
PHP
gabrielbaroni/zf2
/module/Cliente/src/Cliente/Entity/Clientes.php
UTF-8
2,222
2.609375
3
[]
no_license
<?php namespace Cliente\Entity; use Doctrine\ORM\Mapping as ORM; /** * Clientes * * @ORM\Table(name="clientes") * @ORM\Entity */ class Clientes { /** * @var integer * * @ORM\Column(name="id", type="integer", nullable=false) * @ORM\Id * @ORM\GeneratedValue(strategy="IDENTITY") *...
true
9e89db2aa23d43877c5c524600cb3527f75376cd
PHP
KoseiOshita/dairy
/index.php
UTF-8
4,211
2.625
3
[]
no_license
<?php session_start(); //ログイン済みの場合 if (isset($_SESSION['EMAIL'])) { // echo $_SESSION['USERNAME']; echo 'ようこそ、<strong>' . $_SESSION['USERNAME'] . "</strong>さん"; echo "    "; echo "<a href='http://oshko03.php.xdomain.jp/daily/admin/admin_form.php'>管理画面(要管理権限)はこちら</a><br>"; } else { echo "ログインしてください。<br>...
true
1791afcb1c7f9ab3e308c23446236309c27c259e
PHP
gunjanpanara/Online-Mid-Semester-Examination
/Online-Mid-Semester-Examination/admin/login.php
UTF-8
2,445
2.578125
3
[]
no_license
<?php /**** Title: Examiner Login ****/ error_reporting(0); session_start(); include_once 'oesdb.php'; if(isset($_POST['login'])) { $uname=$_POST['uname']; $pswd=$_POST['pswd']; $q="select * from login_examiner_gpa where username='$uname'"; //$res=mysql_query($q,$conn); $res=executeQuery($q); $num...
true
8d371780303308c5d03939d8f4e8c8dacf7ce0cf
PHP
hiphp7/dsc
/app/Api/Fourth/Controllers/CertificationController.php
UTF-8
3,099
2.59375
3
[]
no_license
<?php namespace App\Api\Fourth\Controllers; use App\Api\Foundation\Controllers\Controller; use App\Services\User\VerifyService; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use Illuminate\Validation\ValidationException; /** * Class UserController * @package App\Api\Fourth\Controllers */ class Ce...
true
dc65b7f804b482174a611a85c62202e0743094a5
PHP
impleunah/LATIPICA
/modelos/tbl_tipo_operaciones_funcion.php
UTF-8
2,328
2.71875
3
[]
no_license
<?php require '../config/Conexion.php'; class operaciones{ public function _construct() { } //Funcion para insertar un usuario en la base de datos public function _insertar($tipo_operacion,$estado) { $sql = "INSERT INTO tbl_tipo_operaciones(tip...
true
f6c7477195b6bf11361ce9c248c5f64c73c9c9da
PHP
akbarchives/web-kasir-toko
/app/Models/BarangModel.php
UTF-8
2,574
2.9375
3
[ "MIT" ]
permissive
<?php namespace App\Models; use CodeIgniter\Model; class BarangModel extends Model { protected $table = 'barang'; // nama tabel protected $primaryKey = 'id_barang'; // primary key tabel protected $useTimestamps = true; // otomatis mengisi field created_at dan updated_at protected $allowe...
true
3b37e76e1d6a2a15893106143d62f415bbb19a85
PHP
maxso92/catalog
/Category.php
UTF-8
2,603
2.671875
3
[]
no_license
<?php include_once 'config/db.php'; include_once 'app/db.php'; include_once 'functions/functions.php'; include_once 'web/header.php'; ?> <h4>Управление категориями </h4> <a href="index.php">Вернуться назад</a> <br> <?php // Форма активна или нет $form = settype($_GET['form'], 'integer' ); // Добавление и изм...
true
12c59d66b7346f5fe4eda1a2aeecdccb3f2ecbf4
PHP
Tjay98/projetoburguer
/makeaburguer/frontend/models/Pedido.php
UTF-8
2,023
2.65625
3
[]
no_license
<?php namespace app\models; use Yii; /** * This is the model class for table "pedido". * * @property int $id * @property int $id_user * @property int $id_menu * @property int $promocao * @property string $preco * @property string $data * * @property Menu $menu * @property User $user * @property Promocoes...
true
b88102a97ee7513b0e5def22491ff51104b507e4
PHP
sonebouy/ebasket
/connect/crawler.php
UTF-8
1,911
2.515625
3
[]
no_license
<?php include("collect.php"); function getDUrlsInText($text){ $urls = array(); $reg_exUrl= "/\/d\/[a-zA-Z0-9\_\-\.]+/"; preg_match_all($reg_exUrl, $text, $matches); $usedPatterns = array(); foreach($matches[0] as $pattern){ $urls[] = $pattern; } return $urls; } function getPUrlsIn...
true
39e4e8186f5fd4e9fc3c767141073a881870b422
PHP
dav1126/POOIV-TP4-Forum
/global/init.php
ISO-8859-1
1,283
2.625
3
[]
no_license
<?php // Inclusion du fichier de configuration (qui dfinit des constantes) include 'global/config.php'; session_start(); // Inclusion de Pdo2, potentiellement utile partout include CHEMIN_LIB.'pdo2.php'; function utilisateur_est_connecte() { return !empty($_SESSION['id']); } include CHEMIN_MODELE.'m...
true
385a18ddaea6502d7144593174be3b3b7caf6f14
PHP
alvol21/phplab
/Api/material/add.php
UTF-8
678
2.53125
3
[]
no_license
<?php require_once '../database.php'; include '../security.php'; header("Content-type: text/html; charset=utf-8"); $id = $_POST['id']; $name = $_POST['name']; if(isset($name) && isset($id)){ if(mysqli_query($conn,"INSERT into `Material3` (article_number_materials, name) VALUES ('$id','$name')")){ ...
true
81f14d48d8d088f8c1a9562d515897d353abc4bd
PHP
evgenygil/Taobao-Tmall-parser
/taoparser/includes/fun_base.php
UTF-8
13,940
2.625
3
[]
no_license
<?php function Char_cv($msg){ $msg = str_replace('%20','',$msg); $msg = str_replace('%27','',$msg); $msg = str_replace('*','',$msg); $msg = str_replace("\"",'',$msg); // $msg = str_replace('//','',$msg); $msg = str_replace('&amp;','&',$msg); $msg = str_replace('&nbsp;',' ',$msg); $msg = str_replace(';','',$msg)...
true
6e567e58cf135b4824d439e85111e7eb12544e8d
PHP
poppins/poppins
/inc/Dumper.php
UTF-8
6,479
2.859375
3
[]
no_license
<?php /** * File Dumper.php * * @package Poppins * @license http://www.gnu.org/licenses/gpl-3.0.en.html GNU Public License * @author Bruno Dooms, Frank Van Damme */ /** * Class Dumper contains functions that generate mysqldump commands */ abstract class Dumper { // items to backup: tables or dat...
true
86967cdba7aa56ed7de413cd19a9f203c66daff4
PHP
littlestarsx/fashop
/App/HttpController/Admin/Analysis.php
UTF-8
23,572
2.6875
3
[]
no_license
<?php /** * 数据流量统计 * * * * * @copyright Copyright (c) 2016-2016 WenShuaiKeJi Inc. (http://www.wenshuai.cn) * @license http://www.wenshuai.cn * @link http://www.wenshuai.cn * @since File available since Release v1.1 */ namespace App\HttpController\Admin; use App\Utils\Code; /** * 流量统计 * Cla...
true
9cb28a285a168efb2db491d459aa72a19a4c38bf
PHP
BenoitAdam94/phpifocop
/Profdiw54/eboutique_NEW/admin/gestion_article.php
UTF-8
17,015
2.6875
3
[]
no_license
<?php include '../inc/init.inc.php'; include '../inc/fonction.inc.php'; if (!user_is_admin()) { header('location:' . URL . 'connexion.php'); exit(); // bloque l'exécution du code } //********************************************************************* //************************************************************...
true
3325a5423bf1aaab7a872bbf7fe82d4fe4ed6761
PHP
PhaseDiver/kerdraon_tpfinal
/nicolas_epsitpfinal/src/DataFixtures/DresseurFixtures.php
UTF-8
1,245
2.671875
3
[]
no_license
<?php namespace App\DataFixtures; use App\Entity\Dresseur; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Common\Persistence\ObjectManager; use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface; class DresseurFixtures extends Fixture { public function load(ObjectManager $manager) { ...
true
d729450a1f567aac8934d884567690f4f6c66d80
PHP
osijeff/business
/Admin/users.php
UTF-8
5,445
2.671875
3
[]
no_license
<?php require_once '../config/init.php'; if(!is_logged_in()){ login_error_redirect(); } //var_dump(isset($user_data)); if(!has_permission('admin')){ permission_error_redirect('index.php'); } include 'includes/header.php'; include 'includes/navigation.php'; ?> <style> body{ background-image:url("/business/im...
true
97a5f763a102b33707384ec87c8ec0f10ab3e98a
PHP
jaiprakashdadoliya/SafeHealthAPI
/app/Modules/Visits/Models/PastMedicationHistory.php
UTF-8
11,941
2.578125
3
[]
no_license
<?php namespace App\Modules\Visits\Models; use Illuminate\Database\Eloquent\Model; use Laravel\Passport\HasApiTokens; use App\Traits\Encryptable; use Illuminate\Support\Facades\DB; use App\Libraries\SecurityLib; use Config; use App\Libraries\UtilityLib; use App\Modules\Setup\Models\StaticDataConfig; /** * PastMedicat...
true
2d936b5e4e0eab276714a1b487ab07792db82ce7
PHP
Aleks8532/short-link-docker
/src/database/migrations/2019_10_08_153623_create_visit_stats_table.php
UTF-8
709
2.546875
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateVisitStatsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('visit_stats'...
true
522803f607fdbfb9a913b4df6e6bcd6766a39d72
PHP
sandrocods/movie-player
/admin/process_user.php
UTF-8
6,111
2.53125
3
[ "MIT" ]
permissive
<?php include './../include/header.php'; include './../include/config.php'; include './../include/koneksi.php'; session_start(); // Start session nya if (! isset($_SESSION['key'])) { // Jika tidak ada session username berarti dia belum login header("location: index.php"); // Kita Redirect ke halaman index.php...
true
18369e3ee69b72b8ca46228956eaedcf18463233
PHP
iinine/waimai
/vendor/encore/laravel-admin/src/Grid/Displayers/QRCode.php
UTF-8
1,078
2.609375
3
[ "MIT" ]
permissive
<?php namespace Encore\Admin\Grid\Displayers; use Encore\Admin\Facades\Admin; /** * Class QRCode. */ class QRCode extends AbstractDisplayer { protected function addScript() { $script = <<<'SCRIPT' $('.grid-column-qrcode').popover({ html: true, trigger: 'focus' }); SCRIPT; Admin::sc...
true
9888c4715ffe4a8133cd7d44c1bf77a2bb6af45a
PHP
JaSpr/TheGame
/library/Bear/Form/Decorator/Multi.php
UTF-8
1,029
2.6875
3
[]
no_license
<?php /** * Bear * * @category Bear * @package Bear_Form */ /** Zend_Form_Decorator_ViewHelper */ require_once "Zend/Form/Decorator/ViewHelper.php"; /** * Multi-element decorator * * @author Justin Hendrickson <justin.hendrickson@sierra-bravo.com> * @category Bear * @package Bear_Form * @since 2.0.0 */ cl...
true
065108150c46339a8572b9a67341a7f2cf6daeff
PHP
tgfarias/hotel
/Site/application/models/modulos_model.php
UTF-8
3,859
2.65625
3
[]
no_license
<?php if (!defined('BASEPATH')) exit('Acesso direto ao script negado.'); /** * Esta classe foi gerada automaticamente pelo sistema de geração * de CMS para Codeigniter desenvolvido por Eliel de Paula. * * Esta classe fornece os atributos e métodos necessários para * o gerenciamento da tabela tb_modulos ...
true
fe661f851ced858ad72ab03c16bb62d3c488ec4e
PHP
home2home-ae/ab-lab-accessor
/src/Cache/Traits/RawStorageDebugger.php
UTF-8
657
2.671875
3
[]
no_license
<?php namespace ABLab\Accessor\Cache\Traits; use ABLab\Accessor\Request\GetTreatmentRequest; trait RawStorageDebugger { private array $rawStorage = []; /** * Cache response to raw storage, ideal for debugging * * @param GetTreatmentRequest $treatmentRequest * @param string $cacheKey ...
true
feefdb69b7f442a4c4d5e909f7a79bd35686f9b5
PHP
LazaroBC/apuntesphp
/09-bucles/index.php
UTF-8
680
3.65625
4
[]
no_license
<?php // WHILE (mientras, cuidado con los bulces infinitos) $numero = 50; while ($numero <= 100){ echo $numero; if ($numero != 100){ echo ", "; }else{ echo "."; } $numero++; } echo "<hr>"; if(isset($_GET['numero'])){ $numero = (int)$_GET['numero']; }else { $numero = 1; } ...
true
df41a64af1035901ca0859f000e129f4ad479f27
PHP
sta-ka/startschuss
/app/Models/Misc/Log/DbInfoRepository.php
UTF-8
526
2.84375
3
[ "MIT" ]
permissive
<?php namespace App\Models\Misc\Log; class DbInfoRepository implements InfoRepository { /** * Create a new entry. * * @param array $data * * @return static */ public function create(array $data) { return Info::create($data); } /** * Get logins. * ...
true
3768caeb73b659e3580d253db56546cf8900aa5a
PHP
TonnelierFlorian/infs3_prj17
/Php/Classes/Exceptions/Exception.class.php
UTF-8
752
2.65625
3
[]
no_license
<?php //Lorsque l'on a une erreur de connexion class AuthentificationException extends Exception{ } //Lorsque l'on a une erreur de session class SessionException extends Exception{ } //Lorsqu'une requete n'aboutie pas class RequeteException extends Exception{ } //Lorsque le system lance une exception class Syst...
true
d680d1bfedf22e9871819fabaa6c3986e2b65d3c
PHP
jnizama/colegioweb
/application/libraries/Colegio/LoginService.php
UTF-8
772
2.515625
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class LoginService { protected $CI; public function __construct(){ $this->CI =& get_instance(); $this->CI->load->database(); } public function getPerfilUsuario(){ $sql = 'select idperfil, perfil from "perfil...
true
957935d37c744c21878fc60f8659e2c18278c829
PHP
agentmedia/phine-core
/src/Core/Modules/Backend/ContainerList.php
UTF-8
4,078
2.6875
3
[ "Apache-2.0" ]
permissive
<?php namespace Phine\Bundles\Core\Modules\Backend; use Phine\Bundles\Core\Logic\Module\BackendModule; use Phine\Bundles\Core\Logic\Module\Traits; use App\Phine\Database\Core\Container; use App\Phine\Database\Access; use Phine\Framework\System\Http\Request; use Phine\Bundles\Core\Logic\Routing\BackendRouter; use Phine\...
true
bffeefcde94c92e60193b28231fac0e89a06bd9a
PHP
Mexiswow/fitbit
/views/home/overview.php
UTF-8
1,260
2.578125
3
[]
no_license
<h3>Today's Sync</h3> <?php // Get Distance $distance_total = 0; foreach ($activities_daily->summary->distances as $distance): $distance_total = $distance->distance + $distance_total; endforeach; ?> <p> <strong>Steps:</strong> <?= $activities_daily->summary->steps ?><br> <strong>Floors:</strong> <?= $activities_dai...
true
4aa5811e5e008d431dd1244848a3955fff6b278a
PHP
Nogrod/ebay-sdk-php
/src/Trading/GeteBayDetailsResponse.php
UTF-8
1,067
2.625
3
[ "MIT" ]
permissive
<?php namespace Nogrod\eBaySDK\Trading; /** * Class representing GeteBayDetailsResponse * * Details about a specified site in response to <b>GeteBayDetailsRequest</b>. If no <b>DetailName</b> field is identified in the request, all elements of <b>GeteBayDetailsResponse</b> are returned. Otherwise, eBay returns onl...
true
bc5df39122c50ba835d074de1b370db98d9dffa0
PHP
mrferos/chute
/src/Chute/Mapper.php
UTF-8
399
3
3
[ "MIT" ]
permissive
<?php namespace Chute; /** * @package Chute */ interface Mapper { /** * Takes an $item and transform it into another structure that can * be reduced. It return an array with two keys, the 0 index is a $key * that values are grouped with. The second is the transformed structure. * * @par...
true
ab2911bb216b578fc81e190cf24e7968e86aa689
PHP
inarulabs/laravel-additives
/src/Support/ServiceProvider.php
UTF-8
1,214
2.515625
3
[ "MIT" ]
permissive
<?php namespace iNaru\Support; use Illuminate\Contracts\Foundation\CachesConfiguration; use Illuminate\Contracts\Foundation\CachesRoutes; use Illuminate\Support\Facades\Route; use Illuminate\Support\ServiceProvider as BaseServiceProvider; abstract class ServiceProvider extends BaseServiceProvider { /** * Ov...
true
c8db047586c6e501d1795d0e3fd318f76c3bc3f9
PHP
devilkun/Biny
/app/controller/base/baseAction.php
UTF-8
541
2.515625
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace app\controller; use biny\lib\Action; use biny\lib\Response; use App; /** * Base action */ class baseAction extends Action { /** * @param $view * @param array $array * @param array $objects 直接使用参数 * @return Response */ public function display($view, $array=array(), $obj...
true
040d48db91867b76c50eb5e1a50db4215534cab5
PHP
l333308/algo-sevan
/Laravel_main_tech/Car.php
UTF-8
143
2.71875
3
[]
no_license
<?php namespace LaravelMainTech; class Car implements Visit { public function go() { echo "Driving a car to Tibet."; } }
true
04fa1cacea6792bb6f625a148f0fd94fe499270a
PHP
TrunggHieu/magento2-high-value-order
/Model/Api/SlackMessage.php
UTF-8
4,323
2.875
3
[]
no_license
<?php namespace Hamsa\HighValueOrder\Model\Api; use Hamsa\HighValueOrder\Model\Api\SlackAttachment; use Hamsa\HighValueOrder\Model\Api\Slack; class SlackMessage { private $slack; // Message to post public $text = ""; // Empty => Default username set in Slack instance public $username; // E...
true