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 |
|---|---|---|---|---|---|---|---|---|
tymondesigns/jwt-auth | https://github.com/tymondesigns/jwt-auth/blob/152f571c1a7f76528b03c9843baad3ebd2a2185f/tests/Claims/CollectionTest.php | tests/Claims/CollectionTest.php | <?php
/*
* This file is part of jwt-auth.
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tymon\JWTAuth\Test\Claims;
use Tymon\JWTAuth\Claims\Collection;
use Tymon\JWTAuth\Claims... | php | MIT | 152f571c1a7f76528b03c9843baad3ebd2a2185f | 2026-01-04T15:04:24.804405Z | false |
tymondesigns/jwt-auth | https://github.com/tymondesigns/jwt-auth/blob/152f571c1a7f76528b03c9843baad3ebd2a2185f/tests/Claims/IssuedAtTest.php | tests/Claims/IssuedAtTest.php | <?php
/*
* This file is part of jwt-auth.
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tymon\JWTAuth\Test\Claims;
use Tymon\JWTAuth\Claims\IssuedAt;
use Tymon\JWTAuth\Exceptio... | php | MIT | 152f571c1a7f76528b03c9843baad3ebd2a2185f | 2026-01-04T15:04:24.804405Z | false |
tymondesigns/jwt-auth | https://github.com/tymondesigns/jwt-auth/blob/152f571c1a7f76528b03c9843baad3ebd2a2185f/tests/Claims/FactoryTest.php | tests/Claims/FactoryTest.php | <?php
/*
* This file is part of jwt-auth.
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tymon\JWTAuth\Test\Claims;
use Illuminate\Http\Request;
use Tymon\JWTAuth\Claims\Custom;... | php | MIT | 152f571c1a7f76528b03c9843baad3ebd2a2185f | 2026-01-04T15:04:24.804405Z | false |
tymondesigns/jwt-auth | https://github.com/tymondesigns/jwt-auth/blob/152f571c1a7f76528b03c9843baad3ebd2a2185f/tests/Claims/NotBeforeTest.php | tests/Claims/NotBeforeTest.php | <?php
/*
* This file is part of jwt-auth.
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tymon\JWTAuth\Test\Claims;
use Tymon\JWTAuth\Claims\NotBefore;
use Tymon\JWTAuth\Excepti... | php | MIT | 152f571c1a7f76528b03c9843baad3ebd2a2185f | 2026-01-04T15:04:24.804405Z | false |
tymondesigns/jwt-auth | https://github.com/tymondesigns/jwt-auth/blob/152f571c1a7f76528b03c9843baad3ebd2a2185f/tests/Claims/ClaimTest.php | tests/Claims/ClaimTest.php | <?php
/*
* This file is part of jwt-auth.
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tymon\JWTAuth\Test\Claims;
use Illuminate\Contracts\Support\Arrayable;
use Tymon\JWTAuth... | php | MIT | 152f571c1a7f76528b03c9843baad3ebd2a2185f | 2026-01-04T15:04:24.804405Z | false |
tymondesigns/jwt-auth | https://github.com/tymondesigns/jwt-auth/blob/152f571c1a7f76528b03c9843baad3ebd2a2185f/tests/Claims/DatetimeClaimTest.php | tests/Claims/DatetimeClaimTest.php | <?php
/*
* This file is part of jwt-auth.
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tymon\JWTAuth\Test\Claims;
use Carbon\Carbon;
use DateInterval;
use DateTime;
use DateTi... | php | MIT | 152f571c1a7f76528b03c9843baad3ebd2a2185f | 2026-01-04T15:04:24.804405Z | false |
tymondesigns/jwt-auth | https://github.com/tymondesigns/jwt-auth/blob/152f571c1a7f76528b03c9843baad3ebd2a2185f/tests/Providers/Storage/IlluminateTest.php | tests/Providers/Storage/IlluminateTest.php | <?php
/*
* This file is part of jwt-auth.
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tymon\JWTAuth\Test\Providers\Storage;
use Illuminate\Contracts\Cache\Repository;
use Moc... | php | MIT | 152f571c1a7f76528b03c9843baad3ebd2a2185f | 2026-01-04T15:04:24.804405Z | false |
tymondesigns/jwt-auth | https://github.com/tymondesigns/jwt-auth/blob/152f571c1a7f76528b03c9843baad3ebd2a2185f/tests/Providers/Auth/IlluminateTest.php | tests/Providers/Auth/IlluminateTest.php | <?php
/*
* This file is part of jwt-auth.
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tymon\JWTAuth\Test\Providers\Auth;
use Illuminate\Contracts\Auth\Guard;
use Mockery;
use... | php | MIT | 152f571c1a7f76528b03c9843baad3ebd2a2185f | 2026-01-04T15:04:24.804405Z | false |
tymondesigns/jwt-auth | https://github.com/tymondesigns/jwt-auth/blob/152f571c1a7f76528b03c9843baad3ebd2a2185f/tests/Providers/JWT/LcobucciTest.php | tests/Providers/JWT/LcobucciTest.php | <?php
/*
* This file is part of jwt-auth.
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tymon\JWTAuth\Test\Providers\JWT;
use Illuminate\Support\Str;
use Tymon\JWTAuth\Exceptio... | php | MIT | 152f571c1a7f76528b03c9843baad3ebd2a2185f | 2026-01-04T15:04:24.804405Z | false |
tymondesigns/jwt-auth | https://github.com/tymondesigns/jwt-auth/blob/152f571c1a7f76528b03c9843baad3ebd2a2185f/tests/Providers/JWT/ProviderTest.php | tests/Providers/JWT/ProviderTest.php | <?php
/*
* This file is part of jwt-auth.
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tymon\JWTAuth\Test\Providers\JWT;
use Tymon\JWTAuth\Test\AbstractTestCase;
use Tymon\JWT... | php | MIT | 152f571c1a7f76528b03c9843baad3ebd2a2185f | 2026-01-04T15:04:24.804405Z | false |
tymondesigns/jwt-auth | https://github.com/tymondesigns/jwt-auth/blob/152f571c1a7f76528b03c9843baad3ebd2a2185f/tests/Stubs/JWTProviderStub.php | tests/Stubs/JWTProviderStub.php | <?php
/*
* This file is part of jwt-auth.
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tymon\JWTAuth\Test\Stubs;
use Tymon\JWTAuth\Providers\JWT\Provider;
class JWTProviderSt... | php | MIT | 152f571c1a7f76528b03c9843baad3ebd2a2185f | 2026-01-04T15:04:24.804405Z | false |
tymondesigns/jwt-auth | https://github.com/tymondesigns/jwt-auth/blob/152f571c1a7f76528b03c9843baad3ebd2a2185f/tests/Stubs/LaravelUserStub.php | tests/Stubs/LaravelUserStub.php | <?php
/*
* This file is part of jwt-auth.
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tymon\JWTAuth\Test\Stubs;
use Illuminate\Contracts\Auth\Authenticatable;
use Tymon\JWTAu... | php | MIT | 152f571c1a7f76528b03c9843baad3ebd2a2185f | 2026-01-04T15:04:24.804405Z | false |
tymondesigns/jwt-auth | https://github.com/tymondesigns/jwt-auth/blob/152f571c1a7f76528b03c9843baad3ebd2a2185f/tests/Stubs/UserStub.php | tests/Stubs/UserStub.php | <?php
/*
* This file is part of jwt-auth.
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tymon\JWTAuth\Test\Stubs;
use Tymon\JWTAuth\Contracts\JWTSubject;
class UserStub implem... | php | MIT | 152f571c1a7f76528b03c9843baad3ebd2a2185f | 2026-01-04T15:04:24.804405Z | false |
tymondesigns/jwt-auth | https://github.com/tymondesigns/jwt-auth/blob/152f571c1a7f76528b03c9843baad3ebd2a2185f/tests/Stubs/TaggedStorage.php | tests/Stubs/TaggedStorage.php | <?php
/*
* This file is part of jwt-auth.
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tymon\JWTAuth\Test\Stubs;
use Tymon\JWTAuth\Providers\Storage\Illuminate as Storage;
cl... | php | MIT | 152f571c1a7f76528b03c9843baad3ebd2a2185f | 2026-01-04T15:04:24.804405Z | false |
tymondesigns/jwt-auth | https://github.com/tymondesigns/jwt-auth/blob/152f571c1a7f76528b03c9843baad3ebd2a2185f/config/config.php | config/config.php | <?php
/*
* This file is part of jwt-auth.
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return [
/*
|--------------------------------------------------------------------------
... | php | MIT | 152f571c1a7f76528b03c9843baad3ebd2a2185f | 2026-01-04T15:04:24.804405Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Worker.php | src/Worker.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | true |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Timer.php | src/Timer.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Protocols/Http.php | src/Protocols/Http.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Protocols/Ws.php | src/Protocols/Ws.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Protocols/Text.php | src/Protocols/Text.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Protocols/Frame.php | src/Protocols/Frame.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Protocols/Websocket.php | src/Protocols/Websocket.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Protocols/ProtocolInterface.php | src/Protocols/ProtocolInterface.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Protocols/Http/Chunk.php | src/Protocols/Http/Chunk.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Protocols/Http/Request.php | src/Protocols/Http/Request.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Protocols/Http/Response.php | src/Protocols/Http/Response.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Protocols/Http/ServerSentEvents.php | src/Protocols/Http/ServerSentEvents.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Protocols/Http/Session.php | src/Protocols/Http/Session.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Protocols/Http/Session/FileSessionHandler.php | src/Protocols/Http/Session/FileSessionHandler.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Protocols/Http/Session/SessionHandlerInterface.php | src/Protocols/Http/Session/SessionHandlerInterface.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Protocols/Http/Session/RedisClusterSessionHandler.php | src/Protocols/Http/Session/RedisClusterSessionHandler.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Protocols/Http/Session/RedisSessionHandler.php | src/Protocols/Http/Session/RedisSessionHandler.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Connection/AsyncUdpConnection.php | src/Connection/AsyncUdpConnection.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Connection/ConnectionInterface.php | src/Connection/ConnectionInterface.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Connection/TcpConnection.php | src/Connection/TcpConnection.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Connection/UdpConnection.php | src/Connection/UdpConnection.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Connection/AsyncTcpConnection.php | src/Connection/AsyncTcpConnection.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Events/Swow.php | src/Events/Swow.php | <?php
declare(strict_types=1);
namespace Workerman\Events;
use RuntimeException;
use Workerman\Coroutine\Coroutine\Swow as Coroutine;
use Swow\Signal;
use Swow\SignalException;
use function Swow\Sync\waitAll;
final class Swow implements EventInterface
{
/**
* All listeners for read timer.
*
* @va... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Events/Ev.php | src/Events/Ev.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @link http://www.workerman.net/
* @licens... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Events/Event.php | src/Events/Event.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Events/EventInterface.php | src/Events/EventInterface.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Events/Fiber.php | src/Events/Fiber.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Events/Select.php | src/Events/Select.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* ... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/src/Events/Swoole.php | src/Events/Swoole.php | <?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @link http://www.workerman.net/
* @li... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/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 | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/tests/TestCase.php | tests/TestCase.php | <?php
namespace Tests;
use PHPUnit\Framework\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
//
}
| php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/tests/Feature/WebsocketServiceTest.php | tests/Feature/WebsocketServiceTest.php | <?php
use Symfony\Component\Process\PhpProcess;
$serverCode = file_get_contents(__DIR__ . '/Stub/WebsocketServer.php');
$clientCode = file_get_contents(__DIR__ . '/Stub/WebsocketClient.php');
it('tests websocket connection', function () use ($serverCode, $clientCode) {
$serverProcess = new PhpProcess(str_replace... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/tests/Feature/HttpConnectionTest.php | tests/Feature/HttpConnectionTest.php | <?php
use GuzzleHttp\Client;
use GuzzleHttp\Cookie\CookieJar;
use GuzzleHttp\Psr7\Utils;
use Symfony\Component\Process\PhpProcess;
$process = null;
beforeAll(function () use (&$process) {
$process = new PhpProcess(file_get_contents(__DIR__ . '/Stub/HttpServer.php'));
$process->start();
usleep(250000);
});... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/tests/Feature/ExampleTest.php | tests/Feature/ExampleTest.php | <?php
test('example', function () {
expect(true)->toBeTrue();
});
| php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/tests/Feature/UdpConnectionTest.php | tests/Feature/UdpConnectionTest.php | <?php
use Symfony\Component\Process\PhpProcess;
$process = null;
beforeAll(function () use (&$process) {
$process = new PhpProcess(file_get_contents(__DIR__ . '/Stub/UdpServer.php'));
$process->start();
usleep(600000);
});
afterAll(function () use (&$process) {
echo "\nUDP Test:\n", $process->getOutp... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/tests/Feature/Stub/WebsocketServer.php | tests/Feature/Stub/WebsocketServer.php | <?php
declare(strict_types=1);
use Workerman\Connection\TcpConnection;
use Workerman\Protocols\Http\Request;
use Workerman\Worker;
require_once __DIR__ . '/vendor/autoload.php';
if (!defined('STDIN')) define('STDIN', fopen('php://stdin', 'r'));
if (!defined('STDOUT')) define('STDOUT', fopen('php://stdout', 'w'));
i... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/tests/Feature/Stub/WebsocketClient.php | tests/Feature/Stub/WebsocketClient.php | <?php
declare(strict_types=1);
use Workerman\Connection\AsyncTcpConnection;
use Workerman\Worker;
require_once __DIR__ . '/vendor/autoload.php';
if (!defined('STDIN')) define('STDIN', fopen('php://stdin', 'r'));
if (!defined('STDOUT')) define('STDOUT', fopen('php://stdout', 'w'));
if (!defined('STDERR')) define('ST... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/tests/Feature/Stub/UdpServer.php | tests/Feature/Stub/UdpServer.php | <?php
declare(strict_types=1);
use Workerman\Worker;
require './vendor/autoload.php';
if(!defined('STDIN')) define('STDIN', fopen('php://stdin', 'r'));
if(!defined('STDOUT')) define('STDOUT', fopen('php://stdout', 'w'));
if(!defined('STDERR')) define('STDERR', fopen('php://stderr', 'w'));
$server = new Worker('udp... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/tests/Feature/Stub/HttpServer.php | tests/Feature/Stub/HttpServer.php | <?php
declare(strict_types=1);
use Workerman\Connection\TcpConnection;
use Workerman\Protocols\Http\Request;
use Workerman\Protocols\Http\Response;
use Workerman\Protocols\Http\ServerSentEvents;
use Workerman\Timer;
use Workerman\Worker;
require_once __DIR__ . '/vendor/autoload.php';
if (!defined('STDIN')) define('... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/tests/Unit/Protocols/FrameTest.php | tests/Unit/Protocols/FrameTest.php | <?php
use Workerman\Protocols\Frame;
it('tests ::input', function () {
expect(Frame::input('foo'))->toBe(0)
->and(Frame::input("\0\0\0*foobar"))
->toBe(42);
});
it('tests ::decode', function () {
$buffer = pack('N', 5) . 'jhdxr';
expect(Frame::decode($buffer))
->toBe('jhdxr');
});... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/tests/Unit/Protocols/HttpTest.php | tests/Unit/Protocols/HttpTest.php | <?php
use Workerman\Connection\TcpConnection;
use Workerman\Protocols\Http;
use Workerman\Protocols\Http\Request;
use Workerman\Protocols\Http\Response;
it('customizes request class', function () {
//backup old request class
$oldRequestClass = Http::requestClass();
//actual test
$class = new class {
... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/tests/Unit/Protocols/TextTest.php | tests/Unit/Protocols/TextTest.php | <?php
use Workerman\Connection\ConnectionInterface;
use Workerman\Protocols\Text;
test(Text::class, function () {
/** @var ConnectionInterface $connection */
$connection = Mockery::mock(ConnectionInterface::class);
//::input
//input too long
testWithConnectionClose(function ($connection) {
... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/tests/Unit/Protocols/Http/ResponseTest.php | tests/Unit/Protocols/Http/ResponseTest.php | <?php
use Workerman\Protocols\Http\Response;
it('test some simple case', function () {
$response = new Response(201, ['X-foo' => 'bar'], 'hello, xiami');
expect($response->getStatusCode())->toBe(201)
->and($response->getHeaders())->toBe(['X-foo' => 'bar'])
->and($response->rawBody())->toBe('h... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/tests/Unit/Protocols/Http/ServerSentEventsTest.php | tests/Unit/Protocols/Http/ServerSentEventsTest.php | <?php
use Workerman\Protocols\Http\ServerSentEvents;
it('tests ' . ServerSentEvents::class, function () {
$data = [
'event' => 'ping',
'data' => 'some thing',
'id' => 1000,
'retry' => 5000,
];
$sse = new ServerSentEvents($data);
$expected = "event: {$data['event']}\nid:... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
walkor/workerman | https://github.com/walkor/workerman/blob/510eb286cf5254c626b08f94dc28adc6340d09b3/tests/Unit/Connection/UdpConnectionTest.php | tests/Unit/Connection/UdpConnectionTest.php | <?php
use Workerman\Connection\UdpConnection;
use Symfony\Component\Process\PhpProcess;
use Workerman\Protocols\Text;
$remoteAddress = '127.0.0.1:8082';
$process = null;
beforeAll(function () use ($remoteAddress, &$process) {
$process = new PhpProcess(<<<PHP
<?php
\$socketServer = stream_socket_se... | php | MIT | 510eb286cf5254c626b08f94dc28adc6340d09b3 | 2026-01-04T15:04:13.670972Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/GenericLanguageInflectorFactory.php | src/GenericLanguageInflectorFactory.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector;
use Doctrine\Inflector\Rules\Ruleset;
use function array_unshift;
abstract class GenericLanguageInflectorFactory implements LanguageInflectorFactory
{
/** @var Ruleset[] */
private $singularRulesets = [];
/** @var Ruleset[] */
private $p... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/RulesetInflector.php | src/RulesetInflector.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector;
use Doctrine\Inflector\Rules\Ruleset;
use function array_merge;
/**
* Inflects based on multiple rulesets.
*
* Rules:
* - If the word matches any uninflected word pattern, it is not inflected
* - The first ruleset that returns a different value for ... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/WordInflector.php | src/WordInflector.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector;
interface WordInflector
{
public function inflect(string $word): string;
}
| php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Language.php | src/Language.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector;
final class Language
{
public const ENGLISH = 'english';
public const ESPERANTO = 'esperanto';
public const FRENCH = 'french';
public const ITALIAN = 'italian';
public const NORWEGIAN_BOKMAL = 'norwegi... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/InflectorFactory.php | src/InflectorFactory.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector;
use Doctrine\Inflector\Rules\English;
use Doctrine\Inflector\Rules\Esperanto;
use Doctrine\Inflector\Rules\French;
use Doctrine\Inflector\Rules\Italian;
use Doctrine\Inflector\Rules\NorwegianBokmal;
use Doctrine\Inflector\Rules\Portuguese;
use Doctrine\Inf... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/LanguageInflectorFactory.php | src/LanguageInflectorFactory.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector;
use Doctrine\Inflector\Rules\Ruleset;
interface LanguageInflectorFactory
{
/**
* Applies custom rules for singularisation
*
* @param bool $reset If true, will unset default inflections for all new rules
*
* @return $this
... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/NoopWordInflector.php | src/NoopWordInflector.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector;
class NoopWordInflector implements WordInflector
{
public function inflect(string $word): string
{
return $word;
}
}
| php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Inflector.php | src/Inflector.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector;
use RuntimeException;
use function chr;
use function function_exists;
use function lcfirst;
use function mb_strtolower;
use function ord;
use function preg_match;
use function preg_replace;
use function sprintf;
use function str_replace;
use function strl... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/CachedWordInflector.php | src/CachedWordInflector.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector;
class CachedWordInflector implements WordInflector
{
/** @var WordInflector */
private $wordInflector;
/** @var string[] */
private $cache = [];
public function __construct(WordInflector $wordInflector)
{
$this->wordInflec... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Substitutions.php | src/Rules/Substitutions.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules;
use Doctrine\Inflector\WordInflector;
use function strtolower;
use function strtoupper;
use function substr;
class Substitutions implements WordInflector
{
/** @var Substitution[] */
private $substitutions;
public function __construct(... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Transformation.php | src/Rules/Transformation.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules;
use Doctrine\Inflector\WordInflector;
use function preg_replace;
final class Transformation implements WordInflector
{
/** @var Pattern */
private $pattern;
/** @var string */
private $replacement;
public function __construct(... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Ruleset.php | src/Rules/Ruleset.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules;
class Ruleset
{
/** @var Transformations */
private $regular;
/** @var Patterns */
private $uninflected;
/** @var Substitutions */
private $irregular;
public function __construct(Transformations $regular, Patterns $unin... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Patterns.php | src/Rules/Patterns.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules;
use function array_map;
use function implode;
use function preg_match;
class Patterns
{
/** @var string */
private $regex;
public function __construct(Pattern ...$patterns)
{
$patterns = array_map(static function (Pattern $p... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Transformations.php | src/Rules/Transformations.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules;
use Doctrine\Inflector\WordInflector;
class Transformations implements WordInflector
{
/** @var Transformation[] */
private $transformations;
public function __construct(Transformation ...$transformations)
{
$this->transform... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Substitution.php | src/Rules/Substitution.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules;
final class Substitution
{
/** @var Word */
private $from;
/** @var Word */
private $to;
public function __construct(Word $from, Word $to)
{
$this->from = $from;
$this->to = $to;
}
public function ... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Pattern.php | src/Rules/Pattern.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules;
use function preg_match;
final class Pattern
{
/** @var string */
private $pattern;
/** @var string */
private $regex;
public function __construct(string $pattern)
{
$this->pattern = $pattern;
if (isset($th... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Word.php | src/Rules/Word.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules;
class Word
{
/** @var string */
private $word;
public function __construct(string $word)
{
$this->word = $word;
}
public function getWord(): string
{
return $this->word;
}
}
| php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Turkish/Uninflected.php | src/Rules/Turkish/Uninflected.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\Turkish;
use Doctrine\Inflector\Rules\Pattern;
final class Uninflected
{
/** @return Pattern[] */
public static function getSingular(): iterable
{
yield from self::getDefault();
}
/** @return Pattern[] */
public stati... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Turkish/InflectorFactory.php | src/Rules/Turkish/InflectorFactory.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\Turkish;
use Doctrine\Inflector\GenericLanguageInflectorFactory;
use Doctrine\Inflector\Rules\Ruleset;
final class InflectorFactory extends GenericLanguageInflectorFactory
{
protected function getSingularRuleset(): Ruleset
{
return Ru... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Turkish/Rules.php | src/Rules/Turkish/Rules.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\Turkish;
use Doctrine\Inflector\Rules\Patterns;
use Doctrine\Inflector\Rules\Ruleset;
use Doctrine\Inflector\Rules\Substitutions;
use Doctrine\Inflector\Rules\Transformations;
final class Rules
{
public static function getSingularRuleset(): Rules... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Turkish/Inflectible.php | src/Rules/Turkish/Inflectible.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\Turkish;
use Doctrine\Inflector\Rules\Pattern;
use Doctrine\Inflector\Rules\Substitution;
use Doctrine\Inflector\Rules\Transformation;
use Doctrine\Inflector\Rules\Word;
class Inflectible
{
/** @return Transformation[] */
public static functi... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/French/Uninflected.php | src/Rules/French/Uninflected.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\French;
use Doctrine\Inflector\Rules\Pattern;
final class Uninflected
{
/** @return Pattern[] */
public static function getSingular(): iterable
{
yield from self::getDefault();
yield new Pattern('bois');
yield new... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/French/InflectorFactory.php | src/Rules/French/InflectorFactory.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\French;
use Doctrine\Inflector\GenericLanguageInflectorFactory;
use Doctrine\Inflector\Rules\Ruleset;
final class InflectorFactory extends GenericLanguageInflectorFactory
{
protected function getSingularRuleset(): Ruleset
{
return Rul... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/French/Rules.php | src/Rules/French/Rules.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\French;
use Doctrine\Inflector\Rules\Patterns;
use Doctrine\Inflector\Rules\Ruleset;
use Doctrine\Inflector\Rules\Substitutions;
use Doctrine\Inflector\Rules\Transformations;
final class Rules
{
public static function getSingularRuleset(): Rulese... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/French/Inflectible.php | src/Rules/French/Inflectible.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\French;
use Doctrine\Inflector\Rules\Pattern;
use Doctrine\Inflector\Rules\Substitution;
use Doctrine\Inflector\Rules\Transformation;
use Doctrine\Inflector\Rules\Word;
class Inflectible
{
/** @return Transformation[] */
public static functio... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Italian/Uninflected.php | src/Rules/Italian/Uninflected.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\Italian;
use Doctrine\Inflector\Rules\Pattern;
final class Uninflected
{
/** @return iterable<Pattern> */
public static function getSingular(): iterable
{
yield from self::getDefault();
}
/** @return iterable<Pattern> */
... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Italian/InflectorFactory.php | src/Rules/Italian/InflectorFactory.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\Italian;
use Doctrine\Inflector\GenericLanguageInflectorFactory;
use Doctrine\Inflector\Rules\Ruleset;
final class InflectorFactory extends GenericLanguageInflectorFactory
{
protected function getSingularRuleset(): Ruleset
{
return Ru... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Italian/Rules.php | src/Rules/Italian/Rules.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\Italian;
use Doctrine\Inflector\Rules\Patterns;
use Doctrine\Inflector\Rules\Ruleset;
use Doctrine\Inflector\Rules\Substitutions;
use Doctrine\Inflector\Rules\Transformations;
final class Rules
{
public static function getSingularRuleset(): Rules... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Italian/Inflectible.php | src/Rules/Italian/Inflectible.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\Italian;
use Doctrine\Inflector\Rules\Pattern;
use Doctrine\Inflector\Rules\Substitution;
use Doctrine\Inflector\Rules\Transformation;
use Doctrine\Inflector\Rules\Word;
class Inflectible
{
/** @return iterable<Transformation> */
public stati... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Esperanto/Uninflected.php | src/Rules/Esperanto/Uninflected.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\Esperanto;
use Doctrine\Inflector\Rules\Pattern;
final class Uninflected
{
/** @return Pattern[] */
public static function getSingular(): iterable
{
yield from self::getDefault();
}
/** @return Pattern[] */
public sta... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Esperanto/InflectorFactory.php | src/Rules/Esperanto/InflectorFactory.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\Esperanto;
use Doctrine\Inflector\GenericLanguageInflectorFactory;
use Doctrine\Inflector\Rules\Ruleset;
final class InflectorFactory extends GenericLanguageInflectorFactory
{
protected function getSingularRuleset(): Ruleset
{
return ... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Esperanto/Rules.php | src/Rules/Esperanto/Rules.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\Esperanto;
use Doctrine\Inflector\Rules\Patterns;
use Doctrine\Inflector\Rules\Ruleset;
use Doctrine\Inflector\Rules\Substitutions;
use Doctrine\Inflector\Rules\Transformations;
final class Rules
{
public static function getSingularRuleset(): Rul... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Esperanto/Inflectible.php | src/Rules/Esperanto/Inflectible.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\Esperanto;
use Doctrine\Inflector\Rules\Pattern;
use Doctrine\Inflector\Rules\Substitution;
use Doctrine\Inflector\Rules\Transformation;
use Doctrine\Inflector\Rules\Word;
class Inflectible
{
/** @return Transformation[] */
public static func... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/NorwegianBokmal/Uninflected.php | src/Rules/NorwegianBokmal/Uninflected.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\NorwegianBokmal;
use Doctrine\Inflector\Rules\Pattern;
final class Uninflected
{
/** @return Pattern[] */
public static function getSingular(): iterable
{
yield from self::getDefault();
}
/** @return Pattern[] */
publ... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/NorwegianBokmal/InflectorFactory.php | src/Rules/NorwegianBokmal/InflectorFactory.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\NorwegianBokmal;
use Doctrine\Inflector\GenericLanguageInflectorFactory;
use Doctrine\Inflector\Rules\Ruleset;
final class InflectorFactory extends GenericLanguageInflectorFactory
{
protected function getSingularRuleset(): Ruleset
{
r... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/NorwegianBokmal/Rules.php | src/Rules/NorwegianBokmal/Rules.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\NorwegianBokmal;
use Doctrine\Inflector\Rules\Patterns;
use Doctrine\Inflector\Rules\Ruleset;
use Doctrine\Inflector\Rules\Substitutions;
use Doctrine\Inflector\Rules\Transformations;
final class Rules
{
public static function getSingularRuleset(... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/NorwegianBokmal/Inflectible.php | src/Rules/NorwegianBokmal/Inflectible.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\NorwegianBokmal;
use Doctrine\Inflector\Rules\Pattern;
use Doctrine\Inflector\Rules\Substitution;
use Doctrine\Inflector\Rules\Transformation;
use Doctrine\Inflector\Rules\Word;
class Inflectible
{
/** @return Transformation[] */
public stati... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Portuguese/Uninflected.php | src/Rules/Portuguese/Uninflected.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\Portuguese;
use Doctrine\Inflector\Rules\Pattern;
final class Uninflected
{
/** @return Pattern[] */
public static function getSingular(): iterable
{
yield from self::getDefault();
}
/** @return Pattern[] */
public st... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Portuguese/InflectorFactory.php | src/Rules/Portuguese/InflectorFactory.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\Portuguese;
use Doctrine\Inflector\GenericLanguageInflectorFactory;
use Doctrine\Inflector\Rules\Ruleset;
final class InflectorFactory extends GenericLanguageInflectorFactory
{
protected function getSingularRuleset(): Ruleset
{
return... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
doctrine/inflector | https://github.com/doctrine/inflector/blob/acc9e1de103b7a4fa55b17cea938207d97c5c55f/src/Rules/Portuguese/Rules.php | src/Rules/Portuguese/Rules.php | <?php
declare(strict_types=1);
namespace Doctrine\Inflector\Rules\Portuguese;
use Doctrine\Inflector\Rules\Patterns;
use Doctrine\Inflector\Rules\Ruleset;
use Doctrine\Inflector\Rules\Substitutions;
use Doctrine\Inflector\Rules\Transformations;
final class Rules
{
public static function getSingularRuleset(): Ru... | php | MIT | acc9e1de103b7a4fa55b17cea938207d97c5c55f | 2026-01-04T15:04:39.383123Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.