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
mll-lab/graphql-php-scalars
https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/src/DateTime.php
src/DateTime.php
<?php declare(strict_types=1); namespace MLL\GraphQLScalars; class DateTime extends DateScalar { public ?string $description /** @lang Markdown */ = 'A datetime string with format `Y-m-d H:i:s`, e.g. `2018-05-23 13:43:32`.'; protected static function outputFormat(): string { return 'Y-m-d...
php
MIT
a8acdfedfc0559fdefef7c880f534a2bb398635b
2026-01-05T04:11:06.032588Z
false
mll-lab/graphql-php-scalars
https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/src/Utils.php
src/Utils.php
<?php declare(strict_types=1); namespace MLL\GraphQLScalars; use GraphQL\Error\Error; use GraphQL\Language\AST\Node; use GraphQL\Language\AST\StringValueNode; use GraphQL\Language\AST\ValueNode; use GraphQL\Utils\Utils as GraphQLUtils; final class Utils { /** Check if a value can be serialized to a string. */ ...
php
MIT
a8acdfedfc0559fdefef7c880f534a2bb398635b
2026-01-05T04:11:06.032588Z
false
mll-lab/graphql-php-scalars
https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/src/DateScalar.php
src/DateScalar.php
<?php declare(strict_types=1); namespace MLL\GraphQLScalars; use GraphQL\Error\Error; use GraphQL\Error\InvariantViolation; use GraphQL\Language\AST\StringValueNode; use GraphQL\Type\Definition\ScalarType; use GraphQL\Utils\Utils; use function Safe\preg_match; abstract class DateScalar extends ScalarType { publ...
php
MIT
a8acdfedfc0559fdefef7c880f534a2bb398635b
2026-01-05T04:11:06.032588Z
false
mll-lab/graphql-php-scalars
https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/src/JSON.php
src/JSON.php
<?php declare(strict_types=1); namespace MLL\GraphQLScalars; use GraphQL\Error\Error; use GraphQL\Language\Printer; use GraphQL\Type\Definition\ScalarType; use Safe\Exceptions\JsonException; class JSON extends ScalarType { public ?string $description /** @lang Markdown */ = 'Arbitrary data encoded in Jav...
php
MIT
a8acdfedfc0559fdefef7c880f534a2bb398635b
2026-01-05T04:11:06.032588Z
false
mll-lab/graphql-php-scalars
https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/src/BigInt.php
src/BigInt.php
<?php declare(strict_types=1); namespace MLL\GraphQLScalars; class BigInt extends Regex { public ?string $description = <<<'DESCRIPTION' An arbitrarily long sequence of digits that represents a big integer. DESCRIPTION; public static function regex(): string { return "/\d+/"; } }
php
MIT
a8acdfedfc0559fdefef7c880f534a2bb398635b
2026-01-05T04:11:06.032588Z
false
mll-lab/graphql-php-scalars
https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/src/IntRange.php
src/IntRange.php
<?php declare(strict_types=1); namespace MLL\GraphQLScalars; use GraphQL\Error\Error; use GraphQL\Language\AST\IntValueNode; use GraphQL\Language\AST\Node; use GraphQL\Language\Printer; use GraphQL\Type\Definition\ScalarType; use GraphQL\Utils\Utils; abstract class IntRange extends ScalarType { /** The minimum a...
php
MIT
a8acdfedfc0559fdefef7c880f534a2bb398635b
2026-01-05T04:11:06.032588Z
false
mll-lab/graphql-php-scalars
https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/tests/DateTimeTzTest.php
tests/DateTimeTzTest.php
<?php declare(strict_types=1); namespace MLL\GraphQLScalars\Tests; use MLL\GraphQLScalars\DateScalar; use MLL\GraphQLScalars\DateTimeTz; final class DateTimeTzTest extends DateScalarTestBase { public static function invalidDateValues(): iterable { yield from parent::invalidDateValues(); yiel...
php
MIT
a8acdfedfc0559fdefef7c880f534a2bb398635b
2026-01-05T04:11:06.032588Z
false
mll-lab/graphql-php-scalars
https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/tests/DateTimeTest.php
tests/DateTimeTest.php
<?php declare(strict_types=1); namespace MLL\GraphQLScalars\Tests; use MLL\GraphQLScalars\DateScalar; use MLL\GraphQLScalars\DateTime; final class DateTimeTest extends DateScalarTestBase { public static function invalidDateValues(): iterable { yield from parent::invalidDateValues(); yield "C...
php
MIT
a8acdfedfc0559fdefef7c880f534a2bb398635b
2026-01-05T04:11:06.032588Z
false
mll-lab/graphql-php-scalars
https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/tests/DateScalarTestBase.php
tests/DateScalarTestBase.php
<?php declare(strict_types=1); namespace MLL\GraphQLScalars\Tests; use GraphQL\Error\Error; use GraphQL\Error\InvariantViolation; use GraphQL\Language\AST\IntValueNode; use GraphQL\Language\AST\StringValueNode; use MLL\GraphQLScalars\DateScalar; use PHPUnit\Framework\TestCase; abstract class DateScalarTestBase exten...
php
MIT
a8acdfedfc0559fdefef7c880f534a2bb398635b
2026-01-05T04:11:06.032588Z
false
mll-lab/graphql-php-scalars
https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/tests/EmailTest.php
tests/EmailTest.php
<?php declare(strict_types=1); namespace MLL\GraphQLScalars\Tests; use GraphQL\Error\Error; use GraphQL\Error\InvariantViolation; use GraphQL\Language\AST\StringValueNode; use MLL\GraphQLScalars\Email; use PHPUnit\Framework\TestCase; final class EmailTest extends TestCase { public function testSerializeThrowsIfU...
php
MIT
a8acdfedfc0559fdefef7c880f534a2bb398635b
2026-01-05T04:11:06.032588Z
false
mll-lab/graphql-php-scalars
https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/tests/BigIntTest.php
tests/BigIntTest.php
<?php declare(strict_types=1); namespace MLL\GraphQLScalars\Tests; use GraphQL\Error\InvariantViolation; use MLL\GraphQLScalars\BigInt; use PHPUnit\Framework\TestCase; final class BigIntTest extends TestCase { public function testSerializeThrowsIfBigIntIsInvalid(): void { $bigInt = new BigInt(); ...
php
MIT
a8acdfedfc0559fdefef7c880f534a2bb398635b
2026-01-05T04:11:06.032588Z
false
mll-lab/graphql-php-scalars
https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/tests/DateTest.php
tests/DateTest.php
<?php declare(strict_types=1); namespace MLL\GraphQLScalars\Tests; use MLL\GraphQLScalars\Date; use MLL\GraphQLScalars\DateScalar; final class DateTest extends DateScalarTestBase { public static function invalidDateValues(): iterable { yield from parent::invalidDateValues(); yield "Can't hav...
php
MIT
a8acdfedfc0559fdefef7c880f534a2bb398635b
2026-01-05T04:11:06.032588Z
false
mll-lab/graphql-php-scalars
https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/tests/MixedScalarTest.php
tests/MixedScalarTest.php
<?php declare(strict_types=1); namespace MLL\GraphQLScalars\Tests; use GraphQL\Executor\ExecutionResult; use GraphQL\GraphQL; use GraphQL\Type\Definition\ObjectType; use GraphQL\Type\Schema; use GraphQL\Type\SchemaConfig; use MLL\GraphQLScalars\MixedScalar; use PHPUnit\Framework\TestCase; final class MixedScalarTest...
php
MIT
a8acdfedfc0559fdefef7c880f534a2bb398635b
2026-01-05T04:11:06.032588Z
false
mll-lab/graphql-php-scalars
https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/tests/SchemaUsageTest.php
tests/SchemaUsageTest.php
<?php declare(strict_types=1); namespace MLL\GraphQLScalars\Tests; use GraphQL\Type\Definition\ObjectType; use GraphQL\Type\Schema; use GraphQL\Type\SchemaConfig; use MLL\GraphQLScalars\Email; use PHPUnit\Framework\TestCase; final class SchemaUsageTest extends TestCase { public function testUseScalarInSchema(): ...
php
MIT
a8acdfedfc0559fdefef7c880f534a2bb398635b
2026-01-05T04:11:06.032588Z
false
mll-lab/graphql-php-scalars
https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/tests/JSONTest.php
tests/JSONTest.php
<?php declare(strict_types=1); namespace MLL\GraphQLScalars\Tests; use GraphQL\Error\Error; use GraphQL\Language\AST\StringValueNode; use MLL\GraphQLScalars\JSON; use PHPUnit\Framework\TestCase; use Safe\Exceptions\JsonException; final class JSONTest extends TestCase { public const INVALID_UTF8_SEQUENCE = "\xB1\...
php
MIT
a8acdfedfc0559fdefef7c880f534a2bb398635b
2026-01-05T04:11:06.032588Z
false
mll-lab/graphql-php-scalars
https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/tests/StringScalarTest.php
tests/StringScalarTest.php
<?php declare(strict_types=1); namespace MLL\GraphQLScalars\Tests; use GraphQL\Error\Error; use GraphQL\Error\InvariantViolation; use GraphQL\Language\AST\IntValueNode; use GraphQL\Language\AST\NodeKind; use GraphQL\Language\AST\StringValueNode; use MLL\GraphQLScalars\StringScalar; use PHPUnit\Framework\TestCase; fi...
php
MIT
a8acdfedfc0559fdefef7c880f534a2bb398635b
2026-01-05T04:11:06.032588Z
false
mll-lab/graphql-php-scalars
https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/tests/UpToADozen.php
tests/UpToADozen.php
<?php declare(strict_types=1); namespace MLL\GraphQLScalars\Tests; use MLL\GraphQLScalars\IntRange; final class UpToADozen extends IntRange { protected static function min(): int { return 1; } protected static function max(): int { return 12; } }
php
MIT
a8acdfedfc0559fdefef7c880f534a2bb398635b
2026-01-05T04:11:06.032588Z
false
mll-lab/graphql-php-scalars
https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/tests/RegexTest.php
tests/RegexTest.php
<?php declare(strict_types=1); namespace MLL\GraphQLScalars\Tests; use GraphQL\Error\Error; use GraphQL\Error\InvariantViolation; use GraphQL\Language\AST\IntValueNode; use GraphQL\Language\AST\NodeKind; use GraphQL\Language\AST\StringValueNode; use MLL\GraphQLScalars\Regex; use PHPUnit\Framework\TestCase; final cla...
php
MIT
a8acdfedfc0559fdefef7c880f534a2bb398635b
2026-01-05T04:11:06.032588Z
false
mll-lab/graphql-php-scalars
https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/tests/IntRangeTest.php
tests/IntRangeTest.php
<?php declare(strict_types=1); namespace MLL\GraphQLScalars\Tests; use GraphQL\Error\Error; use PHPUnit\Framework\TestCase; final class IntRangeTest extends TestCase { public function testSerializeThrowsIfString(): void { $this->expectException(\InvalidArgumentException::class); $this->expect...
php
MIT
a8acdfedfc0559fdefef7c880f534a2bb398635b
2026-01-05T04:11:06.032588Z
false
mll-lab/graphql-php-scalars
https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/tests/MyRegex.php
tests/MyRegex.php
<?php declare(strict_types=1); namespace MLL\GraphQLScalars\Tests; use MLL\GraphQLScalars\Regex; final class MyRegex extends Regex { public ?string $description = 'Bar'; public static function regex(): string { return /** @lang RegExp */ '/foo/'; } }
php
MIT
a8acdfedfc0559fdefef7c880f534a2bb398635b
2026-01-05T04:11:06.032588Z
false
mll-lab/graphql-php-scalars
https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/tests/NullScalarTest.php
tests/NullScalarTest.php
<?php declare(strict_types=1); namespace MLL\GraphQLScalars\Tests; use GraphQL\Executor\ExecutionResult; use GraphQL\GraphQL; use GraphQL\Type\Definition\ObjectType; use GraphQL\Type\Schema; use GraphQL\Type\SchemaConfig; use MLL\GraphQLScalars\NullScalar; use PHPUnit\Framework\TestCase; final class NullScalarTest e...
php
MIT
a8acdfedfc0559fdefef7c880f534a2bb398635b
2026-01-05T04:11:06.032588Z
false
mll-lab/graphql-php-scalars
https://github.com/mll-lab/graphql-php-scalars/blob/a8acdfedfc0559fdefef7c880f534a2bb398635b/tests/MyStringScalar.php
tests/MyStringScalar.php
<?php declare(strict_types=1); namespace MLL\GraphQLScalars\Tests; use MLL\GraphQLScalars\StringScalar; final class MyStringScalar extends StringScalar { public ?string $description = 'Bar'; protected function isValid(string $stringValue): bool { return $stringValue === 'foo'; } }
php
MIT
a8acdfedfc0559fdefef7c880f534a2bb398635b
2026-01-05T04:11:06.032588Z
false
kuaikuaikim/dubbo-php-client
https://github.com/kuaikuaikim/dubbo-php-client/blob/434c65e7250d54f5cdbd5f5db6e653ed8e041e5e/example_composer.php
example_composer.php
<?php /** * Created by IntelliJ IDEA. * User: user * Date: 2017/3/9 * Time: 20:31 */ require_once __DIR__.'/vendor/autoload.php'; use DubboPhp\Client\Client; $options = [ 'registry_address' => '127.0.0.1:2181', 'version' => '1.0.0', 'group' =>null, 'protocol' => 'jsonrpc' ]; try { $dubboCli...
php
Apache-2.0
434c65e7250d54f5cdbd5f5db6e653ed8e041e5e
2026-01-05T04:11:11.060783Z
false
kuaikuaikim/dubbo-php-client
https://github.com/kuaikuaikim/dubbo-php-client/blob/434c65e7250d54f5cdbd5f5db6e653ed8e041e5e/ztest.php
ztest.php
<?php /** * PHP Zookeeper * * PHP Version 5.3 * * The PHP License, version 3.01 * * @category Libraries * @package PHP-Zookeeper * @author Lorenzo Alberton <l.alberton@quipo.it> * @copyright 2012 PHP Group * @license http://www.php.net/license The PHP License, version 3.01 * @link https://githu...
php
Apache-2.0
434c65e7250d54f5cdbd5f5db6e653ed8e041e5e
2026-01-05T04:11:11.060783Z
false
kuaikuaikim/dubbo-php-client
https://github.com/kuaikuaikim/dubbo-php-client/blob/434c65e7250d54f5cdbd5f5db6e653ed8e041e5e/src/DubboPhp/Client/Register.php
src/DubboPhp/Client/Register.php
<?php /** * Created by IntelliJ IDEA. * User: user * Date: 2017/3/8 * Time: 17:25 */ namespace DubboPhp\Client; class Register { public $config = [ 'registry_address' => '127.0.0.1:2181', 'provider_timeout' => 5, //seconds 'version' => Client::VERSION_DEFAULT, 'group' => nul...
php
Apache-2.0
434c65e7250d54f5cdbd5f5db6e653ed8e041e5e
2026-01-05T04:11:11.060783Z
false
kuaikuaikim/dubbo-php-client
https://github.com/kuaikuaikim/dubbo-php-client/blob/434c65e7250d54f5cdbd5f5db6e653ed8e041e5e/src/DubboPhp/Client/Invoker.php
src/DubboPhp/Client/Invoker.php
<?php /** * Created by IntelliJ IDEA. * User: user * Date: 2017/3/8 * Time: 17:40 */ namespace DubboPhp\Client; abstract class Invoker{ protected $invokerDesc; protected $url; protected $id = 0; protected $debug; protected $notification = false; protected $cluster; public function __...
php
Apache-2.0
434c65e7250d54f5cdbd5f5db6e653ed8e041e5e
2026-01-05T04:11:11.060783Z
false
kuaikuaikim/dubbo-php-client
https://github.com/kuaikuaikim/dubbo-php-client/blob/434c65e7250d54f5cdbd5f5db6e653ed8e041e5e/src/DubboPhp/Client/InvokerDesc.php
src/DubboPhp/Client/InvokerDesc.php
<?php /** * Created by IntelliJ IDEA. * User: user * Date: 2017/3/8 * Time: 17:36 */ namespace DubboPhp\Client; class InvokerDesc { private $serviceName ; private $group ; private $version ; private $schema = 'jsonrpc'; public function __construct($serviceName, $version=null, $group=null,$s...
php
Apache-2.0
434c65e7250d54f5cdbd5f5db6e653ed8e041e5e
2026-01-05T04:11:11.060783Z
false
kuaikuaikim/dubbo-php-client
https://github.com/kuaikuaikim/dubbo-php-client/blob/434c65e7250d54f5cdbd5f5db6e653ed8e041e5e/src/DubboPhp/Client/Client.php
src/DubboPhp/Client/Client.php
<?php /** * Created by IntelliJ IDEA. * User: user * Date: 2017/3/8 * Time: 17:06 */ namespace DubboPhp\Client; class Client { const VERSION_DEFAULT = '0.0.0'; const PROTOCOL_JSONRPC = 'jsonrpc'; const PROTOCOL_HESSIAN = 'hessian'; /** * @var Register */ protected $register; p...
php
Apache-2.0
434c65e7250d54f5cdbd5f5db6e653ed8e041e5e
2026-01-05T04:11:11.060783Z
false
kuaikuaikim/dubbo-php-client
https://github.com/kuaikuaikim/dubbo-php-client/blob/434c65e7250d54f5cdbd5f5db6e653ed8e041e5e/src/DubboPhp/Client/Cluster.php
src/DubboPhp/Client/Cluster.php
<?php /** * Created by IntelliJ IDEA. * User: user * Date: 2017/3/8 * Time: 17:42 */ namespace DubboPhp\Client; class Cluster { protected static $providerMap = []; private static $_instance; private function __construct(){ } private function __clone(){ } public static function ge...
php
Apache-2.0
434c65e7250d54f5cdbd5f5db6e653ed8e041e5e
2026-01-05T04:11:11.060783Z
false
kuaikuaikim/dubbo-php-client
https://github.com/kuaikuaikim/dubbo-php-client/blob/434c65e7250d54f5cdbd5f5db6e653ed8e041e5e/src/DubboPhp/Client/DubboPhpException.php
src/DubboPhp/Client/DubboPhpException.php
<?php /** * Created by IntelliJ IDEA. * User: user * Date: 2017/3/8 * Time: 17:05 */ namespace DubboPhp\Client; class DubboPhpException extends \Exception { }
php
Apache-2.0
434c65e7250d54f5cdbd5f5db6e653ed8e041e5e
2026-01-05T04:11:11.060783Z
false
kuaikuaikim/dubbo-php-client
https://github.com/kuaikuaikim/dubbo-php-client/blob/434c65e7250d54f5cdbd5f5db6e653ed8e041e5e/src/DubboPhp/Client/DubboPhpClientServiceProvider.php
src/DubboPhp/Client/DubboPhpClientServiceProvider.php
<?php /** * Created by IntelliJ IDEA. * User: user * Date: 2017/3/8 * Time: 17:06 */ namespace DubboPhp\Client; use Illuminate\Support\ServiceProvider; use Illuminate\Foundation\Application as LaravelApplication; use Laravel\Lumen\Application as LumenApplication; class DubboPhpClientServiceProvider extends Ser...
php
Apache-2.0
434c65e7250d54f5cdbd5f5db6e653ed8e041e5e
2026-01-05T04:11:11.060783Z
false
kuaikuaikim/dubbo-php-client
https://github.com/kuaikuaikim/dubbo-php-client/blob/434c65e7250d54f5cdbd5f5db6e653ed8e041e5e/src/DubboPhp/Client/Protocols/Hessian.php
src/DubboPhp/Client/Protocols/Hessian.php
<?php /** * Created by IntelliJ IDEA. * User: user * Date: 2017/3/8 * Time: 17:48 */ namespace DubboPhp\Client\Protocols; use DubboPhp\Client\DubboPhpException; use DubboPhp\Client\Invoker; class Hessian extends Invoker { public function __construct($url=null, $debug=false) { //@todo implement m...
php
Apache-2.0
434c65e7250d54f5cdbd5f5db6e653ed8e041e5e
2026-01-05T04:11:11.060783Z
false
kuaikuaikim/dubbo-php-client
https://github.com/kuaikuaikim/dubbo-php-client/blob/434c65e7250d54f5cdbd5f5db6e653ed8e041e5e/src/DubboPhp/Client/Protocols/Jsonrpc.php
src/DubboPhp/Client/Protocols/Jsonrpc.php
<?php /** * Created by IntelliJ IDEA. * User: user * Date: 2017/3/8 * Time: 17:48 */ namespace DubboPhp\Client\Protocols; use DubboPhp\Client\DubboPhpException; use DubboPhp\Client\Invoker; class Jsonrpc extends Invoker{ public function __construct($url=null, $debug=false) { parent::__construct...
php
Apache-2.0
434c65e7250d54f5cdbd5f5db6e653ed8e041e5e
2026-01-05T04:11:11.060783Z
false
kuaikuaikim/dubbo-php-client
https://github.com/kuaikuaikim/dubbo-php-client/blob/434c65e7250d54f5cdbd5f5db6e653ed8e041e5e/src/DubboPhp/Client/Facades/DubboPhpClientFactory.php
src/DubboPhp/Client/Facades/DubboPhpClientFactory.php
<?php /** * Description * * @project mulsite * @package mulsite * @author nickfan <nickfan81@gmail.com> * @link http://www.axiong.me * @version $Id$ * @lastmodified: 2015-09-21 09:12 * */ namespace DubboPhp\Client\Facades; use Illuminate\Support\Facades\Facade; class DubboPhpClientFactory extends Facade { ...
php
Apache-2.0
434c65e7250d54f5cdbd5f5db6e653ed8e041e5e
2026-01-05T04:11:11.060783Z
false
kuaikuaikim/dubbo-php-client
https://github.com/kuaikuaikim/dubbo-php-client/blob/434c65e7250d54f5cdbd5f5db6e653ed8e041e5e/src/DubboPhp/Client/Facades/DubboPhpClient.php
src/DubboPhp/Client/Facades/DubboPhpClient.php
<?php /** * Description * * @project mulsite * @package mulsite * @author nickfan <nickfan81@gmail.com> * @link http://www.axiong.me * @version $Id$ * @lastmodified: 2015-09-21 09:12 * */ namespace DubboPhp\Client\Facades; use Illuminate\Support\Facades\Facade; class DubboPhpClient extends Facade { /*...
php
Apache-2.0
434c65e7250d54f5cdbd5f5db6e653ed8e041e5e
2026-01-05T04:11:11.060783Z
false
kuaikuaikim/dubbo-php-client
https://github.com/kuaikuaikim/dubbo-php-client/blob/434c65e7250d54f5cdbd5f5db6e653ed8e041e5e/src/config/config.php
src/config/config.php
<?php return [ 'default'=>[ /** * zookeeper service address (host:port) default localhost:2181 */ 'registry_address' => env('ZOOKEEPER_ADDRESS','localhost:2181'), /** * service provider invoke timeout */ 'provider_timeout' => 5, //seconds ...
php
Apache-2.0
434c65e7250d54f5cdbd5f5db6e653ed8e041e5e
2026-01-05T04:11:11.060783Z
false
kuaikuaikim/dubbo-php-client
https://github.com/kuaikuaikim/dubbo-php-client/blob/434c65e7250d54f5cdbd5f5db6e653ed8e041e5e/tests/TestCase.php
tests/TestCase.php
<?php namespace DubboPhp\Client\Tests; use DubboPhp\Client\Client; class TestCase extends \PHPUnit_Framework_TestCase { public function setUp() { parent::setUp(); require_once __DIR__.'/../vendor/autoload.php'; } public function tearDown() { parent::tearDown(); } ...
php
Apache-2.0
434c65e7250d54f5cdbd5f5db6e653ed8e041e5e
2026-01-05T04:11:11.060783Z
false
kuaikuaikim/dubbo-php-client
https://github.com/kuaikuaikim/dubbo-php-client/blob/434c65e7250d54f5cdbd5f5db6e653ed8e041e5e/test/unittest.php
test/unittest.php
<?php require_once "../src/dubboClient.php"; use \dubbo\dubboClient; $options= array( "registry_address" => "127.0.0.1:2181" ); $dubboCli = new dubboClient($options); $testService = $dubboCli->getService("com.dubbo.demo.HelloService","1.0.0",null); $ret = $testService->hello("dubbo php client"); echo $ret; ?>
php
Apache-2.0
434c65e7250d54f5cdbd5f5db6e653ed8e041e5e
2026-01-05T04:11:11.060783Z
false
fahlisaputra/laravel-minify
https://github.com/fahlisaputra/laravel-minify/blob/6a19886ef2284440f166bde932501c2911318577/src/Helpers.php
src/Helpers.php
<?php /** * Minify the given file path. * * @param string $file The file path to minify. * * @throws Exception * * @return string The minified url. */ function minify(string $file): string { if (config('minify.assets_enabled') === false) { throw new \Exception('Minify assets is disabled'); } ...
php
MIT
6a19886ef2284440f166bde932501c2911318577
2026-01-05T04:11:26.898781Z
false
fahlisaputra/laravel-minify
https://github.com/fahlisaputra/laravel-minify/blob/6a19886ef2284440f166bde932501c2911318577/src/MinifyServiceProvider.php
src/MinifyServiceProvider.php
<?php namespace Fahlisaputra\Minify; use Fahlisaputra\Minify\Controllers\HttpConnectionHandler; use Illuminate\Support\Facades\Route as RouteFacade; use Illuminate\Support\ServiceProvider as BaseServiceProvider; class MinifyServiceProvider extends BaseServiceProvider { /** * Indicates if loading of the prov...
php
MIT
6a19886ef2284440f166bde932501c2911318577
2026-01-05T04:11:26.898781Z
false
fahlisaputra/laravel-minify
https://github.com/fahlisaputra/laravel-minify/blob/6a19886ef2284440f166bde932501c2911318577/src/Controllers/HttpConnectionHandler.php
src/Controllers/HttpConnectionHandler.php
<?php namespace Fahlisaputra\Minify\Controllers; use Fahlisaputra\Minify\Helpers\CSS; use Fahlisaputra\Minify\Helpers\Javascript; class HttpConnectionHandler { public function __invoke($file) { $js_insert_semicolon = (bool) config('minify.insert_semicolon.js', true); $css_insert_semicolon = (...
php
MIT
6a19886ef2284440f166bde932501c2911318577
2026-01-05T04:11:26.898781Z
false
fahlisaputra/laravel-minify
https://github.com/fahlisaputra/laravel-minify/blob/6a19886ef2284440f166bde932501c2911318577/src/Helpers/Javascript.php
src/Helpers/Javascript.php
<?php namespace Fahlisaputra\Minify\Helpers; class Javascript { protected function insertSemicolon($value) { $value = preg_replace('/(?:(?:\/\*(?:[^*]|(?:\*+[^*\/]))*\*+\/)|(?:(?<!\:|\\\|\'|\")\/\/.*))/', '', $value); $value = preg_replace_callback('/(`[\S\s]*?[^\\\`]`)/', function ($m) { ...
php
MIT
6a19886ef2284440f166bde932501c2911318577
2026-01-05T04:11:26.898781Z
false
fahlisaputra/laravel-minify
https://github.com/fahlisaputra/laravel-minify/blob/6a19886ef2284440f166bde932501c2911318577/src/Helpers/JsObfuscator.php
src/Helpers/JsObfuscator.php
<?php // Source: https://github.com/nicxlau/hunter-php-javascript-obfuscator namespace Fahlisaputra\Minify\Helpers; class JsObfuscator { private $code; private $mask; private $interval; private $option = 0; private $expireTime = 0; private $domainNames = []; public function __construct($...
php
MIT
6a19886ef2284440f166bde932501c2911318577
2026-01-05T04:11:26.898781Z
false
fahlisaputra/laravel-minify
https://github.com/fahlisaputra/laravel-minify/blob/6a19886ef2284440f166bde932501c2911318577/src/Helpers/CSS.php
src/Helpers/CSS.php
<?php namespace Fahlisaputra\Minify\Helpers; class CSS { protected function insertSemicolon($value) { return preg_replace([ '#^[A-Za-z\s\-]+:.+(?<!({|}|;))$#m', '#^([A-Za-z\s\-]+):(.+)[;]$(\n+|\s+){#m', ], [ '$0;', '$1:$2$3{', ], $value);...
php
MIT
6a19886ef2284440f166bde932501c2911318577
2026-01-05T04:11:26.898781Z
false
fahlisaputra/laravel-minify
https://github.com/fahlisaputra/laravel-minify/blob/6a19886ef2284440f166bde932501c2911318577/src/Middleware/Minifier.php
src/Middleware/Minifier.php
<?php namespace Fahlisaputra\Minify\Middleware; use Closure; use DOMDocument; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use Illuminate\View\View; use Symfony\Component\HttpFoundation\BinaryFileResponse; use Symfony\Component\HttpFoundation\StreamedResponse; abstract class Minifier { protecte...
php
MIT
6a19886ef2284440f166bde932501c2911318577
2026-01-05T04:11:26.898781Z
false
fahlisaputra/laravel-minify
https://github.com/fahlisaputra/laravel-minify/blob/6a19886ef2284440f166bde932501c2911318577/src/Middleware/MinifyCss.php
src/Middleware/MinifyCss.php
<?php namespace Fahlisaputra\Minify\Middleware; use Fahlisaputra\Minify\Helpers\CSS; class MinifyCss extends Minifier { protected static $allowInsertSemicolon; protected function apply() { static::$minifyCssHasBeenUsed = true; static::$allowInsertSemicolon = (bool) config('minify.insert_...
php
MIT
6a19886ef2284440f166bde932501c2911318577
2026-01-05T04:11:26.898781Z
false
fahlisaputra/laravel-minify
https://github.com/fahlisaputra/laravel-minify/blob/6a19886ef2284440f166bde932501c2911318577/src/Middleware/MinifyHtml.php
src/Middleware/MinifyHtml.php
<?php namespace Fahlisaputra\Minify\Middleware; class MinifyHtml extends Minifier { protected const REGEX_REMOVE_COMMENT = "#\s*<!--(?!\[if\s).*?-->\s*|(?<!\>)\n+(?=\<[^!])#s"; protected function apply() { $ignoredCss = $this->getByTagOnlyIgnored('style'); $ignoredJs = $this->getByTagOnly...
php
MIT
6a19886ef2284440f166bde932501c2911318577
2026-01-05T04:11:26.898781Z
false
fahlisaputra/laravel-minify
https://github.com/fahlisaputra/laravel-minify/blob/6a19886ef2284440f166bde932501c2911318577/src/Middleware/MinifyJavascript.php
src/Middleware/MinifyJavascript.php
<?php namespace Fahlisaputra\Minify\Middleware; use Fahlisaputra\Minify\Helpers\Javascript; class MinifyJavascript extends Minifier { protected static $allowInsertSemicolon; protected function apply() { static::$minifyJavascriptHasBeenUsed = true; static::$allowInsertSemicolon = (bool) c...
php
MIT
6a19886ef2284440f166bde932501c2911318577
2026-01-05T04:11:26.898781Z
false
fahlisaputra/laravel-minify
https://github.com/fahlisaputra/laravel-minify/blob/6a19886ef2284440f166bde932501c2911318577/config/minify.php
config/minify.php
<?php /* * This file is part of Laravel Minify. * * (c) Fahli Saputra <saputra@fahli.net> * (c) DulLah <dulah755@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ return [ /* |-----------------------------------...
php
MIT
6a19886ef2284440f166bde932501c2911318577
2026-01-05T04:11:26.898781Z
false
JacobBennett/StripeTestToken
https://github.com/JacobBennett/StripeTestToken/blob/87e5ad94fefafa2cff072cd9f79e9f4620c9eae8/src/StripeTestToken.php
src/StripeTestToken.php
<?php namespace JacobBennett; use JacobBennett\StripeCardNumber; use Stripe\Stripe; use Stripe\Token; /** * Quickly create Stripe test tokens * * reference https://stripe.com/docs/testing#cards */ class StripeTestToken { public static function setApiKey($key) { Stripe::setApiKey($key); } ...
php
MIT
87e5ad94fefafa2cff072cd9f79e9f4620c9eae8
2026-01-05T04:11:35.046781Z
false
JacobBennett/StripeTestToken
https://github.com/JacobBennett/StripeTestToken/blob/87e5ad94fefafa2cff072cd9f79e9f4620c9eae8/src/StripeCardNumber.php
src/StripeCardNumber.php
<?php namespace JacobBennett; use BadMethodCallException; /** * Provide access to varying valid and exceptional card numbers * independently of having to actually create a Stripe token. */ class StripeCardNumber { const CARDS = [ // valid cards 'validVisa' => 4012888888881881, ...
php
MIT
87e5ad94fefafa2cff072cd9f79e9f4620c9eae8
2026-01-05T04:11:35.046781Z
false
JacobBennett/StripeTestToken
https://github.com/JacobBennett/StripeTestToken/blob/87e5ad94fefafa2cff072cd9f79e9f4620c9eae8/tests/StripeTestTokenTest.php
tests/StripeTestTokenTest.php
<?php use JacobBennett\StripeTestToken; use PHPUnit\Framework\TestCase; class StripeTestTokenTest extends TestCase { /** @test */ public function it_throws_an_exception_when_requesting_a_non_existent_card_type() { $this->expectException(\BadMethodCallException::class); StripeTestToken::ge...
php
MIT
87e5ad94fefafa2cff072cd9f79e9f4620c9eae8
2026-01-05T04:11:35.046781Z
false
JacobBennett/StripeTestToken
https://github.com/JacobBennett/StripeTestToken/blob/87e5ad94fefafa2cff072cd9f79e9f4620c9eae8/tests/StripeCardNumberTest.php
tests/StripeCardNumberTest.php
<?php use JacobBennett\StripeCardNumber; use PHPUnit\Framework\TestCase; class StripeCardNumberTest extends TestCase { /** @test */ public function it_throws_an_exception_for_an_invalid_method() { $this->expectException(\BadMethodCallException::class); StripeCardNumber::someInvalidCardMe...
php
MIT
87e5ad94fefafa2cff072cd9f79e9f4620c9eae8
2026-01-05T04:11:35.046781Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/functions.php
functions.php
<?php require_once 'config.php'; /** * 封装大家公用的函数 */ session_start(); /** * 获取当前登录用户信息,如果没有获取到则自动跳转到登录页面 * @return [type] [description] */ function xiu_get_current_user () { if (empty($_SESSION['current_login_user'])) { // 没有当前登录用户信息,意味着没有登录 header('Location: /admin/login.php'); exit(); // 没有必要再执行之...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/config.php
config.php
<?php /** * 我们项目中用到的配置信息 */ /** * 数据库主机 */ define('XIU_DB_HOST', 'localhost'); /** * 数据库用户名 */ define('XIU_DB_USER', 'root'); /** * 数据库密码 */ define('XIU_DB_PASS', 'Wqp516#'); /** * 数据库名字 */ define('XIU_DB_NAME', 'baixiu'); define('ROOT_DIR', dirname(__FILE__));
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/index.php
index.php
<?php require_once 'config.php'; ?> <h1>前台页面</h1> <p><?php echo XIU_DB_USER; ?></p>
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/static/assets/vendors/ueditor/php/action_list.php
static/assets/vendors/ueditor/php/action_list.php
<?php /** * 获取已上传的文件列表 * User: Jinqn * Date: 14-04-09 * Time: 上午10:17 */ include "Uploader.class.php"; /* 判断类型 */ switch ($_GET['action']) { /* 列出文件 */ case 'listfile': $allowFiles = $CONFIG['fileManagerAllowFiles']; $listSize = $CONFIG['fileManagerListSize']; $path = $CONFIG['file...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/static/assets/vendors/ueditor/php/action_crawler.php
static/assets/vendors/ueditor/php/action_crawler.php
<?php /** * 抓取远程图片 * User: Jinqn * Date: 14-04-14 * Time: 下午19:18 */ set_time_limit(0); include("Uploader.class.php"); /* 上传配置 */ $config = array( "pathFormat" => $CONFIG['catcherPathFormat'], "maxSize" => $CONFIG['catcherMaxSize'], "allowFiles" => $CONFIG['catcherAllowFiles'], "oriName" => "remot...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/static/assets/vendors/ueditor/php/action_upload.php
static/assets/vendors/ueditor/php/action_upload.php
<?php /** * 上传附件和上传视频 * User: Jinqn * Date: 14-04-09 * Time: 上午10:17 */ include "Uploader.class.php"; /* 上传配置 */ $base64 = "upload"; switch (htmlspecialchars($_GET['action'])) { case 'uploadimage': $config = array( "pathFormat" => $CONFIG['imagePathFormat'], "maxSize" => $CONFI...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/static/assets/vendors/ueditor/php/controller.php
static/assets/vendors/ueditor/php/controller.php
<?php //header('Access-Control-Allow-Origin: http://www.baidu.com'); //设置http://www.baidu.com允许跨域访问 //header('Access-Control-Allow-Headers: X-Requested-With,X_Requested_With'); //设置允许的跨域header date_default_timezone_set("Asia/chongqing"); error_reporting(E_ERROR); header("Content-Type: text/html; charset=utf-8"); $CONF...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/static/assets/vendors/ueditor/php/Uploader.class.php
static/assets/vendors/ueditor/php/Uploader.class.php
<?php /** * Created by JetBrains PhpStorm. * User: taoqili * Date: 12-7-18 * Time: 上午11: 32 * UEditor编辑器通用上传类 */ class Uploader { private $fileField; //文件域名 private $file; //文件上传对象 private $base64; //文件上传对象 private $config; //配置信息 private $oriName; //原始文件名 private $fileName; //新文件名 pr...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/functions.php
baixiu/functions.php
<?php require_once 'config.php'; /** * 封装大家公用的函数 */ session_start(); // 定义函数时一定要注意:函数名与内置函数冲突问题 // JS 判断方式:typeof fn === 'function' // PHP 判断函数是否定义的方式: function_exists('get_current_user') /** * 获取当前登录用户信息,如果没有获取到则自动跳转到登录页面 * @return [type] [description] */ function xiu_get_current_user () { if (empty($_SESSI...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/config.php
baixiu/config.php
<?php /** * 我们项目中用到的配置信息 */ /** * 数据库主机 */ define('XIU_DB_HOST', 'localhost'); /** * 数据库用户名 */ define('XIU_DB_USER', 'root'); /** * 数据库密码 */ define('XIU_DB_PASS', 'Wqp516#'); /** * 数据库名字 */ define('XIU_DB_NAME', 'baixiu'); // D:\www\baixiu-dev\config.php // D:\www\baixiu-dev define('ROOT_DIR', dirname(__FI...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/index.php
baixiu/index.php
<?php require_once 'config.php'; ?> <h1>前台页面</h1> <p><?php echo XIU_DB_USER; ?></p>
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/static/assets/vendors/ueditor/php/action_list.php
baixiu/static/assets/vendors/ueditor/php/action_list.php
<?php /** * 获取已上传的文件列表 * User: Jinqn * Date: 14-04-09 * Time: 上午10:17 */ include "Uploader.class.php"; /* 判断类型 */ switch ($_GET['action']) { /* 列出文件 */ case 'listfile': $allowFiles = $CONFIG['fileManagerAllowFiles']; $listSize = $CONFIG['fileManagerListSize']; $path = $CONFIG['file...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/static/assets/vendors/ueditor/php/action_crawler.php
baixiu/static/assets/vendors/ueditor/php/action_crawler.php
<?php /** * 抓取远程图片 * User: Jinqn * Date: 14-04-14 * Time: 下午19:18 */ set_time_limit(0); include("Uploader.class.php"); /* 上传配置 */ $config = array( "pathFormat" => $CONFIG['catcherPathFormat'], "maxSize" => $CONFIG['catcherMaxSize'], "allowFiles" => $CONFIG['catcherAllowFiles'], "oriName" => "remot...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/static/assets/vendors/ueditor/php/action_upload.php
baixiu/static/assets/vendors/ueditor/php/action_upload.php
<?php /** * 上传附件和上传视频 * User: Jinqn * Date: 14-04-09 * Time: 上午10:17 */ include "Uploader.class.php"; /* 上传配置 */ $base64 = "upload"; switch (htmlspecialchars($_GET['action'])) { case 'uploadimage': $config = array( "pathFormat" => $CONFIG['imagePathFormat'], "maxSize" => $CONFI...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/static/assets/vendors/ueditor/php/controller.php
baixiu/static/assets/vendors/ueditor/php/controller.php
<?php //header('Access-Control-Allow-Origin: http://www.baidu.com'); //设置http://www.baidu.com允许跨域访问 //header('Access-Control-Allow-Headers: X-Requested-With,X_Requested_With'); //设置允许的跨域header date_default_timezone_set("Asia/chongqing"); error_reporting(E_ERROR); header("Content-Type: text/html; charset=utf-8"); $CONF...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/static/assets/vendors/ueditor/php/Uploader.class.php
baixiu/static/assets/vendors/ueditor/php/Uploader.class.php
<?php /** * Created by JetBrains PhpStorm. * User: taoqili * Date: 12-7-18 * Time: 上午11: 32 * UEditor编辑器通用上传类 */ class Uploader { private $fileField; //文件域名 private $file; //文件上传对象 private $base64; //文件上传对象 private $config; //配置信息 private $oriName; //原始文件名 private $fileName; //新文件名 pr...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/admin/nav-menus.php
baixiu/admin/nav-menus.php
<?php require_once '../functions.php'; xiu_get_current_user(); ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <title>Navigation menus &laquo; Admin</title> <link rel="stylesheet" href="/static/assets/vendors/bootstrap/css/bootstrap.css"> <link rel="stylesheet" href="/static/assets/vendo...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/admin/douban.php
baixiu/admin/douban.php
<?php require_once '../functions.php'; xiu_get_current_user(); ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <title>Navigation menus &laquo; Admin</title> <link rel="stylesheet" href="/static/assets/vendors/bootstrap/css/bootstrap.css"> <link rel="stylesheet" href="/static/assets/vendo...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/admin/post-add.php
baixiu/admin/post-add.php
<?php require_once '../functions.php'; xiu_get_current_user(); ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <title>Add new post &laquo; Admin</title> <link rel="stylesheet" href="/static/assets/vendors/bootstrap/css/bootstrap.css"> <link rel="stylesheet" href="/static/assets/vendors/f...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/admin/password-reset.php
baixiu/admin/password-reset.php
<?php require_once '../functions.php'; xiu_get_current_user(); ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <title>Password reset &laquo; Admin</title> <link rel="stylesheet" href="/static/assets/vendors/bootstrap/css/bootstrap.css"> <link rel="stylesheet" href="/static/assets/vendors...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/admin/comments.php
baixiu/admin/comments.php
<?php /** * 评论管理 */ // 载入脚本 // ======================================== require '../functions.php'; // 访问控制 // ======================================== // 获取登录用户信息 xiu_get_current_user(); ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <title>Comments &laquo; Admin</title> <link rel="s...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/admin/users.php
baixiu/admin/users.php
<?php require_once '../functions.php'; xiu_get_current_user(); ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <title>Users &laquo; Admin</title> <link rel="stylesheet" href="/static/assets/vendors/bootstrap/css/bootstrap.css"> <link rel="stylesheet" href="/static/assets/vendors/font-awe...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/admin/posts.php
baixiu/admin/posts.php
<?php require_once '../functions.php'; xiu_get_current_user(); ////////////////////////////////////////////// // 登录过后 // // // // ===============处理筛选功能=================== // // 接收筛选参数 // $where = '1 = 1'; $...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/admin/login.php
baixiu/admin/login.php
<?php // 载入配置文件 require_once '../config.php'; // 给用户找一个箱子(如果你之前有就用之前的,没有给个新的) session_start(); function login () { // 1. 接收并校验 // 2. 持久化 // 3. 响应 if (empty($_POST['email'])) { $GLOBALS['message'] = '请填写邮箱'; return; } if (empty($_POST['password'])) { $GLOBALS['message'] = '请填写密码'; return; ...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/admin/profile.php
baixiu/admin/profile.php
<?php require_once '../functions.php'; xiu_get_current_user(); ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <title>Dashboard &laquo; Admin</title> <link rel="stylesheet" href="/static/assets/vendors/bootstrap/css/bootstrap.css"> <link rel="stylesheet" href="/static/assets/vendors/font...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/admin/index.php
baixiu/admin/index.php
<?php // // 校验数据当前访问用户的 箱子(session)有没有登录的登录标识 // session_start(); // if (empty($_SESSION['current_login_user'])) { // // 没有当前登录用户信息,意味着没有登录 // header('Location: /admin/login.php'); // } require_once '../functions.php'; // 判断用户是否登录一定是最先去做 xiu_get_current_user(); // 获取界面所需要的数据 // 重复的操作一定封装起来 // $posts_count = xi...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/admin/settings.php
baixiu/admin/settings.php
<?php require_once '../functions.php'; xiu_get_current_user(); ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <title>Settings &laquo; Admin</title> <link rel="stylesheet" href="/static/assets/vendors/bootstrap/css/bootstrap.css"> <link rel="stylesheet" href="/static/assets/vendors/font-...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/admin/slides.php
baixiu/admin/slides.php
<?php require_once '../functions.php'; xiu_get_current_user(); ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <title>Slides &laquo; Admin</title> <link rel="stylesheet" href="/static/assets/vendors/bootstrap/css/bootstrap.css"> <link rel="stylesheet" href="/static/assets/vendors/font-aw...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/admin/post-delete.php
baixiu/admin/post-delete.php
<?php /** * 根据客户端传递过来的ID删除对应数据 */ require_once '../functions.php'; if (empty($_GET['id'])) { exit('缺少必要参数'); } // $id = (int)$_GET['id']; $id = $_GET['id']; // => '1 or 1 = 1' // sql 注入 // 1,2,3,4 $rows = xiu_execute('delete from posts where id in (' . $id . ');'); // $_SERVER['HTTP_REFERER'] 获取页面来源 header('...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/admin/category-delete.php
baixiu/admin/category-delete.php
<?php /** * 根据客户端传递过来的ID删除对应数据 */ require_once '../functions.php'; if (empty($_GET['id'])) { exit('缺少必要参数'); } // $id = (int)$_GET['id']; $id = $_GET['id']; // => '1 or 1 = 1' // sql 注入 // 1,2,3,4 $rows = xiu_execute('delete from categories where id in (' . $id . ');'); // if ($rows > 0) {} header('Location: ...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/admin/categories.php
baixiu/admin/categories.php
<?php require_once '../functions.php'; xiu_get_current_user(); // 判断是否为需要编辑的数据 // ==================================== function add_category () { if (empty($_POST['name']) || empty($_POST['slug'])) { $GLOBALS['message'] = '请完整填写表单!'; $GLOBALS['success'] = false; return; } // 接收并保存 $name = $_POS...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/admin/inc/navbar.php
baixiu/admin/inc/navbar.php
<nav class="navbar"> <button class="btn btn-default navbar-btn fa fa-bars"></button> <ul class="nav navbar-nav navbar-right"> <li><a href="/admin/profile.php"><i class="fa fa-user"></i>个人中心</a></li> <li><a href="/admin/login.php?action=logout"><i class="fa fa-sign-out"></i>退出</a></li> </ul> </nav>
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/admin/inc/sidebar.php
baixiu/admin/inc/sidebar.php
<!-- 也可以使用 $_SERVER['PHP_SELF'] 取代 $current_page --> <?php // 因为这个 sidebar.php 是被 index.php 载入执行,所以 这里的相对路径 是相对于 index.php // 如果希望根治这个问题,可以采用物理路径解决 require_once '../functions.php'; $current_page = isset($current_page) ? $current_page : ''; $current_user = xiu_get_current_user(); ?> <div class="aside"> <div class="p...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/admin/api/avatar.php
baixiu/admin/api/avatar.php
<?php /** * 根据用户邮箱获取用户头像 * email => image */ require_once '../../config.php'; // 1. 接收传递过来的邮箱 if (empty($_GET['email'])) { exit('缺少必要参数'); } $email = $_GET['email']; // 2. 查询对应的头像地址 $conn = mysqli_connect(XIU_DB_HOST, XIU_DB_USER, XIU_DB_PASS, XIU_DB_NAME); if (!$conn) { exit('连接数据库失败'); } $res = mysqli_que...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/admin/api/upload.php
baixiu/admin/api/upload.php
<?php // var_dump($_FILES['avatar']); // 接收文件 // 保存文件 // 保存这个文件的访问URL if (empty($_FILES['avatar'])) { exit('必须上传文件'); # code... } $avatar = $_FILES['avatar']; if ($avatar['error'] !== UPLOAD_ERR_OK) { exit('上传失败'); # code... } // 校验类型大小格式等 // 移动文件到网站范围之内 $ext = pathinfo($avatar['name'], PATHINF...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/admin/api/comment-delete.php
baixiu/admin/api/comment-delete.php
<?php /** * 根据客户端传递过来的ID删除对应数据 */ require_once '../../functions.php'; if (empty($_GET['id'])) { exit('缺少必要参数'); } // $id = (int)$_GET['id']; $id = $_GET['id']; // => '1 or 1 = 1' // sql 注入 // 1,2,3,4 $rows = xiu_execute('delete from comments where id in (' . $id . ');'); // if ($rows > 0) {} // header('Locati...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/baixiu/admin/api/comments-list.php
baixiu/admin/api/comments-list.php
<?php /** * 分页返回评论数据接口(JSON) * Font: fira Code Source Code Pro Consolas */ // ==========引入所有预定义函数=========== require '../../functions.php'; // ==========设置响应类型为 JSON========== header('Content-Type: application/json'); // =============分页逻辑================== // 1、接收客户端传递过来的当前分页页码 $page = empty($_GET['page'])? 1 : i...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/admin/nav-menus.php
admin/nav-menus.php
<?php require_once '../functions.php'; xiu_get_current_user(); ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <title>Navigation menus &laquo; Admin</title> <link rel="stylesheet" href="/static/assets/vendors/bootstrap/css/bootstrap.css"> <link rel="stylesheet" href="/static/assets/vendo...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/admin/douban.php
admin/douban.php
<?php require_once '../functions.php'; xiu_get_current_user(); ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <title>Navigation menus &laquo; Admin</title> <link rel="stylesheet" href="/static/assets/vendors/bootstrap/css/bootstrap.css"> <link rel="stylesheet" href="/static/assets/vendo...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/admin/post-add.php
admin/post-add.php
<?php require_once '../functions.php'; xiu_get_current_user(); ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <title>Add new post &laquo; Admin</title> <link rel="stylesheet" href="/static/assets/vendors/bootstrap/css/bootstrap.css"> <link rel="stylesheet" href="/static/assets/vendors/f...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/admin/password-reset.php
admin/password-reset.php
<?php require_once '../functions.php'; xiu_get_current_user(); ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <title>Password reset &laquo; Admin</title> <link rel="stylesheet" href="/static/assets/vendors/bootstrap/css/bootstrap.css"> <link rel="stylesheet" href="/static/assets/vendors...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/admin/comments.php
admin/comments.php
<?php /** * 评论管理 */ // 载入脚本 // ======================================== require '../functions.php'; // 访问控制 // ======================================== // 获取登录用户信息 xiu_get_current_user(); ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <title>Comments &laquo; Admin</title> <link rel="s...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/admin/users.php
admin/users.php
<?php require_once '../functions.php'; xiu_get_current_user(); ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <title>Users &laquo; Admin</title> <link rel="stylesheet" href="/static/assets/vendors/bootstrap/css/bootstrap.css"> <link rel="stylesheet" href="/static/assets/vendors/font-awe...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/admin/posts.php
admin/posts.php
<?php require_once '../functions.php'; xiu_get_current_user(); ////////////////////////////////////////////// // 登录过后 // // // // ===============处理筛选功能=================== // // 接收筛选参数 // $where = '1 = 1'; $...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/admin/login.php
admin/login.php
<?php // 载入配置文件 require_once '../config.php'; // 给用户找一个箱子(如果你之前有就用之前的,没有给个新的) session_start(); function login () { // 1. 接收并校验 // 2. 持久化 // 3. 响应 if (empty($_POST['email'])) { $GLOBALS['message'] = '请填写邮箱'; return; } if (empty($_POST['password'])) { $GLOBALS['message'] = '请填写密码'; return; ...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/admin/profile.php
admin/profile.php
<?php require_once '../functions.php'; xiu_get_current_user(); ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <title>Dashboard &laquo; Admin</title> <link rel="stylesheet" href="/static/assets/vendors/bootstrap/css/bootstrap.css"> <link rel="stylesheet" href="/static/assets/vendors/font...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false
ForeManWang/php-baixiu
https://github.com/ForeManWang/php-baixiu/blob/d37a7773b21107bbb8edc5af7cfa1cd84339ae81/admin/index.php
admin/index.php
<?php // // 校验数据当前访问用户的 箱子(session)有没有登录的登录标识 // session_start(); // if (empty($_SESSION['current_login_user'])) { // // 没有当前登录用户信息,意味着没有登录 // header('Location: /admin/login.php'); // } require_once '../functions.php'; // 判断用户是否登录一定是最先去做 xiu_get_current_user(); // 获取界面所需要的数据 // 重复的操作一定封装起来 // $posts_count = xi...
php
MIT
d37a7773b21107bbb8edc5af7cfa1cd84339ae81
2026-01-05T04:11:46.926172Z
false