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
def85941ac06ab10cf1cd5f4b70a42ba896a5ab9
PHP
citizenjosh/SiteAnalyzer
/websitescraper.php
UTF-8
2,340
3.125
3
[]
no_license
<?php /** * Retain the LP Chat artifacts of all pages in a given sitemap * * @author jrosenthal@LivePerson.com * @version 1.0 * * @todo throw errors in try/catch blocks to simplify layout */ class websitescraper { /** * Location of the sitemap */ private $sitemap_url; /** * Pages in the websi...
true
c32ef1ff9b5cf0d298279ba466b8e7c3413b85f1
PHP
zholus/allchords
/src/Modules/Accounts/Domain/Users/UserRepository.php
UTF-8
603
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Modules\Accounts\Domain\Users; interface UserRepository { public function nextIdentity(): UserId; public function add(User $user): void; public function existsWithUsername(string $username): bool; public function existsWithEmail(string $email): bool; pu...
true
1a8ef33eef966c551c73c4d32e608d30834cfae1
PHP
live627/shiny-bear
/ShinyBear/Modules/online.php
UTF-8
2,512
2.578125
3
[ "ISC" ]
permissive
<?php namespace ShinyBear\Modules; /** * @package ShinyBear * @since 1.0 */ class online extends Module { public function getTotals() { global $sourcedir, $txt, $user_info; // Get the user online list. require_once($sourcedir . '/Subs-MembersOnline.php'); $membersOnlineOptions = array( 'show_hidden' ...
true
38e8cfdb76cfeeb4b284ac0619808e8a87561d3f
PHP
llannoo/Immosite
/src/ikdoeict/repository/LocationsRepository.php
UTF-8
1,998
2.640625
3
[]
no_license
<?php /** * Created by JetBrains PhpStorm. * User: Lorenzo * Date: 10/07/13 * Time: 20:22 * To change this template use File | Settings | File Templates. */ namespace Ikdoeict\Repository; class LocationsRepository extends \Knp\Repository { /** * @return string */ public function getTableName...
true
1a242921fd47aefb2ec4e5b6e5fb45893abaa625
PHP
vivirenremoto/free-public-api
/api/local_time.php
UTF-8
228
2.546875
3
[]
no_license
<?php // https://stackoverflow.com/questions/11176502/php-get-uk-local-time-from-server-in-different-time-zone if (!$value) { $value = 'Europe/Madrid'; } date_default_timezone_set($value); $result = date("d-m-Y H:i:s");
true
e4b6b82237e0c598359a8574c1752a324aa3ac99
PHP
bastianElgueta/Fiesta
/clases/region.php
UTF-8
371
2.765625
3
[]
no_license
<?php class Region{ private $id; private $nombre_region; function __construct(){} public function getNombre_re(){ return $this->nombre_region; } public function setNombre_re($nombre_region){ $this->nombre_region = $nombre_region; } public function getId(){ return $this->id; } public f...
true
0003132c1e93a55b3cba66ea3c9b67d8587b6587
PHP
jeso20BTH/mvc-dicegame-BTH
/test/Game/GamePlayerTest.php
UTF-8
5,474
2.859375
3
[]
no_license
<?php declare(strict_types=1); namespace Jeso20\Game; use PHPUnit\Framework\TestCase; use Psr\Http\Message\ResponseInterface; /** * Test cases for the controller Debug. */ class GamePlayerTest extends TestCase { /** * Try to create the dicehand class. */ public function testCreateThePlayerClass(...
true
c0123481f8fa611279e581998084a3f71c5f3dbe
PHP
slexx1234/pattern
/src/Tokenizer/Token.php
UTF-8
824
3.15625
3
[ "MIT" ]
permissive
<?php namespace Slexx\Pattern\Tokenizer; class Token { /** * @var int */ protected $offset; /** * @var string */ protected $content; /** * @var int */ protected $type; /** * @param int $offset * @param string $content * @param int $type ...
true
8af9f5f5567b64c64d2e3c2ef92e7bfeb6534d22
PHP
katheroine/xseeker
/test/EntryCollectionTest.php
UTF-8
5,208
2.921875
3
[]
no_license
<?php require_once dirname( __FILE__ ) . '/../application/EntryCollection.php'; /** * Test class for EntryCollection. */ class EntryCollectionTest extends PHPUnit_Framework_TestCase { /** * RSS channel URL. */ const RSS_FEED_URL = 'http://xlab.pl/feed/'; /** * EntryCollection instance. * * @var Entr...
true
14eb9accea8d2f00014ae579f6feeadf4317e12a
PHP
cvmiller/expect-lite
/el_run.php
UTF-8
7,157
2.59375
3
[ "BSD-3-Clause" ]
permissive
<html> <head> <?php // Expect-lite web runner v0.9 // by Craig Miller 30 January 2013 // // Updated 5 Feb 2013 - v0.91 // Added defaults, and dir listing // // Updated 6 Dec 2013 - v0.92 // Updated with checkbox for script help // Added dir sorting, and 'view' link // // Updated 8 Dec 2013 - v0.93 // Upda...
true
31d1b89cc2016c547d79c51cd2e1f2bf330b428a
PHP
nenitf/poc_consultana-core
/UseCases/Agendamento/CadastroMedico.php
UTF-8
1,317
2.75
3
[]
no_license
<?php namespace Core\UseCases\Agendamento; use Core\Exceptions\{ AppException, ValidationException, }; use Core\UseCases\Agendamento\CadastroMedicoDTO; use Core\Models\{ Medico, HorarioDisponivel, }; use Core\Contracts\Repositories\{ IMedicosRepository, }; class CadastroMedico { private $m...
true
bd8109f01a34e6db72e09de8830d4c6b8d51b774
PHP
ARCANEDEV/Support
/tests/Stubs/FormRequestController.php
UTF-8
1,521
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Arcanedev\Support\Tests\Stubs; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Routing\Controller; /** * Class FormRequestController * * @author ARCANEDEV <arcanedev.maroc@gmail.com> */ class FormRequestController extends Controller { /* ------------...
true
605be6508f49dea1cd88f5f9e31c55fb6cc9a343
PHP
fortran95/xionline
/cryptsuites/1/pkciphers/RSA.php
UTF-8
3,889
2.8125
3
[]
no_license
<? register_pkcipher('RSA','PKC_RSA'); class PKC_RSA implements PublicKeyCipher{ private $isInitialized = False; private $canSign = False; private $canVerifySign = False; private $canEncrypt = False; private $canDecrypt = False; public function __construct($datablock='',$passphrase=''){ ...
true
5541de4bb6f06acec15f0a66a9eeb16793418a98
PHP
Trismegiste/videodrome
/src/Chain/MetaImpl.php
UTF-8
617
2.59375
3
[]
no_license
<?php namespace Trismegiste\Videodrome\Chain; /** * Implementation of metadata */ trait MetaImpl { protected $metadata; /** @see Media */ public function getMeta(string $key) { if (!array_key_exists($key, $this->metadata)) { throw new \OutOfBoundsException("Unknown key '$key'"); ...
true
a0c45e25b2ee270a45b816862d0135248d840540
PHP
neone4you/neonesys
/api/aModel.php
UTF-8
10,140
3.046875
3
[]
no_license
<?php /** * Работа с мета-данными * @author neone * */ class appModelHelperMeta { private $data = array(); /** * * @param string $meta_str Данные из поля с мета-данными из таблицы */ public function __construct($meta_str) { if(!($meta && strpos($meta_str, ':')>0)) return; $data = un...
true
17d02f0665f2de192ee10b469eb20e668bf1dae3
PHP
Globlock/Version0
/ServerSide/Superseded_19-MAY-2014/globeHandler.php
UTF-8
8,838
2.53125
3
[]
no_license
<?php /* Globe Handler for File Access API - Globlock Filename: globeHandler.php Version: 1.2 Author: Alex Quigley, x10205691 Created: 04/03/2014 Updated: 07/04/2014 Dependencies: FileAccessAPI.php (parent) Description: Handles globe requests, such as globe validation Only accessed with valid SESSION and USE...
true
ca5d6795ba0dfc2dbdf9eab81f751809a102d1de
PHP
carlos-bermudez1982/hardware-store
/app/Http/Controllers/MessagesController.php
UTF-8
2,624
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Message; use App\Events\MessageRecieved; use Illuminate\Support\Facades\Cache; class MessagesController extends Controller { public function __construct() { $this->middleware('auth', [ 'except' =>...
true
8c8f10dea9129b65410b87ee5d522d58b0758a07
PHP
gcilinskas/stream
/src/Service/MovieService.php
UTF-8
3,165
2.5625
3
[]
no_license
<?php namespace App\Service; use App\Entity\Movie; use App\Entity\User; use App\Repository\MovieRepository; use DateTime; use Doctrine\ORM\EntityManagerInterface; use Exception; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\Filesystem\Filesystem; /** * Class MovieService */ ...
true
073b77cbfe53650abdb7035682bf632770510c50
PHP
GOCDB/gocdb
/tests/doctrine/resources/sampleFixtureData2.php
UTF-8
5,723
2.8125
3
[ "Apache-2.0" ]
permissive
<?php /* * Include this file in your tests in order to persist a set of known fixuture data * for subsequent use in testing. * * @author David Meredith */ /* * Entity graph is as follows (<IScopedEntity> can be subsituted for NGI, Site, Service, ServiceGroup): * * <IScopedEntity0> * - * * <IScopedEntity1> ...
true
b41996657fd2d37ca06e6d91f30d3a180831faf5
PHP
kdsssr/MyMoviesList
/mymovieslist/index.php
UTF-8
17,090
2.515625
3
[]
no_license
<?php // Auteur : De Sousa Kevin // Nom : MyMoviesList // Date : 16 Juin 2017 // Contrôleur session_start(); require './vue/fonctionsAffichage.php'; require './modele/fonctionsAPI.php'; require './modele/fonctionsDB.php'; $etat = ""; // Notifications $mvc = true; // Variable qui...
true
87f751d5b71b5651f760c737df727f87743e41b4
PHP
studio-404/trade
/functions/file_manipulate.php
UTF-8
223
2.65625
3
[]
no_license
<?php if(!defined("DIR")){ exit(); } class file_manipulate{ function __destruct(){ } public function insertLog($text){ $file = fopen('log.txt', 'a+'); fwrite($file, $text."\n"); fclose($file); } } ?>
true
923da359a802871d4923a1427b5fe2c50e0da183
PHP
kevinsudut/laravel-repository-pattern
/app/Domains/Product/CategoryRepository.php
UTF-8
726
2.65625
3
[ "MIT" ]
permissive
<?php /** * @author Kevin Surya Wahyudi <kevinsuryaw@gmail.com> * * Copyright © 2018 | All rights reserved. */ namespace App\Domains\Product; use App\Domains\Core\Repository; use App\Model\Product\Category; use Illuminate\Database\Eloquent\Model; class CategoryRepository extends Repository { /** * Cons...
true
746e56248fb6e8ceb3f5d7a34638005cb2eb38e4
PHP
progj12/TurboCommons
/TurboCommons-Php/src/main/php/managers/LocalesManager.php
UTF-8
9,289
2.5625
3
[ "Apache-2.0" ]
permissive
<?php /** * TurboCommons is a general purpose and cross-language library that implements frequently used and generic software development tasks. * * Website : -> http://www.turbocommons.org * License : -> Licensed under the Apache License, Version 2.0. You may not use this file except in compliance with the ...
true
30d3f217bbbc23103666ae08801710792eb112d7
PHP
bradclegg22/cs313-php
/web/hello/Team02.php
UTF-8
379
2.71875
3
[]
no_license
<?php $name = $_POST["Name"]; $email = $_POST["Email"]; $major = $_POST["Major"]; $comments = $_POST["Comments"]; $countries = $_POST["Loc"]; ?> <html> <head> <title> Team02 php </title> </head> <body> <?php echo $name; echo $email; echo $major; echo $co...
true
c43c4b25c90d79420cae49a4c6a4fa1286c897fe
PHP
openmetrics-php/exposition-text
/src/Collections/AbstractMetricCollection.php
UTF-8
1,298
3.078125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace OpenMetricsPhp\Exposition\Text\Collections; use OpenMetricsPhp\Exposition\Text\Interfaces\CollectsMetrics; use OpenMetricsPhp\Exposition\Text\Interfaces\NamesMetric; abstract class AbstractMetricCollection implements CollectsMetrics { /** @var NamesMetric */ private $metric...
true
d5e0cae18b8b6ff7659f6afa461f2656a0bd6493
PHP
chunpat/lumen-admin
/app/Repositories/Transformers/UserSettingTransformer.php
UTF-8
779
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Transformers; use App\Repositories\Models\UserSetting; use League\Fractal\TransformerAbstract; class UserSettingTransformer extends TransformerAbstract { /** * Prepare data to present. * * @param UserSetting $userSetting * @return array */ public function t...
true
c744be4505cc39b7cc5b433a99b39c4acaa8ac6b
PHP
perepechaev/Brandobred
/lib/anuran/model/file/FileListCache.class.php
UTF-8
2,748
2.984375
3
[]
no_license
<?php require_once(PATH_MODEL . '/file/FileListCacheException.class.php'); class FileListCache { private $result; private $fileList; private $expiration; private $method; private $cacheFile; static private $results = array(); public function setCacheFile($filename){ $dir ...
true
411a532856a444c8af7725ee5ca8a41f32260106
PHP
gtenham/gertonscorner
/SlimRestServer/app/services/MessageService.php
UTF-8
680
2.890625
3
[]
no_license
<?php namespace services; /** * Message service class * * @package services * @author Gerton * */ class MessageService { private $connection; /** * MessageService default constructor */ public function __construct() { $this->connection = new \amqphp\Stomp('tcp://localhost:61613'); } public func...
true
44241686ca2392db28bfa22890060f508f4a5e83
PHP
booleandream/super_refinery
/csvProcess.php
UTF-8
4,082
2.9375
3
[]
no_license
<?php //This code should be in top of every secure page. include 'secure.php'; checkSession(); include 'connection.php'; include 'date.php'; function isValidParty($party){ return true; //as a test purpose this functionality is off now. $validParty = "DMD DHAKA SHEHAB FMC EL...
true
7f51f2e925ce81699b2e1a017fa61e75f1b4e917
PHP
martinhipp/TodoPHP
/app/framework.php
UTF-8
5,168
2.703125
3
[ "MIT" ]
permissive
<?php if ( ! defined('PHP_VERSION_ID') or PHP_VERSION_ID < 50300) { error(500, 'TodoPHP requires PHP 5.3+'); } function error($code = 500, $message = 'Internal Server Error') { if (php_sapi_name() !== 'cli') { @header("HTTP/1.0 {$code} {$message}", true, $code); } die("Error {$code}: {$message}\n"); } functi...
true
08261311292cf65f71476ded5c3a0a31d1fe290a
PHP
stilero/plg_stileospfacebookgroup
/library/fblibrary/fboauth/accesstoken.php
UTF-8
4,084
2.78125
3
[]
no_license
<?php /** * Access token class * * @version 1.0 * @package Stilero * @subpackage class-oauth-fb * @author Daniel Eliasson <daniel at stilero.com> * @copyright (C) 2013-okt-03 Stilero Webdesign (http://www.stilero.com) * @license GNU General Public License version 2 or later. * @link http://www.stilero.com *...
true
d98d1cd9ce0cede23bab8abbb20a8ffa4e21ab58
PHP
max-dark/useless-dev
/useless/abstraction/Response.php
UTF-8
656
2.765625
3
[ "MIT" ]
permissive
<?php /** * @copyright Copyright (C) 2016. Max Dark maxim.dark@gmail.com * @license MIT; see LICENSE.txt */ namespace useless\abstraction; interface Response { public function setHeader(string $header, string $value):Response; public function setHeaders(array $headers):Response; public function get...
true
83008194f2a6997a028e6467a21e241d6713c48d
PHP
pauloricardo/easyui-demo
/config/db.php
UTF-8
344
2.8125
3
[]
no_license
<?php include_once 'IDB.php'; class DB implements IDB{ public static function connect($host,$dbname,$user,$password){ try{ $connection = new \PDO("mysql:host={$host};dbname={$dbname}","{$user}","{$password}"); return $connection; }catch(\PDOException $e){ echo $e->getMessage();...
true
b906146ef99042206d6653cde1dcf24a7b7f652e
PHP
Pistolebob/spotweb
/dbeng/db_mysql.php
UTF-8
3,091
3.046875
3
[]
no_license
<?php # a mess require_once "dbeng/db_abs.php"; class db_mysql extends db_abs { private $_conn; function __construct($host, $user, $pass, $db) { $this->_conn = mysql_connect($host, $user, $pass); if (!$this->_conn) { die("Unable to connect to MySQL db: " . mysql_error($this->_conn)); }...
true
e9c0cf7d2bd34ecbbb740f4874c3ab1a747b63ea
PHP
livet01/corrigeaton
/src/Corrigeaton/Bundle/ReportBundle/Event/ReportEvent.php
UTF-8
839
2.734375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: hugo * Date: 18/09/14 * Time: 14:17 */ namespace Corrigeaton\Bundle\ReportBundle\Event; use Symfony\Component\EventDispatcher\Event; class ReportEvent extends Event{ protected $class; protected $log; public function __construct($class, $log) { $...
true
0f8dd5fd07f2caa9f30d2f8a36cc80d1fa06c012
PHP
Qzich/learn-refactoring
/helpers/Autoloader.php
UTF-8
389
2.78125
3
[]
no_license
<?php namespace helpers; /** * Simple autoloader class. * * @author Kuzich Yurii <qzichs@gmail.com> */ class Autoloader { public static function load($className) { $classFile = str_replace('\\', DIRECTORY_SEPARATOR, $className) . '.php'; if (file_exists($classFile)) { ob_start(); ...
true
d0dfb7289155bbdf25f23d863c318bff99b8de51
PHP
lotus01223/hmvc
/database/migrations/2017_02_13_035053_create_education_master_table.php
UTF-8
696
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateEducationMasterTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('educati...
true
960144911e27d3fea6af5556057a10913f1b5103
PHP
rhyshall/RecipeFish
/utilities/recipePhotoUtilities.php
UTF-8
1,863
2.828125
3
[]
no_license
<?php /****************************************************************************************** ******************************************************************************************* ** Name: recipePhotoUtilities.php **** ** Description: Provides helper functions for "recipePhotoController.php"...
true
628a602113ace5445dc26f3dec3a24e1d73ebad8
PHP
FindMyFriends/api
/Tests/Integration/Domain/Access/ValidReminderRuleTest.php
UTF-8
2,395
2.625
3
[]
no_license
<?php declare(strict_types = 1); namespace FindMyFriends\Integration\Domain\Access; use FindMyFriends\Domain\Access; use FindMyFriends\Misc; use FindMyFriends\TestCase; use Tester\Assert; require __DIR__ . '/../../../bootstrap.php'; /** * @testCase */ final class ValidReminderRuleTest extends TestCase\Runtime { ...
true
ef4ea9adf04c2abd70381686c205ca2ae6d2c529
PHP
Solayter/Chess-Project
/class/Storage.php
UTF-8
140
2.703125
3
[]
no_license
<?php interface Storage { function newBoard($figures,$gameID); function save($figures,$gameID); function load($gameID); }
true
66a49292711f60f9123b54968de5b421ea462493
PHP
arual777/logistica
/model/VehiculosModel.php
UTF-8
3,722
2.59375
3
[]
no_license
<?php class VehiculosModel { private $database; public function __construct($database) { $this->database = $database; } public function obtenerEstadosDeDisponibilidad(){ return $this->database->query("SELECT *,descripcion as posicion FROM Estado_Vehiculo"); } public func...
true
0f6c9235b15000e73629a21753a4372f29c7926e
PHP
moutb/personal-gym
/old/gestionProductos/productControllerBD.php
UTF-8
1,636
2.6875
3
[]
no_license
<?php function consultarTodosProductos($conexion) { $consulta = "SELECT * FROM PRODUCTO"; return $conexion->query($consulta); } function insertar_producto($conexion,$idProducto,$Nombre,$Stock) { try { $stmt=$conexion->prepare('CALL INSERTAR_PRODUCTO(:ID_PRODUCTO,:NOMBRE,:STOCK)'); $stmt->bindParam(':ID_PROD...
true
e2e429dac610fce1a842e70be2ca5e2183c44748
PHP
IceRace/boiteasouvenirs
/secret/conf/fonctions.php
UTF-8
2,073
2.84375
3
[]
no_license
<?php function convertPrix($val) { $retval=$val; $retval=str_replace(",",".", $retval); $retval = preg_replace('/€$/', '', $retval); $retval=str_replace("€",".", $retval); return $retval; } function deConvertPrix($val) { $retval=$val; $retval = number_format($retval,2,',',""...
true
d08267bb56d4cb5a00cd1b289282a04de595a444
PHP
salimrahal/MyWorkPublic
/Php/PhpFundamentals/MyLibraries/string/singleQuote/singlequote.php
UTF-8
1,320
3.421875
3
[]
no_license
<!-- To change this template, choose Tools | Templates and open the template in the editor. Single quoted The simplest way to specify a string is to enclose it in single quotes (the character '). To specify a literal single quote, escape it with a backslash (\). To specify a literal backslash, double it (\\). All o...
true
77088c8f35ff43ecaaa4edcac77e02dcd9af297c
PHP
bloxxyyy/WebApp_BachelorsEdu_YearOne
/Controllers/RegisterForm.php
UTF-8
5,965
2.59375
3
[]
no_license
<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\Exception; class RegisterForm extends Controller { public function Pagina() { // if hash is all geactiveerd redirect. if (!Authorization::IsHashActivated()) { header('Location: /Home'); ...
true
a1a13bd0db3f21c8e645a562cbcbfd1d6ce123b1
PHP
martinhagocreative/Clinica_Femme
/application/cms/mvc/model/auth/AuthFactory.php
UTF-8
831
2.875
3
[]
no_license
<?php /** * Classes e objetos relacionados com a autenticação da aplicação * @package cms.mvc.model.auth */ /** * Interface para definição de uma fábrica abstrata para * criação das Autenticações da aplicação. * @author mauricio */ interface AuthFactory { /** * Autentica e grava as sessões do usuário auten...
true
69a3686656a50c8ad31c09340af4aa7bfa9e32bb
PHP
mosdragon/evertext
/lib/database.php
UTF-8
699
2.625
3
[]
no_license
<?php require_once(__DIR__.DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."config".DIRECTORY_SEPARATOR."config.php"); try { $db = new PDO("mysql:host=$db_server;dbname=$db_database", $db_username, $db_password); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch(PDOException $e) { ...
true
36b272a129b82da450350f838e5d29bf230c89a9
PHP
SuperProjectX/my-imouto-booru.newer
/lib/Rails/UrlToken.php
UTF-8
1,168
2.859375
3
[]
no_license
<?php class Rails_UrlToken { const SEPARATOR = '#'; private $_controller; private $_action = 'index'; public function __construct($token) { is_array($token) && vde($token); if (is_bool(strpos($token, self::SEPARATOR))) Rails::raise('Rails_UrlToken_Exception...
true
5e41a6f4ccf9050ad9a25aa0a8893e05a20b9bed
PHP
dschoenbauer/my-orm
/src/MyOrm/Adapter/Filter.php
UTF-8
2,269
2.53125
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. */ namespace CTIMT\MyOrm\Adapter; use CTIMT\MyOrm\Entity\HasFilterInterface; use CTIMT\MyOrm\Enum\LayoutKeys; use CTIMT\MyOrm\Enu...
true
19cfeee9160c0fffb0a2a6f68d0e6ac937a85b33
PHP
chandansingh123/adminpanel
/auction/app/Services/TopBidService.php
UTF-8
2,707
2.8125
3
[]
no_license
<?php namespace App\Services; use App\Repositories\TopBid\TopBidContract; use Carbon\Carbon; use Illuminate\Support\Facades\DB; use App\Exceptions\DBTransactionException; /** * Class TopBidService * @package App\Services * @author Krishna Prasad Timilsina <bikranshu.t@gmail.com> */ class TopBidService { /**...
true
daf591d22116ae7e36601c7655be2d15bd48d638
PHP
remiafpa70/CoursPHP
/coursPHP240820exos4/Employes.php
UTF-8
1,403
3.421875
3
[]
no_license
<?php Class Employes { private $nom; private $prenom; private $age; public function __construct($nom,$prenom,$age){ //création d'un construcetur en java $this->setNom($nom); $this->setPrenom($prenom); $this->setEmail($age); } public function setNom($nom){ ...
true
11be14d529ea6f76782064ae8febcf502252b4dc
PHP
KevinAlberca/Sup_ORM
/game/Core/CanFightInterface.php
UTF-8
227
3.03125
3
[]
no_license
<?php namespace Core; interface CanFightInterface { public function attack(CanFightInterface $target); public function takeDamage($damage); public function getName(); public function getHp(); public function isAlive(); }
true
fe960a67b24ba6f9f04ef96cd4e659e22bcda60c
PHP
badzongoly/hems
/controllers/auth/forget_pwd.php
UTF-8
1,774
2.71875
3
[]
no_license
<?php require_once('../../classes/Password.php'); require_once('../../classes/Notification.class.php'); require_once('../../classes/Authentication.class.php'); /** * Created by PhpStorm. * User: Jude * Date: 1/12/2018 * Time: 9:37 AM * Controller for handling forgot password requests from users */ $auth = new Au...
true
797e2018aa0cb685d86c12f14b59ea486230ed36
PHP
nasirovv/test-task
/app/Http/Controllers/UserController.php
UTF-8
1,360
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Requests\UserRequest; use App\Http\Resources\UserResource; use App\Models\User; use Illuminate\Http\Request; class UserController extends Controller { public function index() { return UserResource::collection(User::all()); } public function...
true
1c8fe05b2b086f004f6f8e8eb9d274fb36db4cba
PHP
radavach/Biblioteca
/app/Console/Commands/NotificarUsuario.php
UTF-8
1,314
2.53125
3
[]
no_license
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use App\libroEM; use App\Mail\Cliente; use Illuminate\Support\Facades\Mail; class NotificarUsuario extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'clien...
true
63263b357c8f3c943186bd91e44d0bc4c911df3b
PHP
santimoral/finance
/includes/lo/slider/php/4tier-categories.php
UTF-8
2,321
2.5625
3
[]
no_license
<!DOCTYPE html> <head> </head> <style> body { font-family: UbuntuRegular, 'Lucida Grande', Calibri, Arial, sans-serif; font-size: 14px; width: 100%; color: #666; background-color: #f2f2f2; } table { border-collapse: collapse; } table, th, td { border: 1px solid #ccc; } th { background-color: #333; color:...
true
22a82e1db3f3c0856bab72b153df0cba1005ce73
PHP
ogarmela/itc261
/finalproject/people-view.php
UTF-8
1,997
2.640625
3
[]
no_license
<?php // people-view.php include('config.php'); include('includes/header.php'); if(isset($_GET['id'])) { $id = (int)$_GET['id'] ; } else { header('Location:people.php'); } $sql = 'SELECT * FROM Finals WHERE FinalsId = '.$id.''; $iConn = mysqli_connect(DB_HOST,DB_USER,DB_PASSWORD,DB_NAME) or die(m...
true
f710dd097081e45e99bfb4c88939eadd4c08427a
PHP
StefanLatychev/yikyak_clone
/models/database/authentication.php
UTF-8
5,235
3.03125
3
[]
no_license
<?php require_once("postgres.php"); /* * Insert given session key into the active session key list. Return true on * success, false otherwise. */ function dbInsertSessionKey($session_key, $user_id) { $dbconn = dbConnect(); $success = false; // TODO(sdsmith): check that user does not have 2 api keys! $prepar...
true
2513ed013debadc34eb78231f2de17c1d0892a77
PHP
GabenTR/Skynet
/scripts_bdd/messages.php
UTF-8
1,908
2.828125
3
[]
no_license
<?php function createTableMessage($bdd, $conversation) { $sql = "CREATE TABLE Message". $conversation ." (idMessage int PRIMARY KEY NOT NULL, contenu text NOT NULL, pseudo int NOT NULL, datePost date NOT NULL, heurePost time NOT NULL, conversation int NOT NULL)"; //$reponse = $bdd->prepare($sql); $reponse = $bd...
true
1a412f7792782ef76fda8c95cbc47fbe9a16a2ad
PHP
Neography7/Laravel-EasyResponse
/tests/EATest.php
UTF-8
1,310
2.546875
3
[ "MIT" ]
permissive
<?php namespace Neography7\EasyResponse\Tests; use Neography7\EasyResponse\EA; use Neography7\EasyResponse\EasyResponse; use Neography7\EasyResponse\Tests\TestCase; class EATest extends TestCase { /** * @test * * @dataProvider \Neography7\EasyResponse\Tests\SuccessDataProvider::successData() ...
true
e5130e00d82eb628c0c98149d67a66c929227ce3
PHP
PawelBystrzejewski/RezerwacjePKP
/RezerwacjePKP/src/ReservationBundle/Entity/User.php
UTF-8
2,211
2.6875
3
[]
no_license
<?php // src/AppBundle/Document/User.php namespace ReservationBundle\Entity; use FOS\UserBundle\Model\User as BaseUser; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name="fos_user") */ class User extends BaseUser { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\Generate...
true
d7a38cb96034946b37ff1aa7c63ec397d7ec8cd2
PHP
Gimanh/ZXC_PHP
/src/tests/LogTest.php
UTF-8
3,515
2.546875
3
[ "MIT" ]
permissive
<?php use PHPUnit\Framework\TestCase; use ZXC\Interfaces\Psr\Log\LogLevel; use ZXC\Native\Log; use ZXC\Native\Modules; class LogTest extends TestCase { public $logFileName = 'test_log_file_zxc.log'; public $filePath = ''; public function __construct(?string $name = null, array $data = [], $dataName = '...
true
a24bafa54dfac77f4b3e81c8b11d3c23aa504a3c
PHP
gonza18lopez/HabboAPI
/src/Exceptions/HabboNotFoundException.php
UTF-8
442
2.71875
3
[ "MIT" ]
permissive
<?php namespace Gonza18Lopez\HabboAPI\Exceptions; /** * Manejador de errores cuando no se encuentre * el Habbo específicado en dicho hotel. * * @license MIT * @package Gonza18Lopez\HabboAPI\Exceptions\HabboNotFoundException */ use Exception; class HabboNotFoundException extends Exception { public function __...
true
6e68e36d3a075a9b42db0e147371e7bcee922ec6
PHP
Kevin-Romero/System-inventary
/php/alta-proveedor.php
UTF-8
1,051
2.515625
3
[]
no_license
<?php include_once 'include/cn.php'; $nombre = $_POST['nombre']; $direccion = $_POST['direccion']; $telefono = $_POST['telefono']; if(repetido($nombre, $conexion) == 1){ echo '<script> alert("ERROR: El proveedor ya esta registrado"); window.history.go(-1); </script>'; }else{ if(is_numeric($telefono)...
true
bf9130e6aabf68794b512a438e38b439b0c271a6
PHP
colincronin/imeter
/newconversation.class.php
UTF-8
1,410
3.28125
3
[]
no_license
<?php # Construct the bill addition class class newconversation { public $date; public $tick; public $topic; function __construct($d,$t,$topic) { $this->date = $d; $this->tick = $t; if($topic==NULL) { $topic = 'Uncategorized'; } $this->topic = $topic;...
true
354af98d6d966f4ab110701aa497d410c2a600f7
PHP
EmillkaakillmE/PhpConspects
/OOP/InterfaceTraitAbstract/index.php
UTF-8
4,400
3.734375
4
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Интерфейсы, трейты и абстрактный класс</title> </head> <body> <h2>Интерфейсы</h2> <p> В PHP отсутствует множественное наследование. Нельзя одному классу наследовать сразу 2-3 или более классов. </p> <?/* class Parent1{ function...
true
58a42b3d29bc94819dd9c8069e03f384643e0aa4
PHP
fchly1/heart
/heart/libs/app.php
UTF-8
1,786
2.5625
3
[]
no_license
<?php /* * 应用模块 * @copyright (C) 2016 Heart * @author maoxiaoqi <zl8762385@163.com> <qq:3677989> * * 您可以自由使用该源码,但是在使用过程中,请保留作者信息。尊重他人劳动成果就是尊重自己 * */ namespace heart\libs; use heart\libs\uri as uri; use heart\libs\router as router; class app { /* * 初始化 * @return void * */ ...
true
82a017bcf9d2c6add17a49db6afdb36a453cfc34
PHP
hjgonzalez06/webCampus
/Enrollment/secciones.php
UTF-8
417
2.640625
3
[ "MIT" ]
permissive
<!DOCTYPE html> <!-- Código fuente desarrollado por Franklin Moreno e Hiram González Contacto: hiramjgonzalez98@gmail.com cfranklinmoreno@gmail.com --> <?php require_once "../Config/course/materia.php"; $materia = new materia($_POST["codigo"]); $secciones = $materia->show_sections(); foreach ($secc...
true
2021fa3d7dec56a8d9820585492d3aef624dea95
PHP
ryoya-07070/training_2020
/PHP入門編/#004 chapter4-5.php
UTF-8
206
3.046875
3
[]
no_license
<?php // 今回は自力で全部書いてみよう! $input = trim(fgets(STDIN)); $array = explode(",",$input); $num = count($array); for($i = 0; $i < $num; $i++){ echo $array[$i]."さん\n"; } ?>
true
c3ec4aa0bd1a93c515f603b6b38ffe8194686b1b
PHP
5852305/blog
/app/Repository/UsersRepository.php
UTF-8
429
2.640625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: apple * Date: 2017/1/2 * Time: 下午3:58 */ namespace App\Repository; use App\User; class UsersRepository { /** * @param $info * @return static */ public function store($info) { return User::create($info); } /** * @param $id...
true
aa7048b03e64f448f7255e0732a7338775b7a1fa
PHP
PADTech2020/share
/app/Http/Middleware/Localization.php
UTF-8
598
2.84375
3
[]
no_license
<?php namespace App\Http\Middleware; use Closure; class Localization { protected const ALLOWED_LOCALIZATIONS = ['en', 'ar', 'tr']; /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function ha...
true
0dbe8658fdf61696cdf0a547b8043b717faef3e6
PHP
d630/playground-php
/corg2/src/Model/Db/Auth/Request/StandardRequest.php
UTF-8
927
2.640625
3
[]
no_license
<?php declare(strict_types=1); namespace D630\Corg\Model\Db\Auth\Request; use D630\Corg\Model\Db\Db; use D630\Corg\Request\StandardRequest as PStandardRequest; class StandardRequest extends PStandardRequest implements StandardRequestInterface { public function getEmployee(?string $nickname, ?string $entityType)...
true
be68ffe7684e76290f49d3bb5b6b8d583a5a6d50
PHP
wfcz10086/phpvpn
/web_admin_code/classes/runnerldap.php
UTF-8
5,645
2.984375
3
[]
no_license
<?php /** * Class for display admin_rights_list * */ class RunnerLdap { var $ldap_domainName = ''; var $ldap_serverIP = null; var $ldapconn = null; var $ldapbind = null; var $ldap_useCustom = false; function RunnerLdap($aDomainName, $aServerIP, $useCustom) { $this->ldap_domainNa...
true
24189b526a0f2807997541e03f54b4a542f68445
PHP
CoderLifestyle/SclSocketDropcatcherFriendly
/src/SclSocket/Socket.php
UTF-8
4,134
3.234375
3
[ "MIT" ]
permissive
<?php /** * SclSocket Module (https://github.com/SCLInternet/SclSocket) * * @link https://github.com/SCLInternet/SclSocket for the canonical source repository * @license http://opensource.org/licenses/MIT The MIT License (MIT) */ namespace SclSocket; /** * The socket class which provides read and write access t...
true
91b391820e5081bffad316ad4e2cf818cf0c2871
PHP
pscheit/psc-cms-word
/lib/Psc/PHPWord/Invoice.php
UTF-8
8,803
2.609375
3
[]
no_license
<?php namespace Psc\PHPWord; use Webforge\Accounting\InvoiceItems; use Webforge\Accounting\Price; use Webforge\Accounting\Invoice AS InvoiceData; use Psc\PHPWord\Helper as h; class Invoice extends MainTemplate { protected $invoice; protected $data; protected $person; protected $recipient; protecte...
true
a5a254f5b1fac774d94b62d4f90a2beffafedd5d
PHP
877933/job
/frontend/shortcodes/cs_quotes.php
UTF-8
2,848
2.515625
3
[]
no_license
<?php /* * Start function for quotes front end view */ if (!function_exists('jobcareer_quotes_shortcode')) { function jobcareer_quotes_shortcode($atts, $content = "") { $divider_div = ''; $defaults = array( 'column_size' => '', 'quotes_style' => 'default', 'cs...
true
902af5104d997229cee761d40f46fbc1fc120fb0
PHP
UNC-L2INFO/SeriousGame
/Quizz/controleurs/succes_creer_C.php
UTF-8
2,123
2.53125
3
[]
no_license
<?php require 'modeles/succes_creer_C.php'; /* Initialisation */ $exit = false; $vide = false; /* Vérification champs vides */ /*if ( strlen($_POST['ndc']) == 0 OR strlen($_POST['mdp']) == 0 OR strlen($_POST['pseudo']) == 0 OR strlen($_POST['prenom']) == 0 OR strlen($_POST['nom']) == 0...
true
c50e118ff0859a967a39fdef7122ec631eebf9b2
PHP
ezhor/Grumpy-World
/Server/model/EnemigoSimplificadoModel.php
UTF-8
2,202
2.8125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: ezhor * Date: 24/02/2018 * Time: 21:31 */ /* INFO: ESTA CLASE ES UNA VERSIÓN SIMPLIFICADA DEL ENEMIGO. SE USARÁ CUANDO SE ENVÍEN LOS DATOS DEL ENEMIGO AL JUGADOR. NO INTERESA QUE EL JUGADOR CONOZCA TODOS LOS DATOS DEL ENEMIGO, SOLO QUIÉN ES, SU NIVEL Y SI ES J...
true
672f4a37399b7d7471b8990e546d7cb581433c9b
PHP
luanpcweb/calculator
/app/Repositories/CalculatorRepository.php
UTF-8
603
2.765625
3
[]
no_license
<?php namespace App\Repositories; use App\Models\Calculator; use Illuminate\Support\Facades\DB; class CalculatorRepository { public function save(Calculator $calculator) { try { DB::insert("INSERT INTO calculator(ip, timestamp, operation, result, bonus) VALUES (?,?,?,?,?)", [ ...
true
f9460f55be5a5aadd3899c05adbd563fd0c20dfb
PHP
giairomauro/ProgettoVenditaPiccolaNegozianti
/Implementazione/MVCOnline/application/models/buy.php
UTF-8
9,018
3.125
3
[]
no_license
<?php class BuyModel extends PDO { /** * @var Connection variabile della connessione */ private $connection; /** * Admin constructor Contruttore che imposta la connessione */ public function __construct() { require_once 'application/models/connection.php'; $this...
true
21ec9cc1df5a8cef2d3b064358e3db2436691603
PHP
opussf/Hydra
/webCode/future.php
UTF-8
4,130
2.796875
3
[]
no_license
<?php # # https://google-developers.appspot.com/chart/interactive/docs/gallery/candlestickchart # error_reporting(1); $fIn = "future.json"; $futureData = json_decode( file_get_contents( $fIn ) ); $graphSizes = array( "small" => array( "x" => 1400, "y" => 200 ), "normal" => array( "x" => 1400, "y" => 320 ), "mi...
true
d66de32dd896fe5c26c483ccb3ec1f1ad36e4c2d
PHP
isocum/enuygunodev
/src/api/Provider1Reader.php
UTF-8
833
2.84375
3
[ "MIT" ]
permissive
<?php namespace App\api; use App\Entity\Provider; use Symfony\Component\HttpClient\HttpClient; class Provider1Reader implements TodolistReader { public function read(Provider $provider) { $tasks = array(); //data çek $client = HttpClient::create(); $response = $client->requ...
true
14739e0ea18035820312a78e0985b13186e0bee2
PHP
daniyar1986/PHP
/InterfaceExample.php
UTF-8
509
3.703125
4
[]
no_license
<?php interface InterfaceExample{ public function getName(); } interface SecondInterface{ public function getStatus(); } interface ThirdInterface extends InterfaceExample, SecondInterface{ } class Test implements ThirdInterface { public $name = "Danik"; public $status = "Admin"; public func...
true
8a18d69753960e93e2dfca33354bfbe2098d62aa
PHP
osamakhawar93/academicwriter
/app/Services/EmailTemplateService.php
UTF-8
1,904
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Services; use Validator; use Session; use DB; use Input; use App\models\EmailTemplate; class EmailTemplateService { /* * Get Email Template By ID */ public function emailTemplateById($id) { try { $template = $htmlContent = ' <html> <head> <ti...
true
c8323577179d3b40c24eec5098399fff16c72339
PHP
quentinhoareau/AELPP
/dynamic/controllers/ErrorController.php
UTF-8
2,445
2.65625
3
[]
no_license
<?php class ErrorController{ private $View; public function __construct(Throwable $e, $buffer){ switch ( $e->getCode() ) { //SQL STATE 45000 (Exception custom) case 45000: $errorMessage = $e->xdebug_message; $errorTitle = "<b> SQL STATE Exception : </b> <br...
true
98781fdb000318ab25e9158430e165598b55a487
PHP
tzupingchenwork/forester
/admin/order.php
UTF-8
7,373
2.546875
3
[]
no_license
<!-- header --> <?php include "includes/header.php"; ?> <?php if(isset($_SESSION['admNo'])){ ; }else{ header("Location: login.php"); } ?> <!-- Set Sqlquery --> <?php $errMsg = ""; try{ $sql = "SELECT a.ordNo AS ordNo, a.memNo AS memNo, ...
true
6ed1b800e19d707ec9257f5e56eac3320ab24108
PHP
SmartpingApi/sdk-php
/src/Model/Player/RankedGame.php
UTF-8
3,859
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace SmartpingApi\Model\Player; use DateTimeImmutable; use SmartpingApi\Enum\Gender; use SmartpingApi\Helper\DateTimeHelpers; use SmartpingApi\Model\SmartpingObject; use SmartpingApi\Service\PlayerAPI; use Symfony\Component\Serializer\Annotation\SerializedName; class RankedGame e...
true
1452101e293839babf536cf01f4a675818066fc8
PHP
digital-canvas/accounts
/system/library/Model/Database.php
UTF-8
9,816
2.921875
3
[ "MIT" ]
permissive
<?php namespace Model; use PDO; use Validate; /** * Database login model * * @author Jonathan Bernardi <spekkionu@spekkionu.com> * @license MIT http://opensource.org/licenses/MIT * @package Model * @subpackage Database */ class Database extends BaseModel { /** * Default values * @var array ...
true
7e5a345e5e2b39489be224a8b1484a8c9044d6d6
PHP
Hoangluu2001/Case_Study_Module2
/src/model/PriceModel.php
UTF-8
728
2.84375
3
[]
no_license
<?php // // //namespace App\model; // // //class PriceModel //{ // protected $database; // public function __construct() // { // $db = new DBconnection(); // $this->database = $db->connect(); // } // public function getAll(){ // $sql ="SELECT * FROM Price INNER JOIN Oto ON Price...
true
244e116dfda638144ed2fd1154c5d4af94ef4c4f
PHP
Andriwfonseca/EstudoPHP
/Basico php/7 - switch com formulario.php
UTF-8
597
3.203125
3
[]
no_license
<form method="POST"> Número: <br/> <input type="text" name="numero"> <br/><br/> <input type="submit" name="botaoEnviar" value="Enviar Número"> </form> <?php if (isset($_POST['botaoEnviar'])){ if (!empty($_POST['numero'])){ $numero = $_POST['numero']; switch ($numero) { case 0: echo "O numero digitad...
true
9b930e371b780987bba0f6f9b249cf8ab2673c33
PHP
abumufti/shariainvestor
/models/SectorForm.php
UTF-8
624
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use yii\base\Model; use app\models\MuvtiSector; class SectorForm extends Model { /** * @var UploadedFile */ public $sector; public function rules() { return [ ['sector', 'required', 'message' => 'Please input sector.'] ]; }...
true
20ef442505d4a5601bdc2bb28632625f0bf769a8
PHP
Tendoo/cloud-breeze
/src/Core/Exceptions/OauthDeniedException.php
UTF-8
455
2.703125
3
[]
no_license
<?php namespace Tendoo\Core\Exceptions; use Exception; class OauthDeniedException extends Exception { public function __construct() { parent::__construct(); $this->title = __( 'Oauth Access Denied' ); $this->message = __( 'Unable to authenticate, the access has been denied.' ); ...
true
d37b589392abe14b4ab85274dd105d4066a0995e
PHP
Miadil/Camagru
/config/database.php
UTF-8
1,308
3
3
[]
no_license
<?php class Database { private $DB_DSN = "mysql:host=localhost;dbname=camagru"; private $DB_USER = "root"; private $DB_PASSWORD = "1123581321e"; public $conn; public function dbConnection() { $this->conn = null; try { // $this->conn = new PDO("mysql:host=" . $th...
true
2df6b5b95c90de3d3d8a409392cf4ec1ad5d9eb6
PHP
huyvudc0611/php-design-patterns
/src/Adapter/RealWhiteRose.php
UTF-8
384
2.796875
3
[ "MIT" ]
permissive
<?php namespace DesignPatterns\Adapter; class RealWhiteRose implements TheOldRoseInterface { public function sell() { // TODO: Implement sell() method. } public function showImage() { // TODO: Implement showImage() method. } public function getPriceFromDatabase() { ...
true
efc91ac82bc53e577c9affe42bff039179fd56e5
PHP
laudychehdan/Caisse_primeur_CHEHDAN
/ProduitKilo.php
UTF-8
272
2.859375
3
[]
no_license
<?php class ProduitKilo extends Produit { public $prixkilo; public function __construct($prixkilo, $poids) { $this->PrixKilo=$prixkilo; $this->Poids=$poids; } public function CalculPrixKilo() { return ($this->PrixKilo*$this->Poids); } } ?>
true
8a75d3cd97593a9d973f0610345af57ef4a3b0b2
PHP
jujudellago/cabinetsens
/web/app/plugins/trx_addons/components/cpt/cars/tpl.agents.single.php
UTF-8
2,376
2.515625
3
[ "MIT" ]
permissive
<?php /** * The template to display the cars agent's single page * * @package WordPress * @subpackage ThemeREX Addons * @since v1.6.25 */ get_header(); while ( have_posts() ) { the_post(); $trx_addons_meta = get_post_meta(get_the_ID(), 'trx_addons_options', true); ?> <article id="post-<?php the_ID(); ?>" <?p...
true
ff59d9b870624ecf0823092357292c2e95e526fb
PHP
yughoz/wakita-web
/native/send-message.php
UTF-8
650
2.625
3
[]
no_license
<?php $curl = curl_init(); $token = "2iNvy9zUUVSwMXSO71SIvdNwjE2c7DrfV6Kn3tCRcOvrkMnvl74kraCUbhZAHZZO"; $data = [ 'phone' => '6281288503362', 'message' => 'hellow world', ]; curl_setopt($curl, CURLOPT_HTTPHEADER, array( "Authorization: $token", ) ); curl_setopt($curl, CURLOPT_CUSTO...
true
f59a65cf8f7fd396a880de313e46666131ae8ff3
PHP
hieutt96/Store
/app/Libs/MyUtils.php
UTF-8
1,884
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Libs; use App\Libs\RequestAPI; use App\Exceptions\AppException; class MyUtils { public static function dec_enc($action, $string, $secret_app, $secret_id) { $out = false; $encrypt_method = "AES-256-CBC"; $key = hash('sha256', $secret_app); $id = substr(hash('s...
true
a99e44e6f5417d5a017e9d7ab9e0fbe402819666
PHP
MaxDuchesne/AzuraCast
/src/Paginator.php
UTF-8
6,436
2.515625
3
[ "Apache-2.0" ]
permissive
<?php namespace App; use App\Http\Response; use App\Http\Router; use App\Http\RouterInterface; use App\Http\ServerRequest; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Query; use Doctrine\ORM\QueryBuilder; use Pagerfanta\Adapter\ArrayAdapter; use Pagerfanta\Doctrine\Collections\CollectionAdapter; use ...
true
f54553a3e10471367cf5f671a2b30aabc7e2ad78
PHP
shimabox/smarty_date_format_php_strftime_G
/classes/Month.php
UTF-8
6,590
3.671875
4
[]
no_license
<?php /** * Month * * @author shimabox */ class Month { /** * Week * @var array [\Week] */ protected $weeks = array(); /** * 年 * @var string */ protected $year = ""; /** * 月 * @var string */ protected $month = ""; /** * 月曜日基準にするか ...
true