repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
tslocum/TinyIB | https://github.com/tslocum/TinyIB/blob/4c4b981fb1dc85329da3fc35d721d0edb7c2cc04/inc/recaptcha/ReCaptcha/RequestMethod.php | inc/recaptcha/ReCaptcha/RequestMethod.php | <?php
/**
* This is a PHP library that handles calling reCAPTCHA.
*
* @copyright Copyright (c) 2015, Google Inc.
* @link http://www.google.com/recaptcha
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to... | php | MIT | 4c4b981fb1dc85329da3fc35d721d0edb7c2cc04 | 2026-01-05T02:20:06.057157Z | false |
tslocum/TinyIB | https://github.com/tslocum/TinyIB/blob/4c4b981fb1dc85329da3fc35d721d0edb7c2cc04/inc/recaptcha/ReCaptcha/Response.php | inc/recaptcha/ReCaptcha/Response.php | <?php
/**
* This is a PHP library that handles calling reCAPTCHA.
*
* @copyright Copyright (c) 2015, Google Inc.
* @link http://www.google.com/recaptcha
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to... | php | MIT | 4c4b981fb1dc85329da3fc35d721d0edb7c2cc04 | 2026-01-05T02:20:06.057157Z | false |
tslocum/TinyIB | https://github.com/tslocum/TinyIB/blob/4c4b981fb1dc85329da3fc35d721d0edb7c2cc04/inc/recaptcha/ReCaptcha/ReCaptcha.php | inc/recaptcha/ReCaptcha/ReCaptcha.php | <?php
/**
* This is a PHP library that handles calling reCAPTCHA.
*
* @copyright Copyright (c) 2015, Google Inc.
* @link http://www.google.com/recaptcha
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to... | php | MIT | 4c4b981fb1dc85329da3fc35d721d0edb7c2cc04 | 2026-01-05T02:20:06.057157Z | false |
tslocum/TinyIB | https://github.com/tslocum/TinyIB/blob/4c4b981fb1dc85329da3fc35d721d0edb7c2cc04/inc/recaptcha/ReCaptcha/RequestMethod/Socket.php | inc/recaptcha/ReCaptcha/RequestMethod/Socket.php | <?php
/**
* This is a PHP library that handles calling reCAPTCHA.
*
* @copyright Copyright (c) 2015, Google Inc.
* @link http://www.google.com/recaptcha
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to... | php | MIT | 4c4b981fb1dc85329da3fc35d721d0edb7c2cc04 | 2026-01-05T02:20:06.057157Z | false |
tslocum/TinyIB | https://github.com/tslocum/TinyIB/blob/4c4b981fb1dc85329da3fc35d721d0edb7c2cc04/inc/recaptcha/ReCaptcha/RequestMethod/Curl.php | inc/recaptcha/ReCaptcha/RequestMethod/Curl.php | <?php
/**
* This is a PHP library that handles calling reCAPTCHA.
*
* @copyright Copyright (c) 2015, Google Inc.
* @link http://www.google.com/recaptcha
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to... | php | MIT | 4c4b981fb1dc85329da3fc35d721d0edb7c2cc04 | 2026-01-05T02:20:06.057157Z | false |
tslocum/TinyIB | https://github.com/tslocum/TinyIB/blob/4c4b981fb1dc85329da3fc35d721d0edb7c2cc04/inc/recaptcha/ReCaptcha/RequestMethod/CurlPost.php | inc/recaptcha/ReCaptcha/RequestMethod/CurlPost.php | <?php
/**
* This is a PHP library that handles calling reCAPTCHA.
*
* @copyright Copyright (c) 2015, Google Inc.
* @link http://www.google.com/recaptcha
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to... | php | MIT | 4c4b981fb1dc85329da3fc35d721d0edb7c2cc04 | 2026-01-05T02:20:06.057157Z | false |
tslocum/TinyIB | https://github.com/tslocum/TinyIB/blob/4c4b981fb1dc85329da3fc35d721d0edb7c2cc04/inc/recaptcha/ReCaptcha/RequestMethod/SocketPost.php | inc/recaptcha/ReCaptcha/RequestMethod/SocketPost.php | <?php
/**
* This is a PHP library that handles calling reCAPTCHA.
*
* @copyright Copyright (c) 2015, Google Inc.
* @link http://www.google.com/recaptcha
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to... | php | MIT | 4c4b981fb1dc85329da3fc35d721d0edb7c2cc04 | 2026-01-05T02:20:06.057157Z | false |
tslocum/TinyIB | https://github.com/tslocum/TinyIB/blob/4c4b981fb1dc85329da3fc35d721d0edb7c2cc04/inc/recaptcha/ReCaptcha/RequestMethod/Post.php | inc/recaptcha/ReCaptcha/RequestMethod/Post.php | <?php
/**
* This is a PHP library that handles calling reCAPTCHA.
*
* @copyright Copyright (c) 2015, Google Inc.
* @link http://www.google.com/recaptcha
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to... | php | MIT | 4c4b981fb1dc85329da3fc35d721d0edb7c2cc04 | 2026-01-05T02:20:06.057157Z | false |
hfcorriez/pagon | https://github.com/hfcorriez/pagon/blob/c847a59c4ce4876887c65d35880ded8bb559cc48/app/phpmig.php | app/phpmig.php | <?php
$app = require_once __DIR__ . '/bootstrap.php';
$container = new Pagon\Fiber();
$container['pdo'] = $app->pdo;
$container['app'] = $app;
$container['phpmig.adapter'] = $container->share(function () use ($app) {
return new Phpmig\Adapter\PDO\Sql($app->pdo, 'migrations');
});
$container['phpmig.migrations'... | php | MIT | c847a59c4ce4876887c65d35880ded8bb559cc48 | 2026-01-05T02:20:25.614649Z | false |
hfcorriez/pagon | https://github.com/hfcorriez/pagon/blob/c847a59c4ce4876887c65d35880ded8bb559cc48/app/bootstrap.php | app/bootstrap.php | <?php
/**
* Bootstrap application and init something
*/
define('APP_DIR', __DIR__);
define('ROOT_DIR', dirname(APP_DIR));
require dirname(__DIR__) . '/vendor/autoload.php';
use Pagon\Pagon;
// Create application
$app = Pagon::create(__DIR__ . '/config/default.php');
// Get current mode
$mode = $app->mode();
//... | php | MIT | c847a59c4ce4876887c65d35880ded8bb559cc48 | 2026-01-05T02:20:25.614649Z | false |
hfcorriez/pagon | https://github.com/hfcorriez/pagon/blob/c847a59c4ce4876887c65d35880ded8bb559cc48/app/src/Model/User.php | app/src/Model/User.php | <?php
namespace Model;
use Pagon\Url;
/**
* User Model
*
* @package Model
*
* @param string $username 用户名
* @param string $password 密码
* @param string $url 外链
* @param int $status 状态 0:待审 1:正常 -1:删除
*/
class User extends Model
{
public static $_table = 'users';
// Default status
pub... | php | MIT | c847a59c4ce4876887c65d35880ded8bb559cc48 | 2026-01-05T02:20:25.614649Z | false |
hfcorriez/pagon | https://github.com/hfcorriez/pagon/blob/c847a59c4ce4876887c65d35880ded8bb559cc48/app/src/Model/Model.php | app/src/Model/Model.php | <?php
namespace Model;
/**
* Class Model
*
* @package Model
* @param int $id
* @param string $modified_at
* @param string $created_at
*/
class Model extends \Model
{
/**
* @param string|null $connection
* @return \ORM|\ORMWrapper|static|Model
*/
public static function dispense($connec... | php | MIT | c847a59c4ce4876887c65d35880ded8bb559cc48 | 2026-01-05T02:20:25.614649Z | false |
hfcorriez/pagon | https://github.com/hfcorriez/pagon/blob/c847a59c4ce4876887c65d35880ded8bb559cc48/app/src/Web/Web.php | app/src/Web/Web.php | <?php
namespace Web;
use Pagon\Route\Rest;
use Pagon\Url;
use Pagon\View;
class Web extends Rest
{
/**
* Current template layout for page
*
* @var string
*/
protected $_tpl_layout = 'layout.php';
/**
* Current template content for page
*
* @var string
*/
prote... | php | MIT | c847a59c4ce4876887c65d35880ded8bb559cc48 | 2026-01-05T02:20:25.614649Z | false |
hfcorriez/pagon | https://github.com/hfcorriez/pagon/blob/c847a59c4ce4876887c65d35880ded8bb559cc48/app/src/Web/Index.php | app/src/Web/Index.php | <?php
namespace Web;
class Index extends Web
{
/**
* Users for page rending
*
* @var \Model\User[]
*/
public $users = array();
/**
* Get /
*/
public function get()
{
// Load users
//$users = \Model\User::dispense()->find_many();
$this->app->r... | php | MIT | c847a59c4ce4876887c65d35880ded8bb559cc48 | 2026-01-05T02:20:25.614649Z | false |
hfcorriez/pagon | https://github.com/hfcorriez/pagon/blob/c847a59c4ce4876887c65d35880ded8bb559cc48/app/src/Api/Api.php | app/src/Api/Api.php | <?php
namespace Api;
use Pagon\Route\Rest;
use Pagon\View;
class Api extends Rest
{
/**
* The API data
*
* @var array
*/
protected $data = array();
/**
* The API format
*
* @var string
*/
protected $_format = 'json';
/**
* Xml option for dump
*
... | php | MIT | c847a59c4ce4876887c65d35880ded8bb559cc48 | 2026-01-05T02:20:25.614649Z | false |
hfcorriez/pagon | https://github.com/hfcorriez/pagon/blob/c847a59c4ce4876887c65d35880ded8bb559cc48/app/src/Api/User.php | app/src/Api/User.php | <?php
namespace Api;
class User extends Api
{
/**
* @var \Model\User
*/
public $user;
/**
* GET /
*/
public function get()
{
$id = $this->params['id'];
$post = \Model\User::dispense()->find_one($id);
if (!$post) {
$this->error('Unknown Use... | php | MIT | c847a59c4ce4876887c65d35880ded8bb559cc48 | 2026-01-05T02:20:25.614649Z | false |
hfcorriez/pagon | https://github.com/hfcorriez/pagon/blob/c847a59c4ce4876887c65d35880ded8bb559cc48/app/src/Command/DB/Init.php | app/src/Command/DB/Init.php | <?php
namespace Command\DB;
use Pagon\Console;
use Pagon\Route\Command as Route;
use PDO;
class Init extends Route
{
protected $arguments = array(
'-f|--force' => array('help' => 'Force create database', 'type' => 'bool'),
'-d|--data' => array('help' => 'Insert test data', 'type' => 'bool')
... | php | MIT | c847a59c4ce4876887c65d35880ded8bb559cc48 | 2026-01-05T02:20:25.614649Z | false |
hfcorriez/pagon | https://github.com/hfcorriez/pagon/blob/c847a59c4ce4876887c65d35880ded8bb559cc48/app/views/index.php | app/views/index.php | <html>
<head>
<title><?php echo $title;?></title>
<meta charset="utf-8">
<style type="text/css">
@charset "utf-8";
html {
color: #444333;
background: #fff;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
text-rendering:... | php | MIT | c847a59c4ce4876887c65d35880ded8bb559cc48 | 2026-01-05T02:20:25.614649Z | false |
hfcorriez/pagon | https://github.com/hfcorriez/pagon/blob/c847a59c4ce4876887c65d35880ded8bb559cc48/app/config/default.php | app/config/default.php | <?php
/**
*
* This file is used to be define the config in global
*
* This `default` config will be load anyway. This config "key" will be overwrite when other config has the same "key".
*
*/
return array(
'timezone' => 'Asia/Shanghai',
'views' => dirname(__DIR__) . '/views',
'autoload' => dirname... | php | MIT | c847a59c4ce4876887c65d35880ded8bb559cc48 | 2026-01-05T02:20:25.614649Z | false |
hfcorriez/pagon | https://github.com/hfcorriez/pagon/blob/c847a59c4ce4876887c65d35880ded8bb559cc48/app/config/product.php | app/config/product.php | <?php
/**
*
* This file is used to be define the config which cause different by environment, such as database, redis, memcache, api service and so on.
*
* this `product` config will be load when `PAGON_ENV` environment variable is set to `product`
*
*/
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
return ar... | php | MIT | c847a59c4ce4876887c65d35880ded8bb559cc48 | 2026-01-05T02:20:25.614649Z | false |
hfcorriez/pagon | https://github.com/hfcorriez/pagon/blob/c847a59c4ce4876887c65d35880ded8bb559cc48/app/config/develop.php | app/config/develop.php | <?php
/**
*
* This file is used to be define the config which cause different by environment, such as database, redis, memcache, api service and so on.
*
* This `develop` config will be load when `PAGON_ENV` environment variable is not set or set to `develop`.
*
*/
error_reporting(E_ALL & ~E_NOTICE);
return arr... | php | MIT | c847a59c4ce4876887c65d35880ded8bb559cc48 | 2026-01-05T02:20:25.614649Z | false |
hfcorriez/pagon | https://github.com/hfcorriez/pagon/blob/c847a59c4ce4876887c65d35880ded8bb559cc48/public/index.php | public/index.php | <?php
if (empty($app)) {
require dirname(__DIR__) . '/app/bootstrap.php';
}
/**
* Config route
*/
$app->get('/', 'Web\\Index');
$app->get('/api/users/:id', 'Api\\User');
// Start application
$app->run(); | php | MIT | c847a59c4ce4876887c65d35880ded8bb559cc48 | 2026-01-05T02:20:25.614649Z | false |
roke22/PHP-SSH2-Web-Client | https://github.com/roke22/PHP-SSH2-Web-Client/blob/31031cbe9c6bab77ad8a231990a0759103e93c2a/server/src/Servidorsocket.php | server/src/Servidorsocket.php | <?php
/*
** PHP SSH2 Web Client
** Autor: Jose Joaquin Anton
** Email: roke@roke.es
**
** License: The MIT License -> https://opensource.org/licenses/mit-license.php
** Copyright (c) 2018 Jose Joaquin Anton
**
** Se concede permiso, libre de cargos, a cualquier persona que obtenga una copia de este software y de los ... | php | MIT | 31031cbe9c6bab77ad8a231990a0759103e93c2a | 2026-01-05T02:20:15.808649Z | false |
roke22/PHP-SSH2-Web-Client | https://github.com/roke22/PHP-SSH2-Web-Client/blob/31031cbe9c6bab77ad8a231990a0759103e93c2a/server/bin/websocket.php | server/bin/websocket.php | <?php
/*
** PHP SSH2 Web Client
** Autor: Jose Joaquin Anton
** Email: roke@roke.es
**
** License: The MIT License -> https://opensource.org/licenses/mit-license.php
** Copyright (c) 2018 Jose Joaquin Anton
**
** Se concede permiso, libre de cargos, a cualquier persona que obtenga una copia de este software y de lo... | php | MIT | 31031cbe9c6bab77ad8a231990a0759103e93c2a | 2026-01-05T02:20:15.808649Z | false |
Propaganistas/Laravel-FakeId | https://github.com/Propaganistas/Laravel-FakeId/blob/908618820044e07c3a0ebfecdf17efb479717302/src/FakeIdServiceProvider.php | src/FakeIdServiceProvider.php | <?php namespace Propaganistas\LaravelFakeId;
use Illuminate\Support\ServiceProvider;
use Jenssegers\Optimus\Optimus;
use Propaganistas\LaravelFakeId\Commands\FakeIdSetupCommand;
class FakeIdServiceProvider extends ServiceProvider
{
/**
* Boots the service provider.
*
* @return void
*/
publ... | php | MIT | 908618820044e07c3a0ebfecdf17efb479717302 | 2026-01-05T02:20:41.461072Z | false |
Propaganistas/Laravel-FakeId | https://github.com/Propaganistas/Laravel-FakeId/blob/908618820044e07c3a0ebfecdf17efb479717302/src/RoutesWithFakeIds.php | src/RoutesWithFakeIds.php | <?php namespace Propaganistas\LaravelFakeId;
use Illuminate\Support\Facades\App;
use Exception;
use RuntimeException;
trait RoutesWithFakeIds
{
/**
* Get the value of the model's route key.
*
* @return mixed
*/
public function getRouteKey()
{
$key = $this->getKey();
if... | php | MIT | 908618820044e07c3a0ebfecdf17efb479717302 | 2026-01-05T02:20:41.461072Z | false |
Propaganistas/Laravel-FakeId | https://github.com/Propaganistas/Laravel-FakeId/blob/908618820044e07c3a0ebfecdf17efb479717302/src/Facades/FakeId.php | src/Facades/FakeId.php | <?php namespace Propaganistas\LaravelFakeId\Facades;
use Illuminate\Support\Facades\Facade;
class FakeId extends Facade
{
/**
* Get the registered name of the component.
*
* @return string
* @throws \RuntimeException
*/
protected static function getFacadeAccessor()
{
retur... | php | MIT | 908618820044e07c3a0ebfecdf17efb479717302 | 2026-01-05T02:20:41.461072Z | false |
Propaganistas/Laravel-FakeId | https://github.com/Propaganistas/Laravel-FakeId/blob/908618820044e07c3a0ebfecdf17efb479717302/src/Commands/FakeIdSetupCommand.php | src/Commands/FakeIdSetupCommand.php | <?php
namespace Propaganistas\LaravelFakeId\Commands;
use Illuminate\Support\Str;
use Illuminate\Console\Command;
use Jenssegers\Optimus\Energon;
class FakeIdSetupCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'fake... | php | MIT | 908618820044e07c3a0ebfecdf17efb479717302 | 2026-01-05T02:20:41.461072Z | false |
Propaganistas/Laravel-FakeId | https://github.com/Propaganistas/Laravel-FakeId/blob/908618820044e07c3a0ebfecdf17efb479717302/tests/FakeIdTest.php | tests/FakeIdTest.php | <?php namespace Propaganistas\LaravelFakeId\Tests;
use Illuminate\Database\Capsule\Manager as DB;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Routing\Middleware\SubstituteBindings;
use Illuminate\Support\Facades\Route;
use Orchestra\Testbench\TestCase;
use Propaganistas\LaravelFakeId\Facade... | php | MIT | 908618820044e07c3a0ebfecdf17efb479717302 | 2026-01-05T02:20:41.461072Z | false |
Propaganistas/Laravel-FakeId | https://github.com/Propaganistas/Laravel-FakeId/blob/908618820044e07c3a0ebfecdf17efb479717302/tests/Entities/Deletable.php | tests/Entities/Deletable.php | <?php
namespace Propaganistas\LaravelFakeId\Tests\Entities;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Propaganistas\LaravelFakeId\RoutesWithFakeIds;
class Deletable extends Model
{
use SoftDeletes;
use RoutesWithFakeIds;
} | php | MIT | 908618820044e07c3a0ebfecdf17efb479717302 | 2026-01-05T02:20:41.461072Z | false |
Propaganistas/Laravel-FakeId | https://github.com/Propaganistas/Laravel-FakeId/blob/908618820044e07c3a0ebfecdf17efb479717302/tests/Entities/Fake.php | tests/Entities/Fake.php | <?php
namespace Propaganistas\LaravelFakeId\Tests\Entities;
use Illuminate\Database\Eloquent\Model;
use Propaganistas\LaravelFakeId\RoutesWithFakeIds;
class Fake extends Model
{
use RoutesWithFakeIds;
} | php | MIT | 908618820044e07c3a0ebfecdf17efb479717302 | 2026-01-05T02:20:41.461072Z | false |
Propaganistas/Laravel-FakeId | https://github.com/Propaganistas/Laravel-FakeId/blob/908618820044e07c3a0ebfecdf17efb479717302/tests/Entities/Real.php | tests/Entities/Real.php | <?php
namespace Propaganistas\LaravelFakeId\Tests\Entities;
use Illuminate\Database\Eloquent\Model;
class Real extends Model
{
} | php | MIT | 908618820044e07c3a0ebfecdf17efb479717302 | 2026-01-05T02:20:41.461072Z | false |
Propaganistas/Laravel-FakeId | https://github.com/Propaganistas/Laravel-FakeId/blob/908618820044e07c3a0ebfecdf17efb479717302/tests/Entities/FakeWithRouteKeyName.php | tests/Entities/FakeWithRouteKeyName.php | <?php
namespace Propaganistas\LaravelFakeId\Tests\Entities;
use Illuminate\Database\Eloquent\Model;
use Propaganistas\LaravelFakeId\RoutesWithFakeIds;
class FakeWithRouteKeyName extends Model
{
use RoutesWithFakeIds;
protected $table = "fakes";
public function getRouteKeyName()
{
return 'foo... | php | MIT | 908618820044e07c3a0ebfecdf17efb479717302 | 2026-01-05T02:20:41.461072Z | false |
Propaganistas/Laravel-FakeId | https://github.com/Propaganistas/Laravel-FakeId/blob/908618820044e07c3a0ebfecdf17efb479717302/config/config.php | config/config.php | <?php
return [
/*
|--------------------------------------------------------------------------
| FakeId connection settings
|--------------------------------------------------------------------------
|
| Since FakeId depends on jenssegers/optimus, we need three values:
| - A large prime num... | php | MIT | 908618820044e07c3a0ebfecdf17efb479717302 | 2026-01-05T02:20:41.461072Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/requirements.php | requirements.php | <?php
/**
* Application requirement checker script.
*
* In order to run this script use the following console command:
* php requirements.php
*
* In order to run this script from the web, you should copy it to the web root.
* If you are using Linux you can create a hard link instead, using the following command:... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/mail/layouts/html.php | mail/layouts/html.php | <?php
use yii\helpers\Html;
/* @var $this \yii\web\View view component instance */
/* @var $message \yii\mail\MessageInterface the message being composed */
/* @var $content string main view render result */
?>
<?php $this->beginPage() ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/commands/HelloController.php | commands/HelloController.php | <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace app\commands;
use yii\console\Controller;
use yii\console\ExitCode;
/**
* This command echoes the first argument that you have entered.
*
* This command ... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/tests/_bootstrap.php | tests/_bootstrap.php | <?php
define('YII_ENV', 'test');
defined('YII_DEBUG') or define('YII_DEBUG', true);
require_once __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';
require __DIR__ .'/../vendor/autoload.php'; | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/tests/acceptance/HomeCest.php | tests/acceptance/HomeCest.php | <?php
use yii\helpers\Url;
class HomeCest
{
public function ensureThatHomePageWorks(AcceptanceTester $I)
{
$I->amOnPage(Url::toRoute('/site/index'));
$I->see('My Company');
$I->seeLink('About');
$I->click('About');
$I->wait(2); // wait for page to be op... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/tests/acceptance/ContactCest.php | tests/acceptance/ContactCest.php | <?php
use yii\helpers\Url;
class ContactCest
{
public function _before(\AcceptanceTester $I)
{
$I->amOnPage(Url::toRoute('/site/contact'));
}
public function contactPageWorks(AcceptanceTester $I)
{
$I->wantTo('ensure that contact page works');
$I->see('Contact', 'h1');... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/tests/acceptance/LoginCest.php | tests/acceptance/LoginCest.php | <?php
use yii\helpers\Url;
class LoginCest
{
public function ensureThatLoginWorks(AcceptanceTester $I)
{
$I->amOnPage(Url::toRoute('/site/login'));
$I->see('Login', 'h1');
$I->amGoingTo('try to login with correct credentials');
$I->fillField('input[name="LoginForm[username]"]'... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/tests/acceptance/_bootstrap.php | tests/acceptance/_bootstrap.php | <?php
| php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/tests/acceptance/AboutCest.php | tests/acceptance/AboutCest.php | <?php
use yii\helpers\Url;
class AboutCest
{
public function ensureThatAboutWorks(AcceptanceTester $I)
{
$I->amOnPage(Url::toRoute('/site/about'));
$I->see('About', 'h1');
}
}
| php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/tests/unit/_bootstrap.php | tests/unit/_bootstrap.php | <?php
// add unit testing specific bootstrap code here
| php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/tests/unit/models/LoginFormTest.php | tests/unit/models/LoginFormTest.php | <?php
namespace tests\unit\models;
use app\models\LoginForm;
class LoginFormTest extends \Codeception\Test\Unit
{
private $model;
protected function _after()
{
\Yii::$app->user->logout();
}
public function testLoginNoUser()
{
$this->model = new LoginForm([
'usern... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/tests/unit/models/ContactFormTest.php | tests/unit/models/ContactFormTest.php | <?php
namespace tests\unit\models;
use app\models\ContactForm;
use yii\mail\MessageInterface;
class ContactFormTest extends \Codeception\Test\Unit
{
private $model;
/**
* @var \UnitTester
*/
public $tester;
public function testEmailIsSentOnContact()
{
/** @var ContactForm $mode... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/tests/unit/models/UserTest.php | tests/unit/models/UserTest.php | <?php
namespace tests\unit\models;
use app\models\User;
class UserTest extends \Codeception\Test\Unit
{
public function testFindUserById()
{
expect_that($user = User::findIdentity(100));
expect($user->username)->equals('admin');
expect_not(User::findIdentity(999));
}
public ... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/tests/_support/AcceptanceTester.php | tests/_support/AcceptanceTester.php | <?php
/**
* Inherited Methods
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
* @method void expectTo($prediction)
* @method void expect($prediction)
* @method void amGoingTo($argumentation)
* @method void am($role)
* @method void lookForwardTo($achieveValue)
... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/tests/_support/UnitTester.php | tests/_support/UnitTester.php | <?php
/**
* Inherited Methods
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
* @method void expectTo($prediction)
* @method void expect($prediction)
* @method void amGoingTo($argumentation)
* @method void am($role)
* @method void lookForwardTo($achieveValue)
... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/tests/_support/FunctionalTester.php | tests/_support/FunctionalTester.php | <?php
/**
* Inherited Methods
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
* @method void expectTo($prediction)
* @method void expect($prediction)
* @method void amGoingTo($argumentation)
* @method void am($role)
* @method void lookForwardTo($achieveValue)
... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/tests/functional/LoginFormCest.php | tests/functional/LoginFormCest.php | <?php
class LoginFormCest
{
public function _before(\FunctionalTester $I)
{
$I->amOnRoute('site/login');
}
public function openLoginPage(\FunctionalTester $I)
{
$I->see('Login', 'h1');
}
// demonstrates `amLoggedInAs` method
public function internalLoginById(\Function... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/tests/functional/ContactFormCest.php | tests/functional/ContactFormCest.php | <?php
class ContactFormCest
{
public function _before(\FunctionalTester $I)
{
$I->amOnPage(['site/contact']);
}
public function openContactPage(\FunctionalTester $I)
{
$I->see('Contact', 'h1');
}
public function submitEmptyForm(\FunctionalTester $I)
{
... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/tests/functional/_bootstrap.php | tests/functional/_bootstrap.php | <?php
| php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/controllers/SiteController.php | controllers/SiteController.php | <?php
namespace app\controllers;
use app\models\Views;
use Yii;
use yii\filters\AccessControl;
use yii\web\Controller;
use yii\web\Response;
use yii\filters\VerbFilter;
use app\models\LoginForm;
use app\models\ContactForm;
class SiteController extends Controller
{
/**
* {@inheritdoc}
*/
public func... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/models/User.php | models/User.php | <?php
namespace app\models;
class User extends \yii\base\BaseObject implements \yii\web\IdentityInterface
{
public $id;
public $username;
public $password;
public $authKey;
public $accessToken;
private static $users = [
'100' => [
'id' => '100',
'username' => '... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/models/Views.php | models/Views.php | <?php
namespace app\models;
use Yii;
use yii\behaviors\TimestampBehavior;
/**
* This is the model class for table "views".
*
* @property int $id
* @property string $profile
* @property int|null $views
* @property int|null $create_time
* @property int|null $update_time
*/
class Views extends \yii\db\ActiveRec... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/views/site/index.php | views/site/index.php | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false | |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/views/site/svg.php | views/site/svg.php | <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="112" height="20" role="img" aria-label="Profile views: <?= $views ?>">
<title>Profile views: <?= $views ?></title>
<linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
<sto... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/views/site/error.php | views/site/error.php | <?php
/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */
use yii\helpers\Html;
$this->title = $name;
?>
<div class="site-error">
<h1><?= Html::encode($this->title) ?></h1>
<div class="alert alert-danger">
<?= nl2br(Html::encode($message)... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/views/layouts/none.php | views/layouts/none.php | <?= $content ?> | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/views/layouts/main.php | views/layouts/main.php | <?php
/* @var $this \yii\web\View */
/* @var $content string */
use app\widgets\Alert;
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\assets\AppAsset;
AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->lang... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/migrations/m200718_104612_initial.php | migrations/m200718_104612_initial.php | <?php
use yii\db\Migration;
/**
* Class m200718_104612_initial
*/
class m200718_104612_initial extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->db->createCommand("CREATE TABLE `views` (
`id` int(10) UNSIGNED NOT NULL,
`profile` varchar(250) NOT NULL,
`... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/widgets/Alert.php | widgets/Alert.php | <?php
namespace app\widgets;
use Yii;
/**
* Alert widget renders a message from session flash. All flash messages are displayed
* in the sequence they were assigned using setFlash. You can set message as following:
*
* ```php
* Yii::$app->session->setFlash('error', 'This is the message');
* Yii::$app->session->... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/assets/AppAsset.php | assets/AppAsset.php | <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace app\assets;
use yii\web\AssetBundle;
/**
* Main application asset bundle.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class AppAsset ex... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/config-dist/web.php | config-dist/web.php | <?php
$params = require __DIR__ . '/params.php';
$db = require __DIR__ . '/db.php';
$config = [
'id' => 'basic',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
'aliases' => [
'@bower' => '@vendor/bower-asset',
'@npm' => '@vendor/npm-asset',
],
'components' => [
... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/config-dist/params.php | config-dist/params.php | <?php
return [
'adminEmail' => 'admin@example.com',
'senderEmail' => 'noreply@example.com',
'senderName' => 'Example.com mailer',
];
| php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/config-dist/test_db.php | config-dist/test_db.php | <?php
$db = require __DIR__ . '/db.php';
// test database! Important not to run tests on production or development databases
$db['dsn'] = 'mysql:host=localhost;dbname=yii2_basic_tests';
return $db;
| php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/config-dist/test.php | config-dist/test.php | <?php
$params = require __DIR__ . '/params.php';
$db = require __DIR__ . '/test_db.php';
/**
* Application configuration shared by all test types
*/
return [
'id' => 'basic-tests',
'basePath' => dirname(__DIR__),
'aliases' => [
'@bower' => '@vendor/bower-asset',
'@npm' => '@vendor/npm-a... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/config-dist/db.php | config-dist/db.php | <?php
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=githubviews',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
// Schema cache options (for production environment)
//'enableSchemaCache' => true,
//'schemaCacheDuration' => 60,
//'sche... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/config-dist/console.php | config-dist/console.php | <?php
$params = require __DIR__ . '/params.php';
$db = require __DIR__ . '/db.php';
$config = [
'id' => 'basic-console',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
'controllerNamespace' => 'app\commands',
'aliases' => [
'@bower' => '@vendor/bower-asset',
'@npm' => '@... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/web/index.php | web/index.php | <?php
// comment out the following two lines when deployed to production
defined('YII_DEBUG') or define('YII_DEBUG', false);
defined('YII_ENV') or define('YII_ENV', 'production');
require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';
$config = require __DIR__ . '/../config... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
arturssmirnovs/github-profile-views-counter | https://github.com/arturssmirnovs/github-profile-views-counter/blob/c39b8e92d72901e8877bc529228a703bf38b6976/web/index-test.php | web/index-test.php | <?php
// NOTE: Make sure this file is not accessible when deployed to production
if (!in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'])) {
die('You are not allowed to access this file.');
}
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'test');
require __DIR__ ... | php | BSD-3-Clause | c39b8e92d72901e8877bc529228a703bf38b6976 | 2026-01-05T02:20:54.596082Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/Module.php | Module.php | <?php
/**
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace leadmall;
use framework\common\BasicModule;
/**
* v2 module definition class
*/
class Module extends BasicModule
{
/**
* @inheritdoc
*/
public $controllerNamespace = 'leadmall';
/**
... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/index.php | index.php | <?php
/**
* @Author: qinuoyun
* @Date: 2021-05-27 09:55:15
* @Last Modified by: qinuoyun
* @Last Modified time: 2021-05-28 16:19:29
*/
ini_set("display_errors", "On");
error_reporting(E_ALL);
//开启Session
session_start();
//当前文件名称
define('LE_SCRIPT_NAME', basename(__FILE__));
//站点根目录路径
define('LE_PACKAGE_BASE',... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/Event.php | Event.php | <?php
namespace leadmall;
use framework\common\BasicEvent;
/**
* 事件处理器
*/
class Event extends BasicEvent
{
public $param = [];
public $user_upload = [];
public $user_statistical = []; //用户统计信息
public $visit_goods_info = null; //商品信息,用于添加商品访问记录
public $visit_info =... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/Map.php | Map.php | <?php
/**
* @link https://www.leadshop.vip/
* @copyright Copyright ©2020-2021 浙江禾成云计算有限公司
*/
namespace leadmall;
interface Map
{
const __MAPS__ = array(
"UPCF71FCDA1DABFE36E95A445E87DF917EQU" => "modules/goods/api/GoodsController.php",
);
// function Inspection();
function Authorization();
}... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/Model.php | Model.php | <?php
/**
* 测试用
*/
namespace leadmall;
use framework\common\CommonModels;
class Model extends CommonModels
{
}
| php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/leadmall.php | system/leadmall.php | <?php
/**
* @Author: qinuoyun
* @Date: 2020-09-09 15:12:15
* @Last Modified by: qinuoyun
* @Last Modified time: 2021-04-23 14:18:47
*/
namespace framework;
class leadmall
{
/**
* 配置信息
* @var array
*/
public $config = array();
static $storage = [];
/**
* 处理路由模式 1 = 伪静态模式... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/functions.php | system/functions.php | <?php
/**
* @Author: qinuoyun
* @Date: 2020-09-09 15:12:15
* @Last Modified by: qinuoyun
* @Last Modified time: 2021-07-05 15:39:18
*/
if (!function_exists('import')) {
/**
* 加载函数
* @param string $value [description]
* @return [type] [description]
*/
function import($value... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | true |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/update.php | system/update.php | <?php
return [
'1.2.0' => function () {
$sql = <<<EOF
EOF;
return $sql;
}
]; | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/wechat/WechatCustom.php | system/wechat/WechatCustom.php | <?php
/**
* @Author: qinuoyun
* @Date: 2020-08-20 13:46:09
* @Last Modified by: qinuoyun
* @Last Modified time: 2021-01-05 10:17:34
*/
namespace framework\wechat;
use framework\wechat\Lib\Common;
use framework\wechat\Lib\Tools;
class WechatCustom extends Common
{
/** 多客服相关地址 */
const CUSTOM_SERVICE_... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/wechat/WechatPay.php | system/wechat/WechatPay.php | <?php
/**
* @Author: qinuoyun
* @Date: 2020-08-20 13:46:09
* @Last Modified by: qinuoyun
* @Last Modified time: 2021-01-05 10:17:32
*/
namespace framework\wechat;
use framework\wechat\Lib\Tools;
/**
* 微信支付SDK
* @author zoujingli <zoujingli@qq.com>
* @date 2015/05/13 12:12:00
*/
class WechatPay
{
/**... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/wechat/Loader.php | system/wechat/Loader.php | <?php
/**
* @Author: qinuoyun
* @Date: 2020-08-20 13:46:09
* @Last Modified by: qinuoyun
* @Last Modified time: 2021-01-05 10:17:35
*/
namespace framework\wechat;
use framework\wechat\Lib\Cache;
/**
* 注册SDK自动加载机制
* @author Anyon <zoujingli@qq.com>
* @date 2016/10/26 10:21
*/
spl_autoload_register(functi... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/wechat/WechatMedia.php | system/wechat/WechatMedia.php | <?php
/**
* @Author: qinuoyun
* @Date: 2020-08-20 13:46:09
* @Last Modified by: qinuoyun
* @Last Modified time: 2021-01-05 10:17:33
*/
namespace framework\wechat;
use framework\wechat\Lib\Cache;
use framework\wechat\Lib\Common;
use framework\wechat\Lib\Tools;
/**
* 微信媒体素材管理类
*
* @author Anyon <zoujingli@q... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/wechat/WechatMenu.php | system/wechat/WechatMenu.php | <?php
/**
* @Author: qinuoyun
* @Date: 2020-08-20 13:46:09
* @Last Modified by: qinuoyun
* @Last Modified time: 2021-01-05 10:17:33
*/
namespace framework\wechat;
use framework\wechat\Lib\Common;
use framework\wechat\Lib\Tools;
/**
* 微信菜单操作SDK
*
* @author Anyon <zoujingli@qq.com>
* @date 2016/06/28 11:52... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/wechat/WechatQrcode.php | system/wechat/WechatQrcode.php | <?php
/**
* @Author: qinuoyun
* @Date: 2020-08-20 13:46:09
* @Last Modified by: wiki
* @Last Modified time: 2021-03-13 16:49:09
*/
namespace framework\wechat;
use framework\wechat\Lib\Common;
use framework\wechat\Lib\Tools;
/**
* 微信网页授权
*/
class WechatQrcode extends Common
{
const WEAPP_PREFIX ... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/wechat/WechatScript.php | system/wechat/WechatScript.php | <?php
/**
* @Author: qinuoyun
* @Date: 2020-08-20 13:46:09
* @Last Modified by: qinuoyun
* @Last Modified time: 2021-01-05 10:17:31
*/
namespace framework\wechat;
use framework\wechat\Lib\Common;
use framework\wechat\Lib\Tools;
/**
* 微信前端 JavaScript 签名SDK
*
* @author Anyon <zoujingli@qq.com>
* @date 2016... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/wechat/WechatPoi.php | system/wechat/WechatPoi.php | <?php
/**
* @Author: qinuoyun
* @Date: 2020-08-20 13:46:09
* @Last Modified by: qinuoyun
* @Last Modified time: 2021-01-05 10:17:32
*/
namespace framework\wechat;
use framework\wechat\Lib\Common;
use framework\wechat\Lib\Tools;
/**
* 微信门店接口
* @author Anyon <zoujingli@qq.com>
* @date 2016/10/26 15:43
*/
c... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/wechat/WechatHardware.php | system/wechat/WechatHardware.php | <?php
/**
* @Author: qinuoyun
* @Date: 2020-08-20 13:46:09
* @Last Modified by: qinuoyun
* @Last Modified time: 2021-01-05 10:17:33
*/
namespace framework\wechat;
use framework\wechat\Lib\Common;
use framework\wechat\Lib\Tools;
class WechatHardware extends Common
{
const DEVICE_AUTHORIZE_DEVICE = '/de... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/wechat/WechatReceive.php | system/wechat/WechatReceive.php | <?php
/**
* @Author: qinuoyun
* @Date: 2020-08-20 13:46:09
* @Last Modified by: qinuoyun
* @Last Modified time: 2021-01-05 10:17:31
*/
namespace framework\wechat;
use framework\wechat\Lib\Tools;
use Prpcrypt;
/**
* 微信消息对象解析SDK
*
* @author Anyon <zoujingli@qq.com>
* @date 2016/06/28 11:29
*/
class Wechat... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/wechat/WechatExtends.php | system/wechat/WechatExtends.php | <?php
/**
* @Author: qinuoyun
* @Date: 2020-08-20 13:46:09
* @Last Modified by: qinuoyun
* @Last Modified time: 2021-01-05 10:17:33
*/
namespace framework\wechat;
use framework\wechat\Lib\Common;
use framework\wechat\Lib\Tools;
/**
* 微信扩展功能
*
* @author Anyon <zoujingli@qq.com>
* @date 2016-08-22 10:32
*... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/wechat/WechatAccesstoken.php | system/wechat/WechatAccesstoken.php | <?php
/**
* @copyright ©2020 浙江禾成云计算有限公司
* Created by PhpStorm.
* User: Andy - 阿德
* Date: 2021/1/15
* Time: 9:29
*/
namespace framework\wechat;
use framework\wechat\Lib\Common;
/**
* 获取AccessToken
* Class WechatAccessToken
* @package framework\wechat
*/
class WechatAccesstoken extends Common
{
}
| php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/wechat/WechatService.php | system/wechat/WechatService.php | <?php
/**
* @Author: qinuoyun
* @Date: 2020-08-20 13:46:09
* @Last Modified by: qinuoyun
* @Last Modified time: 2021-01-05 10:17:31
*/
namespace framework\wechat;
use framework\wechat\Lib\Cache;
use framework\wechat\Lib\Common;
use framework\wechat\Lib\Tools;
/**
* 公众号第三方平台SDK
*
* @version 1.0
* @author ... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/wechat/WechatOauth.php | system/wechat/WechatOauth.php | <?php
/**
* @Author: qinuoyun
* @Date: 2020-08-20 13:46:09
* @Last Modified by: qinuoyun
* @Last Modified time: 2021-01-05 10:17:32
*/
namespace framework\wechat;
use framework\wechat\Lib\Common;
use framework\wechat\Lib\Tools;
/**
* 微信网页授权
*/
class WechatOauth extends Common
{
const OAUTH_PREFIX ... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/wechat/WechatDevice.php | system/wechat/WechatDevice.php | <?php
/**
* @Author: qinuoyun
* @Date: 2020-08-20 13:46:09
* @Last Modified by: qinuoyun
* @Last Modified time: 2021-01-05 10:17:34
*/
namespace framework\wechat;
use framework\wechat\Lib\Common;
use framework\wechat\Lib\Tools;
/**
* 微信设备相关SDK
* @author Anyon <zoujingli@qq.com>
* @date 2016-08-22 10:35
*... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/wechat/WechatApplet.php | system/wechat/WechatApplet.php | <?php
/**
* @Author: qinuoyun
* @Date: 2020-08-20 13:46:09
* @Last Modified by: qinuoyun
* @Last Modified time: 2021-05-18 08:58:49
*/
namespace framework\wechat;
use framework\wechat\Lib\Common;
use framework\wechat\Lib\Tools;
/**
* 微信网页授权
*/
class WechatApplet extends Common
{
const WEAPP_PREFIX ... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/wechat/WechatMessage.php | system/wechat/WechatMessage.php | <?php
/**
* @Author: qinuoyun
* @Date: 2020-08-20 13:46:09
* @Last Modified by: qinuoyun
* @Last Modified time: 2021-01-05 10:17:32
*/
namespace framework\wechat;
use framework\wechat\Lib\Common;
use framework\wechat\Lib\Tools;
/**
* 微信模板消息
*
* @author Anyon <zoujingli@qq.com>
* @date 2016/06/28 11:29
*... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/wechat/WechatSubscribe.php | system/wechat/WechatSubscribe.php | <?php
namespace framework\wechat;
use framework\wechat\Lib\Common;
use framework\wechat\Lib\Tools;
class WechatSubscribe extends Common
{
/**
* @param $tid integer 模板标题 id,可通过接口获取,也可登录小程序后台查看获取 例如AT0002
* @param $kidList array 开发者自行组合好的模板关键词列表,关键词顺序可以自由搭配(例如 [3,5,4] 或 [4,5,3]),最多支持5个,最少2个关键词组合
* ... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/wechat/WechatExtapp.php | system/wechat/WechatExtapp.php | <?php
/**
* @copyright ©2020 浙江禾成云计算有限公司
* Created by PhpStorm.
* User: Andy - 阿德
* Date: 2020/12/28
* Time: 10:15
*/
namespace framework\wechat;
use framework\wechat\Lib\Tools;
use framework\wechat\WechatService;
class WechatExtapp extends WechatService
{
// 第三方微信接口基础
const THIRD_URL_PREFIX = 'https:/... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
leadshop/leadshop | https://github.com/leadshop/leadshop/blob/5b533ee074d48dae356e32ca306e49a770b56750/system/wechat/WechatUser.php | system/wechat/WechatUser.php | <?php
/**
* @Author: qinuoyun
* @Date: 2020-08-20 13:46:09
* @Last Modified by: qinuoyun
* @Last Modified time: 2021-01-05 10:17:38
*/
namespace framework\wechat;
use framework\wechat\Lib\Common;
use framework\wechat\Lib\Tools;
/**
* 微信粉丝操作SDK
*
* @author Anyon <zoujingli@qq.com>
* @date 2016/06/28 11:20... | php | Apache-2.0 | 5b533ee074d48dae356e32ca306e49a770b56750 | 2026-01-05T02:19:53.911414Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.