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
99b8010fe197b01f53b368d14b5adaf3bdf7c679
PHP
micro-services-com/ms-sdk-php
/src/LoyaltyServiceClient.php
UTF-8
2,689
2.796875
3
[ "Apache-2.0" ]
permissive
<?php namespace mssdk; require 'hawk/HawkHttpClient.php'; use \mssdk\hawk\HawkHttpClient; class LoyaltyServiceClient { const BASEURL = "https://service-loyalty.micro-services.com"; const URITEMPLATE_ACTIVITIES = self::BASEURL . "/applications/{applicationId}/activities"; const COOKIENAME_AMBASSADORID = "myLAMB...
true
eb99b63e927193839ebd022f90905cd75864ddb6
PHP
victor9797/Desarrollo-web
/index.php
UTF-8
4,062
2.984375
3
[]
no_license
<?php /** * Materia: Computacion en el servidor web * Actividad: Desarrollo web avanzado * Profesor: Octavio Aguirre Lozano * Alumno: Victor Isaac Rodriguez Saenz * * Archivo index.php * * Referencias: https://www.w3schools.com/php/default.asp */ //Creamos un objeto para iniciar la pagina $controll...
true
c6eed715b481395adefc6c40440ab5a6c865cf78
PHP
sudishbasnet/ED-s-electronic-website-with-PHP
/featureProduct.php
UTF-8
1,179
2.8125
3
[]
no_license
<?php include 'session.php'; if (isset($_POST['add'])) { $ss = $p->prepare("INSERT INTO featureproduct(p_id) VALUES (:pId)"); $c =[ 'pId' => $_POST['pId'] ]; if($ss->execute($c)) echo '<p> Product featured </p>'; } if (isset($_POST['del'])) { $pId = $_POST['pId']; $ss = $p->pr...
true
25c34f1b5c5b7aed52bb4a0e393b83ccdfa60784
PHP
confl1kt/test.discount.system
/module/Test/src/Test/DiscountManager.php
UTF-8
863
2.75
3
[]
no_license
<?php namespace Test; use Test\Discount\DiscountInterface; use Test\Order\OrderInterface; use Test\Order\UseDiscountInterface; class DiscountManager { /** @var DiscountInterface[] */ private $discounts; public function addProductDiscount(DiscountInterface $discount) { $this->discounts[] = $d...
true
1d15e095635b50814f3384e53fa18359216b82b8
PHP
lionelgaillard/WXRGeoBundle
/Model/RegionInterface.php
UTF-8
2,156
2.65625
3
[]
no_license
<?php namespace WXR\GeoBundle\Model; /** * WXR\GeoBundle\Model\RegionInterface * * @author Lionel Gaillard <lionel.gaillard@wxrstudios.com> */ interface RegionInterface extends GeolocalisableInterface { /** * @return mixed */ public function getId(); /** * @param string $iso * @re...
true
e147b42137591bfe703c51d717f7b75b3b61ce36
PHP
nd2s/plms-export
/src/Generator/Refurbed.php
UTF-8
1,758
2.640625
3
[]
no_license
<?php namespace Refurbed\Generator; use Plenty\Modules\DataExchange\Contracts\CSVGenerator; use Plenty\Modules\Helper\Services\ArrayHelper; use Plenty\Modules\Helper\Models\KeyValue; use Plenty\Modules\Item\DataLayer\Models\Record; use Plenty\Modules\Item\DataLayer\Models\RecordList; use Plenty\Modules\DataExchange\M...
true
42732c92e3199770d0ce38fa03bbbec14918deaa
PHP
rxfu/laradmin
/app/Presenters/UserPresenter.php
UTF-8
686
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Presenters; use Laracasts\Presenter\Presenter; class UserPresenter extends Presenter { public function isEnable() { return $this->is_enable ? '是' : '否'; } public function isSuper() { return $this->is_super ? '是' : '否'; } public function allRoles() ...
true
ce4d32bae88bf4ad84cccd7af50d9bef4fabf3dd
PHP
kamelodee/efieonline_site
/app/Models/Location.php
UTF-8
563
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Location extends Model { // protected $table = "locations"; protected $fillable = [ 'name', 'address', 'city', 'region', 'country', 'longitute', 'latitude', 'crea...
true
77aaf30de3ebc1fc881dd306815b58ca189e9abe
PHP
VividCiphers/vivid-ciphers-website
/login_register/login.php
UTF-8
2,834
2.59375
3
[]
no_license
<?php include("connect.php"); include("functions.php"); if(logged_in()){ header("location: index.php"); exit(); } $error = ""; if(isset($_POST['submit'])){ $email = mysqli_real_escape_string($con, $_POST['email']); $password = mysqli_real_escape_string($con, $_POST['passwor...
true
753c91b6c01a1d4488d1422f95b7fc4a5909f26e
PHP
jarekdolega/PHP_2-nauka
/cwiczenia/baseconnect.php
UTF-8
1,439
3.296875
3
[]
no_license
<?php $host = "localhost"; $db = "php_practice"; $user = "admin"; $password = "admin"; try { $conn = new PDO("mysql:host=$host;dbname=$db;charset=utf8",$user,$password); } catch(Exception $e) { echo "Nie udało sie połączyć z bazą danych"; } echo "<h2>dump</h2>"; foreach($conn->query("SELECT * FROM userdata...
true
d97028a7c44c8f12b546aee0e2a7401d7b6fc7d7
PHP
malcalsv/Buscador
/php/probar.php
UTF-8
214
3.140625
3
[]
no_license
<?php $x = array("precio"=>"5,500"); print_r(floatval(str_replace(',','',$x["precio"]))); if (floatval(str_replace(',','',$x["precio"]))>500) echo "es mayor"; else echo "es menor"; ?>
true
90a42aa73fddccfc9869b0c40201d866bc5a18ca
PHP
SamChen1981/credit
/测试后台/app/Vendor/jssdk.php
UTF-8
5,962
2.71875
3
[ "MIT" ]
permissive
<?php class JSSDK{ private $appId; private $appSecret; private $wid; private $tid; private $key; private $keys; /*public function __construct($appId, $appSecret) { $this->appId = $appId; $this->appSecret = $appSecret; }*/ public function __construct($tid, $wid,$key) { $this->tid = $tid;...
true
7749f34227be9790c1b29bff065b0eaeff624ab2
PHP
nin-jin/hyoo.ru
/so/query/so_query.php
UTF-8
5,024
2.59375
3
[]
no_license
<?php class so_query implements \Countable, \ArrayAccess, \IteratorAggregate { use so_meta; use so_factory; static $sepaName= '='; static $sepaChunk= ';&'; static $resourcePrefix= ''; static function make( $uri= null ){ $obj= new static; if( is_null( $uri ) ) return $o...
true
f5be54981c292b405133dfec22ff0897186fd8bf
PHP
dxcweb/laravel-tool
/DBConnection.php
UTF-8
10,646
2.703125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: 单线程 * Date: 2015/12/16 * Time: 20:22 */ namespace Tool; class DBConnection { private $connection; private $connection_name; private $facadeRoot; private $table; public function __construct($facadeRoot, $connection = null) { ...
true
ea2383b8b17b6d14a1027cbb1ffb68bb07d05fc1
PHP
jamesroom/mingtong
/customer/add.php
UTF-8
4,332
2.6875
3
[]
no_license
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>客户录入</title> </head> <body> <form method="post" action=""> <table border="0" align="center"> <tr><td>意向:<input type="Text" name="want" value="<?php echo isset($_POST["want"])?$_POST["want"]:""; ?>" ></td></tr> <tr><td>名...
true
2c092cfefc5b7c1d62887e202fd1858f740812ea
PHP
justmoon/codestewart
/lib/configfile.class.php
UTF-8
947
3.140625
3
[]
no_license
<?php class ConfigFile { protected $filename; protected $settings = null; public function __construct($filename) { $this->filename = $filename; } public function load() { if (file_exists($this->filename)) { require_once('lib/spyc/spyc.php'); $this->settings = Spyc::YAMLLoad($this->filename); } ...
true
d82d6ccdc84f895f76f695020c3eb4b830fd2c8b
PHP
geririsp/SPOT
/provisioning/libs/Reporter/UsersReporter.php
UTF-8
2,566
3
3
[]
no_license
<?php /** @package Spot::Reporter */ /** import supporting libraries */ require_once("verysimple/Phreeze/Reporter.php"); /** * This is an example Reporter based on the Users object. The reporter object * allows you to run arbitrary queries that return data which may or may not fith within * the data a...
true
cf1fd096981fcce967b0e0a0c4fde9a56c5f452c
PHP
usmantransdata/wwwredcappicom
/webapp/models/supportmodel.php
UTF-8
1,900
2.546875
3
[]
no_license
<?php class SupportModel extends CI_Model { /** Function get_category_data to fetch categories from database */ function get_category_data($conditions_array=array(),$rows_per_page=10,$start=0) { $rows=array(); $this->db->from('red_support_category as rsc'); $this->db->where($conditions_array); $result=$t...
true
541c9ad907449e855f9eced3f5fd3ab61226c4c8
PHP
gorillatronxx/tabelmaster
/lib/crudWorker.class.php
UTF-8
5,718
3.125
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. */ /** * Description of sqlWorker - this is a CRUD class that does the sql work for * Create Read Update & Delete of table row ...
true
1e46a48203d5aa73d15a80537f3d44ebb8220d3c
PHP
FrancisDesignere/Cefii-Exercices
/PHP2-Avance/Exo5-SuppressionProduit/fonctions/connect.php
UTF-8
1,416
2.625
3
[]
no_license
<?php /* connexion suivant le cas : * - à la base de donnée en local * - ou à celle de F Désignère sur serveur Cefii */ if (!isset($connexion)){ // definie la base où se conecter en fonction de l'execution if (($_SERVER['HTTP_HOST']=="exoscefii") || ($_SERVER['HTTP_HOST']=="localhost")) { // mySql...
true
201d9b1144bf68df1b7cb751c9ad57f0baf90dc9
PHP
Shimberly/LeccionCRUD
/mostrar.php
UTF-8
1,213
2.84375
3
[]
no_license
<?php include_once("NotaCollector.php"); $NotaCollectorObj = new NotaCollector(); ?> <html> <head> <meta charset="utf-8"> <title> Calificaciones </title> <link rel="stylesheet" href="bootstrap.css"> </head> <body> <table class="table"> <tr> <th>NOMBRE</th> ...
true
37a02f9ee9bea27a85de6506de0fbcc20d2d5718
PHP
pycmam/littlesms-simpla
/admin/NewsLine.admin.php
UTF-8
2,977
2.625
3
[]
no_license
<?PHP require_once('Widget.admin.php'); require_once('PagesNavigation.admin.php'); require_once('../placeholder.php'); ############################################ # Class NewsLine displays news ############################################ class NewsLine extends Widget { var $pages_navigation; var $...
true
e814db5a51019690517435fc754c3f54470c9ed8
PHP
NeldoYosepSimanjuntak/CRUD_pada_PHP
/pertemuan4(array numerik)/latihan1.php
UTF-8
1,164
4.0625
4
[]
no_license
<?php // array // cara lama // $hari = array("senin", "selasa", "rabu"); // $bulan = ["januari", "februari","maret"]; // print_r($hari); // echo"<br>"; // print_r($bulan[0]); // cara menambah sebuah array // echo"<br>"; // $hari[] = "kamis"; // $hari[] = "jum'at"; // var_dump($hari); $angka = [1,200,3,67,88,1000,1...
true
56b2c524ccad39f6dd90fb5a9c9f68a57f57328d
PHP
KalyaniKatariya/LetsQuester
/advanced/frontend/models/Learning.php
UTF-8
1,583
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace frontend\models; use Yii; /** * This is the model class for table "learning". * * @property integer $id * @property integer $learner_id * @property integer $module_id * @property string $status * * @property Module $module * @property User $learner */ class Learning extends \yii\db\ActiveRe...
true
bfaa95d85860a6f80148217b5943723d227d5593
PHP
bilalesajee/test
/vssprojects/kohsar_live/iPOS/iPOS_test/admin/updatepack.php
UTF-8
4,996
2.609375
3
[]
no_license
<?php include_once("../includes/security/adminsecurity.php"); global $AdminDAO; /*echo "<pre>"; print_r($_POST); echo "</pre>"; exit;*/ if(sizeof($_POST)>0) { $ids = explode(",",$_POST['ids']); for($i=0;$i<sizeof($ids);$i++) { $shiplistid = $ids[$i]; $box = $_POST['box_'.$ids[$i]]; $total = $_POST['boxto...
true
567da960834f6b8c7b2f36f68ab67349d02936be
PHP
larscs/GeoMemberz
/classes/Validation.php
UTF-8
5,862
3
3
[]
no_license
<?php class Validation { public $errormsg; public $errors = Array(); private $_error = false; public function checkFormData(array $userdetails, $isupdate) { // Takes registration details in an array and returns true or false, // accompanied by an array listing errors if false. $memb = Members::getInstance...
true
05778de798aa6c1e1ae4a9344124c877ee71b551
PHP
denismitr/UTF-Mailer
/src/UTFMail.php
UTF-8
2,050
2.953125
3
[ "CC0-1.0" ]
permissive
<?php namespace Denismitr\UTFMail; class UTFMail { private $subject = '(No subject)'; private $to = ''; private $fromName = ''; private $fromEmail = ''; private $htmlBody = ''; public function __construct($to) { $this->to = $to; } /** * @param $to * @return static */ public static function to($...
true
ae21d003d2ef0abd5284b3da200171660e0fd06b
PHP
eddyrodrigues/PHP
/administrador/crud.php
UTF-8
2,103
3.734375
4
[]
no_license
<?php class CRUD{ //C.R.U.D = [C]reate, [R]ead, [U]pdate and [D]elete private $host = '127.0.0.1'; private $port = 3306; private $user = 'root'; private $passwd = ''; private $PDO = NULL; public function __construct($db ,$user='root', $passwd = '', $host='127.0.0.1', $port=3306){ $this->host = $host; // Rece...
true
03fd99fe56ade3b9ec14ade0930db8506ed81995
PHP
mubadara/tild_api
/App/Database/Migrations/2021_04_08_192115_create_quizzs.php
UTF-8
723
2.6875
3
[]
no_license
<?php namespace App\Database\Migrations; use Leaf\Database; use Illuminate\Database\Schema\Blueprint; class CreateQuizzs extends Database { /** * Run the migrations. * * @return void */ public function up() { if(!$this->capsule::schema()->hasTable("quizzs")): $this->c...
true
5d82271e55cf8b9f9be6c1a3dceb9120dcfe6274
PHP
zajca/symfony-extensions
/src/Route/ApiRoute.php
UTF-8
1,541
2.625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Zajca\Extensions\Route; use Attribute; use Symfony\Component\Routing\Annotation\Route; #[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)] class ApiRoute extends Route { /** * @param array|mixed $data * @param array<mixe...
true
eb70425df0523df434bf122dc88f8917d4133c44
PHP
granick/GK.web
/db.php
UTF-8
376
2.578125
3
[]
no_license
<?php $username="your username"; $servername="your server"; $dbname="your databasename"; $password="your password"; try { $bdd= new PDO("mysql:host=servername;dbname=databasename",'username','' ,array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8')); $bdd->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTIO...
true
742eb9d1e73b6a0d623480173684c2186836f301
PHP
itpark-team/mvcloc
/controllers/PagesController.php
UTF-8
268
2.59375
3
[]
no_license
<?php require_once './views/View.php'; class PagesController { private $view; public function __construct() { $this->view = new View(); } public function indexAction() { $this->view->render("main", "pages/index"); } }
true
3809510f26fc51e89117a1216e652e3c3d195e5f
PHP
udistrital/arka_desarrollo
/blocks/registro/loginArka_old/funcion/formProcessor.php
UTF-8
4,489
2.625
3
[]
no_license
<?php namespace registro\loginArka; use registro\loginArka\funcion\Redireccionador; include_once ('Redireccionador.php'); // var_dump($_REQUEST);exit; class FormProcessor { var $miConfigurador; var $lenguaje; var $miFormulario; var $miSql; var $conexion; function __construct($lenguaje, $sql) { $this->miConfi...
true
e8552d981a5fa06a0e1bb335540cfcd00adf0bd8
PHP
shahsbrothers/shahsbrothers.com.pk
/admin/core/add_product.php
UTF-8
2,627
2.8125
3
[]
no_license
<?php // Include config file include_once ('conn.php'); $errors = array(); // array to hold validation errors $data = array(); // array to pass back data $username = $password = ""; // print_r($_POST); // print_r($_FILES); $ext =""; $target_dir = "../../assets/img/products...
true
8991522d1f24910ac82b2af7ec3ffdcf6b12dcbc
PHP
Theo-denBlanken/demoMD1A
/opdracht_1-5.php
UTF-8
1,975
2.890625
3
[]
no_license
<h1>Opdracht 1</h1> <p> <em> Als je vragen hebt dan kun je die altijd via de mail stellen.<br> Mijn email is: jasper@cmm.nl </em> </p> <p> <h2>Maak op basis van de onderstaande html een php code let op de volgende punten</h2> <ul> <li>Maak gebruik van 1 loop</li> <li>V...
true
0469489b9b346c56fa30c6e7d625ddf6b4aa1381
PHP
CristopherMRodriguez/GWP_FORM
/index.php
UTF-8
3,280
2.8125
3
[]
no_license
<?php // connection to database $conn = mysqli_connect("localhost", "cris", "bebe", "GWP"); if (!$conn) { echo 'Connection error: ' . mysqli_connect_error(); } // constructed query (not used) $sql = "SELECT location FROM General"; // get the result set (set of rows) $result = mysql...
true
abab63b1fb200655be64f95128faa51dd68999c0
PHP
dev-league/MVC-base-PHP
/tools/Returns.php
UTF-8
1,083
2.625
3
[ "MIT" ]
permissive
<?php class Returns { const BUSCA_SUCCESS = "Busca concluida com sucesso!"; const BUSCA_EMPTY = "Nenhum resultado encontrado!"; const INSERIDO_SUCCESS = "Inserido com sucesso!"; const INSERIDO_ERROR = "Error ao adicionar!"; const UPDATE_SUCCESS = "Atualizado com sucesso!"; const UPDATE_ERRO...
true
0ce1e77d337dbdf9fafec0f76b8715a7d16ec4df
PHP
byzzverr/groceryCrud_Framework
/controllers/api/Content.php
UTF-8
1,251
2.625
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); // This can be removed if you use __autoload() in config.php OR use Modular Extensions require APPPATH . '/libraries/REST_Controller.php'; /** * This is an example of a few basic user interaction methods you could use * all done with a ...
true
dd6637bc3a4cc05dfba4ddc24a0b7172636adf0f
PHP
mamadou330/Gestion-blog
/commands/fill.php
UTF-8
2,072
2.640625
3
[]
no_license
<?php require dirname(__DIR__) . '/vendor/autoload.php'; use App\Connection; use Faker\Factory; $faker = Factory::create('fr_FR'); $pdo = Connection::getPDO(); $pdo->exec("SET FOREIGN_KEY_CHECKS = 0"); $pdo->exec("TRUNCATE TABLE post_category"); $pdo->exec("TRUNCATE TABLE post"); $pdo->exec("TRUNCATE TABLE categor...
true
263655aa21536b55b120921fdc1b40782c39bfd9
PHP
BeautyFastCode/patterns
/PHP/Creation/AbstractFactory/Tests/AbstractFactoryTest.php
UTF-8
3,408
2.8125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * (c) BeautyFastCode.com * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHP\Creation\AbstractFactory\Tests; use PHP\Creation\AbstractFactory\Client; use PHP\Creation\AbstractFactory\Ex...
true
6b3be0afe050b88884a30913efdc5af6e1d58920
PHP
13231955653/a
/docker_example/project/artsian/ArtsianFather.php
UTF-8
274
2.65625
3
[]
no_license
<?php namespace artsian; class ArtsianFather { protected function outInfo ($sInfo = '') { if (!$sInfo) { $sInfo = 'no return'; } echo "\n"; print_r($sInfo); echo "\n"; echo "\n"; } }
true
724a28914523d9230888b24ee1bbe104512bc36c
PHP
DeviousKR/iaw1920
/examn2/act3.php
UTF-8
627
3.375
3
[]
no_license
<?php function addPairs($array) { $init = ""; $Oarray = []; foreach ($array as $key => $number) { if ($key == 0) { $init = $number; $Oarray[0] = $number; } else { if ($init == $number) { $before = $key-1; $Oarray[$before] = $Oarray[$before]*2; $Oarray[$key] = 0; ...
true
99040415be3a9aa68a1357661c175d8f0bb6d6af
PHP
khaleelanjum/services
/app/Models/CustomFieldValue.php
UTF-8
1,713
2.703125
3
[ "MIT" ]
permissive
<?php /** * File name: CustomFieldValue.php * Last modified: 2021.01.03 at 12:13:26 * Author: SmarterVision - https://codecanyon.net/user/smartervision * Copyright (c) 2021 */ namespace App\Models; use Eloquent as Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; /** * Class CustomFieldValue * @pac...
true
47974b94c61f6d4694694ab397e985e898bb5297
PHP
chungthehao/module_a_12vn
/controllers/home.php
UTF-8
810
2.84375
3
[]
no_license
<?php /* * HomeController: chạy khi * - Mới vào trang web * - Ko tồn tại controller từ URL ng dùng gõ vào */ class HomeController extends Controller{ public function __construct($param = NULL){ parent::__construct(); /* * Xác định xem chạy action nào * note: cẩn thận thôi, thực ra controller này mớ...
true
90b9df88cd8bbbaccf512a9508807afe7a4e8388
PHP
fnooub/voice
/TTV/data.php
UTF-8
876
2.96875
3
[]
no_license
<?php include '../db.php'; include '../functions.php'; $query = "SELECT * FROM story WHERE name = :name"; $stmt = $db->prepare($query); $stmt->execute(array(':name' => $_GET['name'])); $story = $stmt->fetch(PDO::FETCH_ASSOC); $list = array(); $count = 0; foreach (json_decode($story['content']) as $url => $title) { ...
true
07c45be58d9aac464bbbb1ea693efe6980a8f3a8
PHP
Honza0297/IIS
/php/model/DatabaseObject.php
UTF-8
1,296
3.21875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: danbu * Date: 27.10.2019 * Time: 18:33 */ namespace model; abstract class DatabaseObject { protected $connection; protected static $table_name; protected $modelsLoaded = false; //flag for marking that models are loaded too. public $id; /** * co...
true
bfd56967539d8b44f4c0e52f463852e4983a8f8e
PHP
philipdangpro/sfy
/src/AppBundle/Controller/MemberController.php
UTF-8
1,898
2.59375
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: wabap2-14 * Date: 05/01/18 * Time: 09:54 * à remove dans Go to Settings -> Editor -> File and Code Templates -> Includes (TAB) -> PHP File Header */ namespace AppBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkB...
true
f7aecf09293118faff46e877126eee0b0c57451b
PHP
korabspahija/Project_Gr9_ProgramimiNeInternet
/4.PHP/Ushtrimet Ylli Sadikaj 2018/Java_2/index.php
UTF-8
2,457
2.96875
3
[]
no_license
<!DOCTYPE html> <html> <head lang="en"> <meta charset="utf-8"/> <title> Title </title> </head> <body> <?php $ora = date("H"); // me h te vogel e tregon me AM PM echo "Ora eshte: ".$ora; $muaji = date("M"); // ose me F / me m te vogel e merr muajin si numer echo "<br />Mua...
true
0b4fcf411361e3874b3afeb5eec4788cbc50273a
PHP
rozbyn/ns
/archive/technologies/php_mysql/tasks_from_site/advanced/cookie_session/tasks/2/choose_design/basket.php
UTF-8
4,461
2.703125
3
[]
no_license
<?php date_default_timezone_set('Europe/Moscow'); session_start(); $goods = [1=>1200, 2=>1400, 3=>1600, 4=>1800, 5=>2000]; if (isset($_POST['buy']) && $_POST['buy']<=5 && $_POST['buy']>=1){ $_SESSION['buy'][]=$_POST['buy']; } $total = 0; if (isset($_SESSION['buy'])&& !empty($_SESSION['buy'])){ foreach ($_SESSION['buy...
true
f64f5476a4b3c251fa1554aefcb21a83d15c4abc
PHP
yuletodim/ConferenceScheduler_EducationalProject
/MVCFramework/BaseController.php
UTF-8
691
2.53125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Yulia * Date: 27.11.2015 * Time: 20:42 */ namespace MVCFramework; class BaseController { /** * @var \MVCFramework\App */ protected $app; /** * @var \MVCFramework\View */ protected $view; /** * @var \MVCFramework\Config */ ...
true
5967073798a998b1e4c66814948e4ea942dc806b
PHP
rallek/oldtimer-ig-osnabrueck.de
/generatedModules/WebsitehelperModule/RK/WebsiteHelperModule/Entity/Factory/Base/AbstractWebsiteHelperFactory.php
UTF-8
3,204
2.578125
3
[]
no_license
<?php /** * WebsiteHelper. * * @copyright Ralf Koester (RK) * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License * @author Ralf Koester <ralf@familie-koester.de>. * @link http://oldtimer-ig-osnabrueck.de * @link http://zikula.org * @version Generated by ModuleStudio (http://modules...
true
53d328a909f6924de83b14e0ec0a252a59ac3b3e
PHP
hasmiraothman/report
/search_department.php
UTF-8
2,188
2.609375
3
[ "MIT" ]
permissive
<?php include("connect.php"); session_start(); if(!isset($_SESSION["username"])) {header("Location:index.html");} if(!isset($_SESSION["user_privilege"])) {header("Location:index.html");} if (($_SESSION['user_privilege']=="administrator")) { ?> <html> <style> h1{ color:#ff6347;} #example1 { background-image: url(...
true
a62d11912b0d7bffd9e3376a0b0516f0a951d798
PHP
stuheiss/automatic-injection-example
/app/Repositories/Foo.php
UTF-8
552
2.796875
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; /* Foo is a helper class that will be injected into the Foobarzip controller. Foo depends on another helper class Bar. Bar will be injected into a new instance of Foo by the IoC. */ class Foo { protected $bar; public function __construct(Bar $bar) { ...
true
58aa68bdd57b4726bab146cb8d65afa5b0f83926
PHP
mediateq/Maktab-Al-Moosavi
/reserve-mail.php
UTF-8
2,095
2.765625
3
[ "MIT" ]
permissive
<!DOCTYPE HTML> <html lang="en-US"> <head> <meta charset="UTF-8" /> <title>Sending mail ...</title> <style type="text/css"> body { background-color: #F4F4F4; } .ok { color:#23B3AB; } .err { color:#BD5B3D; } </style> </head> <body> <?php error_reporting(E_ALL ^ E_NOTICE); $admin = 'info@...
true
3e318633bdc7d34492b9d5482684c2fd4103a068
PHP
nicojones/Ribosome
/src/models/HomeModel.php
UTF-8
452
2.875
3
[]
no_license
<?php class HomeModel extends Model { /** * @var HomeModel The class instance. * @internal */ protected static $instance; /** * Returns a HomeModel instance, creating it if it did not exist. * @return HomeModel */ public static function singleton() { if (!sel...
true
0272207766bf76a53b08324cc0cd2c7135957e79
PHP
SimplyDemon/laravel
/app/Http/Controllers/TestController.php
UTF-8
2,375
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Custom\Classes\MainMenu; use App\Http\Requests\AddPost; use App\Models\Customer; use App\Models\Post; use App\Models\Profile; use App\Models\Tag; use App\Models\User; use Illuminate\Http\Request; class TestController extends Controller { public function time() { re...
true
e067a0287119c51fa41b7f321ea1462b576fccf9
PHP
simonceddy/new-phooty
/src/current/Entities/Player.php
UTF-8
1,003
3.125
3
[]
no_license
<?php namespace Phooty\Entities; use Phooty\Geometry\Movable; interface Player extends Movable { /** * Return the players full name either as an array or a string. * * By default an array must be returned containing [firstname, surname]. * * @param bool $asString If true the method shoul...
true
8656c085c392793a15ed160985b8f23a30cb4083
PHP
laminas/laminas-paginator
/src/Adapter/Service/DbSelectFactory.php
UTF-8
1,797
2.546875
3
[]
permissive
<?php declare(strict_types=1); namespace Laminas\Paginator\Adapter\Service; use Laminas\Paginator\Adapter\DbSelect; use Laminas\ServiceManager\Exception\ServiceNotCreatedException; use Laminas\ServiceManager\FactoryInterface; use Laminas\ServiceManager\ServiceLocatorInterface; use Psr\Container\ContainerInterface; ...
true
d8c259d960be4eaff861fbc2169dc32395ba6680
PHP
jafarkhanphp/stsfsnew
/protected/models/Roles.php
UTF-8
4,204
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * This is the model class for table "roles". * * The followings are the available columns in table 'roles': * @property integer $id * @property integer $user_id * @property integer $adds * @property integer $edits * @property integer $deletes * @property integer $view * @pro...
true
9f752d8585261e71a98f3901c0c0e56bb0044118
PHP
Newgot/abis
/app/Models/Book.php
UTF-8
1,055
2.578125
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Book extends Model { protected $fillable = ['name', 'author', 'status']; public function scopeGetPublishers($query, $id) { return $query ->join('book__publishers', 'book__publishers.id_book', '=', 'books.id') ...
true
cc2fd6c0d839bbdf840d31ccc92d4af0b8ecceb7
PHP
OCjp/CardGame
/coproject/ch09/ifStatement.php
UTF-8
656
3.65625
4
[]
no_license
<html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> </head> <body> <?php $num1 = 8; $num2 = 8; echo '$num1=',$num1,'<br>'; echo '$num2=',$num2,'<br>'; // $num1と$num2値を比較 if($num1 == $num2){ echo '◆変数$num1と$num2の値は等しいです。<br><br>'; } ...
true
60196b8afc2b5d7a39d28ffbcdc63788feb40e60
PHP
kszuper/insurance-crm-api
/src/Entity/PolicyWithMainClient.php
UTF-8
2,800
2.625
3
[]
no_license
<?php namespace App\Entity; use App\Validator\Pesel; use Symfony\Component\Validator\Constraints as Assert; class PolicyWithMainClient { /** * @Assert\NotBlank() */ private $company; /** * @Assert\NotBlank() */ private $code; /** * @Assert\NotBlank() */ privat...
true
6c58b7608df49c6070a6dfc214111364db17dce5
PHP
aoprea90/design-patterns
/src/Builder/BuilderManager.php
UTF-8
566
2.890625
3
[]
no_license
<?php namespace Builder; use Builder\Model\QueryBuilder; class BuilderManager { private $queryBuilder; public function __construct(QueryBuilder $queryBuilder) { $this->queryBuilder = $queryBuilder; $this->createQuery(); } public function createQuery() { $query = $t...
true
a28d1f66334b6e9b47e457145149f13916a34f7c
PHP
jacekwilczynski/console-input-helper
/spec/Transformer/InputToArrayTransformerSpec.php
UTF-8
2,384
2.78125
3
[]
no_license
<?php declare(strict_types=1); namespace spec\ConVal\Transformer; use ConVal\Contract\InputToArrayTransformerInterface; use ConVal\Contract\StringFunction; use PhpSpec\ObjectBehavior; use Symfony\Component\Console\Input\InputInterface; class InputToArrayTransformerSpec extends ObjectBehavior { public function i...
true
7658777e6adde49853dcb86ebf689b9433135d63
PHP
ProtocolLive/TelegramBotLibrary
/src/TgObjects/TgLocation.php
UTF-8
1,800
2.71875
3
[ "MIT" ]
permissive
<?php //Protocol Corporation Ltda. //https://github.com/ProtocolLive/TelegramBotLibrary namespace ProtocolLive\TelegramBotLibrary\TgObjects; use ProtocolLive\TelegramBotLibrary\TgInterfaces\TgForwadableInterface; /** * @link https://core.telegram.org/bots/api#location * @version 2023.05.24.00 */ final class TgLoca...
true
fd49f144f97b8750eb65822d8f29f2befe274658
PHP
jonschwa/camp-schwartzelrod
/app/User.php
UTF-8
1,646
2.53125
3
[]
no_license
<?php namespace App; use Hash; use Illuminate\Auth\Authenticatable; use Illuminate\Database\Eloquent\Model; use Illuminate\Auth\Passwords\CanResetPassword; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract; class User ...
true
c845bc93e4fbafa7d86549ed74a7b6e2a450b3f0
PHP
m2epro/magento2-extension
/Helper/Url.php
UTF-8
3,018
2.515625
3
[]
no_license
<?php namespace Ess\M2ePro\Helper; class Url { public const BACK_URL_PARAM_KEY = 'back'; /** @var \Magento\Framework\App\RequestInterface */ private $request; /** @var \Magento\Backend\Model\UrlInterface */ private $urlBuilder; public function __construct( \Magento\Framework\App\Requ...
true
905e895a34bbe95ecae83293fbee2cb4c1fe505d
PHP
jackWilder92/tweetQuote
/index.php
UTF-8
3,095
2.65625
3
[]
no_license
<?php session_start(); //Start session require 'autoload.php'; //Twitter library include_once 'configs.php'; //Add consumer Data use Abraham\TwitterOAuth\TwitterOAuth; //Calling namespace of twitter library by Abraham //Steps to authorise app and get user oauth_token...
true
6c40e37c6193b3aba4811b6b5f6383df8464034a
PHP
enriquealcaraz/Finizens-FullStack-Challenge
/Desarrollo/src/Domain/Entity/OrderEntity.php
UTF-8
1,062
3.015625
3
[]
no_license
<?php namespace Finizens\Domain\Entity; class OrderEntity { const SELL = "sell"; const BUY = "buy"; const IMCOMPLETE = 0; const COMPLETE = 1; private $id; private $portfolio; private $allocation; private $shares; private $type; private $status; ...
true
07b25ae51c60be604e9d7d1694e974844e633604
PHP
indeyets/midcom
/org_openpsa_qbpager/pager.php
UTF-8
20,324
2.515625
3
[]
no_license
<?php /** * @package org_openpsa_qbpager * @author The Midgard Project, http://www.midgard-project.org * @copyright The Midgard Project, http://www.midgard-project.org * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License */ /** * Pages QB resultsets * * @package org_openpsa_qbpag...
true
e03b2d9fb5cf8330d99026f3cb2a3cb447970ec9
PHP
dms-org/core
/src/Persistence/Db/Mapping/Definition/Relation/RelationTypeDefinerBase.php
UTF-8
638
2.625
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Dms\Core\Persistence\Db\Mapping\Definition\Relation; /** * The relation type definer class base. * * @author Elliot Levin <elliotlevin@hotmail.com> */ abstract class RelationTypeDefinerBase { /** * @var callable */ protected $callback; /** * @...
true
dba15f30c02e6e1ca9d0fc1de73d59b428dbc470
PHP
ericbrooke/phpPlay
/assign1/page1.php
UTF-8
1,917
2.875
3
[]
no_license
<!-- Course: 1920 Instructor: Jason Harrison Student: Eric Brooke Date: 10 Feb 2012 Description: Assignment One --> <html lang="en"> <head> <meta charset="utf-8" /> <title>Assignment One</title> <meta name="generator" content="BBEdit 10.1" /> <!-- HTML5 shim, for IE6-8 support of HTML elements --> <!--[if lt...
true
115460344cd4cf6aca01dd7f7598fbf73e94b1cb
PHP
WanderleyMPJ/erpSGE
/app/Http/Resources/Cad/PessoaTelefoneColletionResource.php
UTF-8
654
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Resources\Cad; use App\Models\Cad\Pessoa; use Illuminate\Http\Resources\Json\ResourceCollection; class PessoaTelefoneColletionResource extends ResourceCollection { private $pessoa; public function __construct($resource, Pessoa $pessoa) { $this->pessoa = $pessoa; ...
true
99390007e9e5053e4f06992a64b87ce91e841c10
PHP
nabildroid/facebook
/src/Group/posts.php
UTF-8
1,354
2.75
3
[]
no_license
<?php namespace Facebook\Group; use Facebook\Utils\Html; use Facebook\Post\Post; trait posts{ public function posts($page=0){ $this->fetch(); if($this->admin!=1) throw new \Exception("user didn't have the permission to read group posts"); //prepare the url if(!$this->childs["items"]) $next=$this->id...
true
93fc5cccc82d408f64769a3815a30406a4436845
PHP
limb-php-framework/limb-app-syncman
/src/factory/ProjectSyncFactory.class.php
UTF-8
437
2.515625
3
[]
no_license
<?php lmb_require('limb/classkit/src/lmbObject.class.php'); lmb_require('src/model/RSyncProjectSync.class.php'); lmb_require('src/model/FtpProjectSync.class.php'); class ProjectSyncFactory extends lmbObject { static function create($server_conf, $type_sync = null) { if($type_sync) { if($type_sync == ...
true
00d3de775ca88f6d55f9fd5928cd2832e0a32a05
PHP
macghriogair/laravel-fsm
/src/Named.php
UTF-8
482
2.84375
3
[ "MIT" ]
permissive
<?php namespace Macgriog\StateMachine; use Illuminate\Support\Str; trait Named { /** * @return string */ public static function resolveName() : string { $class = str_replace(['\\'], '', get_called_class()); return Str::snake($class, '-'); } /** * Returns a unique s...
true
33a2ca3473a6ff9e49fefbf3295ccc7d864647cf
PHP
SeijiShii/Kakeibo_app
/kakeibo_app/db/user_db/user_db.php
UTF-8
7,207
2.921875
3
[]
no_license
<?php // ini_set('display_errors', "On"); require_once($_SERVER['DOCUMENT_ROOT'].'/kakeibo_app/secret/db_define.php'); class UserDB { private $db; public function __construct() { $this->db = new mysqli('localhost', DB_USER_NAME, DB_USER_PASS, 'user_db'); if ($this->db->connect_error) { ...
true
9a3818d392988c1299b5dc8a0f9ccd1c8c3f789f
PHP
claremontdesign/zbase
/src/Widgets/Type/FormInterface.php
UTF-8
620
2.578125
3
[]
no_license
<?php namespace Zbase\Widgets\Type; /** * Zbase-Interface Widget Interface * * FormInterface * * @link http://zbase.dennesabing.com * @author Dennes B Abing <dennes.b.abing@gmail.com> * @license proprietary * @copyright Copyright (c) 2016 ClaremontDesign/MadLabs-Dx * @file FormInterface.php * ...
true
1e8f28e6a4ac482b7b1ca2eb3faab0dee020b1fe
PHP
nizarsuryadi89/akademik
/m_ketraport.php
UTF-8
661
2.671875
3
[ "MIT" ]
permissive
<?php //nilai raport $na =((($harian+$uts)/2)+(2*$uas))/3; $raport =round($na,1); //huruf if (($raport>=90) and ($raport <=100)) {$huruf ="A";}else if (($raport>=80.00) and ($raport<=89.99)) {$huruf ="B";}else if (($raport>=70.00) and ($raport<=79.99)) {$huruf ="C";}else if (($raport>=60.0...
true
9696ec8d96d9f33c16de68b2d37376ca116139dc
PHP
sebastianbergmann/phpunit
/src/Runner/TestResult/PassedTests.php
UTF-8
3,107
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php declare(strict_types=1); /* * This file is part of PHPUnit. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPUnit\TestRunner\TestResult; use function array_merge;...
true
f4b0f6bf6c7551f6b1e1d96a917721203db8db4f
PHP
oikenfight/web-md-editor
/laravel/app/Http/UseCases/Contracts/Rack/FindUseCaseInterface.php
UTF-8
615
2.84375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Http\UseCases\Contracts\Rack; use App\Entities\Contracts\RackInterface; use App\Repositories\Contracts\RackRepositoryInterface; /** * Interface FindUseCaseInterface * * @package App\Http\UseCases\Contracts\Rack */ interface FindUseCaseInterface { /** * FindUs...
true
cca15e52f29532d914d13b5351e88f514fb02f35
PHP
kidys/my_courses
/app/Http/CodeHighlight/CodeHighlight.php
UTF-8
534
2.828125
3
[ "MIT" ]
permissive
<?php namespace App\Http\CodeHighlight; /** * Class CodeHighlight * @package App\Http\CodeHighlight */ class CodeHighlight implements ICodeHighlight { /** * @param string $data * @return string */ static public function transform($data) { $data = (string)$data; return pr...
true
c50cffc2f78fff2480e00781a6a3449ef08b617d
PHP
xxxmasmayxxx/reWrite-mvc3101
/Framework/Controller.php
UTF-8
1,781
2.75
3
[]
no_license
<?php namespace Framework; use Model\Repository\FeedbackRepository; class Controller { protected $router; protected $feedbackRepository; protected $session; protected $logger; use PdoTrait; public function setRouter(Router $router) { $this->router = $router; return $this; } p...
true
7dc9b41363ab2dbaa5656ab3e617e31bcbe12f53
PHP
CuscarisunWeb/API
/libs/Conexion.php
UTF-8
1,235
3.5
4
[]
no_license
<?php # Clase creada por Jorge Silva Borda class Conexion{ # propiedades que solo puede usar la clase Conexion private $servidor, $baseDato, $usuario, $password; public $my; # Metodo Conexion que recibe 4 parametros function Conexion($servidor, $baseDato, $usuario, $password) { # se gu...
true
a8a482955831e0d344af3a0438d97858848136e3
PHP
alifirfandi/admin-himadira
/application/libraries/ArticleApiLib.php
UTF-8
1,592
2.796875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class ArticleApiLib { protected $params; protected $table; public function __construct($params) { $this->params = $params; $this->table = "article"; } public function getArticles($id, $tag) { if ($id !== null && $tag !== null) { $whereQuery = " WHERE `id_article` < '$id' AND `id_m_tags` ...
true
242880ce14c3e5e25c2a379e97f194b393783d24
PHP
albertvolkman/app
/vendor/knplabs/github-api/lib/Github/Api/AbstractApi.php
UTF-8
2,535
3
3
[ "MIT" ]
permissive
<?php namespace Github\Api; use Github\Client; use Github\HttpClient\Message\ResponseMediator; /** * Abstract class for Api classes * * @author Joseph Bielawski <stloyd@gmail.com> */ abstract class AbstractApi implements ApiInterface { /** * The client * * @var Client */ protected $cl...
true
fd33dd5346960306c2c1eb55a6e00399a873a1fb
PHP
zhangchenxi2019/easy_cloud
/vendor/zhangchenxi/easy_swoole/src/RPC/Rpc.php
UTF-8
776
2.75
3
[]
no_license
<?php namespace EasySwoole\RPC; use Swoole\Server; class Rpc{ public function __construct(Server $server,$config) { $listen = $server->listen($config['host'],$config['port'],SWOOLE_SOCK_TCP); $listen->set($config['swoole']); $listen->on('connect',[$this,'connect']); $listen->o...
true
831082255fe3f754ca5b170862f9c56514f5b092
PHP
danillos/lumen-aula
/Interfaces/interfaces3.php
UTF-8
928
3.03125
3
[]
no_license
<?php error_reporting(E_ALL); ini_set('display_errors', 1); interface Authentication { public function authenticate(); } class FacebookAuthentication implements Authentication { public function authenticate() { echo 'via facebook'; // logica de autenticar com facebook } } class Goog...
true
6c596d3d9bf018f90631b9fab355a9fda84c26f1
PHP
aoswce/yele-server
/client/client.php
UTF-8
3,248
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2016/12/21 * Time: 16:10 */ define("ROOTPATH",dirname(dirname(__FILE__))); require_once ROOTPATH . '/client/config/config.php'; class Client { private $client; private $securekey; /** * 用于标识商家端 * @var */ private $clien...
true
bfd872132059cf9c4f67bdd02209e3fe2562482e
PHP
synapsestudios/synapse-base
/src/Synapse/Application.php
UTF-8
2,840
2.84375
3
[ "MIT" ]
permissive
<?php namespace Synapse; use Silex\Application as SilexApp; use Silex\Application\SecurityTrait; use Symfony\Component\Console\Command\Command; use Symfony\Component\HttpFoundation\Request; /** * Silex Application extended */ class Application extends SilexApp { use SecurityTrait; /** * Controller i...
true
c6df5aa3273e3551264786f44e0a24060af3198f
PHP
erainzhong/fast_api
/application/api/model/Base.php
UTF-8
2,497
2.546875
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: lzqqdy * Date: 2019/7/17 * Time: 11:18 */ namespace app\api\model; use think\Model; use traits\model\SoftDelete; /** * 基类模型 * Class BaseModel * @package app\api\model */ class Base extends Model { use SoftDelete; //时间格式化格式 const TIME_TYPE = "Y-m-d H:i"; ...
true
7cb33d95f2a83d3bf584edc2667a5dffaf42b1d5
PHP
VitalyVesyolko/text-handler
/tests/Methods/RemoveSymbolsMethodTest.php
UTF-8
800
2.953125
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; class RemoveSymbolsMethodTest extends TestCase { public function testHandle() { $text = <<<HEREDOC Привет, мне на <a href="test@test.ru">test@test.ru</a> пришло приглашение встретиться, попить кофе с <strong>10%</strong> содержанием молока за <i>$5</i>, пойдем вместе! HER...
true
de088df67fa026774cd614b83905ad3b10420108
PHP
AnhMH/ClickBuyCrawler
/competitorcrawler.php
UTF-8
815
2.546875
3
[]
no_license
<?php require 'simplehtmldom/simple_html_dom.php'; require 'database.php'; require 'competitorproduct.php'; ini_set('memory_limit', -1); set_time_limit(-1); ini_set('max_execution_time', -1); function product_crawler($param) { $html = file_get_html($param['link']); $time = time(); $data = array( '...
true
39067f530f571aef543c5f21523b92050df6c43a
PHP
wave-framework/wave
/src/Wave/Debug.php
UTF-8
11,210
2.828125
3
[ "MIT" ]
permissive
<?php namespace Wave; class Debug { private $config; private $queries = array(); private $query_count = 0; private $used_files = array(); private $execution_start; private $checkpoints = array(); private static $instance = null; /** * @return \Wave\Debug */ public sta...
true
90792950f84a0b56b53489ecab446b487eb6079d
PHP
zablockibros/metrc-php
/src/Models/Package.php
UTF-8
5,674
2.84375
3
[]
no_license
<?php namespace MetrcApi\Models; use MetrcApi\Exception\InvalidMetrcResponseException; class Package extends ApiObject { /** * @var null|string */ public $id = null; /** * @var string */ public $tag; /** * @var string */ public $room = null; /** * @va...
true
078a230a3019b0d9e97e8bc45a18740c81ed5992
PHP
RFContracts/laravel
/app/Telegram.php
UTF-8
905
2.59375
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Support\Facades\URL; class Telegram { /** * @param $filename */ public function setMessage($filename) { $bot_api_key = config('config.bot_key'); $api_url = config('config.api_url'); $chat_id = config('config.chat'); $text = U...
true
bb71f022feaa96e1853baf91dd3953da51cdf7c7
PHP
losscrum2/fene
/sil/class/class.clpaginacion.php
UTF-8
7,548
2.5625
3
[]
no_license
<?php require_once( $_SERVER['DOCUMENT_ROOT'] . '/'. $_SESSION["nombresistema"] .'/config/config.configurar.php' ); class clPaginacion { private $strNombrePagina; private $strPaginaActual; private $strPaginaSiguiente; private $strPaginaAnterior; private $strPaginaUltima; private $str...
true
62c0898d9349b062fbc26858e1f31ef10447b162
PHP
CatLabInteractive/charon
/src/Exceptions/IterableExpected.php
UTF-8
491
2.59375
3
[ "MIT" ]
permissive
<?php namespace CatLab\Charon\Exceptions; use CatLab\Charon\Models\Properties\Base\Field; /** * Class IterableExpected * @package CatLab\Charon\Exceptions */ class IterableExpected extends ResourceException { /** * @param Field $field * @param $value * @return IterableExpected */ publi...
true
f43cf5e0e2570a32768eb85d4277e1276992470f
PHP
E-head/E-head
/library/PMS/Staff/Hr.php
UTF-8
5,524
2.625
3
[]
no_license
<?php class PMS_Staff_Hr { protected $_table, $_staffTable; public function __construct() { $this->_table = new PMS_Staff_Hr_Table(); $this->_staffTable = new PMS_Staff_Table(); } public function get($staffId, $date) { $response = new OSDN_Response(); $staffId = ...
true
ddc92b104574338b08e78561fa41b15a6655a21a
PHP
alexeydf/contatosCurupaco
/paginas/contatos.php
UTF-8
949
2.890625
3
[]
no_license
<?php use App\Classes\Contato; if(isset($_GET['situacao'])){ $situacao = $_GET['situacao']; $class1 = ''; $class2 = ''; switch ($situacao) { case '0': $class1 = 'ativo'; $class2 = ''; break; case '1': $class1 = ''; $class2 = 'ativo'; break; default: #...
true