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
65ce558d208b86100558e9105482f2f18c4a8674
PHP
fs2050/teste
/adm/app/adms/Controllers/ViewUsers.php
UTF-8
2,372
2.609375
3
[]
no_license
<?php namespace App\adms\Controllers; if (!defined('R4F5CC')) { header("Location: /"); die("Erro: Página não encontrada!"); } /** * A classe ViewUsers Recebe as informações para visualizar os detalhes do usuário * * @author Celke */ class ViewUsers { /** @var int $id Recebe o Id do usuário a ser visu...
true
4e17aff02a5f03c5dd39e72ab994176158969967
PHP
reda84/odesktest
/ascii_table.php
UTF-8
4,048
3.109375
3
[]
no_license
<?php /* array( array( 'Name' => 'Trixie', 'Color' => 'Green', 'Element' => 'Earth', 'Likes' => 'Flowers' ), array( 'Name' => 'Tinkerbell', 'Element' => 'Air', 'Likes' => 'Singning', 'Color' => 'Blue' ), array( 'Eleme...
true
386f78163cd023e197296171bb16a6fe5af33e00
PHP
Upperfoot/Fibonacci
/app/Service/Fibonacci/ReaderService.php
UTF-8
1,802
3.140625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Service\Fibonacci; use App\Exceptions\NumberFormatException; /** * Class ReaderService * Provides an interface to redis lists to read and lookup * Fibonacci sequence * * @author PB */ class ReaderService extends AbstractService { /** * Return elements from...
true
0650f12580a0ff673ca349d28639fb5b76448dcb
PHP
fissible/worklog
/src/CommandLine/RecoverCommand.php
UTF-8
3,124
2.546875
3
[]
no_license
<?php namespace Worklog\CommandLine; use Carbon\Carbon; use Worklog\Models\Task; use Worklog\Services\TaskService; /** * Created by PhpStorm. * User: allenmccabe * Date: 3/7/17 * Time: 10:49 AM */ class RecoverCommand extends Command { public $command_name; public static $description = 'Recover a starte...
true
c4e8d37d1336b0e734cf4dc5e5cb3ac80a3c672c
PHP
hwalde/database2code
/src/Template/PHPFile/constants.php
UTF-8
1,038
2.671875
3
[ "BSD-3-Clause" ]
permissive
<?php /* * This file is part of Database2Code. * * (c) Herbert Walde <herbert.walde@gmail.com> * * For the full copyright and license information, read the LICENSE file that was distributed with this source code. */ /** @var $table \Database2Code\Struct\Table */ /** @var $config \Database2Code\Output\OutputConfi...
true
79db8250f26f6382614336c751329a3d1e2273d4
PHP
yhs6375/ShoppingMall_PHP
/util/token/TokenManager.php
UTF-8
2,933
3.046875
3
[]
no_license
<?php /*TokenManager 클래스 JWT 토큰 기반 인증 방식을 간단하게 사용 할 수 있도록 만든 클래스 */ namespace Util\Token; use Util\Token\TokenException; use Lcobucci\JWT\Builder; use Lcobucci\JWT\Signer\Key; use Lcobucci\JWT\Signer\Hmac\Sha256; class TokenManager { private $builder; private $signatureKey = null; public function __c...
true
b6ae40bee3cbee58ea6fa74ad1d5c1e5e101c688
PHP
wnuken/enigdesa
/application/libraries/Funciones.php
UTF-8
643
3.421875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * Funciones varias para el uso en todo los programas * @author oagarzond * @since 2016-03-04 **/ class Funciones { function __construct(){ } /** * Imprimir arreglos de una forma mas legible * @author oagarzond * @param ...
true
4a130219424e287d7d639d4b0b12ab1c2d361ddc
PHP
OpenMageModuleFostering/dhl_meinpaket2
/app/code/community/Dhl/MeinPaketCommon/Model/System/MemoryLimiter.php
UTF-8
1,415
2.953125
3
[]
no_license
<?php /** * PHP memory limit control. * * @category Dhl * @package Dhl_MeinPaket * @subpackage Model_System * @version $Id$ */ class Dhl_MeinPaketCommon_Model_System_MemoryLimiter extends Varien_Object { /** * * @var integer */ const MEMORY_LIMIT_MEDIUM = 256; /** * * @var integer */ const ...
true
a375d0ccda56f9326dcd891d375fb6b1b86c7732
PHP
Koolant/task-scheduler
/app/Console/Kernel.php
UTF-8
1,305
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Console; use App\Task; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; use Illuminate\Support\Facades\DB; class Kernel extends ConsoleKernel { /** * The Artisan commands provided by your application. * * @var array */ ...
true
619053c5cf51c133672193442b71781a0d5c88a4
PHP
zakaria-ammoura/Pricing
/backend/src/Manager/ArticleManager.php
UTF-8
3,114
2.859375
3
[]
no_license
<?php namespace App\Manager; use App\Exception\DataException; use App\Repository\ArticleRepository; use App\Utils\PriceHelper; use App\Utils\ErrorFormatter; use App\Utils\StateHelper; use App\ValueObject\ArticleValueObject; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Validator\Validator\Valid...
true
6692dec5e14c0b75320eadbd64b22795321bb126
PHP
chrispaul3625/sprots
/public_html/php/classes/Player.php
UTF-8
17,436
3.078125
3
[ "Apache-2.0" ]
permissive
<?php namespace Edu\Cnm\Sprots; require_once("autoload.php"); /** * Player, Player that a user will look up * * Player is unique * * $author Jude Chavez <chavezjude7@gmail.com> * */ class Player implements \JsonSerializable { /** * Id for the Player; this is the primary key * @var int $PlayerId */ pri...
true
8fa43e32b859acf4ce4ede5688978db4d08a95ba
PHP
adigaaa/cms
/api/Posts/Transformers/AllPostsTransformer.php
UTF-8
513
2.609375
3
[]
no_license
<?php namespace Api\Posts\Transformers; use Api\Posts\Models\Post; use League\Fractal\TransformerAbstract; class AllPostsTransformer extends TransformerAbstract { public function transform(Post $post) { return [ 'id' => (int) $post->id, 'title' => $post->title, 'body' => $...
true
0444d281516cad3a697dcb76c0779c3a759412f0
PHP
junaidpv/paithal
/application/models/UsersTable.php
UTF-8
1,170
2.6875
3
[]
no_license
<?php if (!defined('BASEPATH')) die('Direct script access not allowed'); /** * @package appplication/model * @author Junaid P V * @license GPLv3 * @since 0.1.0 */ require_once 'PaithalDbTable.php'; /** * Table adapter for users table * @author Junaid * @since 0.1.0 */ class UsersTable extends PaithalDbTa...
true
0678140a2b3dd15146c1c0bfcfdf13c8cb1f9fa6
PHP
IT-Floss/SiteTheme
/inc/inc-usuarios.php
UTF-8
1,369
2.5625
3
[]
no_license
<?php /** * Control de los usuarios * * @author David Gallegos * @subpackage hummingBird * @since 0.1 */ /** * Redireccionamiento de wp-admin a pagina login */ /*function redireccionar_login(){ $pv = basename( $_SERVER['REQUEST_URI'] ); //$lp = get_permalink('110'); $lp = home_url( '/login/' ); ...
true
b2cedd9937fb5c6cc3960ae88af1a3bc52b6df2c
PHP
shavenking/shortest-path
/Map.php
UTF-8
1,876
3.171875
3
[]
no_license
<?php require_once __DIR__ . '/Position.php'; class Map { const ROAD = 0; const WALL = 1; const START = 2; const END = 3; public $start; public $end; public $mapData; public $marks; public function __construct(array $mapData) { $this->marks = []; $this-...
true
b24b4ba6baecaa652ada7f125a5db45b654e5bf6
PHP
WsdlToPhp/PackageOvh
/src/StructType/TelephonyDirectoryInfoGetSiret.php
UTF-8
2,318
2.921875
3
[ "MIT" ]
permissive
<?php namespace Ovh\StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for telephonyDirectoryInfoGetSiret StructType * @subpackage Structs * @author WsdlToPhp <contact@wsdltophp.com> */ class TelephonyDirectoryInfoGetSiret extends AbstractStructBase { /** * The session ...
true
d741dd36d6412cf46d48bb828c8a05fa52c44a0e
PHP
kgaughan/afk
/tests/XmlRpcParserTest.php
UTF-8
6,093
2.546875
3
[]
no_license
<?php require_once dirname(__FILE__) . '/../autoload.php'; class XmlRpcParserTest extends PHPUnit_Framework_TestCase { private function load($file) { return file_get_contents(dirname(__FILE__) . "/files/$file"); } private function parse($file) { $p = new AFK_XmlRpc_Parser(); $p->parse($this->load($file)); ...
true
610282b45e0b60aa30f1159340b635d80ae5b31e
PHP
nibasabin/Projects
/WebApplication(UniversityBazzar)/sabin/Service.php
UTF-8
5,113
2.640625
3
[]
no_license
<?php require('connect.php'); $Id=''; function ServiceName() { $myData =mysql_query ( "SELECT * FROM Services"); while($record = mysql_fetch_array($myData)) { echo("</option><option value = ".$record['Name']." ". $record['Service'].">".$record['Name']." ". $record['Service']."</opti...
true
a42818e1cecb27aeda58f1e6893d2acafa9d718b
PHP
kamilagora/shopping-cart
/shopping/php/CreateDatabase.php
UTF-8
1,745
3.359375
3
[]
no_license
<?php class CreateDatabase { public $servername; public $username; public $password; public $databasename; public $tablename; public $con; public function __construct( $databasename = "shopdb", $tablename = "product", $servername = "localhost", $username = "root", ...
true
4c0219495be7f916765d88352df20aa5f8ff3a4b
PHP
bmf-san/Rubel
/src/core-app/app/Console/Commands/Initialize.php
UTF-8
5,380
2.78125
3
[ "MIT" ]
permissive
<?php namespace Rubel\Console\Commands; use Illuminate\Console\Command; use Illuminate\Database\DatabaseManager; use Database\ForeignKeyManager; use Rubel\Models\Admin; use Rubel\Models\Category; use Rubel\Models\Comment; use Rubel\Models\Config; use Rubel\Models\Post; use Rubel\Models\Tag; use Rubel\Models\TagPost; ...
true
9d34c433fd389a13db1d553a85afb7fa184035da
PHP
Reinis/php-exercises
/basics/classes/exercise-06/Survey.php
UTF-8
629
3.4375
3
[]
no_license
<?php namespace Survey; class Survey { private int $surveyed; private float $energyDrinkers; private float $preferCitrus; public function __construct(int $surveyed, float $energyDrinkers, float $preferCitrus) { $this->surveyed = $surveyed; $this->energyDrinkers = $energyDrinkers; ...
true
3220c2ef627ed7e2e39309a7e0788b4d1f066be3
PHP
mariamjobe/FinalSubmission
/WebAPI/getIds.php
UTF-8
896
2.6875
3
[]
no_license
<?php $username = isset($_GET["username"])?$_GET["username"]:""; $password = isset($_GET["password"])?$_GET["password"]:""; if (empty($username) && isset($_POST["username"])) $username = $_POST["username"]; $output = 'false'; if(empty($username) == false) { $servername = "dmysql01.westbahr.com"; $db_login = "syste...
true
25887e8dce32b9a1a3ac93dddf3bf3a940917b71
PHP
jakumi/symfony-ses
/SesTransport.php
UTF-8
4,433
2.796875
3
[ "MIT" ]
permissive
<?php use Aws\Ses\SesClient; use Swift_Transport_AbstractSmtpTransport; class SesTransport extends Swift_Transport_AbstractSmtpTransport { private $client; function __construct(SesClient $client) { $this->client = $client; } const MAX_RECIPIENTS = 50; protected function _getBufferParam...
true
4a33628c8421c4e0673f5c16dd8c69896e9496dd
PHP
denverprogrammer/SymfonyDocker
/backend/src/Entity/Traits/AgreementTrait.php
UTF-8
765
2.84375
3
[]
no_license
<?php namespace App\Entity\Traits; use Doctrine\ORM\Mapping as ORM; /** * Agreement for a entity */ trait AgreementTrait { /** * Agreement value of record * * @var boolean * * @ORM\Column(type="boolean", nullable=false, options={"default": "0"}) */ private $agreement = false; ...
true
e184b25a57d840dfeaf685158baf15239fe24100
PHP
JavierCe94/Cineja
/src/Infrastructure/Repository/User/UserRepository.php
UTF-8
1,254
2.6875
3
[]
no_license
<?php namespace Javier\Cineja\Infrastructure\Repository\User; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Javier\Cineja\Domain\Model\Entity\User\User; use Javier\Cineja\Domain\Model\Entity\User\UserRepository as UserRepositoryI; class UserRepository extends ServiceEntityRepository impl...
true
02bf2b0e01c47f371372d9c3c73a37b70afece25
PHP
echo-ooxx/yii2-default
/common/models/SiteProduct.php
UTF-8
1,454
2.671875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "site_product". * * @property int $id ID * @property int $type_id 类别ID * @property string $cover 封面图 * @property string $name 案例名称 * @property string $bg 背景颜色 * @property string $contents 详情 * @property int $sort 排序 * @property...
true
7f2df4cb8a5aae89dcc01d1e6697e48ec948782d
PHP
pkkann/JFramework
/system/Singleton.php
UTF-8
290
3.078125
3
[]
no_license
<?php class Singleton { private function __construct() { } public static function Instance() { static $inst = null; if ($inst === null) { $class = get_called_class(); $inst = new $class(); } return $inst; } }
true
8842b90d6c9666bc50e9681f4abcf03a7c263c2b
PHP
8w/PHP.Gt
/Framework/Component/DomElCollection.php
UTF-8
10,129
3.140625
3
[ "Apache-2.0" ]
permissive
<?php /** * @method string getAttribute(string $attribute); * @method void setAttribute(string $attributeName, string $attributeValue); * @method void removeAttribute(string $attribute); * @method void replace(DomEl $replaceWith); * @method DomEl remove(); * @method void removeClass(string $class); * @method vo...
true
474c2848aee6277aecd6231263dc499a30dd463b
PHP
mohitpunjabi/nitya
/app/Image.php
UTF-8
2,099
2.703125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Log; use Symfony\Component\HttpFoundation\File\UploadedFile; class Image extends Model { protected $fillable = [ 'name' ]; private static $SIZES = [ 'lg' => [0, 2000], 'md' => [650, 0], ...
true
c8ce3cc61168ef6aaebf2bc11c0334c9b70b248b
PHP
ant-framework/http
/Tests/StreamTest.php
UTF-8
4,719
2.59375
3
[]
no_license
<?php namespace Test; use Ant\Http\Stream; class StreamTest extends \PHPUnit_Framework_TestCase { /** * php常用IO流读写测试 */ public function testReadAndWriteMode() { //==================== memory流必然支持读 ======================// $stream = new Stream(fopen('php://memory','r+')); ...
true
8aa9bf62dc585140b8b3f30f374d4ccb842df0a0
PHP
davidrochin/sae-ingles
/app/Group.php
UTF-8
4,537
2.734375
3
[]
no_license
<?php namespace App; use App\User; use App\Period; use App\Classroom; use App\Grade; use App\Setting; use Illuminate\Database\Eloquent\Model; class Group extends Model { //Propiedad "guarded" para evitar MassAsignmentException protected $guarded = ['id']; public function user(){ return $this->belong...
true
552841e6676181a706ee24ce95d694081f4c9f9b
PHP
JayendraGothi/laravel-repository-pattern
/src/Library/CommonCriteria/WhereFilter.php
UTF-8
845
2.9375
3
[]
no_license
<?php namespace Reva\RepositoryPattern\Library\CommonCriteria; use Illuminate\Database\Eloquent\Builder; use Reva\RepositoryPattern\Library\Contracts\Criteria; class WhereFilter implements Criteria { /** * field, value * * @var */ private $field; private $value; /** * Const...
true
b5edcafddc0c153d2a6788dacd9b0cdc632b23a2
PHP
chabior/php-lock
/src/ValueObject/LockValue.php
UTF-8
545
2.953125
3
[]
no_license
<?php declare(strict_types = 1); namespace chabior\Lock\ValueObject; class LockValue { /** * @var string */ private $value; public function __construct(string $value) { $this->value = $value; } public static function fromRandomValue(): LockValue { return new st...
true
805c631b434ac7e0c90daad5294d723e5c1c75f1
PHP
catchup-forks/PackageEws365
/src/StructType/EwsGetServerTimeZonesType.php
UTF-8
3,103
2.609375
3
[ "MIT" ]
permissive
<?php namespace Ews\StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for GetServerTimeZonesType StructType * @package Ews * @subpackage Structs * @author WsdlToPhp <contact@wsdltophp.com> */ class EwsGetServerTimeZonesType extends EwsBaseRequestType { /** * The Ids ...
true
bb1defc2b7137012f93c727db38d966462712178
PHP
travelpaq/Connect-SDK-PHP
/src/Models/PackageFare.php
UTF-8
1,701
2.953125
3
[ "MIT" ]
permissive
<?php /** * TravelPAQ Connect Api * * @package TravelPAQ * * @author TravelPAQ <malves@travelpaq.com.ar> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace TravelPAQ\PackagesAPI\Models; /** * Class PackageFare * ...
true
1b2e9deb5a605a544c1bdc6ef97e7ad74e0774ff
PHP
Azaguilla/CMA-CGMPA
/src/Services/ContainerManager.php
UTF-8
651
2.625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Laurie * Date: 21/12/2018 * Time: 14:02 */ namespace App\Services; use Doctrine\ORM\EntityManager; class ContainerManager { private $em; public function __construct(EntityManager $em) { $this->em = $em; } public function findAll($entity) ...
true
36a2784befe4894b422433ff8ac0df9269cb3a16
PHP
Flyette/PhpObjet
/test_dao.php
UTF-8
979
2.765625
3
[]
no_license
<?php include_once 'system/DAO.php'; echo "je suis dans test dao"; $datas = array( 'nom' => "Duran", 'prenom' => "Alain", 'tel' => "00.11.22.33.44", 'email' => "duran@gmail.com", 'message' => "Mon message" ); inserer($datas); function inserer($champs){ $table = "contact"; $s...
true
36a5c16f26f9dd86833dd8ecbc83b533a2a7bd27
PHP
Abhi5Pande/web_build
/php/script.php
UTF-8
8,827
2.90625
3
[ "MIT" ]
permissive
<?php /** * Class Script * Manage generic php scripts */ class Script { /**GenerateList * * Display a list of registered users * @param $db = active session * @param $name = name of the session user */ public static function GenerateList($db, $name) { $users = $db->Quer...
true
8748b19ba2620d57b0f16f3606f0ef8ce3c1d759
PHP
tf0294/laravel5-study
/public/design_pattern/strategy/flyable.php
UTF-8
205
2.53125
3
[ "MIT" ]
permissive
<?php namespace Strategy; require_once('fly.php'); use Strategy\Fly as Fly; class Flyable extends Fly { protected $flyable; public function fly() { $this->flyable->fly(); } }
true
be293181c6c6ad0f5c2df8918c0bb43323176466
PHP
Emilvooo/MVC-PHP
/app/models/news.php
UTF-8
1,724
2.84375
3
[]
no_license
<?php namespace App\Models; use App\Db; class News { public function loadAll() { $db = db::getInstance(); $query = $db->query('SELECT * FROM posts LIMIT 25'); $result = $query->fetchAll(\PDO::FETCH_ASSOC); return $result; } public function loadById($id) { $db = db...
true
a0f90d56a7107d58308e95f5a5db12df1852de4a
PHP
devlabs91/travelgate-notify
/src/Models/Ota/VehicleLocationLiabilitiesType/CoveragesAType/CoverageAType/CoverageFeesAType.php
UTF-8
2,572
2.734375
3
[ "MIT" ]
permissive
<?php namespace Devlabs91\TravelgateNotify\Models\Ota\VehicleLocationLiabilitiesType\CoveragesAType\CoverageAType; /** * Class representing CoverageFeesAType */ class CoverageFeesAType { /** * Provides information on one specific charge for this coverage, insurance or waiver. * * @property \Devl...
true
289d68730827082376938cf1e69684c83f9c84e1
PHP
remonfci/customer-phones
/src/DDD/Domain/ValueObject/Country/Contracts/CountryInterface.php
UTF-8
242
2.640625
3
[]
no_license
<?php declare(strict_types=1); namespace DDD\Domain\ValueObject\Country\Contracts; interface CountryInterface { public function getCode(): string; public function getName(): string; public function getPhoneRegex(): string; }
true
7e33e0267f308d0da97d98d5c426dfa7d01644a1
PHP
LD125/MYSQL-ET-PHP
/TP1/exos/session/session1.php
UTF-8
193
2.796875
3
[]
no_license
<?php session_start(); // premet de créer une session, ou d'en ouvrir une si elle existe $_SESSION['login'] = 'Fred'; echo '<pre>'; var_dump( $_SESSION); var_dump($_COOKIE); echo '</pre>';
true
c5db2eed392bbefe5c71b71630b6d5f02dc0446e
PHP
FredericRieunier/annonceo
/admin/gestion_notes.php
UTF-8
8,010
2.640625
3
[]
no_license
<?php require_once "../inc/header.inc.php"; ?> <?php //Restriction de l'accès à la page administrative : if( !adminConnect() ){ header('location:../connexion.php'); exit(); } // Redirection vers l'affichage des notes par défaut if(empty($_GET)){ header('location:?action=affichage'); exit(); } // Suppression ...
true
9462f28057c6303a1d9a77990be013be380e4718
PHP
RazaChohan/Coeus-Tasks
/Linkedlist/linkedlistImp.php
UTF-8
5,935
3.5
4
[]
no_license
<?php /** * Contains linkedlist Implementation class * * This file contains one class implementation * named Linkedlist class. * * @category Training/Learning PHP * @package Learning Test Driven Development * @version v 1.0 */ require ('listNode.php'); /** * Linked list class * * This Class implements the f...
true
28145317c064630b8a12e5dd7f48c2d9fdc94c9e
PHP
dianastefanro/painting
/basket.php
UTF-8
6,323
2.59375
3
[]
no_license
<?php session_start(); //require_once("config.php"); include ("config.php"); if(!empty($_GET["action"])) { echo "<br /><br /><br /><br /><br /><br /><br />action este: ". $_GET["action"] . "<br />"; switch($_GET["action"]) { case "add": echo "case add"; //$sql = "SELECT * FROM...
true
7bab68c40e1303342fd15519c48495e28d4afc2c
PHP
ycs77/swoole-course-examples
/9-coroutine/coroutine_waitgroup.php
UTF-8
442
2.515625
3
[]
no_license
<?php go(function () { $waitgroup = new Swoole\Coroutine\WaitGroup; $waitgroup->add(2); $result = []; go(function () use ($waitgroup, &$result) { co::sleep(2); $result[] = 'hello'; $waitgroup->done(); }); go(function () use ($waitgroup, &$result) { co::sleep(1...
true
6b1fc91c90a7ebf6059352da55e817769371b496
PHP
prashantkumarabhishek/import-xml-data-to-mysql-table-using-php
/xml-to-array.php
UTF-8
883
2.765625
3
[]
no_license
<?php $xmlDoc = new DOMDocument(); $xmlDoc->load("items.xml"); $mysql_hostname = "localhost"; // Example : localhost $mysql_user = "root"; $mysql_password = "root"; $mysql_database = "test"; $bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die("Oops some thing went wrong"); mysql_sele...
true
f654acecf080bdc67ee02d267bcf7ee85e777044
PHP
nuthankumarns/Edulab-web-services
/services/fpdf/sample.php
UTF-8
2,921
2.6875
3
[ "LicenseRef-scancode-other-permissive" ]
permissive
<?php require('fpdf.php'); class PDF extends FPDF { // Page header function Header() { // Logo // $this->Image('logo.png',10,6,30); // Arial bold 15 $this->SetFont('Arial','B',15); // Move to the right $this->Cell(80); // Title $this->Cell(30,10,'Reports',1,0,'C'); // Line break ...
true
020445b9d6322a1d95671f12e2ffe0b9ffec4ffa
PHP
brookJulias/quickQuoteTest
/meta/php/class_user.php
UTF-8
394
2.640625
3
[]
no_license
<?php $path = "constants.php"; try{ if(file_exists($path)){ include_once($path); } } catch(Exception $e){ if(!isset($error)){ $error; }else{ array_push($error, $e->getMessage()); } } include_once(''); cla...
true
c37cc5fec79a178d596aa3d25d1f11f66b9ea6af
PHP
mve/eenmaal-andermaal
/app/Helpers/Helper.php
UTF-8
851
3.234375
3
[]
no_license
<?php namespace App\Helpers; if (!function_exists('countLengthNewlinesOneCharacter')) { /** * Count the length of $string but the newlines are counted as only 1 character * @param $string * @return false|int */ function countLengthNewlinesOneCharacter($string) { $countNewlines ...
true
48cc022d2c300a5375d31edac383e83b9b0632a3
PHP
dnr6419/php_learning
/연산자와 br,그리고 문장연결자.php
UTF-8
900
3.53125
4
[]
no_license
<?php $str = "안녕"; $str2 = "하세요."; echo $str.$str2; echo "<br>"; echo "우리 아버지는 "."감기에 걸리셨다."; #변수는 다음과 같이 이어붙일 수 있다. #상수 출력. echo "<br>"; define("FAVORITE_DOLL","ToToro"); echo "가장 좋아하는 인형은 ".FAVORITE_DOLL."입니다."; echo "<br>"; # define("FAVORITE_DOLL","none"); # 이미 정의했으므로, 또다시 정의가 되지 않는 것을 알 수 있다. #...
true
287d57bb5059290c57b5c779dbe63b76e50777d0
PHP
15973817745/fiction
/application/common/model/StoryCas.php
UTF-8
2,275
2.59375
3
[ "Apache-2.0" ]
permissive
<?php namespace app\common\model; use think\Model; class StoryCas extends BaseModel { /** * 通过状态获取商家数据 * @param $status */ public function updateById($data, $id) { // allowField 过滤data数组中非数据表中的数据 return $this->allowField(true)->save($data, ['ares_id'=>$id]); } public fun...
true
fb7f932fdd7234a405de2485a7943c70ef696019
PHP
2tankov2/php-exercises
/toRna.php
UTF-8
1,518
3.21875
3
[]
no_license
<?php namespace App\Solution; /** * ДНК и РНК это последовательности нуклеотидов. * Четыре нуклеотида в ДНК это аденин (A), цитозин (C), гуанин (G) и тимин (T). * Четыре нуклеотида в РНК это аденин (A), цитозин (C), гуанин (G) и урацил (U). * Цепь РНК составляется на основе цепи ДНК последовательной заменой каж...
true
d06b7cdf1d9d00f1b4f70f4d96df5300e638ca49
PHP
Niktux/PHP-Arena
/src/Warrior/Core/Action/Attack.php
UTF-8
450
2.96875
3
[]
no_license
<?php namespace Warrior\Core\Action; use Warrior\Core\Action; use Warrior\Core\World; use Warrior\Core\Mob; use Warrior\Core\Direction; final class Attack implements Action { private $direction; public function __construct($direction = Direction::FORWARD) { $this->direction = $direct...
true
d1685ecf443432e6bfd71e2e72d8e16417bb6755
PHP
johnbrown/WebScraper
/src/Scraper/Goutte/GoutteScraper.php
UTF-8
1,949
2.8125
3
[]
no_license
<?php namespace Scraper\Goutte; use Goutte\Client; use Scraper\Scraper; use Scraper\ScraperInterface; use Symfony\Component\DomCrawler\Crawler; /** * Class GoutteScraper * * @package Scraper\Goutte */ class GoutteScraper extends Scraper implements ScraperInterface { /** * @var \Guzzle\H...
true
9f85dce0726258326b245a4df743b94d73309694
PHP
clementpoh/mu-availability-system
/admin/install/quicklog.php
UTF-8
1,293
2.875
3
[]
no_license
<?php require_once('../../settings.php'); header("Content-type: text/plain"); # Connect to the computer list database. printf("PHP Version: %s\n", phpversion()); $link = mysql_connect(DB_ADDRESS, DB_USERNAME, DB_PASSWORD) or die('Could not connect: ' . mysql_error()); echo("Authentic...
true
26f68805e4de772f28e6b24ab3cfc3d602027fc7
PHP
pavelsterba/http-exceptions
/src/Informational/ContinueException.php
UTF-8
670
2.9375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace HttpException\Informational; use HttpException\InformationalException; /** * 100 Continue * * This interim response indicates that the client should continue the request or ignore the response if the request is already finished. * * @link https://developer.mozilla.org...
true
9b17d0d0eeed0837b0fdff2fdffc4097e69d9112
PHP
ovidijus104/TestHW
/src/MoneyFormatter.php
UTF-8
949
2.890625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: ovidijus * Date: 18.12.6 * Time: 12.12 */ namespace App; use Symfony\Component\Routing\Annotation\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; class MoneyFormatter extends Controller { /**s * @var NumberFormatter $numberFormatter */ ...
true
6f74433e0a7cb42b2e782cb9054ee1fc79607b38
PHP
abdulgonimurod1/projek_shakeelamart
/tes/app/User.php
UTF-8
1,721
2.53125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; class User extends Authenticatable implements MustVerifyEmail { use Notifiable; /** * The attributes that are mass assignable. * ...
true
10af2a129e1a4e108fe4932947f463ebc91fceb4
PHP
PubFork/aikq
/app/Models/LgMatch/OtherMatch.php
UTF-8
1,748
2.59375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: 11247 * Date: 2018/3/23 * Time: 12:18 */ namespace App\Models\LgMatch; use Illuminate\Database\Eloquent\Model; /** * 自建赛事 * Class OtherMatch * @package App\Models\CMS */ class OtherMatch extends Model { protected $connection = "match"; const kTypeMenu = 1, k...
true
c9fd14ef9cd5caf8351ab3299f0946a2b800eddd
PHP
laurent-allegre/BurgerCode
/admin/functions.php
UTF-8
845
2.953125
3
[]
no_license
<?php /*=================== FONCTION du Login ================*/ function validateForm (string $input): string { $safe = trim($input); $safe = htmlentities($safe); $safe = stripslashes($safe); return $safe; } /*===============================================*/ /*============== Auhtentification ===...
true
1a2f2e519899be60d198412f7e87a0d7300e40cb
PHP
aingelc12ell/zenbership_plugins
/mailgun/functions/send.php
UTF-8
5,371
2.8125
3
[]
no_license
<?php class send extends pluginLoader { protected $plugin; protected $apiUrl = 'https://api.mailgun.net/v3'; protected $apiSid; protected $apiAuthToken; protected $apiDomain; protected $tag, $campaign; protected $tracking, $linkTracking; protected $to, $from, $cc, $bcc, $subject, $html_mess...
true
021f1ced439c15d3a2e22865e9b7f062b8742d27
PHP
Wikia/patchwork
/tests/closure-this.phpt
UTF-8
559
2.53125
3
[ "MIT" ]
permissive
--TEST-- Automatic binding of $this on closures used as method redefinitions --SKIPIF-- <?php is_callable("Closure::bind") or die('skip because closure $this binding is not supported in this version of PHP') ?> --FILE-- <?php error_reporting(E_ALL | E_STRICT); require __DIR__ . "/../Patchwork.php"; require __...
true
d54d81f69f5698a93995eae626278e3207244ac1
PHP
JonTryggvi/poop--anal-ytics
/www/admin/classes/post.class.php
UTF-8
2,022
2.75
3
[]
no_license
<?php class Post { public function __construct() { } public function createPost($title, $content, $author, $date_post, $User_id, $User_roles_id, $User_gender_id, $User_apps_countries_id) { // Connecting to Database $db = $GLOBALS['gdb']; $mysqli = $db->getConnection(); // prepare and bind $stmt = $mysqli->pr...
true
b6cd9610a20c41767515fe07536d496de16d3f54
PHP
ktstudio/WP-Framework
/core/classes/fields/kt_wp_nonce_field.inc.php
UTF-8
2,807
2.9375
3
[]
permissive
<?php /** * Pole formuláře typu WP nonce * * @author Martin Hlaváč * @link http://www.ktstudio.cz */ class KT_WP_Nonce_Field extends KT_Field { const FIELD_TYPE = "nonce"; const DEFAULT_NONCE_NAME = "kt_wpnonce"; private $action = null; protected $visible = false; /** * @param string ...
true
92d81579044e84b3c6027dd2a77c0dbf2ef6af6f
PHP
nesjett/e107-newsfeedFix
/newsfeed_functions.php
UTF-8
13,756
2.6875
3
[]
no_license
<?php /* * e107 website system * * Copyright (C) 2008-2009 e107 Inc (e107.org) * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * * Plugin - newsfeeds * * $Source: /cvs_backup/e107_0.8/e107_plugins/newsfeed/newsfeed_functions.php,v $ * $Revisi...
true
11db317f93a7c570c23643165a09f757424222e8
PHP
slavi104/games_website
/search.php
UTF-8
1,726
2.578125
3
[]
no_license
<?php require_once 'header.php'; if ($_POST) { $text = rtrim($_POST['search_text']); $articles = fRecordSet::buildFromSQL('Article', 'SELECT articles.* FROM articles'); $div = ''; foreach ($articles as $article) { $content = $article->getText(); if (strlen(strstr($content,$text,...
true
0c2e1198f7804691b41a80637a1c16b2c379d7eb
PHP
jamiehannaford/doc-validator
/src/Validator/ValidatorFactory.php
UTF-8
983
2.890625
3
[ "Apache-2.0" ]
permissive
<?php namespace DocValidator\Validator; use Psr\Log\LoggerInterface; class ValidatorFactory { public static function validate(LoggerInterface $logger, $string, $path, &$count) { // decode any ASCII chars $value = trim(html_entity_decode($string)); if (self::isXml($value)) { ...
true
88e3b5018178e5e20d18d150aecfc140061b7004
PHP
estelsmith/dcp-mapper
/src/TransformerInterface.php
UTF-8
218
2.640625
3
[ "MIT" ]
permissive
<?php namespace DCP\Mapper; interface TransformerInterface { /** * Transform a value into a new value. * * @param mixed $value * @return mixed */ public function transform($value); }
true
df2f5b8cbf2d731114faf35ef263f2ed8e4f840e
PHP
sansxd/InventarioTest2Final
/Hospital/controller/eliminar_impr.php
UTF-8
1,128
2.5625
3
[]
no_license
<?php if(isset($_POST['delete']) && $_POST['delete'] == 'Eliminar'){ $id_delete = $_POST['id_imprcopia']; //GET THE ID VIA URL $sqlquery = "SELECT * FROM impr_copias WHERE id_imprcopia='$id_delete'"; $sql = mysqli_query($conn, $sqlquery); if(mysqli_num_rows($sql) == 0){ echo '<div class="...
true
e602b49d22311e8f26e653e668e50328e0fe1f81
PHP
tomk79/PLOG
/plog.files/libs/plog/resources/tbp.php
UTF-8
13,558
2.515625
3
[]
no_license
<?php # Copyright (C)Tomoya Koyanagi. # LastUpdate : 18:49 2010/07/22 ################################################################################################################### # トラックバックピングを司るクラス:発行、受付、両用。 # 受信系:anch_receive_tbp # 発信系:anch_send_tbp # その他:anch_other_methods class cont_plog_resources_tbp{ ...
true
c3f4cb3d902558e1975d649df11d5611dec5b11f
PHP
kjasdlkdjaklfhalhgagd/Sample
/php/web_api.php
UTF-8
8,552
2.765625
3
[]
no_license
<?php /**************************************************************************** 郵便番号から住所入力補助を行うスクリプト(XML用) Ver1.00 (C) 郵便番号検索API 松田将志 2006/12/14 Ver1.00公開 WEB:http://zip.cgis.biz/ 本スクリプトは fopen() 関数で指定されたURL(郵便番号検索API)と通信し、 情報(XMLデータ)を取得。郵便番号から住所入力補助を行うサンプルスクリプトです。 本ファイルは各種入力フォームとして利用するには不完全です。 改造して利用するか、既存のスクリプ...
true
099435458ca59f9f3bdf0bfe24d87ab35449401a
PHP
camille-hdl/lazy-lists
/tests/ReduceTest.php
UTF-8
705
2.578125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace LazyLists\Test; use ArrayIterator; use function LazyLists\reduce; class ReduceTest extends TestCase { public function test() { $list = [1, 11]; $fn = static function ($acc, $v) { return $acc . "-" . $v; }; $this->assertSam...
true
8fabfec8af79388f3a73fee862f70a764a2e96b0
PHP
nikolaidan/lusoexpress
/src/kennysLabs/LusoExpress/Domain/User/Model/RoleLabel.php
UTF-8
406
2.8125
3
[]
no_license
<?php namespace kennysLabs\LusoExpress\Domain\User\Model; /** * Class RoleLabel */ final class RoleLabel { /** * @var string */ private $label; /** * @param string $label */ public function __construct($label) { $this->label = $label; } /** * @return str...
true
22e5543141140e9b7a730dec0c22d0e1f8d04747
PHP
bravepickle/deliveryman
/src/Entity/HttpGraph/HttpHeader.php
UTF-8
1,179
3.0625
3
[ "Apache-2.0" ]
permissive
<?php namespace Deliveryman\Entity\HttpGraph; /** * Class RequestHeader * Contains headers passed within batch request body * @package Deliveryman\Entity */ class HttpHeader { /** * Header name * @var string|null */ protected $name; /** * Header value * @var mixed */ ...
true
dfc3d9f6817cd7b77b187f3d7836d79318a1fa1a
PHP
sofialing/oophp-bth
/router/100_guess.php
UTF-8
2,575
2.96875
3
[]
no_license
<?php /** * Create routes for guessing game. */ //var_dump(array_keys(get_defined_vars())); /** * Play the game - show current game status */ $app->router->get("guess/play", function () use ($app) { $title = "Spela gissa mitt nummer"; // Get current game status from the session $tries = $_SESSION["tri...
true
6739751f1ed850f719ecfbcffa1042a4c3cc5e6a
PHP
ko1eda/levelup-forum
/app/Http/Controllers/Auth/RegisterController.php
UTF-8
3,169
2.71875
3
[]
no_license
<?php namespace App\Http\Controllers\Auth; use App\User; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; use Illuminate\Foundation\Auth\RegistersUsers; use Illuminate\Http\Request; use App\POPO\TokenGenerator; class RegisterController extends Contro...
true
fdbb47fd1e07850ba6eed88711e6cf60da61d636
PHP
grahamkrubin/grahamkrubin.github.io
/Example Projects/ClickbaitToday/loadingstory.php
UTF-8
532
2.828125
3
[]
no_license
<!doctype html> <html> <!-- php load sql--> <body> <?php require 'userdatabase.php'; $story = $mysqli->prepare("select story_title, story_link, story_content, author_id, date_sub from stories"); $story->execute(); $story->bind_result($title, $link, $content, $author_id, $time_written); while($story->fetch()) { print...
true
b1ebdac3d1779f992a0772c920f53f71a9b37bc3
PHP
mathildemichau/Eventy
/index.php
UTF-8
2,056
2.6875
3
[]
no_license
<?php $etat = ''; if(isset($_POST['adressemail']) && isset($_POST['motdepasse'])){ require ('connect.php'); $adressemail = $_POST['adressemail']; $motdepasse = $_POST['motdepasse']; $req = $linkdpo->prepare("SELECT nom FROM Comptes WHERE adressemail = :adressemail"); $req->execute(array('adressemail'=> $a...
true
da5fe1b8829e049cd4d0efa3d9f2058f2427894b
PHP
JulienChollet/ProjetFocus
/classes/exposition.php
UTF-8
4,140
2.890625
3
[]
no_license
<?php /*----------------------------------------- Projet Focus creation date : 11 mars 2017 classes/exposition.php -----------------------------------------*/ class exposition{ private $id; private $nom_expo; private $date_debut; private $date_fin; function __construct($id = 0){ ...
true
71eaa238016629c5e333061920e9ec37a1b0a64b
PHP
Rotmistrz/comments
/comments/Date.php
UTF-8
2,576
3.171875
3
[]
no_license
<?php namespace rotmistrz\comments; /******************************************************************** * * File's name: Date.php * Script's author: Filip Markiewicz (www.filipmarkiewicz.pl) * * Created: 21.12.2012r. * Last modificated: 03.01.2015r. * ****************************************************...
true
47e2e76789fec0978c8527295c10a93e726d5ef0
PHP
tripal/mainlab_tripal
/includes/gene_class.page.inc
UTF-8
2,382
2.578125
3
[]
no_license
<?php /* * Create a page that lists all features filtering by the ogramisn (i.e. $organism in 'genus-species' format), * or the feature type (i.e. $type), or the germplasm name ($stock). All these variables are optional if the passed * in value = '_' (i.e. underscore). P.S. This function requires tripal_feature mod...
true
0d578f3b13e19c6071d55f797a0a0b8465a7d82e
PHP
nmabe/matcha
/class/Hash.php
UTF-8
485
2.9375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: nmabe * Date: 11/6/2018 * Time: 11:39 PM */ class Hash { public static function make($password, $salt = null) { return (hash('sha256', $password.$salt)); } public static function salt() { $seasoning = "s!0@a#8$%6l^&t5*(...
true
da3dbcea32a1cc7d3c268623871c957cbb45bc79
PHP
getsentry/sentry-php
/src/ResponseStatus.php
UTF-8
3,062
3.3125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Sentry; /** * This enum represents all possible reasons an event sending operation succeeded * or failed. */ final class ResponseStatus implements \Stringable { /** * @var string The value of the enum instance */ private $value; /** * @var array...
true
1680d7e7e6f0950b8f97fd480b0307636ec1ea02
PHP
scottjparker21/ecommerce
/includes/crud.php
UTF-8
11,806
3
3
[]
no_license
<?php session_start(); // helper function for validation function valid($varname){ return ( !empty($varname) && isset($varname) ); } // Customer Address Crud -------------------------------------------------------------------------> class customerAddress { public $customer_id; public function __construct($c...
true
2cb866bd6c82d179e7d4deff646736b375e62262
PHP
tanbaygon112/ex2
/ex2/database/seeds/UserSeeder.php
UTF-8
366
2.65625
3
[ "MIT" ]
permissive
<?php use App\User; use Illuminate\Database\Seeder; class UserSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $user =new User(); $user->name = "Chanon Namkow"; $user->email = "chanon1jp@gmail.com"; $user-...
true
ae5f9e430e4daa5c346f2b0e17d96aae8d2a477d
PHP
ronindesign/SBWiki
/inc/SbAbility.php
UTF-8
1,384
2.890625
3
[]
no_license
<?php class SbAbility extends SbCoreBase { //--- Constructor ---// protected function __construct(Parser $parser) { parent::__construct($parser, NULL, NULL); } //--- Public Methods ---// public static function Hook(Parser $parser, $param1= NULL, $param2= 'ilt') { $obj = new SbAbility($parser); return $...
true
97fb75adca14bff5635a1adb892827312e30706b
PHP
gustallafermrd/gustallafermrd.github.io
/avril/voucherphp/test.php
UTF-8
904
2.734375
3
[]
no_license
<?php include 'vendor/autoload.php'; $parser = new \Smalot\PdfParser\Parser(); $pdf = $parser->parseFile('uploads/test.pdf'); $text = $pdf->getText(); echo $text; ?> preg_match("^\\d{1,2}/\\d{2}/\\d{4}^", "datehere"); var name = info.match(/NOMBRE:(.*)/)[1]; if (strpos($text, 'VOUCHER Nº') !== FALSE) { echo 'Enc...
true
1b48eb141c7c989eb82b1f8200f2d288ebf2c389
PHP
rodnover55/php-vcr
/src/VCR/Interfaces/Client.php
UTF-8
334
2.90625
3
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
<?php namespace VCR\Interfaces; interface Client { /** * Returns a response for specified request. * * @param Request $request Request to send. * * @return Response Response for specified request. */ public function send(Request $request); public static function fromArray(ar...
true
d0ed91c75aaec90a2759a5346ace8afcbb30c6f0
PHP
Russelunnithan/georgian
/lesson-02/examples/add_artist.php
UTF-8
647
3.09375
3
[]
no_license
<?php // get our connection script require_once( $_SERVER['DOCUMENT_ROOT'] . '/shared/connect.php' ); // build the SQL statment with placeholders $sql = 'INSERT INTO artists (name, bio_link) VALUES (:name, :bio_link)'; // assign our values to variables $name = $_POST['name']; $bio_link = $_POST['bi...
true
da634645f7d6e09f8f9a61a731b51324479f2392
PHP
locnet/viaggi
/app/Lib/CustomClasses/SpanishDate.php
UTF-8
708
2.9375
3
[ "MIT" ]
permissive
<?php namespace App\Lib\CustomClasses; use App; /*-------------------------------------------| | CLASE ESTATICA | |--------------------------------------------|*/ class SpanishDate{ /** * Devuelve el nombre del edificio segun su codigo. * * @return $type, nombre del e...
true
2d657ebb4962751ff452654c40520f86139a4822
PHP
ASUPortal/ASUPortalPHP
/_core/_models/workplan/print/part4/total/CWorkPlanTermSectionsLecture.class.php
UTF-8
1,837
2.546875
3
[]
no_license
<?php class CWorkPlanTermSectionsLecture extends CAbstractPrintClassField { public function getFieldName() { return "Общая нагрузка. Лекции"; } public function getFieldDescription() { return "Используется при печати рабочей программы, принимает параметр id с Id рабочей программы"; ...
true
d182ed3452a163bbc8cf6dfd79b3ca9f348bf6e8
PHP
audreyantony/portfolio-v2
/model/signup.model.php
UTF-8
4,319
2.515625
3
[]
no_license
<?php function signUpSelect($nickname,$email, $db){ $query = 'SELECT * FROM portfolio_user WHERE nickname_portfolio_user = "'.$nickname.'" OR mail_portfolio_user = "'.$email.'";'; return $db->query($query); } function signUpSelectArray($nickname, $db){ $query = 'SELECT * FROM portfolio_user WHERE nickname...
true
ffc5ab503e356ada4701b99e5242f9bdc2e99cb6
PHP
aadityabhusal/buorso
/views/home.php
UTF-8
1,378
2.578125
3
[]
no_license
<section> <div class="container"> <h3 class="title">Today</h3> <?php if(!isset($todayData['noProducts'])){ ?> <ul class="ads-container"> <?php foreach ($todayData as $product => $data) { extract($data); echo Product::getProduct($product_id, htmlspecialchars($title), 'images/product/'.$image_thu...
true
190aa94b35bd3fe55f5fee4299931133d94581c3
PHP
michield/phplist-plugin-fckeditor
/plugins/fckphplist.php
UTF-8
2,805
2.515625
3
[]
no_license
<?php /* * plugin for phpList to provide the FCKeditor in the compose campaign page * * works with the FCKeditor version 2.6.8 * */ class fckphplist extends phplistPlugin { public $name = "FCKeditor plugin for phpList"; public $coderoot = "fckphplist/"; public $editorProvider = true; public $version =...
true
2e522225d64f23fd7a22e328d88c03df50002558
PHP
ricardokovalski/holidays
/src/Collections/AllHolidays.php
UTF-8
493
2.6875
3
[ "MIT" ]
permissive
<?php namespace Holidays\Collections; /** * Class AllHolidays * @package Holidays\Collections */ class AllHolidays extends AbstractCollection { /**] * AllHolidays constructor. * @param $year */ public function __construct($year = null) { parent::__construct($year); $this-...
true
05d363e7485525b42648e67f6b21d3ef3470f837
PHP
hiteshappadu/spdcam
/ibmcloud-mydemo.php
UTF-8
1,679
2.9375
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Gawesh's Demo of PHP Frontend connection to IBM Cloud DB2</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="stylesheet" href="style.css" /> </head> <body> <?php $database = "BLUDB"; # Replace the ??? based on the information in your Service detai...
true
16bdf1d88a9cbc34ee1d564f733f38deb0c6ff30
PHP
italos/Laravel-Disposable-Email
/src/DisposableDomains.php
UTF-8
4,304
2.953125
3
[]
no_license
<?php namespace Propaganistas\LaravelDisposableEmail; use ErrorException; use Illuminate\Contracts\Cache\Repository as Cache; use Illuminate\Support\Arr; use Propaganistas\LaravelDisposableEmail\Traits\ParsesJson; class DisposableDomains { use ParsesJson; /** * The storage path to retrieve from and sav...
true
c3abdab541329d284f281c0089a34c861eadecef
PHP
mfathei/codeigniter-api
/application/controllers/api/City_api.php
UTF-8
3,692
2.703125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?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 /** @noinspection PhpIncludeInspection */ require APPPATH . 'libraries/REST_Controller.php'; class City_api extends REST_Controller { public function __con...
true