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 |
|---|---|---|---|---|---|---|---|---|
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/config/swoole.php | config/swoole.php | <?php
/**
* User: Nine
* Date: 2017/9/24
* Time: 下午10:24
*/
return [
'host' => '0.0.0.0',
'port' => 9502
]; | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/config/app.php | config/app.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/config/session.php | config/session.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be used on
| requests. By defau... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/config/queue.php | config/queue.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Queue Driver
|--------------------------------------------------------------------------
|
| Laravel's queue API supports an assortment of back-ends via a single
| API, giving you conven... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/config/cache.php | config/cache.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Cache Store
|--------------------------------------------------------------------------
|
| This option controls the default cache connection that gets used while
| using this caching li... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/config/view.php | config/view.php | <?php
return [
/*
|--------------------------------------------------------------------------
| View Storage Paths
|--------------------------------------------------------------------------
|
| Most templating systems load templates from disk. Here you may specify
| an array of paths that... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/config/database.php | config/database.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Database Connection Name
|--------------------------------------------------------------------------
|
| Here you may specify which of the database connections below you wish
| to use as... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/config/services.php | config/services.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
| as Stripe, Mailgun, ... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/config/status.php | config/status.php | <?php
/**
* User: Nine
* Date: 2017/9/23
* Time: 下午8:56
*/
return [
'room' => [
'available' => 0,
'deleted' => 10
],
'room_join' => [
'available' => 0,
'deleted' => 10
],
'message' => [
'available' => 0,
'deleted' => 10
],
]; | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/config/filesystems.php | config/filesystems.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
| by the framework. T... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/config/mail.php | config/mail.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Mail Driver
|--------------------------------------------------------------------------
|
| Laravel supports both SMTP and PHP's "mail" function as drivers for the
| sending of e-mail. You may s... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/config/room.php | config/room.php | <?php
/**
* User: Nine
* Date: 2017/9/23
* Time: 下午3:35
*/
return [
'default_room_pic' => 'storage/default_room.jpg',
'file_type' => 'storage/',
'page_size' => 10,
'default_avatar' => 'storage/default_avatar.jpeg',
'message_page_size' => 30,
'latest_time' => 86400
]; | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/config/broadcasting.php | config/broadcasting.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Broadcaster
|--------------------------------------------------------------------------
|
| This option controls the default broadcaster that will be used by the
| framework when an even... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/config/auth.php | config/auth.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for y... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/database/seeds/DatabaseSeeder.php | database/seeds/DatabaseSeeder.php | <?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
// $this->call(UsersTableSeeder::class);
}
}
| php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/database/factories/RoomFactory.php | database/factories/RoomFactory.php | <?php
use Faker\Generator as Faker;
$factory->define(App\Room::class, function (Faker $faker) {
return [
//
];
});
| php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/database/factories/UserFactory.php | database/factories/UserFactory.php | <?php
use Faker\Generator as Faker;
/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your application. Factories pro... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/database/migrations/2017_09_20_130254_create_room_join_table.php | database/migrations/2017_09_20_130254_create_room_join_table.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateRoomJoinTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('room_join', fu... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/database/migrations/2017_09_24_025040_update_message_table.php | database/migrations/2017_09_24_025040_update_message_table.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class UpdateMessageTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('message', functi... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/database/migrations/2014_10_12_000000_create_users_table.php | database/migrations/2014_10_12_000000_create_users_table.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/database/migrations/2014_10_12_100000_create_password_resets_table.php | database/migrations/2014_10_12_100000_create_password_resets_table.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePasswordResetsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('password... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/database/migrations/2017_09_20_132003_create_message_table.php | database/migrations/2017_09_20_132003_create_message_table.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateMessageTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('message', funct... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/database/migrations/2017_09_20_141517_update_users_table.php | database/migrations/2017_09_20_141517_update_users_table.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class UpdateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function (... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/database/migrations/2017_09_20_054751_create_room_table.php | database/migrations/2017_09_20_054751_create_room_table.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateRoomTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('room', function (B... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/resources/lang/en/passwords.php | resources/lang/en/passwords.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Password Reset Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are the default lines which match reasons
| that are gi... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/resources/lang/en/pagination.php | resources/lang/en/pagination.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Pagination Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used by the paginator library to build
| the simple pag... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/resources/lang/en/validation.php | resources/lang/en/validation.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator ... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/resources/lang/en/auth.php | resources/lang/en/auth.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages t... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/resources/views/welcome.blade.php | resources/views/welcome.blade.php | <!doctype html>
<html lang="{{ app()->getLocale() }}">
<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>Laravel</title>
<!-- Fonts -->
<link href="https://... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/resources/views/home.blade.php | resources/views/home.blade.php | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="row">
{{--room start--}}
@foreach($rooms as $room)
<div class="col-sm-6 col-... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/resources/views/auth/login.blade.php | resources/views/auth/login.blade.php | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Login</div>
<div class="panel-body">
<form class="form-h... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/resources/views/auth/register.blade.php | resources/views/auth/register.blade.php | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Register</div>
<div class="panel-body">
<form class="for... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/resources/views/auth/passwords/email.blade.php | resources/views/auth/passwords/email.blade.php | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Reset Password</div>
<div class="panel-body">
@if (sessi... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/resources/views/auth/passwords/reset.blade.php | resources/views/auth/passwords/reset.blade.php | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Reset Password</div>
<div class="panel-body">
<form clas... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/resources/views/room/add.blade.php | resources/views/room/add.blade.php | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Created</div>
<div class="panel-body">
... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/resources/views/room/edit.blade.php | resources/views/room/edit.blade.php | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Created</div>
<div class="panel-body">
<form class="form... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/resources/views/room/chat.blade.php | resources/views/room/chat.blade.php | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="row">
{{--room start--}}
<div class="col-sm-12 col-md-12">
<div class="thumb... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/resources/views/room/lists.blade.php | resources/views/room/lists.blade.php | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="row">
{{--room start--}}
@foreach($rooms as $room)
<div class="col-sm-6 col-... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/resources/views/errors/503.blade.php | resources/views/errors/503.blade.php | <!DOCTYPE html>
<html>
<head>
<title>Be right back.</title>
<link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">
<style>
html, body {
height: 100%;
}
body {
margin: 0;
... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/resources/views/errors/403.blade.php | resources/views/errors/403.blade.php | <!DOCTYPE html>
<html>
<head>
<title>403 Forbidden.</title>
<link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">
<style>
html, body {
height: 100%;
}
body {
margin: 0;
... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/resources/views/errors/404.blade.php | resources/views/errors/404.blade.php | <!DOCTYPE html>
<html>
<head>
<title>404 Not Found.</title>
<link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">
<style>
html, body {
height: 100%;
}
body {
margin: 0;
... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/resources/views/layouts/app.blade.php | resources/views/layouts/app.blade.php | <!DOCTYPE html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ co... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
nineyang/chat | https://github.com/nineyang/chat/blob/c3b32d66bb783cf92fc04f2544a35b09b82815dc/resources/views/pagination/default.blade.php | resources/views/pagination/default.blade.php | @if ($paginator->hasPages())
<center>
<nav aria-label="Page navigation">
<ul class="pagination">
@if ($paginator->onFirstPage())
<li class="previous disabled">
<span aria-hidden="true">«</span>
</li>
... | php | MIT | c3b32d66bb783cf92fc04f2544a35b09b82815dc | 2026-01-05T04:00:32.573991Z | false |
araines/serverless-php | https://github.com/araines/serverless-php/blob/e06f887c06fa1ddd970d69ad4e765a3786ab6f3e/handler.php | handler.php | <?php
$loader = require __DIR__ . '/vendor/autoload.php';
use Raines\Serverless\Context;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
// Set up service container
$container = new ContainerBuilder... | php | MIT | e06f887c06fa1ddd970d69ad4e765a3786ab6f3e | 2026-01-05T04:00:42.023103Z | false |
araines/serverless-php | https://github.com/araines/serverless-php/blob/e06f887c06fa1ddd970d69ad4e765a3786ab6f3e/src/Context.php | src/Context.php | <?php
namespace Raines\Serverless;
use Psr\Log\LoggerInterface;
/**
* Context object allows you to access useful information within the Lambda
* execution environment. More information can be found here:
* http://docs.aws.amazon.com/lambda/latest/dg/java-context-object.html
*
* @method string getMemoryLimitInM... | php | MIT | e06f887c06fa1ddd970d69ad4e765a3786ab6f3e | 2026-01-05T04:00:42.023103Z | false |
araines/serverless-php | https://github.com/araines/serverless-php/blob/e06f887c06fa1ddd970d69ad4e765a3786ab6f3e/src/Handler.php | src/Handler.php | <?php
namespace Raines\Serverless;
interface Handler
{
/**
* Handle the Lambda event.
*
* @param array $event The event information array.
* @param Context $context The Context object.
*
* @return mixed Response for the lambda. Must be json encodeable.
*/
public function... | php | MIT | e06f887c06fa1ddd970d69ad4e765a3786ab6f3e | 2026-01-05T04:00:42.023103Z | false |
araines/serverless-php | https://github.com/araines/serverless-php/blob/e06f887c06fa1ddd970d69ad4e765a3786ab6f3e/src/HelloHandler.php | src/HelloHandler.php | <?php
namespace Raines\Serverless;
class HelloHandler implements Handler
{
/**
* {@inheritdoc}
*/
public function handle(array $event, Context $context)
{
$logger = $context->getLogger();
$logger->notice('Got event', $event);
return [
'statusCode' => 200,
... | php | MIT | e06f887c06fa1ddd970d69ad4e765a3786ab6f3e | 2026-01-05T04:00:42.023103Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/src/Limiter.php | src/Limiter.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter;
use ArtisanSdk\RateLimiter\Buckets\Evented;
use ArtisanSdk\RateLimiter\Contracts\Bucket;
use ArtisanSdk\RateLimiter\Contracts\Limiter as Contract;
use Carbon\Carbon;
use Illuminate\Contracts\Cache\Repository as Cache;
use Illuminate\Contracts\Events\Di... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/src/Middleware.php | src/Middleware.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter;
use ArtisanSdk\RateLimiter\Contracts\Resolver;
use ArtisanSdk\RateLimiter\Resolvers\User;
use Carbon\Carbon;
use Closure;
use InvalidArgumentException;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
/**
*... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/src/Exception.php | src/Exception.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\HttpException;
class Exception extends HttpException
{
/**
* Create a new exception instance.
*
* @param string|null $message
* @param ... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/src/Resolvers/Tag.php | src/Resolvers/Tag.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Resolvers;
use Symfony\Component\HttpFoundation\Request;
class Tag extends User
{
/**
* The tag used as the rate limiter key.
*
* @var string
*/
protected $tag;
/**
* Setup the resolver.
*
* @param \Illu... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/src/Resolvers/Route.php | src/Resolvers/Route.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Resolvers;
class Route extends User
{
/**
* Get the resolver key used by the rate limiter for the unique request.
*/
public function key(): string
{
$prefix = parent::key();
$route = $this->request->route();
... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/src/Resolvers/User.php | src/Resolvers/User.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Resolvers;
use ArtisanSdk\RateLimiter\Contracts\Resolver;
use Closure;
use RuntimeException;
use Symfony\Component\HttpFoundation\Request;
class User implements Resolver
{
/**
* The request available to the resolver.
*
* @var \Illumi... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/src/Traits/Fluency.php | src/Traits/Fluency.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Traits;
trait Fluency
{
/**
* Dynamically get or set the property's value using fluency.
*
* @example property('foo') ==> true
* property('foo', true) ==> self
*
* @param string $property
* @param mixed... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/src/Contracts/Bucket.php | src/Contracts/Bucket.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Contracts;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Contracts\Support\Jsonable;
use JsonSerializable;
interface Bucket extends Arrayable, Jsonable, JsonSerializable
{
/**
* Get the key for the bucket.
*
* @return st... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/src/Contracts/Limiter.php | src/Contracts/Limiter.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Contracts;
interface Limiter
{
/**
* Configure the limiter.
*
* @param string $key for the rate
* @param int $max hits against the limiter
* @param int|float $rate in which limiter decays or leaks
* @return \Ar... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/src/Contracts/Resolver.php | src/Contracts/Resolver.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Contracts;
interface Resolver
{
/**
* Get the resolver key used by the rate limiter for the unique request.
*/
public function key(): string;
/**
* Get the max number of requests allowed by the rate limiter.
*/
publi... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/src/Events/Filled.php | src/Events/Filled.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Events;
class Filled extends Event
{
/**
* The bucket was filled with drips.
*
* @param string $key of the bucket
* @param int $drips filled
* @param int $remaining drips till bucket overflows
*/
public fun... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/src/Events/Event.php | src/Events/Event.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Events;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Contracts\Support\Jsonable;
use JsonSerializable;
abstract class Event implements Arrayable, Jsonable, JsonSerializable
{
/**
* The payload for the event.
*
* @var ar... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/src/Events/Filling.php | src/Events/Filling.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Events;
class Filling extends Event
{
/**
* The bucket is filling with drips.
*
* @param string $key of the bucket
* @param int $drips filled
*/
public function __construct(string $key, int $drips)
{
pa... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/src/Events/Leaked.php | src/Events/Leaked.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Events;
class Leaked extends Event
{
/**
* The bucket leaked the drips.
*
* @param string $key of the bucket
* @param int $drips leaked
* @param int $remaining drips in the bucket
*/
public function __const... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/src/Events/Leaking.php | src/Events/Leaking.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Events;
class Leaking extends Event
{
/**
* The bucket is leaking drips at a rate.
*
* @param string $key of the bucket
* @param float $rate of leak in drips per second
*/
public function __construct(string $key, f... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/src/Buckets/Leaky.php | src/Buckets/Leaky.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Buckets;
use ArtisanSdk\RateLimiter\Contracts\Bucket;
use ArtisanSdk\RateLimiter\Traits\Fluency;
/**
* Leaky Bucket.
*/
#[\AllowDynamicProperties]
class Leaky implements Bucket
{
use Fluency;
/**
* The unique key for the bucket.
*
... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/src/Buckets/Evented.php | src/Buckets/Evented.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Buckets;
use ArtisanSdk\RateLimiter\Contracts\Bucket;
use ArtisanSdk\RateLimiter\Events\Filled;
use ArtisanSdk\RateLimiter\Events\Filling;
use ArtisanSdk\RateLimiter\Events\Leaked;
use ArtisanSdk\RateLimiter\Events\Leaking;
use Illuminate\Contracts\Even... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/tests/Pest.php | tests/Pest.php | <?php
/*
|--------------------------------------------------------------------------
| Test Case
|--------------------------------------------------------------------------
|
| The closure you provide to your test functions is always bound to a specific PHPUnit test
| case class. By default, that class is "PHPUnit\Fra... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/tests/ExceptionTest.php | tests/ExceptionTest.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Tests;
use ArtisanSdk\RateLimiter\Exception;
use Symfony\Component\HttpKernel\Exception\HttpException;
class ExceptionTest extends TestCase
{
/**
* Test that a too many requests exception can be constructed.
*/
public function test_co... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/tests/EventTest.php | tests/EventTest.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Tests;
use ArtisanSdk\RateLimiter\Events\Event;
use ArtisanSdk\RateLimiter\Events\Leaked;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Contracts\Support\Jsonable;
use JsonSerializable;
class EventTest extends TestCase
{
/**
* Tes... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/tests/TestCase.php | tests/TestCase.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Tests;
use PHPUnit\Framework\TestCase as PHPUnit;
class TestCase extends PHPUnit {}
| php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/tests/LimiterTest.php | tests/LimiterTest.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Tests;
use ArtisanSdk\RateLimiter\Buckets\Evented;
use ArtisanSdk\RateLimiter\Buckets\Leaky;
use ArtisanSdk\RateLimiter\Limiter;
use ArtisanSdk\RateLimiter\Tests\Stubs\Cache;
use ArtisanSdk\RateLimiter\Tests\Stubs\Dispatcher;
use Carbon\Carbon;
class L... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/tests/MiddlewareTest.php | tests/MiddlewareTest.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Tests;
use ArtisanSdk\RateLimiter\Buckets\Leaky;
use ArtisanSdk\RateLimiter\Contracts\Resolver as Contract;
use ArtisanSDK\RateLimiter\Exception;
use ArtisanSdk\RateLimiter\Limiter;
use ArtisanSdk\RateLimiter\Middleware;
use ArtisanSdk\RateLimiter\Tests... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/tests/Resolvers/TagTest.php | tests/Resolvers/TagTest.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Tests\Resolvers;
use ArtisanSdk\RateLimiter\Resolvers\Tag as Resolver;
use ArtisanSdk\RateLimiter\Tests\Stubs\Request;
use ArtisanSdk\RateLimiter\Tests\Stubs\Route;
use ArtisanSdk\RateLimiter\Tests\TestCase;
use RuntimeException;
class TagTest extends ... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/tests/Resolvers/RouteTest.php | tests/Resolvers/RouteTest.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Tests\Resolvers;
use ArtisanSdk\RateLimiter\Resolvers\Route as Resolver;
use ArtisanSdk\RateLimiter\Tests\Stubs\Request;
use ArtisanSdk\RateLimiter\Tests\Stubs\Route;
use ArtisanSdk\RateLimiter\Tests\TestCase;
use RuntimeException;
class RouteTest exte... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/tests/Resolvers/UserTest.php | tests/Resolvers/UserTest.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Tests\Resolvers;
use ArtisanSdk\RateLimiter\Resolvers\User as Resolver;
use ArtisanSdk\RateLimiter\Tests\Stubs\Request;
use ArtisanSdk\RateLimiter\Tests\Stubs\Route;
use ArtisanSdk\RateLimiter\Tests\TestCase;
use RuntimeException;
class UserTest extend... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/tests/Traits/FluencyTest.php | tests/Traits/FluencyTest.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Tests\Traits;
use ArtisanSdk\RateLimiter\Tests\Stubs\Fluency;
use ArtisanSdk\RateLimiter\Tests\TestCase;
class FluencyTest extends TestCase
{
/**
* Test that a fluent property can be set.
*/
public function test_set()
{
$s... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/tests/Stubs/Route.php | tests/Stubs/Route.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Tests\Stubs;
class Route
{
/**
* The name for the route.
*
* @var string
*/
public $name = 'foo.bar';
/**
* The controller action for the route.
*
* @var string
*/
public $action = 'App\Http\Contr... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/tests/Stubs/User.php | tests/Stubs/User.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Tests\Stubs;
class User
{
public $max = 100;
public $rate = 10.0;
public $duration = 60;
protected $identifier;
public function __construct($identifier)
{
$this->identifier = $identifier;
}
public function ge... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/tests/Stubs/Request.php | tests/Stubs/Request.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Tests\Stubs;
use Closure;
use Symfony\Component\HttpFoundation\Request as HttpRequest;
class Request extends HttpRequest
{
/**
* The route resolver closure.
*
* @var \Closure
*/
protected $routeResolver;
/**
* Get ... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/tests/Stubs/Resolver.php | tests/Stubs/Resolver.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Tests\Stubs;
use ArtisanSdk\RateLimiter\Contracts\Resolver as Contract;
class Resolver implements Contract
{
/**
* Get the resolver key used by the rate limiter for the unique request.
*/
public function key(): string
{
re... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/tests/Stubs/Dispatcher.php | tests/Stubs/Dispatcher.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Tests\Stubs;
use Illuminate\Contracts\Events\Dispatcher as Contract;
class Dispatcher implements Contract
{
/**
* The events dispatched.
*
* @var array
*/
protected $events = [];
/**
* Register an event listener wi... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/tests/Stubs/Cache.php | tests/Stubs/Cache.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Tests\Stubs;
use Closure;
use DateTimeInterface;
use Illuminate\Contracts\Cache\Repository;
use Illuminate\Support\Carbon;
use Illuminate\Support\InteractsWithTime;
class Cache implements Repository
{
use InteractsWithTime;
/**
* The stor... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/tests/Stubs/Fluency.php | tests/Stubs/Fluency.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Tests\Stubs;
use ArtisanSdk\RateLimiter\Traits\Fluency as Concern;
#[\AllowDynamicProperties]
class Fluency
{
use Concern;
protected $barString = 'foo';
protected $barArray = ['foo'];
public function __call($method, $arguments = [])
... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/tests/Buckets/EventedTest.php | tests/Buckets/EventedTest.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Tests\Buckets;
use ArtisanSdk\RateLimiter\Buckets\Evented;
use ArtisanSdk\RateLimiter\Events\Event;
use ArtisanSdk\RateLimiter\Events\Filled;
use ArtisanSdk\RateLimiter\Events\Filling;
use ArtisanSdk\RateLimiter\Events\Leaked;
use ArtisanSdk\RateLimiter... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
artisansdk/ratelimiter | https://github.com/artisansdk/ratelimiter/blob/c77f6342e781a83b06902c6b7f87abb6c57d0c0e/tests/Buckets/LeakyTest.php | tests/Buckets/LeakyTest.php | <?php
declare(strict_types=1);
namespace ArtisanSdk\RateLimiter\Tests\Buckets;
use ArtisanSdk\RateLimiter\Buckets\Leaky;
use ArtisanSdk\RateLimiter\Tests\TestCase;
use Carbon\Carbon;
class LeakyTest extends TestCase
{
/**
* Test that the bucket, when constructed, is reset.
*/
public function test_... | php | MIT | c77f6342e781a83b06902c6b7f87abb6c57d0c0e | 2026-01-05T04:00:50.360771Z | false |
slimphp/Slim-Http | https://github.com/slimphp/Slim-Http/blob/0583b777f803038edf2aaf66e1e4522dc5bd3d9e/src/ServerRequest.php | src/ServerRequest.php | <?php
/**
* Slim Framework (https://slimframework.com)
*
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License)
*/
declare(strict_types=1);
namespace Slim\Http;
use Closure;
use Psr\Http\Message\MessageInterface;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ServerReq... | php | MIT | 0583b777f803038edf2aaf66e1e4522dc5bd3d9e | 2026-01-05T04:01:10.821813Z | false |
slimphp/Slim-Http | https://github.com/slimphp/Slim-Http/blob/0583b777f803038edf2aaf66e1e4522dc5bd3d9e/src/Uri.php | src/Uri.php | <?php
/**
* Slim Framework (https://slimframework.com)
*
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License)
*/
declare(strict_types=1);
namespace Slim\Http;
use Psr\Http\Message\UriInterface;
class Uri implements UriInterface
{
protected UriInterface $uri;
/**
* ... | php | MIT | 0583b777f803038edf2aaf66e1e4522dc5bd3d9e | 2026-01-05T04:01:10.821813Z | false |
slimphp/Slim-Http | https://github.com/slimphp/Slim-Http/blob/0583b777f803038edf2aaf66e1e4522dc5bd3d9e/src/Response.php | src/Response.php | <?php
/**
* Slim Framework (https://slimframework.com)
*
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License)
*/
declare(strict_types=1);
namespace Slim\Http;
use InvalidArgumentException;
use Psr\Http\Message\MessageInterface;
use Slim\Http\Interfaces\ResponseInterface as Decora... | php | MIT | 0583b777f803038edf2aaf66e1e4522dc5bd3d9e | 2026-01-05T04:01:10.821813Z | false |
slimphp/Slim-Http | https://github.com/slimphp/Slim-Http/blob/0583b777f803038edf2aaf66e1e4522dc5bd3d9e/src/Interfaces/ResponseInterface.php | src/Interfaces/ResponseInterface.php | <?php
/**
* Slim Framework (https://slimframework.com)
*
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License)
*/
declare(strict_types=1);
namespace Slim\Http\Interfaces;
use Psr\Http\Message\ResponseInterface as PsrResponseInterface;
interface ResponseInterface extends PsrRespon... | php | MIT | 0583b777f803038edf2aaf66e1e4522dc5bd3d9e | 2026-01-05T04:01:10.821813Z | false |
slimphp/Slim-Http | https://github.com/slimphp/Slim-Http/blob/0583b777f803038edf2aaf66e1e4522dc5bd3d9e/src/Factory/DecoratedServerRequestFactory.php | src/Factory/DecoratedServerRequestFactory.php | <?php
/**
* Slim Framework (https://slimframework.com)
*
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License)
*/
declare(strict_types=1);
namespace Slim\Http\Factory;
use Psr\Http\Message\ServerRequestFactoryInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Mes... | php | MIT | 0583b777f803038edf2aaf66e1e4522dc5bd3d9e | 2026-01-05T04:01:10.821813Z | false |
slimphp/Slim-Http | https://github.com/slimphp/Slim-Http/blob/0583b777f803038edf2aaf66e1e4522dc5bd3d9e/src/Factory/DecoratedUriFactory.php | src/Factory/DecoratedUriFactory.php | <?php
/**
* Slim Framework (https://slimframework.com)
*
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License)
*/
declare(strict_types=1);
namespace Slim\Http\Factory;
use Psr\Http\Message\UriFactoryInterface;
use Psr\Http\Message\UriInterface;
use Slim\Http\Uri;
class DecoratedU... | php | MIT | 0583b777f803038edf2aaf66e1e4522dc5bd3d9e | 2026-01-05T04:01:10.821813Z | false |
slimphp/Slim-Http | https://github.com/slimphp/Slim-Http/blob/0583b777f803038edf2aaf66e1e4522dc5bd3d9e/src/Factory/DecoratedResponseFactory.php | src/Factory/DecoratedResponseFactory.php | <?php
/**
* Slim Framework (https://slimframework.com)
*
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License)
*/
declare(strict_types=1);
namespace Slim\Http\Factory;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\Strea... | php | MIT | 0583b777f803038edf2aaf66e1e4522dc5bd3d9e | 2026-01-05T04:01:10.821813Z | false |
slimphp/Slim-Http | https://github.com/slimphp/Slim-Http/blob/0583b777f803038edf2aaf66e1e4522dc5bd3d9e/tests/TestCase.php | tests/TestCase.php | <?php
/**
* Slim Framework (https://slimframework.com)
*
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License)
*/
declare(strict_types=1);
namespace Slim\Tests\Http;
use PHPUnit\Framework\TestCase as PHPUnitTestCase;
use Slim\Tests\Http\Providers\LaminasDiactorosPsr17FactoryProvid... | php | MIT | 0583b777f803038edf2aaf66e1e4522dc5bd3d9e | 2026-01-05T04:01:10.821813Z | false |
slimphp/Slim-Http | https://github.com/slimphp/Slim-Http/blob/0583b777f803038edf2aaf66e1e4522dc5bd3d9e/tests/UriTest.php | tests/UriTest.php | <?php
/**
* Slim Framework (https://slimframework.com)
*
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License)
*/
declare(strict_types=1);
namespace Slim\Tests\Http;
use InvalidArgumentException;
use Slim\Http\Factory\DecoratedUriFactory;
use Slim\Tests\Http\Providers\LaminasDiact... | php | MIT | 0583b777f803038edf2aaf66e1e4522dc5bd3d9e | 2026-01-05T04:01:10.821813Z | false |
slimphp/Slim-Http | https://github.com/slimphp/Slim-Http/blob/0583b777f803038edf2aaf66e1e4522dc5bd3d9e/tests/ResponseTest.php | tests/ResponseTest.php | <?php
/**
* Slim Framework (https://slimframework.com)
*
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License)
*/
declare(strict_types=1);
namespace Slim\Tests\Http;
use InvalidArgumentException;
use RuntimeException;
use Slim\Http\Factory\DecoratedResponseFactory;
use Slim\Http\R... | php | MIT | 0583b777f803038edf2aaf66e1e4522dc5bd3d9e | 2026-01-05T04:01:10.821813Z | false |
slimphp/Slim-Http | https://github.com/slimphp/Slim-Http/blob/0583b777f803038edf2aaf66e1e4522dc5bd3d9e/tests/bootstrap.php | tests/bootstrap.php | <?php
/**
* Slim Framework (https://slimframework.com)
*
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License)
*/
declare(strict_types=1);
use AdrianSuter\Autoload\Override\Override;
use Slim\Http\ServerRequest;
$classLoader = require __DIR__ . '/../vendor/autoload.php';
Override... | php | MIT | 0583b777f803038edf2aaf66e1e4522dc5bd3d9e | 2026-01-05T04:01:10.821813Z | false |
slimphp/Slim-Http | https://github.com/slimphp/Slim-Http/blob/0583b777f803038edf2aaf66e1e4522dc5bd3d9e/tests/ServerRequestTest.php | tests/ServerRequestTest.php | <?php
/**
* Slim Framework (https://slimframework.com)
*
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License)
*/
declare(strict_types=1);
namespace Slim\Tests\Http;
use InvalidArgumentException;
use RuntimeException;
use Slim\Http\Factory\DecoratedServerRequestFactory;
use Slim\T... | php | MIT | 0583b777f803038edf2aaf66e1e4522dc5bd3d9e | 2026-01-05T04:01:10.821813Z | true |
slimphp/Slim-Http | https://github.com/slimphp/Slim-Http/blob/0583b777f803038edf2aaf66e1e4522dc5bd3d9e/tests/Psr7Integration/Laminas/UriTest.php | tests/Psr7Integration/Laminas/UriTest.php | <?php
/**
* Slim Framework (https://slimframework.com)
*
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License)
*/
declare(strict_types=1);
namespace Slim\Tests\Http\Psr7Integration\Laminas;
use Http\Psr7Test\UriIntegrationTest;
use Laminas\Diactoros\StreamFactory;
use Laminas\Diac... | php | MIT | 0583b777f803038edf2aaf66e1e4522dc5bd3d9e | 2026-01-05T04:01:10.821813Z | false |
slimphp/Slim-Http | https://github.com/slimphp/Slim-Http/blob/0583b777f803038edf2aaf66e1e4522dc5bd3d9e/tests/Psr7Integration/Laminas/ResponseTest.php | tests/Psr7Integration/Laminas/ResponseTest.php | <?php
/**
* Slim Framework (https://slimframework.com)
*
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License)
*/
declare(strict_types=1);
namespace Slim\Tests\Http\Psr7Integration\Laminas;
use Http\Psr7Test\ResponseIntegrationTest;
use Laminas\Diactoros\StreamFactory;
use Laminas... | php | MIT | 0583b777f803038edf2aaf66e1e4522dc5bd3d9e | 2026-01-05T04:01:10.821813Z | false |
slimphp/Slim-Http | https://github.com/slimphp/Slim-Http/blob/0583b777f803038edf2aaf66e1e4522dc5bd3d9e/tests/Psr7Integration/Laminas/ServerRequestTest.php | tests/Psr7Integration/Laminas/ServerRequestTest.php | <?php
/**
* Slim Framework (https://slimframework.com)
*
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License)
*/
declare(strict_types=1);
namespace Slim\Tests\Http\Psr7Integration\Laminas;
use Http\Psr7Test\ServerRequestIntegrationTest;
use Laminas\Diactoros\StreamFactory;
use La... | php | MIT | 0583b777f803038edf2aaf66e1e4522dc5bd3d9e | 2026-01-05T04:01:10.821813Z | false |
slimphp/Slim-Http | https://github.com/slimphp/Slim-Http/blob/0583b777f803038edf2aaf66e1e4522dc5bd3d9e/tests/Psr7Integration/Nyholm/UriTest.php | tests/Psr7Integration/Nyholm/UriTest.php | <?php
/**
* Slim Framework (https://slimframework.com)
*
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License)
*/
declare(strict_types=1);
namespace Slim\Tests\Http\Psr7Integration\Nyholm;
use Http\Psr7Test\UriIntegrationTest;
use Nyholm\Psr7\Factory\Psr17Factory;
use Slim\Http\Fa... | php | MIT | 0583b777f803038edf2aaf66e1e4522dc5bd3d9e | 2026-01-05T04:01:10.821813Z | false |
slimphp/Slim-Http | https://github.com/slimphp/Slim-Http/blob/0583b777f803038edf2aaf66e1e4522dc5bd3d9e/tests/Psr7Integration/Nyholm/ResponseTest.php | tests/Psr7Integration/Nyholm/ResponseTest.php | <?php
/**
* Slim Framework (https://slimframework.com)
*
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE.md (MIT License)
*/
declare(strict_types=1);
namespace Slim\Tests\Http\Psr7Integration\Nyholm;
use Http\Psr7Test\ResponseIntegrationTest;
use Nyholm\Psr7\Factory\Psr17Factory;
use Slim\Ht... | php | MIT | 0583b777f803038edf2aaf66e1e4522dc5bd3d9e | 2026-01-05T04:01:10.821813Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.