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 |
|---|---|---|---|---|---|---|---|---|
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Routing.php | app/Config/Routing.php | <?php
/**
* This file is part of CodeIgniter 4 framework.
*
* (c) CodeIgniter Foundation <admin@codeigniter.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Config;
use CodeIgniter\Config\Routing as BaseRouting;
/... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/ForeignCharacters.php | app/Config/ForeignCharacters.php | <?php
namespace Config;
use CodeIgniter\Config\ForeignCharacters as BaseForeignCharacters;
/**
* @immutable
*/
class ForeignCharacters extends BaseForeignCharacters
{
}
| php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Database.php | app/Config/Database.php | <?php
namespace Config;
use CodeIgniter\Database\Config;
/**
* Database Configuration
*/
class Database extends Config
{
/**
* The directory that holds the Migrations and Seeds directories.
*/
public string $filesPath = APPPATH . 'Database' . DIRECTORY_SEPARATOR;
/**
* Lets you choose w... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Paths.php | app/Config/Paths.php | <?php
namespace Config;
/**
* Paths
*
* Holds the paths that are used by the system to
* locate the main directories, app, system, etc.
*
* Modifying these allows you to restructure your application,
* share a system folder between multiple applications, and more.
*
* All paths are relative to the project's ... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Events.php | app/Config/Events.php | <?php
namespace Config;
use CodeIgniter\Events\Events;
use CodeIgniter\Exceptions\FrameworkException;
use CodeIgniter\HotReloader\HotReloader;
/*
* --------------------------------------------------------------------
* Application Events
* --------------------------------------------------------------------
* Ev... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Autoload.php | app/Config/Autoload.php | <?php
namespace Config;
use CodeIgniter\Config\AutoloadConfig;
/**
* -------------------------------------------------------------------
* AUTOLOADER CONFIGURATION
* -------------------------------------------------------------------
*
* This file defines the namespaces and class maps so the Autoloader
* can f... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Mimes.php | app/Config/Mimes.php | <?php
namespace Config;
/**
* This file contains an array of mime types. It is used by the
* Upload class to help identify allowed file types.
*
* When more than one variation for an extension exist (like jpg, jpeg, etc)
* the most common one should be first in the array to aid the guess*
* methods. The same a... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/ContentSecurityPolicy.php | app/Config/ContentSecurityPolicy.php | <?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
/**
* Stores the default settings for the ContentSecurityPolicy, if you
* choose to use it. The values here will be read in and set as defaults
* for the site. If needed, they can be overridden on a page-by-page basis.
*
* Suggested reference for explan... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/CURLRequest.php | app/Config/CURLRequest.php | <?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
class CURLRequest extends BaseConfig
{
/**
* --------------------------------------------------------------------------
* CURLRequest Share Options
* --------------------------------------------------------------------------
*
* ... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/DocTypes.php | app/Config/DocTypes.php | <?php
namespace Config;
class DocTypes
{
/**
* List of valid document types.
*
* @var array<string, string>
*/
public array $list = [
'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',
'xhtml1-strict' ... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Exceptions.php | app/Config/Exceptions.php | <?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
use CodeIgniter\Debug\ExceptionHandler;
use CodeIgniter\Debug\ExceptionHandlerInterface;
use Psr\Log\LogLevel;
use Throwable;
/**
* Setup how the exception handler works.
*/
class Exceptions extends BaseConfig
{
/**
* -----------------------------... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Images.php | app/Config/Images.php | <?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
use CodeIgniter\Images\Handlers\GDHandler;
use CodeIgniter\Images\Handlers\ImageMagickHandler;
class Images extends BaseConfig
{
/**
* Default handler used if no other handler is specified.
*/
public string $defaultHandler = 'gd';
/**
... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Generators.php | app/Config/Generators.php | <?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
class Generators extends BaseConfig
{
/**
* --------------------------------------------------------------------------
* Generator Commands' Views
* --------------------------------------------------------------------------
*
* T... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Filters.php | app/Config/Filters.php | <?php
namespace Config;
use CodeIgniter\Config\Filters as BaseFilters;
use CodeIgniter\Filters\Cors;
use CodeIgniter\Filters\CSRF;
use CodeIgniter\Filters\DebugToolbar;
use CodeIgniter\Filters\ForceHTTPS;
use CodeIgniter\Filters\Honeypot;
use CodeIgniter\Filters\InvalidChars;
use CodeIgniter\Filters\PageCache;
use Co... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Optimize.php | app/Config/Optimize.php | <?php
namespace Config;
/**
* Optimization Configuration.
*
* NOTE: This class does not extend BaseConfig for performance reasons.
* So you cannot replace the property values with Environment Variables.
*/
class Optimize
{
/**
* ---------------------------------------------------------------------... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/UserAgents.php | app/Config/UserAgents.php | <?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
/**
* -------------------------------------------------------------------
* User Agents
* -------------------------------------------------------------------
*
* This file contains four arrays of user agent data. It is used by the
* User Agent Class to... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Email.php | app/Config/Email.php | <?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
class Email extends BaseConfig
{
public string $fromEmail = '';
public string $fromName = '';
public string $recipients = '';
/**
* The "user agent"
*/
public string $userAgent = 'CodeIgniter';
/**
* The mail sendi... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/App.php | app/Config/App.php | <?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
class App extends BaseConfig
{
/**
* --------------------------------------------------------------------------
* Base Site URL
* --------------------------------------------------------------------------
*
* URL to your CodeIgni... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Kint.php | app/Config/Kint.php | <?php
namespace Config;
use Kint\Parser\ConstructablePluginInterface;
use Kint\Renderer\Rich\TabPluginInterface;
use Kint\Renderer\Rich\ValuePluginInterface;
/**
* --------------------------------------------------------------------------
* Kint
* ------------------------------------------------------------------... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Constants.php | app/Config/Constants.php | <?php
/*
| --------------------------------------------------------------------
| App Namespace
| --------------------------------------------------------------------
|
| This defines the default Namespace that is used throughout
| CodeIgniter to refer to the Application directory. Change
| this constant to cha... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Honeypot.php | app/Config/Honeypot.php | <?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
class Honeypot extends BaseConfig
{
/**
* Makes Honeypot visible or not to human
*/
public bool $hidden = true;
/**
* Honeypot Label Content
*/
public string $label = 'Fill This Field';
/**
* Honeypot Field Name... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Security.php | app/Config/Security.php | <?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
class Security extends BaseConfig
{
/**
* --------------------------------------------------------------------------
* CSRF Protection Method
* --------------------------------------------------------------------------
*
* Protec... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Modules.php | app/Config/Modules.php | <?php
namespace Config;
use CodeIgniter\Modules\Modules as BaseModules;
/**
* Modules Configuration.
*
* NOTE: This class is required prior to Autoloader instantiation,
* and does not extend BaseConfig.
*/
class Modules extends BaseModules
{
/**
* -------------------------------------------------... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Routes.php | app/Config/Routes.php | <?php
use CodeIgniter\Router\RouteCollection;
/**
* @var RouteCollection $routes
*/
$routes->get('/', 'Home::index');
$routes->get('heroes/(:num)', 'HeroController::show/$1');
$routes->get('dungeons/(:num)', 'DungeonController::show/$1');
| php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Publisher.php | app/Config/Publisher.php | <?php
namespace Config;
use CodeIgniter\Config\Publisher as BasePublisher;
/**
* Publisher Configuration
*
* Defines basic security restrictions for the Publisher class
* to prevent abuse by injecting malicious files into a project.
*/
class Publisher extends BasePublisher
{
/**
* A list of allowed des... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Format.php | app/Config/Format.php | <?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
use CodeIgniter\Format\JSONFormatter;
use CodeIgniter\Format\XMLFormatter;
class Format extends BaseConfig
{
/**
* --------------------------------------------------------------------------
* Available Response Formats
* ------------------... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Cookie.php | app/Config/Cookie.php | <?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
use DateTimeInterface;
class Cookie extends BaseConfig
{
/**
* --------------------------------------------------------------------------
* Cookie Prefix
* --------------------------------------------------------------------------
*
... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Feature.php | app/Config/Feature.php | <?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
/**
* Enable/disable backward compatibility breaking features.
*/
class Feature extends BaseConfig
{
/**
* Use improved new auto routing instead of the legacy version.
*/
public bool $autoRoutesImproved = true;
/**
* Use filter ... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Validation.php | app/Config/Validation.php | <?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
use CodeIgniter\Validation\StrictRules\CreditCardRules;
use CodeIgniter\Validation\StrictRules\FileRules;
use CodeIgniter\Validation\StrictRules\FormatRules;
use CodeIgniter\Validation\StrictRules\Rules;
class Validation extends BaseConfig
{
// ---------... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Cache.php | app/Config/Cache.php | <?php
namespace Config;
use CodeIgniter\Cache\CacheInterface;
use CodeIgniter\Cache\Handlers\DummyHandler;
use CodeIgniter\Cache\Handlers\FileHandler;
use CodeIgniter\Cache\Handlers\MemcachedHandler;
use CodeIgniter\Cache\Handlers\PredisHandler;
use CodeIgniter\Cache\Handlers\RedisHandler;
use CodeIgniter\Cache\Handl... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Toolbar.php | app/Config/Toolbar.php | <?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
use CodeIgniter\Debug\Toolbar\Collectors\Database;
use CodeIgniter\Debug\Toolbar\Collectors\Events;
use CodeIgniter\Debug\Toolbar\Collectors\Files;
use CodeIgniter\Debug\Toolbar\Collectors\Logs;
use CodeIgniter\Debug\Toolbar\Collectors\Routes;
use CodeIgniter... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Logger.php | app/Config/Logger.php | <?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
use CodeIgniter\Log\Handlers\FileHandler;
use CodeIgniter\Log\Handlers\HandlerInterface;
class Logger extends BaseConfig
{
/**
* --------------------------------------------------------------------------
* Error Logging Threshold
* -------... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Services.php | app/Config/Services.php | <?php
namespace Config;
use CodeIgniter\Config\BaseService;
/**
* Services Configuration file.
*
* Services are simply other classes/libraries that the system uses
* to do its job. This is used by CodeIgniter to allow the core of the
* framework to be swapped out easily without affecting the usage within
* the... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Migrations.php | app/Config/Migrations.php | <?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
class Migrations extends BaseConfig
{
/**
* --------------------------------------------------------------------------
* Enable/Disable Migrations
* --------------------------------------------------------------------------
*
* M... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Pager.php | app/Config/Pager.php | <?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
class Pager extends BaseConfig
{
/**
* --------------------------------------------------------------------------
* Templates
* --------------------------------------------------------------------------
*
* Pagination links are r... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Session.php | app/Config/Session.php | <?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
use CodeIgniter\Session\Handlers\BaseHandler;
use CodeIgniter\Session\Handlers\FileHandler;
class Session extends BaseConfig
{
/**
* --------------------------------------------------------------------------
* Session Driver
* ------------... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/View.php | app/Config/View.php | <?php
namespace Config;
use CodeIgniter\Config\View as BaseView;
use CodeIgniter\View\ViewDecoratorInterface;
/**
* @phpstan-type parser_callable (callable(mixed): mixed)
* @phpstan-type parser_callable_string (callable(mixed): mixed)&string
*/
class View extends BaseView
{
/**
* When false, the view met... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Boot/development.php | app/Config/Boot/development.php | <?php
/*
|--------------------------------------------------------------------------
| ERROR DISPLAY
|--------------------------------------------------------------------------
| In development, we want to show as many errors as possible to help
| make sure they don't make it to production. And save us hours of
... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Boot/production.php | app/Config/Boot/production.php | <?php
/*
|--------------------------------------------------------------------------
| ERROR DISPLAY
|--------------------------------------------------------------------------
| Don't show ANY in production environments. Instead, let the system catch
| it and display a generic error message.
|
| If you set 'di... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Config/Boot/testing.php | app/Config/Boot/testing.php | <?php
/*
* The environment testing is reserved for PHPUnit testing. It has special
* conditions built into the framework at various places to assist with that.
* You can’t use it for your development.
*/
/*
|--------------------------------------------------------------------------
| ERROR DISPLAY
|-----------... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Models/HeroModel.php | app/Models/HeroModel.php | <?php
namespace App\Models;
use CodeIgniter\Model;
class HeroModel extends Model
{
/**
* @var string
*/
protected $table = 'heroes';
/**
* @var string
*/
protected $primaryKey = 'id';
/**
* @var string
*/
protected $returnType = 'object';
/**
* @var b... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Models/AbilityModel.php | app/Models/AbilityModel.php | <?php
namespace App\Models;
use CodeIgniter\Model;
class AbilityModel extends Model
{
/**
* @var string
*/
protected $table = 'abilities';
/**
* @var string
*/
protected $primaryKey = 'id';
/**
* @var string
*/
protected $returnType = 'object';
/**
* ... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Models/MonsterModel.php | app/Models/MonsterModel.php | <?php
namespace App\Models;
use App\Entities\Monster;
use CodeIgniter\Model;
class MonsterModel extends Model
{
/**
* @var string
*/
protected $table = 'monsters';
/**
* @var string
*/
protected $primaryKey = 'id';
/**
* @var string
*/
protected $returnType = M... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Models/DungeonModel.php | app/Models/DungeonModel.php | <?php
namespace App\Models;
use App\Entities\Dungeon;
use CodeIgniter\Model;
class DungeonModel extends Model
{
/**
* @var string
*/
protected $table = 'dungeons';
/**
* @var string
*/
protected $primaryKey = 'id';
// We are specifying an Entity class to return
// here i... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Language/en/Validation.php | app/Language/en/Validation.php | <?php
// override core en language system validation or define your own en language validation message
return [];
| php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/app/Commands/DungeonsList.php | app/Commands/DungeonsList.php | <?php
namespace App\Commands;
use App\Models\DungeonModel;
use CodeIgniter\CLI\BaseCommand;
use CodeIgniter\CLI\CLI;
class DungeonsList extends BaseCommand
{
/**
* @var string
*/
protected $group = 'Playground';
/**
* @var string
*/
protected $name = 'dungeons:list';
/**
... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/tests/feature/HomeTest.php | tests/feature/HomeTest.php | <?php
use Tests\Support\FeatureTestCase;
/**
* @internal
*/
final class HomeTest extends FeatureTestCase
{
protected function setUp(): void
{
parent::setUp();
}
public function testHomeLoads()
{
$response = $this->get('/');
// Ensure we loaded successfully
$resp... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/tests/unit/HealthTest.php | tests/unit/HealthTest.php | <?php
use CodeIgniter\Test\CIUnitTestCase;
use Config\App;
use Tests\Support\Libraries\ConfigReader;
/**
* @internal
*/
final class HealthTest extends CIUnitTestCase
{
protected function setUp(): void
{
parent::setUp();
}
public function testIsDefinedAppPath()
{
$test = defined(... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/tests/_support/DatabaseTestCase.php | tests/_support/DatabaseTestCase.php | <?php
namespace Tests\Support;
use CodeIgniter\Database\Seeder;
use CodeIgniter\Test\CIUnitTestCase;
use CodeIgniter\Test\DatabaseTestTrait;
/**
* @internal
*/
abstract class DatabaseTestCase extends CIUnitTestCase
{
use DatabaseTestTrait;
/**
* Should the database be refreshed before each test?
... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/tests/_support/FeatureTestCase.php | tests/_support/FeatureTestCase.php | <?php
namespace Tests\Support;
use CodeIgniter\Router\RouteCollection;
use CodeIgniter\Test\FeatureTestTrait;
/**
* @internal
*/
abstract class FeatureTestCase extends DatabaseTestCase
{
use FeatureTestTrait;
/**
* If present, will override application
* routes when using call().
*
* @... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/tests/_support/Libraries/ConfigReader.php | tests/_support/Libraries/ConfigReader.php | <?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014-2019 British Columbia Institute of Technology
* Copyright (c) 2019-2020 CodeIgniter Foundation
*
* Permission is hereby granted, free of charge,... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/tests/_support/Fakers/MonsterFaker.php | tests/_support/Fakers/MonsterFaker.php | <?php
namespace Tests\Support\Fakers;
use App\Entities\Monster;
use App\Models\MonsterModel;
use CodeIgniter\Test\Fabricator;
use CodeIgniter\Test\Interfaces\FabricatorModel;
use Faker\Generator;
/**
* Fabricator is a part of the framework's core test utilities. It allows
* developers to generate random data with ... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/tests/database/FakerTest.php | tests/database/FakerTest.php | <?php
use App\Entities\Dungeon;
use App\Entities\Monster;
use App\Models\DungeonModel;
use CodeIgniter\Test\Fabricator;
use Tests\Support\DatabaseTestCase;
use Tests\Support\Fakers\MonsterFaker;
/**
* We have already defined a special kind of Model in the _support/Fakers
* folder that contains the `fake()` method. ... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/tests/database/HeroTest.php | tests/database/HeroTest.php | <?php
use App\Models\HeroModel;
use Tests\Support\DatabaseTestCase;
/**
* @internal
*/
final class HeroTest extends DatabaseTestCase
{
protected function setUp(): void
{
parent::setUp();
}
public function testHasHero()
{
$hero = [
'name' => 'Ursula Frost',
... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
codeigniter4projects/playground | https://github.com/codeigniter4projects/playground/blob/f13e5df6558b5613e59fbd7392c43b1971e52d0f/public/index.php | public/index.php | <?php
use CodeIgniter\Boot;
use Config\Paths;
/*
*---------------------------------------------------------------
* CHECK PHP VERSION
*---------------------------------------------------------------
*/
$minPhpVersion = '8.1'; // If you update this, don't forget to update `spark`.
if (version_compare(PHP_VERSION,... | php | MIT | f13e5df6558b5613e59fbd7392c43b1971e52d0f | 2026-01-05T04:16:04.929881Z | false |
ajbdev/cronlingo | https://github.com/ajbdev/cronlingo/blob/8cdf005591c425894eabc536f1eb4b89f8f26ad0/src/CronLingo/Cron.php | src/CronLingo/Cron.php | <?php
namespace CronLingo;
/**
* Represents a CRON expression
*
* Class Cron
* @package CronLingo
*/
class Cron
{
/**
* @var Field
*/
public $dayOfWeek;
/**
* @var Field
*/
public $month;
/**
* @var Field
*/
public $dayOfMonth;
/**
* @var Field
... | php | MIT | 8cdf005591c425894eabc536f1eb4b89f8f26ad0 | 2026-01-05T04:16:30.044958Z | false |
ajbdev/cronlingo | https://github.com/ajbdev/cronlingo/blob/8cdf005591c425894eabc536f1eb4b89f8f26ad0/src/CronLingo/CronLingo.php | src/CronLingo/CronLingo.php | <?php
namespace CronLingo;
/**
* Factory interface for getting CRON expressions
*
* Class CronLingo
* @package CronLingo
*/
class CronLingo
{
/**
* @param $string
* @return string
*/
public static function fromExpression($string)
{
return self::getParser()->parse($string);
... | php | MIT | 8cdf005591c425894eabc536f1eb4b89f8f26ad0 | 2026-01-05T04:16:30.044958Z | false |
ajbdev/cronlingo | https://github.com/ajbdev/cronlingo/blob/8cdf005591c425894eabc536f1eb4b89f8f26ad0/src/CronLingo/Field.php | src/CronLingo/Field.php | <?php
namespace CronLingo;
/**
* Represents a field within a CRON expression
*
* Class Field
* @package CronLingo
*/
class Field
{
/**
* @var int
*/
protected $repeats;
/**
* @var array
*/
protected $specific = [];
/**
* @var int
*/
protected $rangeMin;
... | php | MIT | 8cdf005591c425894eabc536f1eb4b89f8f26ad0 | 2026-01-05T04:16:30.044958Z | false |
ajbdev/cronlingo | https://github.com/ajbdev/cronlingo/blob/8cdf005591c425894eabc536f1eb4b89f8f26ad0/src/CronLingo/Parser.php | src/CronLingo/Parser.php | <?php
namespace CronLingo;
/**
* Tokenizes a string and parses into a CRON expression
*
* Class Parser
* @package CronLingo
*/
class Parser
{
/**
* Regular expressions used to tokenize a string
*
* @var array
*/
protected $tokenMap = [
'every|daily|weekly|monthly' => 'T_EVERY'... | php | MIT | 8cdf005591c425894eabc536f1eb4b89f8f26ad0 | 2026-01-05T04:16:30.044958Z | false |
ajbdev/cronlingo | https://github.com/ajbdev/cronlingo/blob/8cdf005591c425894eabc536f1eb4b89f8f26ad0/src/CronLingo/ParseException.php | src/CronLingo/ParseException.php | <?php
namespace CronLingo;
/**
* Class ParseException
* @package CronLingo
*/
class ParseException extends \RuntimeException
{
} | php | MIT | 8cdf005591c425894eabc536f1eb4b89f8f26ad0 | 2026-01-05T04:16:30.044958Z | false |
ajbdev/cronlingo | https://github.com/ajbdev/cronlingo/blob/8cdf005591c425894eabc536f1eb4b89f8f26ad0/test/CronLingo/CronTest.php | test/CronLingo/CronTest.php | <?php
require_once 'vendor/autoload.php';
use CronLingo\Cron;
class CronTest extends \PHPUnit_Framework_TestCase
{
public function testFromString()
{
$cron = new Cron();
$cron->fromString('25 2-6 */2 * 1,2,3,4,5');
$this->assertEquals(
array(25),
$cron->minu... | php | MIT | 8cdf005591c425894eabc536f1eb4b89f8f26ad0 | 2026-01-05T04:16:30.044958Z | false |
ajbdev/cronlingo | https://github.com/ajbdev/cronlingo/blob/8cdf005591c425894eabc536f1eb4b89f8f26ad0/test/CronLingo/FieldTest.php | test/CronLingo/FieldTest.php | <?php
require_once 'vendor/autoload.php';
class FieldTest extends \PHPUnit_Framework_TestCase
{
public function testDefault()
{
$field = new \CronLingo\Field();
$this->assertEquals('*', (string) $field);
}
public function testRepeat()
{
$field = new \CronLingo\Field();
... | php | MIT | 8cdf005591c425894eabc536f1eb4b89f8f26ad0 | 2026-01-05T04:16:30.044958Z | false |
ajbdev/cronlingo | https://github.com/ajbdev/cronlingo/blob/8cdf005591c425894eabc536f1eb4b89f8f26ad0/test/CronLingo/ParserTest.php | test/CronLingo/ParserTest.php | <?php
require_once 'vendor/autoload.php';
class ParserTest extends \PHPUnit_Framework_TestCase
{
protected $parser;
protected function getParser() {
if ($this->parser === null) {
$this->parser = new \CronLingo\Parser();
}
$this->parser->reset();
return $this->parse... | php | MIT | 8cdf005591c425894eabc536f1eb4b89f8f26ad0 | 2026-01-05T04:16:30.044958Z | false |
ajbdev/cronlingo | https://github.com/ajbdev/cronlingo/blob/8cdf005591c425894eabc536f1eb4b89f8f26ad0/test/CronLingo/CronLingoTest.php | test/CronLingo/CronLingoTest.php | <?php
require_once 'vendor/autoload.php';
class CronLingoTest extends \PHPUnit_Framework_TestCase
{
public function testCron()
{
$this->assertInternalType('string', \CronLingo\CronLingo::fromExpression('Every day at midnight'));
}
public function testGetParser()
{
$this->assertIns... | php | MIT | 8cdf005591c425894eabc536f1eb4b89f8f26ad0 | 2026-01-05T04:16:30.044958Z | false |
ajbdev/cronlingo | https://github.com/ajbdev/cronlingo/blob/8cdf005591c425894eabc536f1eb4b89f8f26ad0/bin/test.php | bin/test.php | <?php
require 'vendor/autoload.php';
use CronLingo\Parser;
$parser = new Parser();
array_shift($argv);
echo $parser->parse(implode(' ', $argv)) . PHP_EOL;
| php | MIT | 8cdf005591c425894eabc536f1eb4b89f8f26ad0 | 2026-01-05T04:16:30.044958Z | false |
queue-interop/amqp-interop | https://github.com/queue-interop/amqp-interop/blob/a1c372949f0a19f2bd8eeeda673f2b044a27ba1f/src/AmqpContext.php | src/AmqpContext.php | <?php
declare(strict_types=1);
namespace Interop\Amqp;
use Interop\Queue\Context;
/**
* @method AmqpQueue createQueue($queueName)
* @method AmqpQueue createTemporaryQueue()
* @method AmqpProducer createProducer
* @method AmqpConsumer createConsumer(AmqpDestination $destination)
* @method AmqpTopic createTopic($... | php | MIT | a1c372949f0a19f2bd8eeeda673f2b044a27ba1f | 2026-01-05T04:16:39.243528Z | false |
queue-interop/amqp-interop | https://github.com/queue-interop/amqp-interop/blob/a1c372949f0a19f2bd8eeeda673f2b044a27ba1f/src/AmqpTopic.php | src/AmqpTopic.php | <?php
declare(strict_types=1);
namespace Interop\Amqp;
use Interop\Queue\Topic;
interface AmqpTopic extends Topic, AmqpDestination
{
const TYPE_DIRECT = 'direct';
const TYPE_FANOUT = 'fanout';
const TYPE_TOPIC = 'topic';
const TYPE_HEADERS = 'headers';
const FLAG_INTERNAL = 2048;
public fun... | php | MIT | a1c372949f0a19f2bd8eeeda673f2b044a27ba1f | 2026-01-05T04:16:39.243528Z | false |
queue-interop/amqp-interop | https://github.com/queue-interop/amqp-interop/blob/a1c372949f0a19f2bd8eeeda673f2b044a27ba1f/src/AmqpProducer.php | src/AmqpProducer.php | <?php
declare(strict_types=1);
namespace Interop\Amqp;
use Interop\Queue\Producer;
interface AmqpProducer extends Producer
{
}
| php | MIT | a1c372949f0a19f2bd8eeeda673f2b044a27ba1f | 2026-01-05T04:16:39.243528Z | false |
queue-interop/amqp-interop | https://github.com/queue-interop/amqp-interop/blob/a1c372949f0a19f2bd8eeeda673f2b044a27ba1f/src/AmqpConsumer.php | src/AmqpConsumer.php | <?php
declare(strict_types=1);
namespace Interop\Amqp;
use Interop\Queue\Consumer;
/**
* @method AmqpMessage|null receiveNoWait()
* @method AmqpMessage|null receive(int $timeout = 0)
* @method AmqpQueue getQueue()
* @method void acknowledge(AmqpMessage $message)
* @method void reject(AmqpMessage $message, bool ... | php | MIT | a1c372949f0a19f2bd8eeeda673f2b044a27ba1f | 2026-01-05T04:16:39.243528Z | false |
queue-interop/amqp-interop | https://github.com/queue-interop/amqp-interop/blob/a1c372949f0a19f2bd8eeeda673f2b044a27ba1f/src/AmqpMessage.php | src/AmqpMessage.php | <?php
declare(strict_types=1);
namespace Interop\Amqp;
use Interop\Queue\Message;
interface AmqpMessage extends Message
{
const DELIVERY_MODE_NON_PERSISTENT = 1;
const DELIVERY_MODE_PERSISTENT = 2;
const FLAG_NOPARAM = 0;
const FLAG_MANDATORY = 1;
const FLAG_IMMEDIATE = 2;
public function s... | php | MIT | a1c372949f0a19f2bd8eeeda673f2b044a27ba1f | 2026-01-05T04:16:39.243528Z | false |
queue-interop/amqp-interop | https://github.com/queue-interop/amqp-interop/blob/a1c372949f0a19f2bd8eeeda673f2b044a27ba1f/src/AmqpBind.php | src/AmqpBind.php | <?php
declare(strict_types=1);
namespace Interop\Amqp;
interface AmqpBind
{
const FLAG_NOPARAM = 0;
const FLAG_NOWAIT = 1;
/**
* @return AmqpTopic|AmqpQueue
*/
public function getTarget(): AmqpDestination;
/**
* @return AmqpTopic|AmqpQueue
*/
public function getSource(): ... | php | MIT | a1c372949f0a19f2bd8eeeda673f2b044a27ba1f | 2026-01-05T04:16:39.243528Z | false |
queue-interop/amqp-interop | https://github.com/queue-interop/amqp-interop/blob/a1c372949f0a19f2bd8eeeda673f2b044a27ba1f/src/AmqpConnectionFactory.php | src/AmqpConnectionFactory.php | <?php
declare(strict_types=1);
namespace Interop\Amqp;
use Interop\Queue\ConnectionFactory;
interface AmqpConnectionFactory extends ConnectionFactory
{
}
| php | MIT | a1c372949f0a19f2bd8eeeda673f2b044a27ba1f | 2026-01-05T04:16:39.243528Z | false |
queue-interop/amqp-interop | https://github.com/queue-interop/amqp-interop/blob/a1c372949f0a19f2bd8eeeda673f2b044a27ba1f/src/AmqpDestination.php | src/AmqpDestination.php | <?php
declare(strict_types=1);
namespace Interop\Amqp;
interface AmqpDestination
{
const FLAG_NOPARAM = 0;
const FLAG_PASSIVE = 1;
const FLAG_DURABLE = 2;
const FLAG_AUTODELETE = 4;
const FLAG_NOWAIT = 8;
const FLAG_IFUNUSED = 16;
}
| php | MIT | a1c372949f0a19f2bd8eeeda673f2b044a27ba1f | 2026-01-05T04:16:39.243528Z | false |
queue-interop/amqp-interop | https://github.com/queue-interop/amqp-interop/blob/a1c372949f0a19f2bd8eeeda673f2b044a27ba1f/src/AmqpSubscriptionConsumer.php | src/AmqpSubscriptionConsumer.php | <?php
declare(strict_types=1);
namespace Interop\Amqp;
use Interop\Queue\SubscriptionConsumer;
interface AmqpSubscriptionConsumer extends SubscriptionConsumer
{
}
| php | MIT | a1c372949f0a19f2bd8eeeda673f2b044a27ba1f | 2026-01-05T04:16:39.243528Z | false |
queue-interop/amqp-interop | https://github.com/queue-interop/amqp-interop/blob/a1c372949f0a19f2bd8eeeda673f2b044a27ba1f/src/AmqpQueue.php | src/AmqpQueue.php | <?php
declare(strict_types=1);
namespace Interop\Amqp;
use Interop\Queue\Queue;
interface AmqpQueue extends Queue, AmqpDestination
{
const FLAG_EXCLUSIVE = 2097152;
const FLAG_IFEMPTY = 4194304;
public function setFlags(int $flags): void;
public function getFlags(): int;
public function addFla... | php | MIT | a1c372949f0a19f2bd8eeeda673f2b044a27ba1f | 2026-01-05T04:16:39.243528Z | false |
queue-interop/amqp-interop | https://github.com/queue-interop/amqp-interop/blob/a1c372949f0a19f2bd8eeeda673f2b044a27ba1f/src/Impl/AmqpTopic.php | src/Impl/AmqpTopic.php | <?php
declare(strict_types=1);
namespace Interop\Amqp\Impl;
use Interop\Amqp\AmqpTopic as InteropAmqpTopic;
final class AmqpTopic implements InteropAmqpTopic
{
/**
* @var string
*/
private $name;
/**
* @var string
*/
private $type;
/**
* @var int
*/
private $fl... | php | MIT | a1c372949f0a19f2bd8eeeda673f2b044a27ba1f | 2026-01-05T04:16:39.243528Z | false |
queue-interop/amqp-interop | https://github.com/queue-interop/amqp-interop/blob/a1c372949f0a19f2bd8eeeda673f2b044a27ba1f/src/Impl/AmqpMessage.php | src/Impl/AmqpMessage.php | <?php
declare(strict_types=1);
namespace Interop\Amqp\Impl;
use Interop\Amqp\AmqpMessage as InteropAmqpMessage;
final class AmqpMessage implements InteropAmqpMessage
{
/**
* @var string
*/
private $body;
/**
* @var array
*/
private $properties;
/**
* @var array
*/
... | php | MIT | a1c372949f0a19f2bd8eeeda673f2b044a27ba1f | 2026-01-05T04:16:39.243528Z | false |
queue-interop/amqp-interop | https://github.com/queue-interop/amqp-interop/blob/a1c372949f0a19f2bd8eeeda673f2b044a27ba1f/src/Impl/AmqpBind.php | src/Impl/AmqpBind.php | <?php
declare(strict_types=1);
namespace Interop\Amqp\Impl;
use Interop\Amqp\AmqpBind as InteropAmqpBind;
use Interop\Amqp\AmqpDestination;
final class AmqpBind implements InteropAmqpBind
{
/**
* @var AmqpDestination
*/
private $target;
/**
* @var AmqpDestination
*/
private $sour... | php | MIT | a1c372949f0a19f2bd8eeeda673f2b044a27ba1f | 2026-01-05T04:16:39.243528Z | false |
queue-interop/amqp-interop | https://github.com/queue-interop/amqp-interop/blob/a1c372949f0a19f2bd8eeeda673f2b044a27ba1f/src/Impl/AmqpQueue.php | src/Impl/AmqpQueue.php | <?php
declare(strict_types=1);
namespace Interop\Amqp\Impl;
use Interop\Amqp\AmqpQueue as InteropAmqpQueue;
final class AmqpQueue implements InteropAmqpQueue
{
/**
* @var string
*/
private $name;
/**
* @var int
*/
private $flags;
/**
* @var array
*/
private $ar... | php | MIT | a1c372949f0a19f2bd8eeeda673f2b044a27ba1f | 2026-01-05T04:16:39.243528Z | false |
queue-interop/amqp-interop | https://github.com/queue-interop/amqp-interop/blob/a1c372949f0a19f2bd8eeeda673f2b044a27ba1f/tests/AmqpBindTest.php | tests/AmqpBindTest.php | <?php
namespace Interop\Amqp\Tests;
use Interop\Amqp\AmqpBind as InteropAmqpBind;
use Interop\Amqp\Impl\AmqpBind;
use Interop\Amqp\Impl\AmqpTopic;
use PHPUnit\Framework\TestCase;
class AmqpBindTest extends TestCase
{
public function testShouldImplementAmqpBindInterface()
{
$this->assertInstanceOf(Int... | php | MIT | a1c372949f0a19f2bd8eeeda673f2b044a27ba1f | 2026-01-05T04:16:39.243528Z | false |
queue-interop/amqp-interop | https://github.com/queue-interop/amqp-interop/blob/a1c372949f0a19f2bd8eeeda673f2b044a27ba1f/tests/AmqpMessageTest.php | tests/AmqpMessageTest.php | <?php
namespace Interop\Amqp\Tests;
use Interop\Amqp\AmqpMessage as InteropAmqpMessage;
use Interop\Amqp\Impl\AmqpMessage;
use Interop\Queue\Message;
use PHPUnit\Framework\TestCase;
class AmqpMessageTest extends TestCase
{
public function testShouldImplementMessageInterface()
{
$this->assertInstanceO... | php | MIT | a1c372949f0a19f2bd8eeeda673f2b044a27ba1f | 2026-01-05T04:16:39.243528Z | false |
queue-interop/amqp-interop | https://github.com/queue-interop/amqp-interop/blob/a1c372949f0a19f2bd8eeeda673f2b044a27ba1f/tests/AmqpTopicTest.php | tests/AmqpTopicTest.php | <?php
namespace Interop\Amqp\Tests;
use Interop\Amqp\AmqpTopic as InteropAmqpTopic;
use Interop\Amqp\Impl\AmqpTopic;
use Interop\Queue\Topic;
use PHPUnit\Framework\TestCase;
class AmqpTopicTest extends TestCase
{
public function testShouldImplementTopicInterface()
{
$this->assertInstanceOf(Topic::cla... | php | MIT | a1c372949f0a19f2bd8eeeda673f2b044a27ba1f | 2026-01-05T04:16:39.243528Z | false |
queue-interop/amqp-interop | https://github.com/queue-interop/amqp-interop/blob/a1c372949f0a19f2bd8eeeda673f2b044a27ba1f/tests/AmqpQueueTest.php | tests/AmqpQueueTest.php | <?php
namespace Interop\Amqp\Tests;
use Interop\Amqp\AmqpQueue as InteropAmqpQueue;
use Interop\Amqp\Impl\AmqpQueue;
use Interop\Queue\Queue;
use PHPUnit\Framework\TestCase;
class AmqpQueueTest extends TestCase
{
public function testShouldImplementQueueInterface()
{
$this->assertInstanceOf(Queue::cla... | php | MIT | a1c372949f0a19f2bd8eeeda673f2b044a27ba1f | 2026-01-05T04:16:39.243528Z | false |
PrinsFrank/php-geo-svg | https://github.com/PrinsFrank/php-geo-svg/blob/a87b69e32285c743b705b673942835c3a9ec410f/.php-cs-fixer.dist.php | .php-cs-fixer.dist.php | <?php
declare(strict_types=1);
return (new PhpCsFixer\Config())
->setRules([
'@PSR12' => true,
'declare_strict_types' => true,
'strict_param' => true,
'psr_autoloading' => true,
... | php | MIT | a87b69e32285c743b705b673942835c3a9ec410f | 2026-01-05T04:16:18.480021Z | false |
PrinsFrank/php-geo-svg | https://github.com/PrinsFrank/php-geo-svg/blob/a87b69e32285c743b705b673942835c3a9ec410f/src/GeoSVG.php | src/GeoSVG.php | <?php
declare(strict_types=1);
namespace PrinsFrank\PhpGeoSVG;
use PrinsFrank\PhpGeoSVG\Coordinator\Coordinator;
use PrinsFrank\PhpGeoSVG\Exception\PhpGeoSVGException;
use PrinsFrank\PhpGeoSVG\Geometry\BoundingBox\BoundingBox;
use PrinsFrank\PhpGeoSVG\Geometry\BoundingBox\BoundingBoxPosition;
use PrinsFrank\PhpGeoSV... | php | MIT | a87b69e32285c743b705b673942835c3a9ec410f | 2026-01-05T04:16:18.480021Z | false |
PrinsFrank/php-geo-svg | https://github.com/PrinsFrank/php-geo-svg/blob/a87b69e32285c743b705b673942835c3a9ec410f/src/Scale/Scale.php | src/Scale/Scale.php | <?php
declare(strict_types=1);
namespace PrinsFrank\PhpGeoSVG\Scale;
class Scale
{
private float $factorY;
public function __construct(private float $factorX, ?float $factorY = null)
{
if (null === $factorY) {
$factorY = $factorX;
}
$this->factorY = $factorY;
}
... | php | MIT | a87b69e32285c743b705b673942835c3a9ec410f | 2026-01-05T04:16:18.480021Z | false |
PrinsFrank/php-geo-svg | https://github.com/PrinsFrank/php-geo-svg/blob/a87b69e32285c743b705b673942835c3a9ec410f/src/Geometry/GeometryCollection.php | src/Geometry/GeometryCollection.php | <?php
declare(strict_types=1);
namespace PrinsFrank\PhpGeoSVG\Geometry;
use PrinsFrank\PhpGeoSVG\Geometry\GeometryObject\GeometryObject;
class GeometryCollection
{
/** @var GeometryObject[] */
protected array $geometryObjects = [];
public function addGeometryObject(GeometryObject $geometryObject): self... | php | MIT | a87b69e32285c743b705b673942835c3a9ec410f | 2026-01-05T04:16:18.480021Z | false |
PrinsFrank/php-geo-svg | https://github.com/PrinsFrank/php-geo-svg/blob/a87b69e32285c743b705b673942835c3a9ec410f/src/Geometry/GeometryCollectionFactory.php | src/Geometry/GeometryCollectionFactory.php | <?php
declare(strict_types=1);
namespace PrinsFrank\PhpGeoSVG\Geometry;
use JsonException;
use PrinsFrank\PhpGeoSVG\Exception\InvalidPositionException;
use PrinsFrank\PhpGeoSVG\Exception\NotImplementedException;
use PrinsFrank\PhpGeoSVG\Geometry\GeometryObject\GeometryObjectFactory;
class GeometryCollectionFactory
... | php | MIT | a87b69e32285c743b705b673942835c3a9ec410f | 2026-01-05T04:16:18.480021Z | false |
PrinsFrank/php-geo-svg | https://github.com/PrinsFrank/php-geo-svg/blob/a87b69e32285c743b705b673942835c3a9ec410f/src/Geometry/GeometryObject/LineString.php | src/Geometry/GeometryObject/LineString.php | <?php
declare(strict_types=1);
namespace PrinsFrank\PhpGeoSVG\Geometry\GeometryObject;
use PrinsFrank\PhpGeoSVG\Geometry\Position\Position;
class LineString extends GeometryObject
{
/** @var Position[] */
protected array $positions = [];
public function addPosition(Position $position): self
{
... | php | MIT | a87b69e32285c743b705b673942835c3a9ec410f | 2026-01-05T04:16:18.480021Z | false |
PrinsFrank/php-geo-svg | https://github.com/PrinsFrank/php-geo-svg/blob/a87b69e32285c743b705b673942835c3a9ec410f/src/Geometry/GeometryObject/MultiPolygon.php | src/Geometry/GeometryObject/MultiPolygon.php | <?php
declare(strict_types=1);
namespace PrinsFrank\PhpGeoSVG\Geometry\GeometryObject;
class MultiPolygon extends GeometryObject
{
/** @var Polygon[] */
protected array $polygons = [];
public function addPolygon(Polygon $polygon): self
{
$this->polygons[] = $polygon;
return $this;
... | php | MIT | a87b69e32285c743b705b673942835c3a9ec410f | 2026-01-05T04:16:18.480021Z | false |
PrinsFrank/php-geo-svg | https://github.com/PrinsFrank/php-geo-svg/blob/a87b69e32285c743b705b673942835c3a9ec410f/src/Geometry/GeometryObject/Polygon.php | src/Geometry/GeometryObject/Polygon.php | <?php
declare(strict_types=1);
namespace PrinsFrank\PhpGeoSVG\Geometry\GeometryObject;
class Polygon extends GeometryObject
{
/** @var LineString[] elements representing interior rings (or holes) */
protected array $interiorRings = [];
public function __construct(protected LineString $exteriorRing)
... | php | MIT | a87b69e32285c743b705b673942835c3a9ec410f | 2026-01-05T04:16:18.480021Z | false |
PrinsFrank/php-geo-svg | https://github.com/PrinsFrank/php-geo-svg/blob/a87b69e32285c743b705b673942835c3a9ec410f/src/Geometry/GeometryObject/MultiPoint.php | src/Geometry/GeometryObject/MultiPoint.php | <?php
declare(strict_types=1);
namespace PrinsFrank\PhpGeoSVG\Geometry\GeometryObject;
class MultiPoint extends GeometryObject
{
/** @var Point[] */
protected array $points = [];
public function addPoint(Point $point): self
{
$this->points[] = $point;
return $this;
}
/**
... | php | MIT | a87b69e32285c743b705b673942835c3a9ec410f | 2026-01-05T04:16:18.480021Z | false |
PrinsFrank/php-geo-svg | https://github.com/PrinsFrank/php-geo-svg/blob/a87b69e32285c743b705b673942835c3a9ec410f/src/Geometry/GeometryObject/GeometryObject.php | src/Geometry/GeometryObject/GeometryObject.php | <?php
declare(strict_types=1);
namespace PrinsFrank\PhpGeoSVG\Geometry\GeometryObject;
abstract class GeometryObject
{
protected ?string $title = null;
protected ?string $featureClass = null;
public function setTitle(?string $title): self
{
$this->title = $title;
return $this... | php | MIT | a87b69e32285c743b705b673942835c3a9ec410f | 2026-01-05T04:16:18.480021Z | false |
PrinsFrank/php-geo-svg | https://github.com/PrinsFrank/php-geo-svg/blob/a87b69e32285c743b705b673942835c3a9ec410f/src/Geometry/GeometryObject/GeometryObjectFactory.php | src/Geometry/GeometryObject/GeometryObjectFactory.php | <?php
declare(strict_types=1);
namespace PrinsFrank\PhpGeoSVG\Geometry\GeometryObject;
use PrinsFrank\PhpGeoSVG\Exception\InvalidPositionException;
use PrinsFrank\PhpGeoSVG\Exception\NotImplementedException;
use PrinsFrank\PhpGeoSVG\Geometry\Position\Position;
class GeometryObjectFactory
{
/**
* @throws No... | php | MIT | a87b69e32285c743b705b673942835c3a9ec410f | 2026-01-05T04:16:18.480021Z | false |
PrinsFrank/php-geo-svg | https://github.com/PrinsFrank/php-geo-svg/blob/a87b69e32285c743b705b673942835c3a9ec410f/src/Geometry/GeometryObject/Point.php | src/Geometry/GeometryObject/Point.php | <?php
declare(strict_types=1);
namespace PrinsFrank\PhpGeoSVG\Geometry\GeometryObject;
use PrinsFrank\PhpGeoSVG\Geometry\Position\Position;
class Point extends GeometryObject
{
public function __construct(protected Position $position)
{
}
public function getPosition(): Position
{
return... | php | MIT | a87b69e32285c743b705b673942835c3a9ec410f | 2026-01-05T04:16:18.480021Z | false |
PrinsFrank/php-geo-svg | https://github.com/PrinsFrank/php-geo-svg/blob/a87b69e32285c743b705b673942835c3a9ec410f/src/Geometry/GeometryObject/MultiLineString.php | src/Geometry/GeometryObject/MultiLineString.php | <?php
declare(strict_types=1);
namespace PrinsFrank\PhpGeoSVG\Geometry\GeometryObject;
class MultiLineString extends GeometryObject
{
/** @var LineString[] */
protected array $lineStrings = [];
public function addLineString(LineString $lineString): self
{
$this->lineStrings[] = $lineString;
... | php | MIT | a87b69e32285c743b705b673942835c3a9ec410f | 2026-01-05T04:16:18.480021Z | false |
PrinsFrank/php-geo-svg | https://github.com/PrinsFrank/php-geo-svg/blob/a87b69e32285c743b705b673942835c3a9ec410f/src/Geometry/Position/Position.php | src/Geometry/Position/Position.php | <?php
declare(strict_types=1);
namespace PrinsFrank\PhpGeoSVG\Geometry\Position;
use PrinsFrank\PhpGeoSVG\Exception\InvalidPositionException;
class Position
{
public const MIN_LONGITUDE = -180;
public const MAX_LONGITUDE = 180;
public const LONGITUDE_THRESHOLD = 1;
public const TOTAL_LON... | php | MIT | a87b69e32285c743b705b673942835c3a9ec410f | 2026-01-05T04:16:18.480021Z | false |
PrinsFrank/php-geo-svg | https://github.com/PrinsFrank/php-geo-svg/blob/a87b69e32285c743b705b673942835c3a9ec410f/src/Geometry/BoundingBox/BoundingBox.php | src/Geometry/BoundingBox/BoundingBox.php | <?php
declare(strict_types=1);
namespace PrinsFrank\PhpGeoSVG\Geometry\BoundingBox;
use PrinsFrank\PhpGeoSVG\Exception\InvalidBoundingBoxException;
use PrinsFrank\PhpGeoSVG\Geometry\Position\Position;
use PrinsFrank\PhpGeoSVG\Projection\Projection;
class BoundingBox
{
/**
* @throws InvalidBoundingBoxExcept... | php | MIT | a87b69e32285c743b705b673942835c3a9ec410f | 2026-01-05T04:16:18.480021Z | false |
PrinsFrank/php-geo-svg | https://github.com/PrinsFrank/php-geo-svg/blob/a87b69e32285c743b705b673942835c3a9ec410f/src/Geometry/BoundingBox/BoundingBoxPosition.php | src/Geometry/BoundingBox/BoundingBoxPosition.php | <?php
declare(strict_types=1);
namespace PrinsFrank\PhpGeoSVG\Geometry\BoundingBox;
use PrinsFrank\PhpGeoSVG\Exception\InvalidBoundingBoxPositionException;
/**
* When crossing the 180th meridian with a bounding box, the bounding box wraps resulting in otherwise invalid coordinates.
* This class purposefully doesn... | php | MIT | a87b69e32285c743b705b673942835c3a9ec410f | 2026-01-05T04:16:18.480021Z | false |
PrinsFrank/php-geo-svg | https://github.com/PrinsFrank/php-geo-svg/blob/a87b69e32285c743b705b673942835c3a9ec410f/src/Html/Elements/CircleElement.php | src/Html/Elements/CircleElement.php | <?php
declare(strict_types=1);
namespace PrinsFrank\PhpGeoSVG\Html\Elements;
use PrinsFrank\PhpGeoSVG\Html\Elements\Definition\ForeignElement;
class CircleElement extends Element implements ForeignElement
{
public function getTagName(): string
{
return 'circle';
}
}
| php | MIT | a87b69e32285c743b705b673942835c3a9ec410f | 2026-01-05T04:16:18.480021Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.