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
eafad7a4ebec18c0f1fa590648dfa7d84b6762e1
PHP
orzes/wordstart
/view/debugView.php
UTF-8
645
2.734375
3
[]
no_license
<?php /* file: view/debugView.php This program builds a "view" in the application. This file displays server arrays $_POST $_GET $_SESSION This file is included in the controller file index.php */ //include 'header.php'; print ' <div id="main"> <h1>Debug View</h1> <br /><br > <t...
true
3c300c87ef07fbdd50c5ed883cb551b10528e9ed
PHP
arshess/exophp
/partie7/exo2etdemi.php
UTF-8
186
2.703125
3
[]
no_license
<?php session_start(); echo "<p> Nom : " . $_SESSION["lastname"] . "</p>"; echo "<p> Prénom : " . $_SESSION["firstname"] . "</p>"; echo "<p> Age : " . $_SESSION["age"] . "</p>"; ?>
true
a98fdbe3d77e80dac30e3c571aeb1a777b47ccf9
PHP
ClemRz/bitcoin-analyzer-back
/src/scripts/run.php
UTF-8
1,827
2.984375
3
[ "MIT" ]
permissive
<?php /** * CLI Controller */ use DbGateways\BtcUsdGateway; /** * Wait for the dependencies to be installed * * During the docker orchestration there is no easy way for * the migration part to wait for Composer to install dependencies. * This is my way to solve that issue. */ function waitForDependencies(): vo...
true
0d92e0a7b418d8777497dfe2db07735fade6f78c
PHP
fallahipunk/crg-website
/template-artist-list.php
UTF-8
1,096
2.671875
3
[ "MIT" ]
permissive
<?php /** * Template Name: Artist List Template */ ?> <div class = "artist-list"> <?php if ( have_posts() ) { /* Query and display the parent. */ while ( have_posts() ) { the_post(); the_content(); } } ?> <?php $my_wp_query = new WP_Query(); $all_wp_pages = $my_wp_query->query(array( ...
true
9a0a700e7d0e75ea5b7e33edcb5e576936b373be
PHP
alucin0geno/exercicios-php
/udemy-php7/data-e-hora/strtotime-expressoes.php
UTF-8
1,081
3.671875
4
[]
no_license
<?php # Função para converter data em timestamp $timestamp = strtotime("+1 month +15 day +5 hours"); # Funcão para converter timestamp para data formatada $date = date("l, d/m/Y H:i", $timestamp); echo "<b>Timestamp:</b> $timestamp (função: strtotime())"; echo "<br/>"; echo "<b>Data:</b> $date (função: date())"; ec...
true
cdc1bf021bd019887c4c33a7a815aee22b2a6518
PHP
jwcrawf/Past-Semesters
/COP4531/proj3/index.php
UTF-8
2,397
2.734375
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <title>Random Maze Generator &amp; Solver</title> </head> <body> <?php $x = isset($_POST["x"]) ? htmlspecialchars($_POST["x"]) : 60; $y = isset($_POST["y"]) ? htmlspecialchars($_POST["y"]) : 150; $output = shell_exe...
true
b1d96b872532c28d1fa7d88d6ef706aaecb3e0e6
PHP
farhangultom-dev/testdumbwaysphase1
/soal3.php
UTF-8
326
3.234375
3
[]
no_license
<!DOCTYPE html> <html> <body> <?php function drawImage($parameter) { for ($i = 0; $i < $parameter; $i++) { for ($j = 0; $j < $parameter; $j++) { echo "* #"; } echo "<br>"; } } drawImage(7); ?> </body> <...
true
fb79462d2868c593edc8d767243a457444da9675
PHP
aronduby/hwp
/database/seeds/import/Advantages.php
UTF-8
1,071
2.53125
3
[ "MIT" ]
permissive
<?php namespace Import; use Illuminate\Database\Seeder; use App\Database\Seeds\Import\ImportBase; use Illuminate\Support\Facades\DB; class Advantages extends ImportBase { /** * Run the database seeds. * * @return void */ public function run() { $statDump = DB::connection('mysq...
true
e32ba8aa01bfe07773a3735b3e7a7043ec8b4202
PHP
tobbykuyinu/fb-demo
/app/Components/Platforms/Product.php
UTF-8
1,849
2.8125
3
[ "MIT" ]
permissive
<?php namespace App\Components\Platforms; use DOMDocument; use DOMXPath; class Product implements IProduct { private $productUrl; private $id; private $price; private $description; private $title; private $brand; private $image; public function __construct($productUrl) { ...
true
40e2e3897639d57164e3c9985ecddc21cea2e749
PHP
MDILLENB/PHPAgile
/test/Resource/Database/ScoringResouceTest.php
UTF-8
1,274
2.578125
3
[]
no_license
<?php namespace Test; use Resource\Database\ScoringResource; use Support\Dependencies; /** * Description of ScoringResouceTest * * @author Marco */ class ScoringResouceTest extends \PHPUnit\Framework\TestCase{ protected $object; protected $ci; /** * Sets up the fixture, for example...
true
d85398f16b338cb202faabf24b641f4bd60e2802
PHP
mogilvie/stripe-bundle
/Controller/WebhookController.php
UTF-8
3,108
2.515625
3
[ "MIT" ]
permissive
<?php namespace Miracode\StripeBundle\Controller; use Miracode\StripeBundle\Event\StripeEvent; use Miracode\StripeBundle\Stripe\StripeObjectType; use Miracode\StripeBundle\StripeException; use Stripe\Error\SignatureVerification; use Stripe\Exception\SignatureVerificationException; use Stripe\Webhook; use Symfony\Bund...
true
9e9da8f28a942231b8e317e89dbdf57589c1f0e0
PHP
Mahendra-24/eVote
/signup.php
UTF-8
1,825
2.59375
3
[]
no_license
<?php // Credentials $hostname = "localhost"; $username = "root"; $password = ""; $database = "db_evote"; //Establish Connection $conn = mysqli_connect($hostname, $username, $password, $database); // UserInput Test ...
true
8a8fe732a6bbbec8870458bf2de31cbe06339f18
PHP
hubert322/reward-card-system
/html/src/api/RewardCardRouter.class.php
UTF-8
706
2.84375
3
[]
no_license
<?php declare (strict_types=1); namespace api; class RewardCardRouter { private $rewardCardApiController; public function __construct () { $this->rewardCardApiController = new RewardCardApiController (); } public function request (string $requestMethod) { $con...
true
f475734085a09ee141b736d139be1509a2539d25
PHP
IvanTKOP/dwes-alain
/010_Formularios/30_Fibonacci.php
UTF-8
946
3.21875
3
[]
no_license
<?php // Si viene mandato de obtener otro valor y vienen los parámetros, se recuperan. Si no, se les carga el valor por defecto: if (isset($_GET["siguiente"]) && isset($_GET["penultimo"]) && isset($_GET["ultimo"])) { $penultimo = $_GET["penultimo"]; $ultimo = $_GET["ultimo"]; } else { ...
true
45b3327628bf25a4ac032198bba17d3d623a5f11
PHP
mrook/phing-examples
/jenkins/tests/HelloWorldTest.php
UTF-8
510
2.765625
3
[]
no_license
<?php require_once "PHPUnit/Framework/TestCase.php"; require_once "HelloWorld.php"; /** * Test class for HelloWorld * * @author Michiel Rook * @version $Id: HelloWorldTest.php 526 2009-08-11 12:11:17Z mrook $ * @package hello.world */ class HelloWorldTest extends PHPUnit_Framew...
true
b70eae01c060b238ee1f6decaea268ad0f2cbe46
PHP
LauLamanApps/phpunit-debug-code-detector
/src/Exception/DebugCodeDetectedException.php
UTF-8
381
2.765625
3
[]
no_license
<?php namespace LauLamanApps\DebugCodeDetector\Exception; use Exception; class DebugCodeDetectedException extends Exception { public function __construct(bool $useColor) { $message = "ERROR: Debug code was detected."; if ($useColor) { $message = "\e[1;37;41m" . $message . "\e[0m\...
true
963cf84d6b58f4f077d1652892131f32f2197701
PHP
AMNP76/php-gaming-website
/src/Common/Port/Adapter/EventStore/Subscriber/SymfonyConsoleDebugSubscriber.php
UTF-8
874
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Gaming\Common\Port\Adapter\EventStore\Subscriber; use Gaming\Common\EventStore\StoredEvent; use Gaming\Common\EventStore\StoredEventSubscriber; use Symfony\Component\Console\Output\OutputInterface; final class SymfonyConsoleDebugSubscriber implements StoredEventSubscriber { ...
true
cb213a2ce89f957d69e0e5945f7a80b54e2a3946
PHP
JONAS060708/cursoPHP
/aula12/Cachorro.php
UTF-8
1,163
3.03125
3
[ "MIT" ]
permissive
<?php require_once 'Lobo.php'; class Cachorro extends Lobo { public function locomover() { echo '<p>farejando</p>'; } //POLIMORFISMO DE SOBRECARGA public function reagir($frase) { switch ($frase) { case 'toma comida': case 'olá': echo ...
true
ffafb9fb1d993141589e46a858008bebba21054c
PHP
eloquent/schemer
/src/Eloquent/Schemer/Pointer/Pointer.php
UTF-8
2,560
2.953125
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Schemer package. * * Copyright © 2013 Erin Millard * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Eloquent\Schemer\Pointer; class Pointer implements PointerInterface { /** ...
true
70d2a2adcfc90b3521a803773b91c6da1c097e83
PHP
annasprastyo/test_arkademy
/no3.php
UTF-8
486
3.234375
3
[]
no_license
<?php $ukuran=7; if ($ukuran%2 == 0) { echo "ukuran harus ganjil"; } else { # code... for($a=1; $a<=$ukuran; $a++){ for($b=1; $b<=$ukuran; $b++){ if(($ukuran+1)/2 == $b || ($ukuran+1)/2 == $a ){ echo "*"; }elseif($b == $ukuran || $a == $ukuran){ echo...
true
60ec1632042ec82978fbfe03af34cd3c48f800bf
PHP
Fox1986/DBA20
/Admin/nutzerLöschen.php
UTF-8
717
3.109375
3
[]
no_license
<!-- Dieses Skript dient dazu den ausgewählten Nutzer aus der Datenbank zu löschen --> <?php session_start(); /* Session einbinden */ include 'datenbank.php'; /* Datenbankverbindung einbinden */ if ($_SERVER["REQUEST_METHOD"]=="POST") /* Prüft ob der Seitenaufruf mit eine...
true
74b557dd4383440f06a8b43b9bba1ca038576770
PHP
baqianxin/docker
/package/Sort/QuickSort.php
UTF-8
1,611
3.65625
4
[ "MIT" ]
permissive
<?php /** * @example 快速排序 * @author ShaoWei Pu <pushaowei0727@gmail.com> * @date 2017/6/17 * @license Mozilla * ------------------------------------------------------------- * 思路分析:从数列中挑出一个元素,称为 “基准”(pivot)  * ------------------------------------------------------------- * 重新排序数列,所有元素比基准值小的摆放在基准前面 * 所有...
true
d28c08ae8131ada683755d68958781fd7f73b6a5
PHP
parth1999-coder/basic-programs-of-PHP
/extractingdataarray.php
UTF-8
286
3.1875
3
[]
no_license
<html> <body> <h1> exracting data from array </h1> <?php $ice_cream["good"] = "orange"; $ice_cream["better"] = "vanilla"; $ice_cream["best"] = "rum"; extract($ice_cream); echo"\$good = $good<BR>"; echo"\$better = $better<BR>"; echo"\$best = $best<BR>"; ?> </body> </html>
true
c0761f2e3871de81dacc57841f0af95e41236117
PHP
ratiw/laravel-backup
/src/BackupHandlers/Database/Databases/DatabaseInterface.php
UTF-8
400
2.65625
3
[ "MIT" ]
permissive
<?php namespace Spatie\Backup\BackupHandlers\Database\Databases; interface DatabaseInterface { /** * Create a database dump. * * @param $destinationFile * * @return bool */ public function dump($destinationFile); /** * Return the file extension of a dump file (sql, ...)....
true
35c05c22611b596230207d39e169cfd18c2c1a24
PHP
ibrahimsow/access_movie
/models/genre.php
UTF-8
307
2.578125
3
[]
no_license
<?php require'models/connection_bdd.php'; function listeGenre(){ global $basedonne; $sql = "SELECT g.id, g.type FROM genre AS g"; $requete = $basedonne->prepare($sql); $requete->execute(); return $requete->fetchAll(PDO::FETCH_ASSOC); }
true
ed60dd2d0a44d646ce931615ca7037e009f431f6
PHP
samuraiseoul/Essence
/src/Http/Messages/Headers/EssenceHeaders.php
UTF-8
740
3.09375
3
[ "MIT" ]
permissive
<?php namespace Essence\Http\Messages\Headers; final class EssenceHeaders implements EssenceHeadersInterface { /** @var EssenceHeaderInterface[] */ private array $headers; /** @param EssenceHeaderInterface[] $headers */ public function __construct(array $headers) { $mappedHeaders = []; ...
true
28661a37cc57aa086c0d3292526ae0d27855dff8
PHP
Djaykalex/test
/FuryGame/controllers/homes.php
ISO-8859-1
13,585
2.703125
3
[]
no_license
<?php require(CONTROLLERS.DS.'controllers.php'); /** * La fonction contacts permet d'envoyer un message, avec les renseignements necessaires (nom, prenom, tel...) * On recupere les donnes post dans le formulaire de contact, on verifie si les champs de validation ne sont pas vide * et qu'ils ne contiennent pas d'erreur...
true
09ae38587c99c5b4f95f0673b68d02d06a62a3d4
PHP
yochoa/prueba
/view/VerUsuario.php
UTF-8
1,055
2.59375
3
[]
no_license
<html> <head> <title>TODO supply a title</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <table border="1"> <tr> <th>Nombre</th> <th>Apellido</th> ...
true
db4bf677c17ebc9db5d6ac2983512390e2e3ef61
PHP
dnaloco/digitala
/module/DAErp/src/DAErp/Entity/Order/Production/ProductProcess.php
UTF-8
2,558
2.53125
3
[ "MIT" ]
permissive
<?php namespace DAErp\Entity\Order\Production; use Doctrine\ORM\Mapping as ORM; use Zend\Stdlib\Hydrator; use DACore\IEntities\Erp\Order\Production\ProductProcessInterface; use Doctrine\Common\Collections\ArrayCollection; /** * * @ORM\Table(name="daerp_order_production_product_processes") * @ORM\Entity ...
true
56558aced8ca7b935cd337f582b1780f1556e218
PHP
unmonk/lprms
/portal/src/protected/models/Match.php
UTF-8
4,826
2.6875
3
[ "MIT" ]
permissive
<?php /** * This is the model class for table "game_match". * * The followings are the available columns in table 'game_match': * @property string $id * @property string $id_tournament * @property integer $tree_position * @property integer $team * @property string $id_game * @property integer $id_platform * ...
true
65ecee354d10303dea103c0456a0543de7dc70f3
PHP
Lady-Luck/project_collaboration
/src/validators/StringValidator.php
UTF-8
671
3.046875
3
[]
no_license
<?php namespace App\src\validators; use App\src\core\Validator; class StringValidator implements Validator { private $minLength; private $maxLength; public function __construct($min = 0, $max = 255) { $this->minLength = $min; $this->maxLength = $max; } public function setMinL...
true
de22b28756df263492e1a41cc458d33663b5a7b6
PHP
samsweety/PID_Assignment
/shoppingcart/index.php
UTF-8
3,283
2.5625
3
[]
no_license
<?php session_start(); if(isset($_POST["btnOK"])){ if(!isset($_SESSION["userName"])){ header("location:login.php"); exit(); } $current="id".$_POST["gid"]; if(!is_numeric($_POST["amount"])){ echo "輸入的值並非數字"; }else if($_POST["amount"]<1){ echo "輸...
true
6bfc81c0bab0149a828b0e4b60d34bea1c2285e0
PHP
ceedeliz/sitioweb-vicerrectoria-universidad-Iberoamericana
/date.php
UTF-8
5,530
2.546875
3
[ "MIT" ]
permissive
<?php include ("conexion.php"); ?> <!doctype html> <html> <?php include("assets/_head.php"); ?> <!-- Navigation --> <body> <?php include("assets/_nav.php"); ?> <header> <div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel"> <ol class="carousel-indicators"> ...
true
243d7018676ba8d8dd1e4b3e8b5eaf51c50f0fe7
PHP
DLJC/CenturyServer
/command/handler/WordsHandler.php
UTF-8
3,120
2.765625
3
[]
no_license
<?php /** * @author WanBin @date 2012-12-26 * 用户建筑类,此类进行操作细化 * 单记录与多记录同时存在在本类中,需要根据实际情况进行修改 * 都写为受保护的方法,实际使用时要手动修改 */ require_once PATH_CACHE . 'WordsCache.php'; class WordsHandler extends WordsCache{ /** * 添加一个新闻公告 */ public function newWords($words1,$words2,$type){ $content=array( 'wo...
true
bdef879e1dfa67b0dd00eb1c28e6e5c900a0d54d
PHP
WyriHaximus/grumphp
/src/GrumPHP/Util/Composer.php
UTF-8
1,364
2.625
3
[ "MIT" ]
permissive
<?php namespace GrumPHP\Util; use Composer\Config; use Composer\Factory; use Composer\IO\NullIO; use Composer\Json\JsonFile; use Composer\Package\Loader\RootPackageLoader; use Composer\Package\Loader\JsonLoader; use Composer\Repository\RepositoryFactory; use Exception; use GrumPHP\Exception\RuntimeException; /** * ...
true
c797da060621b364f0338fe71342b674fa3b4674
PHP
alireza00027/myshop
/app/Product.php
UTF-8
1,092
2.609375
3
[ "MIT" ]
permissive
<?php namespace App; use Cviebrock\EloquentSluggable\Sluggable; use Illuminate\Database\Eloquent\Model; class Product extends Model { use Sluggable; /** * Return the sluggable configuration array for this model. * * @return array */ public function sluggable() { return [...
true
04b359552a037ea40afb9e8ff939ad2e59c30226
PHP
sadmiraga/sanital
/app/Http/Controllers/referenceController.php
UTF-8
4,833
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\reference; use App\Models\job; use League\CommonMark\Reference\ReferenceInterface; use function Symfony\Component\String\b; class referenceController extends Controller { public function referencePublicIndex() { $refe...
true
532ce84e90b3b32825f58029d00a637009806205
PHP
wpbeaches/genesischild-mobile-first
/includes/theme-defaults.php
UTF-8
1,824
2.5625
3
[]
no_license
<?php /** * Genesischild default set up. * * @package genesischild */ add_filter( 'genesis_theme_settings_defaults', 'gc_theme_defaults' ); /** * Genesischild Theme Setting Defaults. * * @package genesischild * @param mixed $defaults Set the theme defaults. */ function gc_theme_defaults( $defaults ) { $defa...
true
da2869feda82032cf43b2f6b7f5629269c624c79
PHP
Harikrishna-zyxware/IMS
/user/database.php
UTF-8
5,487
3.25
3
[]
no_license
<?php //namespace database; /* *database class to execute query */ class database { public $lastId, $t, $db_link; //PDO result object public $result; public function open_database_connection() { //TODO: connect to the database and return the link object $server = 'blog'; ...
true
f5e6f14652cc436871667be6a4786646d2b14701
PHP
amuluowin/ext-orm
/tests/update.phpt
UTF-8
470
2.59375
3
[ "Apache-2.0" ]
permissive
--TEST-- swoole_orm::update($table, $data, $where) --FILE-- <?php $data = array('height' => 185,'age' => 32); $where = array('username' => 'smallhow'); $ret = swoole_orm::update("user_info_test", $data, $where); var_dump($ret); --EXPECT-- array(2) { ["sql"]=> string(71) "UPDATE `user_info_test` SET `height` = ?...
true
d60d681d42afad0a483ff90af74bba55adf42f7e
PHP
wangqin2019/learnproject
/pin_chengmei_com/application/admin/model/ChristmasModel.php
UTF-8
2,510
2.5625
3
[]
no_license
<?php namespace app\admin\model; use think\Model; use think\Db; class ChristmasModel extends Model { protected $name = 'christmas_prize'; // 开启自动写入时间戳字段 protected $autoWriteTimestamp = true; /** * [getRoleByWhere 根据条件获取奖品列表信息] * @author [田建龙] [864491238@qq.com] */ public function...
true
bcf4059a90b7a7123b96de3c4fb65c483f1b88ea
PHP
ccl/dokuwiki-plugin-bibdata
/syntax/entry.php
UTF-8
6,566
2.734375
3
[]
no_license
<?php /** * * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) * @author Christoph Clausen <christoph.clausen@gmail.com> */ // must be run within Dokuwiki if(!defined('DOKU_INC')) die(); require_once(DOKU_PLUGIN.'syntax.php'); require_once "bibtexParse/PARSEENTRIES.php"; require_once "bibtexParse/PARSEC...
true
e161afcf85269176975e117a4a1b724543eab2b3
PHP
ikaijian/hyperf-chat
/app/Model/UsersFriend.php
UTF-8
3,672
2.78125
3
[ "MIT" ]
permissive
<?php declare (strict_types=1); namespace App\Model; use Hyperf\DbConnection\Db; /** * 表情包收藏数据表模型 * * @property int $id * @property int $user1 用户1ID * @property int $user2 用户2ID * @property string $user1_remark 用户1好友备注 * @property string $user2_remark 用户2好友备注 * @property int $active 主动邀请方[1:user1;2:user2;] ...
true
2084e05c6d27b49f13ec314dcef31f89bba6b713
PHP
eduardocasagrande/php-iniciante
/_php/POO/index2.php
UTF-8
317
4.34375
4
[]
no_license
<?php class Pessoa{ public function olaMundo($nome){ return "HELLO {$nome}"; } public function dobroDe($numero){ $dobro = $numero * 2; return "O dobro de {$numero} is = {$dobro}"; } } $p = new Pessoa; echo $p->olaMundo("WORLD \n"); $p2 = new Pessoa; echo $p2->dobroDe(5);
true
196291fcc605e075596c436a3cabfe2ba1f7b451
PHP
cronrun/cronrun-web
/app/Console/Commands/CronRun.php
UTF-8
4,586
2.640625
3
[]
no_license
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use Swoole\Server; class CronRun extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'cron:run {-t|test=false :debug mode} {-s|signal=start :send sign...
true
9a916ae4583c5ed48d22cb59106d7f861c2c4bc0
PHP
landasystems/sinarharapan
/timbang/models/Piutang.php
UTF-8
6,381
2.59375
3
[]
no_license
<?php /** * This is the model class for table "{{piutang}}". * * The followings are the available columns in table '{{piutang}}': * @property integer $id * @property integer $customer_id * @property string $jaminan * @property string $deskripsi * @property string $tanggal * @property string $type * @property...
true
9eb54da1c7eb5923147f8db736aba0ee2a25b1b8
PHP
zhzhuliulijie/Imooc
/ajax/ajaxes6/demo.php
UTF-8
112
2.5625
3
[]
no_license
<?php $name = $_GET['name']; $wife = $_GET['wife']; echo "我的名字叫{$name},我的妻子叫{$wife}!";
true
52fdd524237da59f842cced4e704c42b58097427
PHP
greggmoore/codeigniter3-hmvc
/Codeigniter-MX/cms/modules/admin/models/Admin_m.php
UTF-8
4,149
2.546875
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * @author Gregg Moore, findmoxie.com * @package \System\Application\ * copyright Copyright (c) 2016, MOXIE.COM */ // ------------------------------------------------------------------------ class Dashboard_m extends CI_Model { f...
true
fbb1eef9820f0a6d39e65e2ce8cc45900bbb2906
PHP
sergnochevny/samples
/popuper/editor/templates/elements/formatters/field.php
UTF-8
2,275
2.8125
3
[]
no_license
<?php namespace Popuper\Editor\Templates\Elements\Formatters; use Arr; use Popuper\Editor\Templates\Elements\FieldTypes\FieldTypeInterface; use Popuper\Helpers\PrepareData as PrepareDataHelper; use Popuper\Repositories\ObjectItems\SavingItem; /** * Class Field * * @package Popuper\Editor\Templates\Elements\Format...
true
f0a4f8b75cc426544c66d2501b0425029ad27070
PHP
Akaexus/bobidziennik
/classes/DB.class.php
UTF-8
4,500
2.84375
3
[]
no_license
<?php class DB extends Singleton { public $config; public $c; function __construct($config) { $dsn = "mysql:host={$config['host']};dbname={$config['db']};charset=utf8mb4"; $options = [ PDO::ATTR_EMULATE_PREPARES => false, PDO::ATTR_ERRMODE => PDO::ERRMOD...
true
585ae080c01945c9862d5d0874244d7f9c152962
PHP
ConnorWeng/INVMaster
/db/migrations/20180403170315_create_user.php
UTF-8
2,320
2.8125
3
[]
no_license
<?php use Phinx\Migration\AbstractMigration; use Phinx\Db\Adapter\MysqlAdapter; //zjh class CreateUser extends AbstractMigration { /** * Change Method. * * Write your reversible migrations using this method. * * More information on writing migrations is available here: * http://do...
true
f2bedb3bca3b5e145e552b85800a9c70534afd4d
PHP
tareq-salem/HOC
/PHP/objets/Voiture.php
UTF-8
664
3.34375
3
[]
no_license
<?php /* cette class parle de voiture */ class Voiture { public $marque; public $modele; public $couleur; public $proprietaire; public $vitesse = 0; private $numeroSerie; public function __construct($marque, $modele, $couleur, $proprietaire){ $this->marque = $marque; $this->modele = $mod...
true
cccad793ab4cb7fac710b39d70f34846909b6d75
PHP
indieweb/wordpress-micropub
/includes/class-micropub-admin.php
UTF-8
2,161
2.6875
3
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
<?php // For debugging purposes this will set all Micropub posts to Draft if ( ! defined( 'MICROPUB_DRAFT_MODE' ) ) { define( 'MICROPUB_DRAFT_MODE', '0' ); } add_action( 'plugins_loaded', array( 'Micropub_Admin', 'init' ), 10 ); add_action( 'admin_menu', array( 'Micropub_Admin', 'admin_menu' ) ); /** * Micropub Ad...
true
c732f323f93a254d700179fa898ef56a1dce087b
PHP
TilingScan/tilingscan
/src/functions/Filtros.php
UTF-8
1,210
3.46875
3
[]
no_license
<?php //Esta funcion aplica el filtro de Gauss a los valores function FiltroGauss($var, $num) { //Variables para aplicar el filtro $aux = array(); //Variables propias del filtro $a = 0.383; $b = 0.242; $c = 0.061; $d = 0.006; //Cogemos la dimension del vector $lon = count($var)...
true
aaa383b9dbf87193834b190eb152b11102f25666
PHP
aries-ck/slider
/includes/media-loader.php
UTF-8
3,806
2.65625
3
[]
no_license
<?php global $wpdb; $table_name = $wpdb->posts; // total amount of images based on the selected month $total_images_query = "SELECT COUNT(id) FROM $table_name WHERE post_type='attachment' AND post_mime_type LIKE 'image%'"; if ($show_date != 'all') $total_images_query .= " AND post_date LIKE '$show_date...
true
cdab8ccfcd7c5106d41578d057289c69b0fbe0a6
PHP
ProfessorFrancken/ProfessorFrancken
/tests/Francken/Association/FranckenVrij/EditionTest.php
UTF-8
2,542
2.78125
3
[]
no_license
<?php declare(strict_types=1); namespace Francken\Tests\Association\FranckenVrij; use Francken\Association\FranckenVrij\Edition; use Francken\Association\FranckenVrij\EditionId; use Francken\Features\TestCase; use Francken\Shared\Url; use InvalidArgumentException; class EditionTest extends TestCase { /** @test ...
true
80d388fbdfc511e5c06cbc3938583b9104a2f0be
PHP
adrianadamski/Nectarine
/core/Mvc/Errors.php
UTF-8
1,952
2.828125
3
[ "MIT" ]
permissive
<?php namespace Mvc; use Http; use Exception; use ErrorException; class Errors { /** * @var \Di */ protected $di; /** * @param \Di $di */ public function __construct($di) { $this->di = $di; } /** * Sets a error and exception methods to handle errors in a...
true
20490b55be67d49d4d0b459df10f3921b317a1a1
PHP
WildCodeSchool/bleau_S3_2017_wecrea
/src/WeCreaBundle/Entity/User.php
UTF-8
5,049
2.6875
3
[]
no_license
<?php namespace WeCreaBundle\Entity; use FOS\UserBundle\Model\User as BaseUser; /** * User */ class User extends BaseUser { public $sameadress; // Genrated code /** * @var string */ private $address1; /** * @var string */ private $zipCode1; /** * @var string ...
true
5921b3ca7a5bbbcf64c914936718fc0febd067bc
PHP
edgiru/pfmgr
/src/Pfmgr/Controller/Currency.php
UTF-8
961
2.765625
3
[]
no_license
<?php namespace Pfmgr\Controller; use Silex\Application; use Symfony\Component\HttpFoundation\Request; use Pfmgr\Exception; /** * Currrency Controller to handle RESTful routes * * @copyright 2013 Tom Ploskina Jr. <tploskina@gmail.com> * @author Tom Ploskina Jr. <tploskina@gmail.com> * @license http://www.openso...
true
84cdb6d601aeb2eedcfb2835d94563c34efa4455
PHP
Taiyob/Exam
/connection.php
UTF-8
1,101
2.921875
3
[]
no_license
<?php class Connection{ public $conn; public function __construct(){ $this->conn = new PDO('mysql:host=localhost;dbname=exam','root',''); //echo "Connected"; } public function insertData($market,$money,$tour){ try{ $statement = $t...
true
fe6603aa9c0369bcce987308818e9cdf8b29a171
PHP
ducdvvph09332/php3-assignment-demo
/app/Http/Requests/StoreUserRequest.php
UTF-8
1,166
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class StoreUserRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get ...
true
231da7e8900f8c3bea24de41abec4b8bfef537d8
PHP
brunatobias/web
/3bim/Atividade1/relatorio-fornecedores.php
UTF-8
2,593
2.671875
3
[]
no_license
<?php require 'init.php'; ?> <div class="conteudo"> <div class="estilo"> <h1>RELATÓRIO DE FORNECEDORES</h1> <?php // inclui classes necessárias spl_autoload_register(function ($class_name) { include 'html/'.$class_name.'.class.php'; }); include 'ado/TConnection.class.php'...
true
cd9d9d2164c4b5869b5173e51c7a5c3808ee930c
PHP
ranierelima/mentoring
/app/Http/Controllers/LoginController.php
UTF-8
2,012
2.8125
3
[ "MIT" ]
permissive
<?php namespace Mentor\Http\Controllers; use Illuminate\Database\QueryException; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Mentor\Repositories\UserRepositoryEloquent; class LoginController extends Controller { /** * @var UserRepositoryEloquent */ private $eloquent; ...
true
24e6e7541e044503f242db852362e941e442dbcc
PHP
wearethefoos/owned
/models/behaviors/owned.php
UTF-8
9,158
2.828125
3
[]
no_license
<?php /** * OwnedBehavior Class * * Creates the ability to set permissions on a model's nodes level. * * PHP versions 4 and 5 * * Foxycoder: Sassy Talk on Nerdy Subjects (http://foxycoder.com) * Copyright 2010, W.R. de Vos (wrdevos@gmail.com) * * Licensed under The MIT License * Redistributions of files...
true
0168662e520107f6e7bb65942acb97d0f6e5baaa
PHP
myutf8/shop
/vendor/theseer/fdomdocument/src/fDOMDocumentFragment.php
UTF-8
4,955
3.25
3
[]
no_license
<?php /** * Copyright * */ namespace TheSeer\fDOM { /** * fDOMDocumentFragmen * @property fDOMDocument $ownerDocument * */ class fDOMDocumentFragment extends \DOMDocumentFragment { /** * @return string */ public function __toString() { re...
true
b5e798f10fbc03cac38e8288e12c5ac984896ece
PHP
f1r3starter/design_patterns_playground
/src/TemplateMethod/FileWriter.php
UTF-8
333
3.03125
3
[]
no_license
<?php namespace Application\TemplateMethod; abstract class FileWriter { protected $file; public function __construct(File $file) { $this->file = $file; } public function writeToFile() { $this->file->write($this->writeData() . PHP_EOL); } abstract protected function w...
true
5f8fdfdec2efece67a3ed7fe9c34d50c512426b6
PHP
AntoineSylvain/WF3
/02.10.2015/tableau2D.php
UTF-8
902
3.34375
3
[]
no_license
<h1>Tableau multidimensionnel</h1> <?php include "../header.php"; $t2dim = array ( array('Buire',array(800,4.13)), array('Hirson',array(9348,33.77)), array('Reims',array(181893,47.02)), array('Paris',array(2240621,105.4)), ); // Affichage du premier élément echo $t2dim[0][0]."<br...
true
d9078d7a4915dded1b95cc371df42c14055480e0
PHP
hellinoliveira/hackerrank
/algorithms/minMaxSum.php
UTF-8
599
3.59375
4
[]
no_license
<?php /** * HackerRank solution * Mim Max Sum * @author Hellison Oliveira <hellison.oliveira at gmail.com> * Date: 28/06/17 */ $handle = fopen("php://stdin", "r"); $arr_temp = fgets($handle); $arr = explode(" ", $arr_temp); $arr = array_map('intval', $arr); sort($arr); $min = 0; $max = 0; //solution using phpfu...
true
efc2f2d416fa97f27e690fcd978f870bf839b1c2
PHP
nnscr/gisl
/example/parse.php
UTF-8
391
2.796875
3
[ "MIT" ]
permissive
<?php require_once __DIR__ . '/../vendor/autoload.php'; if(!isset($argv[1])) { echo 'Required parameter missing' . PHP_EOL; exit(1); } $lexer = new \nnscr\GISL\Lexer(); $parser = new \nnscr\GISL\Parser(); try { $tokenStream = $lexer->tokenize($argv[1]); $parseTree = $parser->parse($tokenStream); var_dump($pa...
true
4a2165d846c3cf12035004af28b4e9e5eaa9814a
PHP
kronthto/tiny-ci
/app/Services/GitService.php
UTF-8
451
2.890625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace App\Services; class GitService { /** @var string */ protected $git; /** * GitService constructor. */ public function __construct() { $this->git = config('app.gitexec'); } /** * Builds the exec command string. * * @param string $op * ...
true
14f608a9ac3aa23a16afabb9d8a9c2da79534350
PHP
alka653/AccurateSystems
/app/Controller/ContactsController.php
UTF-8
927
2.6875
3
[]
no_license
<?php App::uses('AppController', 'Controller'); class ContactsController extends AppController { public $name = 'Contacts'; public $components = array('RequestHandler', 'Session'); public $helpers = array('Html', 'Js', 'Form', 'Time', 'Session'); public function new_contact(){ $this->set('title', 'Contact...
true
702f3cba9ac9f03a08af39a2a77eafe22c709ffd
PHP
officialmatt/safeSite
/signup.php
UTF-8
2,776
3.078125
3
[]
no_license
<?php // define variables and set to empty values $nameErr = $emailErr = $passwordErr = $passConfErr = ""; $errorCount = 0; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_POST["name"])) { $nameErr = "Name is required"; $errorCount++; } else { $name = $_POST["name"]; } if (empty($_POST["email"]...
true
053e8b2a3e3011ae0f2c4be8c8b041ed671937a0
PHP
kulyklev/clinic.com
/app/Repositories/Patients/PatientsRepository.php
UTF-8
4,040
2.828125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: dev * Date: 28.06.18 * Time: 14:50 */ namespace App\Repositories\Patients; use App\Models\Patient; class PatientsRepository implements IPatientsRepository { protected $patient; /** * PatientsRepository constructor. * @param Patient $patient */ ...
true
a6867627e9eb47fc2730a28747a102927e326197
PHP
dbermo99/daw2.1-davidbermejo
/AdivinaN/AdivinaNumero.php
UTF-8
418
2.671875
3
[]
no_license
<?php /*if(isset($_REQUEST["numero"])) $numero= $_REQUEST["numero"];*/ ?> <html> <head> <title>Indica un Número</title> </head> <body> <form action="AdivinaNumero2.php" method="post"> <p>Indica un numero</p> <input type="number" name="oculto" value="0...
true
8e6af09afb35801cff7b0697fe91cd52995606d7
PHP
haftahave/barcode-recognition
/src/StdoutLogger.php
UTF-8
199
2.703125
3
[ "MIT" ]
permissive
<?php namespace Hth; /** * Class StdoutLogger * @package Hth */ class StdoutLogger { /** * @param string $text */ public function error($text) { echo $text; } }
true
8e666b1407935ced28a2e73032eb9cc3aa1d746e
PHP
antho-firuze/_g.ene.sys_api_
/__application/libraries/F.php
UTF-8
14,568
3.109375
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * F Class * * This class contain various functions * */ class F { function __construct() { } /** * Shortcut for get language line key and with additional parameters * */ function lang($key, $params = NULL) { $ci = &get_ins...
true
835694d4596698e8f19a1e7ec669094a2e73cca0
PHP
BradyBerner/Laravel-CLC
/LaravelCLC/CLCProject/app/Http/Controllers/SignOutController.php
UTF-8
1,028
2.703125
3
[ "MIT" ]
permissive
<?php /* * Brady Berner & Pengyu Yin * CST-256 * 3-17-19 * This assignment was completed in collaboration with Brady Berner, Pengyu Yin */ namespace App\Http\Controllers; use App\Services\Utility\ILoggerService; use Illuminate\Support\Facades\Session; /** * Class SignOutController * @package App\Http\Control...
true
a25a0defb8407664b16ace8f2427dd78980563ee
PHP
MarianoOrsi/DDS_TP-Integrador
/code/template/clases/Grupo.php
UTF-8
824
2.953125
3
[]
no_license
<?php class Grupo{ private $idGrupo; private $idUsuarioCreador; private $nombreGrupo; private $fecha; /*public function __construct($idUsuarioCreador_in, $nombreGrupo_in) { $this->idUsuarioCreador=$idUsuarioCreador_in; $this->nombreGrupo=$nombreGrupo_in; }*/ public function __construct($idGru...
true
ee914961790aeed94294cbbf038fe765fbf7d707
PHP
Hovhannes1997/online-shop
/classes/Model.php
UTF-8
10,563
2.671875
3
[]
no_license
<?php abstract class Model { public $con; /* DB & Core settings */ public function __construct() { // settings local $dsn = 'mysql:host=localhost;dbname=z_mvc'; $username = 'root'; $password = ''; // PDO options $opt = array( PDO::ATTR_ERRMODE ...
true
2ca78db7805e297fdf2578d572966ed94e9671ff
PHP
SoulRay/crear-XML
/xml/pruebados/command.php
UTF-8
483
2.625
3
[]
no_license
<?php $cmd = $_GET["cmd"]; switch ($cmd) { case 'descargarxml': $datos = (object) array("nombre" => ["Jose", "Pedro", "Maria"], "apellido" => ["Perez", "Alcaino", "Martinez"], "telefono" => ["67859821", "11243212", "665243...
true
7a042195d22b3988484654a52e4bef0a3004713e
PHP
freshcells/Magallanes
/docs/example-config/.mage/tasks/TaskWithParameters.php
UTF-8
547
2.53125
3
[ "MIT" ]
permissive
<?php namespace Task; use Mage\Task\AbstractTask; class TaskWithParameters extends AbstractTask { public function getName() { $booleanOption = $this->getParameter('booleanOption', false); if ($booleanOption) { return 'A Sample Task With Parameters [booleanOption=true]'; } e...
true
20b0af223e1a970c32e9c2387963bf16b568c7c7
PHP
TotallyBullshit/finance-1
/models/PurseOwnerInterface.php
UTF-8
392
2.6875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: User * Date: 05.01.14 * Time: 17:25 */ namespace yz\finance\models; /** * Interface PurseOwnerInterface * @property Purse $purse Purse of the owner * @package ms\finance\models */ interface PurseOwnerInterface { /** * Returns purse's owner by owner's id * @param ...
true
56979b235937c962b17ecb20c64c8cc91f06720c
PHP
Arthuryin/laravel-jd-logistic
/src/JDLogisticAreaRepository.php
UTF-8
2,565
2.578125
3
[]
no_license
<?php namespace Arthuryinzhen\JDLogistic; use Arthuryinzhen\JDLogistic\JD\BaseRequest; use Arthuryinzhen\JDLogistic\JD\Request\AreaCityGetRequest; use Arthuryinzhen\JDLogistic\JD\Request\AreaCountyGetRequest; use Arthuryinzhen\JDLogistic\JD\Request\AreaProvinceGetRequest; use Arthuryinzhen\JDLogistic\JD\Request\Areas...
true
861d09f0d0602e8e6d55df7db1bfebee5751bd15
PHP
JasonYangX/filter
/vendor/View.php
UTF-8
776
2.75
3
[]
no_license
<?php namespace vendor; class View { public $variables = array(); public $_controller; public $_action; public $_layout; public function __construct($controller, $action) { $this->_controller = strtolower($controller); $this->_action = strtolower($action); } public...
true
3e62658a5c02b054da48f60a143ddf5056b57b86
PHP
afosto/api-client
/src/Generator/Generator.php
UTF-8
5,092
2.671875
3
[ "Apache-2.0" ]
permissive
<?php namespace Afosto\ApiClient\Generator; use Afosto\ApiClient\App; use Symfony\Component\Console\Command\Command; class Generator extends Command { /** * The uri for the swagger json */ const SOURCE_URI = '/swagger'; /** * Target for the generated models */ const TARGET_PATH ...
true
2489d834ed77f2c7ad86b5c721a461cb848cfdb9
PHP
BensonDu/laravel
/app/Http/Middleware/AdminAuth.php
UTF-8
1,382
2.546875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Benson * Date: 16/1/11 * Time: 上午12:00 */ namespace App\Http\Middleware; use Closure; class AdminAuth { public function handle($request, Closure $next) { if(empty($_ENV['uid']))return redirect($_ENV['platform']['home'].'/account/login?redirect='.urlencod...
true
142e7910c753d55daf743599c1ff1b2385d59b9e
PHP
TalPat/PHP_42_BootCamp
/d01/ex10/do_op.php
UTF-8
515
3.296875
3
[]
no_license
#!/usr/bin/php <?php function ft_split($str) { return (preg_split("/\s+/", trim($str))); } if ($argc == 4) { $first = trim($argv[1]); $op = trim($argv[2]); $second = trim($argv[3]); if ($op == "+") $ans = $first + $second; else if ($op == "-") $ans = $first - $second; else if ($op == "*...
true
82b7fc65b6426fcab5f2ac2657bae19de2c92c7e
PHP
Baalaandaa/network
/template/replace.php
UTF-8
285
2.609375
3
[]
no_license
<?php class ReplaceTmpl{ function __construct(){ return true; } function GetReplaceTemplate($template, $ch, $n){ $require = "tmpl/".$template ; $temp = file_get_contents($require); $ech = str_replace( $ch, $n, $temp); echo $ech; } }
true
96d4792f1ed9739090406b76bff885ef278ac864
PHP
Happykiller/ODA_NOA
/phpsql/mysql_insertTag.php
UTF-8
4,119
2.625
3
[]
no_license
<?php //Config : Les informations personnels de l'instance (log, pass, etc) require("../include/config.php"); //API Fonctions : les fonctions fournis de base par l'API require("../API/php/fonctions.php"); //Header établie la connection à la base $connection require("../API/php/header.php"); //Fonctions : Fonctions ...
true
b4f69f3d2db4cca0438b47335fd0b19ebe5fec76
PHP
VovaMukovozov/finalProject
/api/core/models/UserModel.php
UTF-8
2,704
2.875
3
[]
no_license
<?php require_once dirname(__FILE__) . '/Model.php'; class UserModel extends Model { /** * parent construct * @return void */ public function __construct() { parent::__construct(); } /** * check if email exist * @param array $data * @return $success */ ...
true
b4963c0c9264d31db6b84402843b913f9c39ebcc
PHP
sasa415/thinkphp5
/thinkphp5/application/admin/model/Goods.php
UTF-8
792
2.546875
3
[ "Apache-2.0" ]
permissive
<?php namespace app\admin\model; use think\Db; use think\Model; /** * 体测模型 * 作者:马大锤 */ class Goods extends Model { protected $table = 'think_goods';//表名 //增加 function insertData($data) { return Db::table($this->table)->insertGetId($data); } //展示 function show() { ret...
true
7dd2aa09c618dc1c9aee7963df83f6a6881970d3
PHP
kkokko/NeoXplora
/Source/NeoAiSystems.com/operations.php
UTF-8
59,176
2.796875
3
[]
no_license
<?php function replaceInvalidChars($AString){ $quotes = array( "\xC2\xAB" => '"', // « (U+00AB) in UTF-8 "\xC2\xBB" => '"', // » (U+00BB) in UTF-8 "\xE2\x80\x98" => "'", // ‘ (U+2018) in UTF-8 "\xE2\x80\x99" => "'", // ’ (U+2019) in UTF-8 "\xE2\x80\x9A" => "'", // ...
true
a329f682d8032952b28f78390b3f75a4f4496200
PHP
mnatsakanyan/arm2lat
/arm2lat.php
UTF-8
1,168
2.625
3
[]
no_license
<?php function arm2lat( $arm_string ) { $arm_string = str_replace('ու', 'u', $arm_string); $word_count = mb_strlen($arm_string); $arm2latstring = ''; $check_first_char_with_vo = ''; $alphabet = array( 'ւ'=>'v', 'ա'=>'a','բ'=>'b','գ'=>'G','դ'=>'D','ե'=>'E','զ'=>'Z','է'=>'E', 'ը'=>'e','թ'=...
true
5c1956b8ec11054ee18565c95efeeb9ed926d1ab
PHP
lilit3/Tasks2
/Tasks 2.php
UTF-8
2,133
3.671875
4
[]
no_license
<?php class ForArrayClass { public $arr1; public $needle; public $count; public function __construct(array $arr1){ $this->arr1 = $arr1; $this->needle = 9; $this->getCountArr(); } public function getCountArr() { $this->count = count($this->arr...
true
df95155152c71a3ce9ecc4fd528135735cca3e90
PHP
abivia/money
/tests/ModTest.php
UTF-8
616
2.84375
3
[ "MIT" ]
permissive
<?php use PHPUnit\Framework\TestCase; use Abivia\Money\Money; class ModTest extends TestCase { public function testMod1() { bcscale(2); $result = Money::make('123.45')->mod('0.10'); $this->assertEquals('0.05', $result->value); } public function testMod2() { bcscale...
true
e268848005d9801b119cbe7cab61bc38dbd99aae
PHP
Travelopia/yotpo-php
/src/Yotpo/Yotpo.php
UTF-8
19,243
2.71875
3
[ "MIT" ]
permissive
<?php namespace Yotpo; use Httpful\Request; use Httpful\Mime; use Httpful\Response; /** * Yotpo PHP inetrface for api.yotpo.com * * @author vlad */ class Yotpo { const VERSION = '0.0.3'; protected static $app_key, $secret, $base_uri = 'https://api.yotpo.com'; public function __construct($app_key =...
true
4529f107c8013986082da541bead35cb8cf712ca
PHP
gabrielpcruz/slim
/src/Http/Api/ApiController.php
UTF-8
1,979
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Api; use App\Http\Controller; use App\Service\Utils\Dynamic; use Psr\Container\ContainerInterface; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface as Request; class ApiController extends Controller { /** * @var Dynamic */ protected Dynami...
true
d218fefefc2f164c4cad18cd2068a236c8e95a1e
PHP
tautvydascoding/2019-09-30
/dirbame_cia/diena_19/Ieva/2-php-OOP-interface/z.php
UTF-8
313
2.53125
3
[]
no_license
<?php // UZDUOTIS 1: // sukurti interface 'Z' // kuris turi f-jas: // setSvoris($x) // getSvoris() interface Z{ function setSvoris($x); function getSvoris(); } // UZDUOTIS 3: // susikurti objekta klases A // UZDUOTIS 3.2: // 1. atspausdinti svori // 2. pakeisti svori i 90 // 3. atspausdinti svori
true
f427cfadb3cf0baf5734ad942e232c3d15705a27
PHP
doriandarren/laravel-crud-api-generator
/src/Repositories/ToApis/Helpers/GenerateToApiStoreController.php
UTF-8
9,159
2.515625
3
[]
no_license
<?php namespace Infinito\LaravelCrudApiGenerator\Repositories\ToApis\Helpers; use Infinito\LaravelCrudApiGenerator\Enums\EnumFolderToApi; use Infinito\LaravelCrudApiGenerator\Helpers\HelperFiles; class GenerateToApiStoreController { /** * @param $tableSingular * @param $tablePlural * @param $colu...
true
fe0c5269e47cf414781da2815871515ad78150be
PHP
HelanoCarvalho/cafe
/registrar.php
UTF-8
3,892
2.78125
3
[ "MIT" ]
permissive
<?php session_start(); include("db.php"); if(isset($_POST['criar'])){ $nome = $_POST['nome']; $apelido = $_POST['apelido']; $email = $_POST['email']; $senha = $_POST['senha']; $data = date("y/m/d"); $validacao = true; $verificar_email = mysqli_query(...
true