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
4e3183758ace936037f6c0b58f83c7a60ac90600
PHP
parmsa/poject_kabeBenin
/web_app/src/Service/UtilisateurServiceRest.php
UTF-8
4,570
2.78125
3
[]
no_license
<?php namespace App\Service; use App\Entity\Utilisateur; use App\Entity\PaginatorResponse; use App\Helper\SerializerHelper; use Exception; use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; use Symfony\Component\Serializer\SerializerInte...
true
82cd1bb8644e87c14fe9205b74914287c04fbfba
PHP
anthonylacrabere/Book-IFA
/Class/Database.php
UTF-8
732
3.046875
3
[]
no_license
<?php class Database { private static $_instance; public static function getInstance() { $servername = "localhost"; $username = "root"; $password = "root"; $dbname = "library"; $charset = "utf8"; if(is_null(self::$_instance)) { try { ...
true
1c5289f2ba8c4a8c80862ec2489ccfdf68e212da
PHP
evan2579429110/laravel-rpc
/src/Services/Ws/WsRpcClient.php
UTF-8
1,462
2.671875
3
[]
no_license
<?php namespace LaraRpc\Services\Socket; use Hprose\Socket\Client; use LaraRpc\Services\RpcClient; class WsRpcClient extends RpcClient { protected $options = []; /** * 设置默认路由 */ public function setRouter() { if (!isset($this->options['route'])){ $this->options['route'...
true
cd1e4a487fd624ccc49ae3c3382573a745c10ac1
PHP
ShinkyuMartialArts/gocardless-pro
/tests/Models/SubscriptionTest.php
UTF-8
4,988
2.609375
3
[ "MIT" ]
permissive
<?php namespace GoCardless\Pro\Tests\Models; use GoCardless\Pro\Models\Mandate; use GoCardless\Pro\Models\Subscription; class SubscriptionTest extends \PHPUnit_Framework_TestCase { /** @test */ function it_returns_the_current_status() { $this->assertTrue(Subscription::fromArray(['status' => 'acti...
true
26c5161c24f96fef78a40eabe19e0523a1c6ac9c
PHP
nielslange/gunung-an
/wp-content/themes/away-genesis/include/shortcode/shortcodes.php
UTF-8
2,832
2.515625
3
[]
no_license
<?php /**------------------------------------------------------------------- * Theme Shortcodes --------------------------------------------------------------------*/ /** * Box Content */ if ( !function_exists( 'zp_box_content' ) ){ function zp_box_content( $atts, $content = null ){ extract( shortcode_atts( arra...
true
8bf8dede857c5999a6433303bfb2dc5a1986f059
PHP
atelierdumarchand/ADM_Core
/app/code/community/ADM/Core/Block/Adminhtml/Widget/Grid/Column/Renderer/Multi.php
UTF-8
4,379
2.640625
3
[]
no_license
<?php class ADM_Core_Block_Adminhtml_Widget_Grid_Column_Renderer_Multi extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract { /** * Renders grid column * * @param Varien_Object $row * @return string */ public function render(Varien_Object $row) { $input...
true
373ca7fd75cd300678fb7d95f6aec8fecb5f8fc3
PHP
valvadis/rental-application
/module/Rental/src/Domain/Apartment/Apartment.php
UTF-8
1,798
2.65625
3
[]
no_license
<?php namespace Rental\Domain\Apartment; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Rental\Domain\Address; use Doctrine\ORM\Mapping as ORM; use Rental\Domain\Booking\ApartmentBooking; /** * @ORM\Entity(repositoryClass="Rental\Infrastructure\Repository\ApartmentR...
true
23bbf7e58acc52001d5f272f6191d2dfd371c991
PHP
artdevision/HR-php-test
/app/Http/Middleware/HitsMiddleware.php
UTF-8
942
2.515625
3
[]
no_license
<?php namespace App\Http\Middleware; use Closure; use Artdevision\YandexWeather\Client as YandexWeatherClient; use Illuminate\Support\Facades\Cache; class HitsMiddleware { private $client; // Тут по красоте Dependency Injection public function __construct(YandexWeatherClient $client) { $this...
true
495e9373abe27ba4b194e44f5c3cf25f37cc0668
PHP
owenvoke/crypto-check
/src/Commands/WalletList.php
UTF-8
1,361
2.78125
3
[ "MIT" ]
permissive
<?php namespace pxgamer\CryptoCheck\Commands; use pxgamer\CryptoCheck\Wallet; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; /** * Class WalletList */ class WalletList extends Command { public function c...
true
f29552bfdd9abdbaf94ea75283f3ece9121c7f6f
PHP
AsifMahmudSiam/Summer_2020_WebTech
/ASSIGNMENT/PersonalInformation.php
UTF-8
4,267
2.953125
3
[]
no_license
<?php if($_POST) { $errors =array(); if (empty($_POST['name'])) { $errors['name1']= "You must fill up the field"; } if (empty($_POST['email'])) { $errors['email1']= "You must fill up the field"; } if (empty($_POST['gender'])) { $errors['gender1']= "You must fill up the field"; } if (isset($_POST['degree1']) || is...
true
06a4c95241e886112c7b20bc5fd531fe90ef8a7c
PHP
dfg510dfg/fvv
/cms/_util/Datos.php
UTF-8
71,284
2.546875
3
[]
no_license
<?php include("Mysql.php"); class Datos { public static function getCombo($mostrar,$vValores,$valorPorDefecto) { $objMysql = new Mysql(); $salida = NULL; $val = $vValores[0]; // parametr 1 pasado por array $val2 = $vValores[1]; // parametr 2 pasado por array try { ...
true
aa5293e87759e5212db5aab71de54b85faba9f50
PHP
brandon-kp/Urlly
/application/controllers/main.php
UTF-8
620
2.796875
3
[]
no_license
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Main extends CI_Controller { public function __construct() { parent::__construct(); $this->load->library('form_validation'); $this->load->database(); } public function index() { $slug = $this->uri->segment(2); if(strlen($...
true
1b71c853e3294aaacc2621b316e1521a5a137a47
PHP
juan2ramos/archivos.mercado
/app/Http/Requests/CreateFileRequest.php
UTF-8
1,635
2.53125
3
[]
no_license
<?php namespace App\Http\Requests; use App\Events\NewFile; use App\Models\Client; use App\Models\File; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Support\Facades\Storage; use Illuminate\Support\Str; use Illuminate\Support\Facades\DB; class CreateFileRequest extends FormRequest { /** * Determ...
true
fccbd46bb6ee407d5b727c15342e9a744886b6f7
PHP
manhhungg1410/CodeDEV
/Session1-PHP Basic/Lab3.php
UTF-8
2,042
3.140625
3
[]
no_license
<?php //Mang $name = 'Hung'; $name1 = 'Hieu'; $name2 = 'Dang'; /* * KHAI BAO MANG */ //c1: [] $arrNames = []; //c2: array() $arrNames2 = array(); //Khoi tao mang co gia tri mac dinh $arrNames = [1,2,3]; $arrNames2 = array(1,2,3); echo "<pre>"; print_...
true
cefe633c6651501d805e1c793cd7517e4a7a8b1e
PHP
musaberatbahadir/relaxing-songs
/app/Http/Controllers/FavoriteController.php
UTF-8
1,986
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Helpers\ApiResponse; use App\Helpers\Error; use App\UserSongFavorite; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Validator; class FavoriteController extends Controller { /** * Store a newly created resource i...
true
4e0cea5524754e6bd904d73f53b7f81aa2abfe5e
PHP
pamekasancode/CRUDdatasiswa_native
/tambahdata.php
UTF-8
2,014
2.609375
3
[]
no_license
<?php include 'koneksi.php'; if (isset($_POST["tambah"])) { $nisn = htmlspecialchars($_POST["nisn"]); $nama = htmlspecialchars($_POST["nama"]); $alamat = htmlspecialchars($_POST["alamat"]); $query = mysqli_query($conn, "INSERT INTO siswa VALUES('', '$nisn', '$nama', '$alamat')"); if ($query) { echo ...
true
dc89400bc9299c6576644c0bf753cc18147e2cb5
PHP
catherinemaglasang/Fee-Calculator-Laravel-
/app/API/Stdlib/Seeders/AbstractStateVehicleTypeFeeSeeder.php
UTF-8
3,572
2.625
3
[]
no_license
<?php namespace Thirty98\API\Stdlib\Seeders; use Illuminate\Support\Facades\DB; use Thirty98\Models\Fee; use Thirty98\Models\StateVehicleFee; use Thirty98\Models\StateVehicleType; use Thirty98\Models\VehicleType; class AbstractStateVehicleTypeFeeSeeder extends AbstractDatabaseSeeder { /** To check use th...
true
dc9fb956abc0b5857954cb0893551ccbab9a2d5b
PHP
irkoch/api_storage
/src/RequestEncoderFactoryInterface.php
UTF-8
1,135
2.796875
3
[ "MIT" ]
permissive
<?php /** * @file * Contains \Drupal\api_storage\ResponseEncoderFactory. */ namespace Drupal\api_storage; use Drupal\Component\Serialization\SerializationInterface; /** * Factory for response encoders. */ interface RequestEncoderFactoryInterface { /** * Add a encoder. * * @param \Drupal\Component\Se...
true
694c7697baf1af7ac01d63bb41d33f649f594a96
PHP
lbnvwork/so
/src/Office/src/Middleware/CheckCompanyMiddleware.php
UTF-8
1,857
2.546875
3
[]
no_license
<?php declare(strict_types=1); namespace Office\Middleware; use Auth\Entity\User; use Doctrine\ORM\EntityManager; use Office\Entity\Company; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\RequestHandlerInterface as DelegateInterface; use Psr\Http\Server\Middle...
true
235f87face3f3f544bfe0a5a95e9650808fa2aeb
PHP
rainkohv/php_alused
/yl8.php
UTF-8
889
3.203125
3
[]
no_license
<?php /* * Ülesanne 8 * Rain Kohv * 08.12.2020 */ date_default_timezone_set('Europe/Tallinn'); echo date('d.m.Y G:i' , time())."<br>"; $synniaasta = 1994; echo 'Kasutaja vanus sellel aastal on '.(date('Y') - $synniaasta)."<br>"; $date1 = new DateTime('2020-12-08'); $date2 = new DateTime('2021-06-06'); $days ...
true
2dc7cecce1626218a7af6967c68295228c2c0787
PHP
MegaMaxim10/cours-prog-web-dynamique
/Sources/Gest-Parc-Auto-Complet/add-auto-page.php
UTF-8
2,986
2.734375
3
[ "MIT" ]
permissive
<?php session_start(); require_once "functions.php"; $state = 0; $auto = null; if (!isLogged()) { header("Location:login.php"); } else { require_once "header.php"; if (isset($_POST['auto_name'])) { $result = false; if (isset($_GET['auto_id'])) $result = updateAuto($_POST['au...
true
de7717086f2aab37f12652e966661a95a4f655ad
PHP
anchavez/Curriculum
/Week_2/Day_2/Challenges/easy.php
UTF-8
686
4.46875
4
[ "MIT" ]
permissive
<?php /** * Write a function called "add" that adds all the numbers in an array and * returns the result. */ ?> <!DOCTYPE html> <html> <head></head> <body> <p> <?php function add($numbers){ $result = 0; ...
true
56483a9038c3219b4e652434396e8edc1417d32c
PHP
pthreat/apf-dev
/class/generator/Data.class.php
UTF-8
8,370
2.734375
3
[]
no_license
<?php namespace apf\generator{ use apf\iface\database\Table; use apf\util\String as StringUtil; use apf\generator\code\Namespace_ as NamespaceBlock; use apf\generator\code\Class_ as ClassBlock; use apf\generator\code\func\Parameter; use apf\generator\code\class_\Attribute; use apf\generato...
true
0b5c2dd737168f21a0554a104ef2da0b58051d38
PHP
FranSlannn/IAW
/tests/fran/Practicas/p-iaw-7/formulario.php
UTF-8
2,093
3.421875
3
[]
no_license
<?php /* Crear un Script php que use un FORMULARIO. El formulario debe tener dos imputs numéricos (input_a) (input_b) El formulario debe tener un botn submit con el valor "Sumar" El formulario debe tener un action que redirija a la misma página donde esté el form Una vez enviad...
true
68fc486fef6cdbecafd05761f1f53dbae3850aec
PHP
PovilasZubrys/HomeWork
/form/2.php
UTF-8
614
2.890625
3
[]
no_license
<?php if(isset($_GET['color'])) { if (1 == $_GET['color']) { $backgroundColor = 'black'; } if (2 == $_GET['color']) { $backgroundColor = 'white'; } else { $backgroundColor = '#' . $_GET['color']; } } else { $backgroundColor = '#000'; } ?> <!DOCTYPE html> <html lang="...
true
5f298b5a2c213ec53c1a909c9caabb2b799bb6b2
PHP
cc-hung/18php05
/PHP/SESSION13/BT/bt2.php
UTF-8
380
2.90625
3
[]
no_license
<?php function tinh() { # code... $usd = 5; $err = 0; $keo = 0; $count = 0; $count_err =0; while ($keo <= 50) { # code... if ($usd>=5) { $err = $err +3; $keo ++; $usd = $usd -5; }else { $usd = $usd +1; $count ++; } if ($err >= 2) { $usd = $usd +3; $keo ++; $err = $err -2; } ...
true
424350f126dd78bc8e93d541ff1f417d1e5f544f
PHP
gustavoclay/PhpStudy
/revision/OO/aula04.php
UTF-8
465
3.046875
3
[]
no_license
<?php require_once 'Caneta.php'; ?> <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Teste</title> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <pre> <?php $c1 = new Caneta('BIC', 'azul', 50); e...
true
9e3aa2ca7fc679161e78c313c3f984be1a8fb1b0
PHP
magento-russia/2
/app/code/local/Df/Localization/Model/Onetime/Dictionary/Term.php
UTF-8
5,483
2.53125
3
[]
no_license
<?php class Df_Localization_Model_Onetime_Dictionary_Term extends Df_Core_Model_SimpleXml_Parser_Entity { /** * @override * @return string */ public function getId() {return $this->getFrom();} /** * 2015-08-23 * Здесь допустим как двухсторонний, так и односторонний лайк (только справа или только слева). ...
true
c0e0daa5549d1961e95c57cfa2b571a56292ecd5
PHP
Ambroosjaime/php
/html/stringfunctions/numberofword.php
UTF-8
112
2.65625
3
[]
no_license
<pre> <?php str_word_count("jaime ambroos"); echo str_word_count("jaime ambroos"); ?> <pre>
true
ca5eedff94dacfe7d126c363db13e0dec7a6ccd7
PHP
lucams/Petshop-PHPOO
/view/listaCliente.php
UTF-8
1,031
2.546875
3
[]
no_license
<table class="table table-striped"> <caption> <h4>Listagem de Clientes</h4> </caption> <thead> <tr> <th>Id</th> <th>Nome</th> <th>Telefone</th> <th>Data Nascimento</th> <th colspan="2">Ações <a href="cliente.php?op=I" class="btn btn-success">Novo</a></th> </tr> </thead> <tbody> <?php $dao ...
true
124bc74c7f8ad3eb3e2de170c6bb3eb946de0498
PHP
localfr/uberall-bundle
/src/Entity/PricePerCountry.php
UTF-8
2,128
2.890625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Localfr\UberallBundle\Entity; class PricePerCountry { /** * @var string */ private $country; /** * @var int */ private $marketDevelopmentFunds; /** * @var int */ private $price; /** * @var int */ private $priceSetup; /** ...
true
1f42db21067f3ddc18de6f7636c32da91b5e2a01
PHP
naveldiallo/projet_sesame
/marker5.php
UTF-8
3,325
2.59375
3
[]
no_license
<?php require 'phpheader.php'; ?> <center> <table > <tr> <tr ALIGN="center" valign="top"> </center> <tr> <th><blockquote><p align="justify"><i><font size="3"><center>mRNA sequence: <?php echo $_GET['param']?></i></p></blockquote></center></th> <th><blockquote><p align="justify"><i><font size="3"><center>Peptide ...
true
b743bcef680a73eb433b9ac2ebc375f0be0401ab
PHP
nicolaslei/payment
/src/Provider/Alipay/Api/AbstractApi.php
UTF-8
5,564
2.640625
3
[]
no_license
<?php namespace Stone\Pay\Provider\Alipay\Api; use GuzzleHttp; use Stone\Pay\Exception; use Stone\Pay\Provider\Alipay\Api\Traits\BizContentTrait; use Stone\Pay\Provider\Alipay\SignType\SignTypeInterface; use Stone\Pay\LoggerTrait; /** * Class AbstractApi * @package Stone\Pay\Provider\Alipay\Api * @author 令狐冲 <ni...
true
8611fe85a2da4046476203d27b4bd9e5b00fe9bf
PHP
SurajNaga/CodeIgniter
/application/controllers/contacts.php
UTF-8
2,769
2.5625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Contacts extends CI_Controller { /** * Address Data * List, add * @see https://codeigniter.com/user_guide/general/urls.html */ function __construct() { parent::__construct(); $this->load->library('form_validation'); ...
true
178363ebd9ffb45a5e0c7f841b0c7723315edfda
PHP
imos/icfpc2014
/depot/bin/ghc-compile
UTF-8
4,015
2.59375
3
[]
no_license
#!/usr/bin/php <?php if ($argc != 3) { fprintf(STDERR, "Usage: ghc-compile <name> <file>\n"); exit(1); } $LABELS = array(); $COMMANDS = array(); function AddLabel($lineno, $program_counter, $line) { $line = trim($line); if (preg_match('%^\\s*([\\w\\d_]+):\\s*$%', $line, $match)) { $GLOBALS['LABELS'][$mat...
true
54a08df14932e5253fb0fab6fb02c4bfc6b232e1
PHP
koraykupe/playground
/app/DesignPatterns/ChainOfResponsibility/Lights.php
UTF-8
499
2.609375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: koray.kup * Date: 26.12.2016 * Time: 10:44 */ namespace DesignPatterns\ChainOfResponsibility; use DesignPatterns\ChainOfResponsibility\HomeStatus; use DesignPatterns\ChainOfResponsibility\HomeChecker; use Exception; class Lights extends HomeChecker { public function ...
true
ca4a34e2c647be2fc6584a7a25f0ff3efd96f9fb
PHP
VictorVilin/Accupuncture-app
/html/compte/profilpage.php
UTF-8
3,690
2.515625
3
[]
no_license
<!-- page d'inscription,l'utilisateur y rentre ses données presonnelles auteur:Thibaud Jacquelin 09.02.2019 modification: Thibaud Jacquelin, 24-02-2019, rajout de l'affichage des informations et modification du formulaire de modification Victor Vilin,, 25-02-2019, correction de l'affichage au cas où aucun compte n'est ...
true
2c5a2712b121d0e3b2f1635974af332b229918f2
PHP
Jack-Barradell/Alliance-management-console-Old
/classes/News.php
UTF-8
12,691
2.96875
3
[]
no_license
<?php namespace AMC\Classes; use AMC\Exceptions\BlankObjectException; use AMC\Exceptions\IncorrectTypeException; use AMC\Exceptions\InvalidNewsCategoryException; use AMC\Exceptions\InvalidUserException; use AMC\Exceptions\QueryStatementException; class News implements DataObject { use Getable; use Storable; ...
true
99e1a9ef568424bf87f5845024df1ab5eada7e3c
PHP
Gorotto/megashop
/includes/utilites/metapng.php
UTF-8
4,352
2.640625
3
[]
no_license
<? require_once( "{$_SERVER['DOCUMENT_ROOT']}/includes/autoload.php" ); /* Проверка существования файла должна выполняться правилами Rewrite. Считается, что файл существует, равно как и переменная color. */ // Каталог, в котором будет храниться кеш отрендеренных файлов $cachePath ...
true
090db8d07f24279362d822253c7617d96ef05318
PHP
LittleGeorgeWatchingStar/Rialto2020
/src/Rialto/Payment/AuthorizeNetFactory.php
UTF-8
560
2.65625
3
[]
no_license
<?php namespace Rialto\Payment; use AuthorizeNetAIM; /** * Decouples our AuthorizeNet class from the official SDK, for easier testing. */ class AuthorizeNetFactory { /** @var string */ private $login; /** @var string */ private $transactionKey; public function __construct($login, $transKey) ...
true
f1f5f7de62f1651f17829c7213f666ffba7140ae
PHP
zerkella/php_mage
/tests/unit/testsuite/Varien/Object/methods/isDeletedTest.php
UTF-8
1,436
2.859375
3
[]
no_license
<?php class Varien_Object_methods_isDeletedTest extends PHPUnit_Framework_TestCase { public function testIsDeleted() { $object = new Varien_Object(); $this->assertFalse($object->isDeleted()); // Nothing changes after calling without the param $this->assertFalse($object->isDelete...
true
410a7eb6f695a97f731cf9b461cfde7a1770bd46
PHP
thecsea/imagine
/src/ImagineManager.php
UTF-8
1,169
2.65625
3
[ "MIT" ]
permissive
<?php namespace Orchestra\Imagine; use Illuminate\Support\Manager; use Imagine\Gd\Imagine as Gd; use Imagine\Gmagick\Imagine as Gmagick; use Imagine\Imagick\Imagine as Imagick; use Orchestra\Support\Concerns\WithConfiguration; class ImagineManager extends Manager { use WithConfiguration; /** * Create a...
true
b8552497c5e7d638318d5bac177b24091a785ec0
PHP
StephenOrJames/MultipleChoice
/mathematics/5.php
UTF-8
1,221
2.90625
3
[]
no_license
<?php require '../mc.php'; $items = array( // 1 new Item( 'Round 8291 to the nearest ten.', array( '8290', '8291.0', '8300', '90' ) ), // 2 new Item( 'Round 412.323 to the nearest hundredth.', array( '412.32', '412.31', '412.33', '400.32' ) ), // 3 new Item( 'Round 8982.3 to the nearest hundred.', ...
true
eff1d8cb4193244879536cc9fc77189a4bbc4298
PHP
taraska/phpmvc
/models/index_model.php
UTF-8
2,478
2.546875
3
[]
no_license
<?php class Index_Model extends Model { public function __construct() { parent::__construct(); } function loadFile($files) { if (isset($files)) { print_r($files); for ($count = 0; $count <= 2; $count++) { if (is_uploaded_file($files['tmp_name...
true
b2b7ef10aefe496149c65a4602dad670a14ac844
PHP
keninqiu/Iugo
/src/Api/IugoApi.php
UTF-8
3,030
2.921875
3
[]
no_license
<?php namespace Api; require_once __DIR__ . "/../Settings/HttpMethod.php"; use Settings\HttpMethod; class IugoApi { protected $method = ''; protected $endpoint = ''; protected $data = []; public function __construct($request) { /* initialization of IugoApi object for the fields of m...
true
bcedca15845905d4be22d86f8b318d1638bddd77
PHP
Shadowz3n/CrowPHP
/app/models/User.php
UTF-8
560
2.796875
3
[]
no_license
<?php class User extends Model{ public $id; public $firstname; public $lastname; public $email; public $password; public $created; public $orderBy = array("firstname", "lastname", "email", "created"); public function select(){ $paginat...
true
b51af6b65d3903ecea60e4f73a905b2153539c92
PHP
MULLER13S/Repo0619
/Codes/CopyOfTheCode/00Php/Error--imooc/Exception/logException.php
UTF-8
431
2.59375
3
[]
no_license
<?php class LogException extends Exception{ public function __construct($message=null,$code=0){ parent::__construct($message,$code); error_log($this->getMessage(),3,'H:/ERROR/notice.log'); } } try{ $link=mysqli_connect('localhost','root','rooot','sdfd'); if(!$link){ throw new Lo...
true
c19a46bb00f685faacf550c0243c1a63d7b3f6dc
PHP
BabkoSergey/Reports
/app/Repository/DevReportsRepository.php
UTF-8
1,904
2.828125
3
[ "MIT" ]
permissive
<?php namespace App\Repository; use App\DevReport; class DevReportsRepository { private $report; /** * Create a new controller instance. * * @return void */ public function __construct(DevReport $report) { $this->report = $report; } public function...
true
86e30aced7cd5ed9e7f55653e3b76f272248e047
PHP
KriksalisProgrammer/lbsITeh2seb1lb
/index.php
UTF-8
2,033
2.5625
3
[]
no_license
<?php include('connect.php'); ?> <!DOCTYPE html> <html> <head> <title>labs1</title> <meta charset="utf-8"> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div class="Zapros1"> <form action="Zap1.php" method="POST"> <P>Число сотрудников отдела выбраного руководителя</P> ...
true
faeaf4fe9a94c336f8f8d82bbdfdf78c3ad9fa64
PHP
Dig-Dug/MySql-Pdo
/includes/funktionen.inc.php
UTF-8
845
2.921875
3
[ "MIT" ]
permissive
<?php /** * Zeigt eine 404-Fehlerseite an und bricht die Abarbeitung des aktuellen * Skripts ab. */ function render404() { header("HTTP/1.0 404 Not Found"); echo "Seite nicht gefunden!"; exit(); } /** * Formatiert einen MySQL-DATE-String in ein...
true
7e7507545183dffe8d3135a9e3845ac21734ab3a
PHP
FlorinaElena/TW
/Driver Master/reset_pass_server.php
UTF-8
1,063
2.734375
3
[]
no_license
<?php session_start(); $username = ""; $email = ""; $errors = array(); // connect to the database $db = mysqli_connect('fenrir', 'question1', 'phd3Vx3TuW', 'question1'); if (isset($_POST['reset_user'])) { $email = mysqli_real_escape_string($db, $_POST['email']); $password = mysqli_real_escape_string($db, $_PO...
true
6c6a1373cfdfe4fb03170d0916be44118555ff3d
PHP
Demolver/ConnectionBus
/src/Factory/SettingGrpcClient.php
UTF-8
1,601
2.609375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Factory; use App\Dto\GrpcSettingDto; use App\Dto\SettingDtoInterface; use Grpc\ChannelCredentials; use GrpcServices\GrpcClientClient; use GrpcServices\GrpcRequest; use Symfony\Component\Serializer\Encoder\JsonEncoder; use Symfony\Component\Serializer\SerializerInterface; ...
true
19a96b5a072d57f78ef810a99e18c28017f47442
PHP
djycheng/scba_php
/public/functions/submit_contact.php
UTF-8
2,694
2.8125
3
[]
no_license
<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; //Load composer's autoloader require '..\..\vendor\autoload.php'; ini_set('display_errors',1); ini_set('display_startup_errors',1); error_reporting(-1); $headers = array('name', 'email', 'phone', 'message'); $row = array(); foreach ($header...
true
9f81ab17c3e90d15d273307943c0a40a26cd71cb
PHP
anlutro/laravel-4-core
/src/Auth/Users/UserRepository.php
UTF-8
4,765
2.8125
3
[ "MIT" ]
permissive
<?php /** * Laravel 4 Core * * @author Andreas Lutro <anlutro@gmail.com> * @license http://opensource.org/licenses/MIT * @package l4-core */ namespace anlutro\Core\Auth\Users; use anlutro\LaravelRepository\EloquentRepository; /** * Repository for user models. */ class UserRepository extends EloquentRepos...
true
33f73a7b8c8bc38fac6f3877010e85cafb7277c5
PHP
ruoxiao-zh/tourism
/app/Transformers/MembersTransformer.php
UTF-8
702
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Transformers; use App\Models\Member; use League\Fractal\TransformerAbstract; class MembersTransformer extends TransformerAbstract { public function transform(Member $member) { return [ 'id' => $member->id, 'monetary' => $member->monetary, ...
true
50050e61ab88ed6cb9d5d9806db5128c003aeba9
PHP
controlecn/lotoplayfuncionando
/support/API/Util_Cal.php
UTF-8
3,110
2.71875
3
[]
no_license
<?php if ( ISSET( $_OFFICE_UTIL_CAL_LOADED ) == true ) return ; $_OFFICE_UTIL_CAL_LOADED = true ; function Util_Cal_DrawCalendar( $dbh, $m, $y, $href, $href_self, $href_month, $action ) { global $TIMEZONE ; if ( ( !$m ) || ( !$y ) ) { $m = date( "m",time()+$TIMEZONE...
true
4254d112e9f2c175e6c6d9066714b4ec566b3112
PHP
VitexSoftware/FlexiBee-ClientZone
/src/ClientZone/ui/HtmlInvoice.php
UTF-8
814
2.515625
3
[]
no_license
<?php namespace ClientZone\ui; /** * Description of htmlInvoice * * @author vitex */ class HtmlInvoice extends \Ease\Container { /** * Gives you html FlexiBee invoice * * @param \FlexiPeeHP\FlexiBeeRO $invoice */ public function __construct($invoice) { $pdfFile = $invoice...
true
f7cb6999f4b8daa0c9e0bc3cb97311de4265e89a
PHP
NamelessCoder/typo3-repository-client
/src/ExtensionUploadPacker.php
UTF-8
11,938
2.875
3
[ "MIT" ]
permissive
<?php namespace NamelessCoder\TYPO3RepositoryClient; /** * Class ExtensionUploadPacker */ class ExtensionUploadPacker { const KIND_DEPENDENCY = 'depends'; const KIND_CONFLICT = 'conflicts'; const KIND_SUGGEST = 'suggests'; protected $permittedDotFiles = ['.htaccess', '.htpasswd']; /** * @pa...
true
24eb94f79f994c437c3a60dcccb390235fc3ff24
PHP
manishkhanchandani/admin403
/tryemail.php
UTF-8
807
2.734375
3
[]
no_license
<?php include("includes/pear/Mail.php"); /* mail setup recipients, subject etc */ $recipients = "juhikh@yahoo.com"; $headers["From"] = "asimonson@verityinvest.com"; $headers["To"] = "juhikh@yahoo.com"; $headers["Reply-To"] = "asimonson@verityinvest.com"; $headers["Subject"] = "User feedback"; $mailmsg = "Hello,...
true
c42301b6f3be05b19ffabdd561e3651c7eb522d3
PHP
GramsVitaliy7/pizzeria
/app/Models/Order.php
UTF-8
805
2.578125
3
[]
no_license
<?php namespace App\Models; use App\User; use Illuminate\Database\Eloquent\Model; class Order extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = ['user_id', 'delivery_address']; public function user() { return $this->bel...
true
211001f7e669c0590eaff04b2e5146465e2c7763
PHP
stersylva/curso-php
/exercicios/aula12/calculadora_01.php
UTF-8
453
3.15625
3
[]
no_license
<!DOCTYPE HTML> <html> <head> <meta charset="UTF-*"/> <title></title> </head> <body> <?php $numero = $_GET['numero']; //$numero = isset($_GET["numero"])?$_GET["numero"]:1; echo "</br><h2>O número escolhido foi $numero </h2>"; $con=1; $mult=1; while ($con<=10){ $mult = $numero *...
true
f9ee5e7649534de36ca6783c7c0779d354a16dd4
PHP
ps2005/line-bot-exam-php
/line_with_mqtt_Code.php
UTF-8
3,040
2.53125
3
[]
no_license
<?php // callback.php require "vendor/autoload.php"; require_once('vendor/linecorp/line-bot-sdk/line-bot-sdk-tiny/LINEBotTiny.php'); require("phpMQTT.php"); $server = "m13.cloudmqtt.com"; // change if necessary $port = 12427; // change if necessary $username = "view"; // set yo...
true
a187a37eb34ca8f68fb587fbd88ec6d6e2c4315f
PHP
ssjrama/proyek-3
/cuci-sepatu/app/Http/Controllers/Admin/TreatmentController.php
UTF-8
2,760
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use App\Models\Treatment; use Illuminate\Http\Request; class TreatmentController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() ...
true
50f3725693d77a05e5705dbd5df6784657e9f141
PHP
iknowthatimugly/chapter2-OOP-PHP
/formoop.php
UTF-8
2,555
3.4375
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <pre> <fieldset> <table> <form action...
true
bb818adbc66555b0a81093b545039710c42cbdf4
PHP
Crtl-Vinayak/PHP-assignments
/H006/opdracht_2/response.php
UTF-8
1,445
2.828125
3
[]
no_license
<?php class Dbh { public $isWelkom = false; private $servername; private $username; private $password; private $dbname; private $charset; public function connect() { $this->servername = "localhost"; $this->username = "45936"; $this->password = "ASDF9871QWERTYUI"; ...
true
ddd662c047be429f812beadbb041357a5943ad49
PHP
grester43hck/memes_project
/api/Auth/Authenticate.php
UTF-8
657
2.5625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: root * Date: 23/04/17 * Time: 20:41 */ class Authenticate { private $CLIENTID = "440760096024-d7ai1dsjv219r8rb97e0iusts6hqca9s.apps.googleusercontent.com"; public function auth($token, $type){ // Get $id_token via HTTPS POST. if($type=="google") {...
true
6e7e0c666d4dc0048fa05710f712b186ac416d39
PHP
vineeth010/blockchain_voting
/participatelist.php
UTF-8
1,163
2.625
3
[]
no_license
<?php include 'connect.php'; $sql = "select * from candidates ORDER BY id;"; $result = mysqli_query($conn, $sql); $errorr=mysqli_error($conn); if(!$errorr) { $Nrow=mysqli_num_rows($result); } if ($errorr || $Nrow==0){ echo $errorr; if(!($errorr) and $Nrow==0 ){ echo 'No Participat...
true
6cd49b5a1f0b57b648f5991c897d96e32086ab07
PHP
Rafael-Mendes/exercicios-LogPro
/lista de exercicios 1 ao 13/exercicio13.php
UTF-8
465
3.78125
4
[]
no_license
<?php print "conversor entre Celsius e Fahrenheit: "; print" \nDeseja entrar com temperatura em Celsius ou Fahrenheit (C/F)?: "; $unidade = trim (fgets(STDIN)); if($unidade =="C" || $unidade =="C"){ print"Digite a temperatura em Celsius: "; $C =trim(fgets(STDIN)); $F = 9/5 * $C + 32; print"\nEquivalente em Fahrenheit...
true
2a5932227827b9c669e40cb7035bf389d59e1487
PHP
thulasirambandaru/Web-Development-Projects
/PHP-Projects/sunsms_new/application/models/Mcommon.php
UTF-8
457
2.609375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Mcommon extends CI_Model { function __construct() { parent::__construct(); } function clean_mysqli_connection( $dbc ) { while( mysqli_more_results($dbc) ) { if(mysqli_next_result($dbc)) { $result = mysqli_use_result($dbc); if(!empty($result) && (get_class($resul...
true
fe1eb373492907cee9493d30343354a846bd3429
PHP
tectronics/ShyComics
/application/models/Tags.php
UTF-8
468
2.6875
3
[ "MIT" ]
permissive
<?php class Model_Tags extends EntityPHP\Entity { protected static $table_name = 'tags'; protected $name; public function __construct($name = null) { $this->name = strtolower($name); } public static function __structure() { return [ 'name' => 'VARCHAR(255)', ]; } public stat...
true
3221c20530ee94073b4038b295bb8cef0b732cb6
PHP
phacility/phabricator
/src/applications/spaces/phid/PhabricatorSpacesNamespacePHIDType.php
UTF-8
1,790
2.625
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php final class PhabricatorSpacesNamespacePHIDType extends PhabricatorPHIDType { const TYPECONST = 'SPCE'; public function getTypeName() { return pht('Space'); } public function newObject() { return new PhabricatorSpacesNamespace(); } public function getPHIDTypeApplicationClass() { retu...
true
c8c45d0739cf55afcb1644bd7d13e8fa1760cfd5
PHP
SvenJanssen/CMS
/app/controllers/BaseController.php
UTF-8
751
2.578125
3
[ "MIT" ]
permissive
<?php class BaseController extends Controller { protected $user; public function __construct(){ if(Sentry::check()) $this->user = User::with('customer.websites')->where(['id' => Sentry::getUser()->id])->first(); } /** * Setup the layout used by the controller. * * @return void */ protected functi...
true
05a75265f3e6addbce01c2ab72f4da00e4bfe5a5
PHP
VasundharaRamesh/Web-Lab
/8c.php
UTF-8
412
3.359375
3
[]
no_license
<?php $a1 = array('0'=> array('0'=>1,'1'=>2),'1'=>array('0'=>4,'1'=>5)); $a2 = array('0'=> array('0'=>1,'1'=>2),'1'=>array('0'=>4,'1'=>5)); $res=array(); for($i=0;$i<=1;$i++){ for($j=0;$j<=1;$j++){ $res[$i][$j]=$a1[$i][$j]+$a2[$i][$j]; } } echo "<p>Matrix one</p>"; echo "<pre/>";print_r($a1); echo "<p>Matrix tw...
true
04314c1c65cb04f86cee3883a84f5c45ba2fafeb
PHP
sysyl/Marcassin-web-site
/inscriConnect.php
UTF-8
5,246
2.6875
3
[]
no_license
<!DOCTYPE html> <html lang="fr"> <?php // Vérification des droits d'accès de la page if (!utilisateur_est_connecte()) { // On affiche la page d'erreur comme quoi l'utilisateur doit être connecté pour voir la page include CHEMIN_VUE_GLOBALE.'erreur_non_connecte.php'; } else { // Ne pas oublier d'inclure la librai...
true
f1ee1379239e9d31838c00997646dddf87124929
PHP
ericboehs/sportscake
/app/controllers/american_football_penalties_stats_controller.php
UTF-8
2,085
2.609375
3
[]
no_license
<?php class AmericanFootballPenaltiesStatsController extends AppController { var $name = 'AmericanFootballPenaltiesStats'; var $helpers = array('Html', 'Form'); function index() { $this->AmericanFootballPenaltiesStat->recursive = 0; $this->set('americanFootballPenaltiesStats', $this->paginate()); } function...
true
bf4766461069da56fc94496442824d139490fbc8
PHP
nnhongthai97/learnphp
/day3/whiledowhile.php
UTF-8
585
3.5625
4
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <pre> Sự khác biệt vòng lặp while vs dowhile -vòng lặp while chỉ chạy khi điều kiện đúng - vòng lặp do while chạy lần đầu tiên ngay cả điều kiện == false; từ lần thứ 2 vòng lặp while chạy khi điều kiện == true; ...
true
1341a782c2c8d1f7febc601ef48c6904f00bd08e
PHP
andreiho/eShop
/views/users/get-started.php
UTF-8
6,666
2.6875
3
[]
no_license
<?php include_once '../../config/init.php'; $general->userLoggedInProtect(); $general->vendorLoggedInProtect(); // LOGIN if (isset($_POST['loginSubmit'])) { if (empty($_POST) === false) { $loginEmail = trim($_POST['loginEmail']); $loginPassword = trim($_POST['loginPassword']); if (empty($loginEmail) ...
true
ec87702bf0b7351b78111a0afb045c2c2bd926b3
PHP
Nora465/TheSquareBox
/SiteWeb/Sauvegarde de ma partie du projet/Projet-BdD-square-box (25-04)/admin.php
UTF-8
6,257
2.59375
3
[]
no_license
<?php session_start(); include('fonction.php'); $pdo_options[PDO::ATTR_ERRMODE] = PDO::ERRMODE_EXCEPTION; $bdd = new PDO('mysql:host=127.0.0.1;dbname=Projet_Square_Box', 'Square-Box', 'raspberry', $pdo_options); // Connex à la BdD par PDO //________________________________________________________________________...
true
c004e6def29a9284096fee2820ac86400d964d28
PHP
Kevin-Colm/Project-Gmit
/login.php
UTF-8
5,456
2.65625
3
[]
no_license
<?php /* App Name: Gig Guide. * @Author's: * Kevin Gleeson * Colm Woodlock * Version: 1.0 * Date: 18/02/2017 * */ //Adapted from http://codingcyber.org/simple-login-script-php-and-mysql-64/ // https://www.tutorialrepublic.com/php-tutorial/php-mysql-login-system.php // //import http sessi...
true
be3ed47cfe02e39ed65e9889215e10b1b75f3e09
PHP
markmccaigue/bucket
/Bucket/Utilities/Autoloader.php
UTF-8
866
2.515625
3
[ "BSD-2-Clause" ]
permissive
<?php namespace Utilities; class AutoloaderStats { public static $autoloaderCallCount; } spl_autoload_register( function ($className) { AutoloaderStats::$autoloaderCallCount++; $className = ltrim($className, '\\'); $fileName = ''; $namespace = ''; if ($lastNsPos = str...
true
4067b84840147133a9c1cd4defe5e6906cf55ab8
PHP
excelshow/open-ci
/wesai/open-contest/api/application/controllers/Team.php
UTF-8
6,412
2.6875
3
[]
no_license
<?php /** * User: zhaodc * Date: 25/09/2016 * Time: 18:13 */ require_once __DIR__ . '/Base.php'; class Team extends Base { public function __construct() { parent::__construct(); } public function add_post() { $this->post_check('uid', PARAM_NOT_NULL_NOT_EMPTY, PARAM_TYPE_INT); $this->post_check('item_id...
true
efb15d158567c0df9475f978dc8079d987fb2701
PHP
Hakkelo89/uhomie-vue.js-Laravel
/app/SendgridModel.php
UTF-8
11,066
2.65625
3
[]
no_license
<?php namespace App; use GuzzleHttp\Client; use App\Role; use App\User; class SendgridModel { private $sg; private $client; public function __construct(){ //$this->sg = new \SendGrid(env('SENDGRID_API_KEY')); $this->client = new Client(['headers' => ['Authorization' => 'Bearer '.env('SENDGRID_API_KEY', 'SG....
true
0b10320774e837c16cec21f05ac5f9add41024ca
PHP
luna404/herams-backend
/protected/lists/WorkspaceList.php
UTF-8
850
3.234375
3
[]
no_license
<?php namespace prime\lists; use prime\interfaces\WorkspaceInterface; use prime\interfaces\WorkspaceListInterface; class WorkspaceList implements WorkspaceListInterface { private $workspaces = []; /** * WorkspaceList constructor. * @param array $workspaces */ public function __construct...
true
f035f16e6a54e4b02a064c7144e225f01a9d4b6d
PHP
rafaelgus/evento-original
/core/src/Persistence/Repositories/MovementRepository.php
UTF-8
1,825
2.5625
3
[]
no_license
<?php namespace EventoOriginal\Core\Persistence\Repositories; use DateTime; use EventoOriginal\Core\Entities\Movement; use EventoOriginal\Core\Entities\User; use Illuminate\Pagination\LengthAwarePaginator; use LaravelDoctrine\ORM\Pagination\PaginatesFromParams; class MovementRepository extends BaseRepository { us...
true
05078a2fe3d2591dc5a262b2f92e38855741efc1
PHP
jamz971/WebApp
/MobileRSS/article.php
UTF-8
1,216
2.515625
3
[]
no_license
<?php include_once'includes/config.php'; $nomSite = $_GET['nomSite']; $shortLink = $_GET['shortLink']; try { $connexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql="SELECT url FROM site WHERE nom='$nomSite' "; $result=$connexion->prepare($sql); //$result->bindParam("nomSite", $_GET['nomSite'])...
true
d304e05e27765d17e81bdab3bc69581acb137e95
PHP
jaymins/appzio
/packages/actionMusersettings/themes/adidas/Models/Model.php
UTF-8
8,195
2.625
3
[]
no_license
<?php namespace packages\actionMusersettings\themes\adidas\Models; use packages\actionMitems\Models\ItemModel; use packages\actionMusersettings\Models\Model as BootstrapModel; use packages\actionMitems\Models\ItemCategoryModel; use packages\actionMvenues\Models\VenuesModel; class Model extends BootstrapModel { ...
true
0de4f1a624ec067661f018675a93c2a9d41022b8
PHP
Byungwook/opentutorials-wook
/db.php
UTF-8
485
2.546875
3
[]
no_license
<html> <body> <ol> <?php mysql_connect('localhost', 'root', '881101dnr'); mysql_select_db('wook'); $result = mysql_query('select * from topic'); $article = 'select * from topic where id='.$_GET['id']; echo $article; $result2 = mysql_query($article); $row2 = mysql_fetch_array($result2); echo '<br />'.$row2['de...
true
febaf42aa3dfdf3337f4c5e69f2ce323d82987ef
PHP
muchlast/oop
/Animal.php
UTF-8
345
3.328125
3
[]
no_license
<?php class Animal { protected $name; public $legs = 2; public $cold_blooded = false; public function __construct($name){ $this->name = $name; } public function __get($name) { if (property_exists($this, $name)){ return $this->$name...
true
55ff9be01160ce83e98c1c7b4f3f810bd69b7f5a
PHP
haoht/swoole
/container/Request.php
UTF-8
3,087
3.03125
3
[]
no_license
<?php namespace Container; /** * 请求类 * Class Request * @package Itxiao6\Interfaces\Tools */ class Request { /** * 请求 * @var null */ protected $request = null; /** * 获取接口 * @param $request * @return static */ public static function getInterface($request) { ...
true
a4b40f41fe29765adef8caf9da317723aa6ce534
PHP
hardik797/hardik
/final/index.php
UTF-8
3,466
2.65625
3
[]
no_license
<?php //including required files include('contollers/login_check.php'); //for stroing errors $er = ''; //chcking whether querystring pass any error if(isset($_GET['er'])) { //storing error into message $er = $_GET['er']; } //maintain session if (isset($_SESSION['i...
true
8eaefcac11be4acb530cced1a9bb42b3dc853aff
PHP
zenia9012/privatbank
/src/Info/PrivatBankDepartments.php
UTF-8
742
2.703125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Yevhenii * Date: 08.06.2019 * Time: 15:30 */ namespace Yevhenii\PrivatBank\Info; use Carbon\Carbon; use Yevhenii\PrivatBank\PrivatBank; use Yevhenii\PrivatBank\Traits\RequestTrait; class PrivatBankDepartments extends PrivatBank { use RequestTrait; private $city; pr...
true
81c22309bc3cf920684df46b944c113051c0d70a
PHP
RezNikTaylor/RNK-Redesign
/public_html/contact/index.php
UTF-8
1,971
2.609375
3
[]
no_license
<?php $root = './..'; require $root . '/../app/initialize.php'; $navSelect = $pageTitle = 'contact'; if (isset($_POST['send'])) { $name = trim($db->real_escape_string($_POST['name'])); $email = trim($db->real_escape_string($_POST['email'])); $msg = trim($db->real_escape_string($_POST['message'])); if (validString...
true
b567032e305b135862d412229c7727d998ea52c1
PHP
Kod3ur/kody
/mods/CreateUserAccount/model/mappers/createUserAccountMapper.php
UTF-8
1,343
3.1875
3
[]
no_license
<?php #This class is used as entity manager. So, it manages all transactions related to data access class CreateUserAccountDataMapper { public static function serializeUserData(string $name, string $email, string $password, int $number){ $CleanedName = htmlspecialchars(trim($name)); $CleanedEmail = htmlspecialc...
true
a7125cf4cee6afaa4d28949b8492c94c4182de66
PHP
mdoviedor/WEBsimon
/src/GS/ProyectosBundle/Funciones/ComparacionFechas.php
UTF-8
1,028
2.953125
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?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 GS\ProyectosBundle\Funciones; /** * Description of ComparacionFechas * Clase usada para compara las fe...
true
01f3a91d3a6e63febbf3f655485eb34cb18997ac
PHP
wpdesk/php-ups-api
/src/Entity/SimpleRate.php
UTF-8
1,778
3.078125
3
[ "MIT" ]
permissive
<?php namespace Ups\Entity; use DOMDocument; use DOMElement; use Ups\NodeInterface; /** * Class SimpleRate * @package Ups\Entity */ class SimpleRate implements NodeInterface { /** * @var string */ private $code; /** * @var string */ private $description; /** * @param...
true
b6e3bf023c43b30aba50466dd4746c50736dfc81
PHP
thephotogenicbug/PHP-crash-course
/06_conditionals.php
UTF-8
1,256
3.75
4
[]
no_license
<?php $age = 24; $salary = 300000; // Sample if if($age === 20){ echo "1"; } // Without circle braces if($age === 20) echo "1"; // Sample if-else if($age > 20){ echo "1"; } else{ echo "2"; } // Difference between == and === $age == 20; //true $age == '20'; // true $age === 20; // true $age === '20'; ...
true
1926c68ff31428716d058682f293b1593db86a75
PHP
SaudQureshi1997/luxio-framework
/src/Utils/Container.php
UTF-8
4,071
2.84375
3
[ "MIT" ]
permissive
<?php namespace Elphis\Utils; use Closure; use Psr\Container\ContainerInterface; use Elphis\Exceptions\{ContainerException, BindingResolutionException}; class Container implements ContainerInterface { protected static $instance; protected $bindings = []; protected $singletons = []; private function...
true
7b2a7e77087bb928c47dbd5410c7268867605dd8
PHP
Bshel419/5303-DB-Shelton
/AO6/example.php
UTF-8
7,015
3.046875
3
[]
no_license
<?php //https://www.plumislandmedia.net/mysql/stored-function-haversine-distance-computation/ $conn = mysqli_connect('localhost', '', '', ''); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); }else{ echo "Connected...\n"; } //https://stackoverflow.com/questions/1475...
true
2063564bfd1d7697210a8f636de4f6504baa8a4b
PHP
contributte/gopay-simple
/tests/cases/GopaySimple.api.token.phpt
UTF-8
1,307
2.65625
3
[]
permissive
<?php /** * Test: Markette/GopaySimple/GopaySimple (API TOKEN) */ use Markette\GopaySimple\GopaySimple; use Tester\Assert; require_once __DIR__ . '/../bootstrap.php'; final class ApiTokenGopay extends GopaySimple { /** @var array */ private $args = []; protected function authenticate($args) { ...
true
25ec9debafab1a9905657876eeb0d97bea108f5d
PHP
Backendless/PHP-Code-Runner
/core/commons/actionargs/CustomServiceParserArgs.php
UTF-8
713
2.703125
3
[]
no_license
<?php namespace backendless\core\commons\actionargs; class CustomServiceParserArgs { private $file_name; private $file_type; public function __construct( $args_array ) { $this->setFileName( $args_array['fileName'] ) ->setFileType( $args_array['fileType'] ); } public func...
true