PHP Classes
elePHPant
Icontem

spiral: Modular Web application development framework

Recommend this page to a friend!
  Info   View files Documentation   View files View files (430)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-08-08 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 69 This week: 2All time: 8,898 This week: 348Up
Version License PHP version Categories
spiral 1.0.0The PHP License7Libraries, PHP 7
Description Author

This package is a modular Web application development framework.

It provides base classes for controllers, boot loaders, record entity, etc..

Name: Wolfy-J <contact>
Classes: 2 packages by
Country: Belarus Belarus
Age: 27
All time rank: 408412 in Belarus Belarus
Week rank: 244 Up3 in Belarus Belarus Up
Innovation award
Innovation award
Nominee: 1x

Details

Spiral, PSR7/PHP7 Framework

Latest Stable Version Total Downloads License Build Status Scrutinizer Code Quality Coverage Status

<img src="https://raw.githubusercontent.com/spiral/guide/master/resources/logo.png" height="170px" alt="Spiral Framework" align="left"/>

The Spiral framework provides open and modular Rapid Application Development (RAD) environment, database tools, code re-usability, extremely friendly IoC, IDE integration, PSR-\* standards, simple syntax and customizable scaffolding mechanisms.

<b>Skeleton App</b> | Guide | Twitter | Modules | CHANGELOG | Contributing | Forum

<br/><br/>

Examples:

class HomeController extends Controller
{
    /
     * IoC Container can automatically decide what database/cache/storage
     * instance to provide for every action parameter based on it's 
     * name or type.
     *
     * @param Database   $database
     * @param Database   $logs     Can be physical or virtual database
     * @param HttpConfig $config   
     * @return string
     */
    public function indexAction(Database $database, Database $logs, HttpConfig $config): string 
    {
        dump($config->basePath());
    
        $logs->table('log')->insertOne(['message' => 'Yo!']);
    
        return $this->views->render('welcome', [
            'users' => $database->table('users')->select()->where(['name' => 'John'])->fetchAll()
        ]);
    }
}

Bootloaders, Factory Methods:

class MyBootloader extends Bootloader
{
    const BINDINGS = [
        ParserInterface::class => DefaultParser::class,
        'someService'          => SomeService::class
    ];
    
    const SINGLETONS = [
        ReaderInterface::class => [self::class, 'makeReader'],
    ];
    
    protected function makeReader(ParserInterface $parser, Database $database): Reader
    {
        return new Reader($parser, $database->table('some'));
    }
}

Declarative/lazy singletons and services:

class SomeService implements SingletonInterface
{
    private $reader;
    
    public function __construct(ReaderInterface $reader)
    {
        $this->reader = $reader;
    }

    public function readValue(string $value): string
    {
        return $this->reader->read($value);
    }
}

JSON responses, method injections, IoC scopes, container shortcuts, IDE helpers:

public function indexAction(ServerRequestInterface $request, SomeService $service): array
{
    dump($service->readValue('abc'));
    
    //Shortcuts
    dump($this->someService === $service);
    
    return [
        'status' => 200,
        'uri'    => (string)$request->getUri()
    ];
}

Short Bindings

Spiral application(s) can be used as middleware/endpoint inside other PSR7 frameworks:

use Zend\Diactoros\Server;
use Zend\Expressive\Application;
use Zend\Stratigility\MiddlewarePipe;

$app = new Application();
$app->any('/spiral', SpiralApp::init(...)->http);

ORM with scaffolding/migrations for MySQL, PostgreSQL, SQLite, SQL Server:

class Post extends RecordEntity
{
    use TimestampsTrait;

    //Database partitions, isolation and aliasing
    const DATABASE = 'blog';

    const SCHEMA = [
        'id'     => 'bigPrimary',
        'title'  => 'string(64)',
        'status' => 'enum(published,draft)',
        'body'   => 'text',
        
        //Simple relation definitions
        'comments' => [self::HAS_MANY => Comment::class],
        
        //Not very simple relation definitions
        'collaborators' => [
            self::MANY_TO_MANY  => User::class,
            self::PIVOT_TABLE   => 'post_collaborators_map',
            self::PIVOT_COLUMNS => [
                'time_assigned' => 'datetime',
                'type'          => 'string, nullable',
            ],
            User::INVERSE       => 'collaborated_posts'
        ],
        
        //Pre-compiled relations
        'author'   => [
            self::BELONGS_TO   => AuthorInterface::class,
            self::LATE_BINDING => true
        ],
               
        //Hybrid databases
        'metadata' => [
            Document::ONE => Mongo\Metadata::class
        ]
    ];
}

$posts = $postSource->find()->distinct()
    ->with('comments', ['where' => ['{@}.approved' => true]]) //Automatic joins
    ->with('author')->where('author_name', 'LIKE', $authorName) //Fluent
    ->load('comments.author') //Cascade eager-loading (joins or external query)
    ->paginate(10) //Quick pagination using active request
    ->getIterator();

foreach ($posts as $post) {
    echo $post->author->getName();
}

$post = new Post();
$post->publish_at = 'tomorrow 8am';
$post->author = new User(['name' => 'Antony']);

$post->tags->link(new Tag(['name' => 'tag A']));
$post->tags->link($tags->findOne(['name' => 'tag B']));

$transaction = new Transaction();
$transaction->store($post);
$transaction->run();

//--or--: Active record (optional)
$post->save();

//--or--: request specific transaction
$this->transaction->store($post);

And much more: <b>Skeleton App</b> | Guide

Tests

$ composer install
$ vendor/bin/phpunit
  Files folder image Files  
File Role Description
Files folder imagesource (2 files, 2 directories)
Files folder imagetests (5 files, 17 directories)
Accessible without login Plain text file .coveralls.yml Data Auxiliary data
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  source  
File Role Description
Files folder imageSpiral (14 directories)
Files folder imageviews (2 directories)
  Plain text file functions.php Class Class source
  Accessible without login Plain text file server.php Aux. Auxiliary script

  Files folder image Files  /  source  /  Spiral  
File Role Description
Files folder imageCommands (1 file, 9 directories)
Files folder imageConsole (6 files, 4 directories)
Files folder imageCore (15 files, 6 directories)
Files folder imageDebug (4 files, 1 directory)
Files folder imageEncrypter (3 files, 2 directories)
Files folder imageHttp (8 files, 8 directories)
Files folder imageModels (3 directories)
Files folder imageModules (6 files, 1 directory)
Files folder imagePagination (1 file)
Files folder imageSession (5 files, 4 directories)
Files folder imageSupport (2 files)
Files folder imageTranslator (6 files, 4 directories)
Files folder imageValidation (5 files, 4 directories)
Files folder imageViews (12 files, 4 directories)

  Files folder image Files  /  source  /  Spiral  /  Commands  
File Role Description
Files folder imageConsole (1 file)
Files folder imageDatabase (2 files)
Files folder imageMigrations (5 files, 1 directory)
Files folder imageModules (2 files, 1 directory)
Files folder imageODM (1 file)
Files folder imageORM (1 file, 1 directory)
Files folder imageSpiral (7 files)
Files folder imageTranslator (3 files)
Files folder imageViews (2 files, 1 directory)
  Plain text file ServerCommand.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Commands  /  Console  
File Role Description
  Plain text file ReloadCommand.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Commands  /  Database  
File Role Description
  Plain text file DescribeCommand.php Class Class source
  Plain text file ListCommand.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Commands  /  Migrations  
File Role Description
Files folder imagePrototypes (1 file)
  Plain text file InitCommand.php Class Class source
  Plain text file MigrateCommand.php Class Class source
  Plain text file ReplayCommand.php Class Class source
  Plain text file RollbackCommand.php Class Class source
  Plain text file StatusCommand.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Commands  /  Migrations  /  Prototypes  
File Role Description
  Plain text file AbstractCommand.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Commands  /  Modules  
File Role Description
Files folder imageTraits (1 file)
  Plain text file PublishCommand.php Class Class source
  Plain text file RegisterCommand.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Commands  /  Modules  /  Traits  
File Role Description
  Plain text file ModuleTrait.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Commands  /  ODM  
File Role Description
  Plain text file SchemaCommand.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Commands  /  ORM  
File Role Description
Files folder imageHelpers (1 file)
  Plain text file SchemaCommand.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Commands  /  ORM  /  Helpers  
File Role Description
  Plain text file MigrationHelper.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Commands  /  Spiral  
File Role Description
  Plain text file BootloadsCommand.php Class Class source
  Plain text file CleanCommand.php Class Class source
  Plain text file ConfigureCommand.php Class Class source
  Plain text file ExtensionsCommand.php Class Class source
  Plain text file KeyCommand.php Class Class source
  Plain text file ReloadCommand.php Class Class source
  Plain text file UpdateCommand.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Commands  /  Translator  
File Role Description
  Plain text file DumpCommand.php Class Class source
  Plain text file IndexCommand.php Class Class source
  Plain text file ReloadCommand.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Commands  /  Views  
File Role Description
Files folder imageHelpers (1 file)
  Plain text file CompileCommand.php Class Class source
  Plain text file ResetCommand.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Commands  /  Views  /  Helpers  
File Role Description
  Plain text file ViewLocator.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Console  
File Role Description
Files folder imageConfigs (1 file)
Files folder imageExceptions (2 files)
Files folder imageLogging (1 file)
Files folder imageTraits (1 file)
  Plain text file Command.php Class Class source
  Plain text file CommandLocator.php Class Class source
  Plain text file CommandOutput.php Class Class source
  Plain text file ConsoleDispatcher.php Class Class source
  Plain text file LocatorInterface.php Class Class source
  Plain text file NullLocator.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Console  /  Configs  
File Role Description
  Plain text file ConsoleConfig.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Console  /  Exceptions  
File Role Description
  Plain text file CommandException.php Class Class source
  Plain text file ConsoleException.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Console  /  Logging  
File Role Description
  Plain text file DebugHandler.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Console  /  Traits  
File Role Description
  Plain text file HelpersTrait.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Core  
File Role Description
Files folder imageBootloaders (3 files)
Files folder imageContainers (1 file)
Files folder imageEnvironment (1 file)
Files folder imageExceptions (5 files)
Files folder imageHMVC (2 files)
Files folder imageTraits (2 files)
  Plain text file AbstractCore.php Class Class source
  Plain text file BootloadManager.php Class Class source
  Plain text file ConfigFactory.php Class Class source
  Plain text file ContainerInterface.php Class Class source
  Plain text file Controller.php Class Class source
  Plain text file Core.php Class Class source
  Plain text file DirectoriesInterface.php Class Class source
  Plain text file DispatcherInterface.php Class Class source
  Plain text file DotenvEnvironment.php Class Class source
  Plain text file Environment.php Class Class source
  Plain text file EnvironmentInterface.php Class Class source
  Plain text file Loader.php Class Class source
  Plain text file Memory.php Class Class source
  Plain text file ScoperInterface.php Class Class source
  Plain text file Service.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Core  /  Bootloaders  
File Role Description
  Plain text file Bootloader.php Class Class source
  Plain text file BootloaderInterface.php Class Class source
  Plain text file SpiralBindings.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Core  /  Containers  
File Role Description
  Plain text file SpiralContainer.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Core  /  Environment  
File Role Description
  Plain text file Parser.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Core  /  Exceptions  
File Role Description
  Plain text file ControllerException.php Class Class source
  Plain text file CoreException.php Class Class source
  Plain text file DirectoryException.php Class Class source
  Plain text file EnvironmentException.php Class Class source
  Plain text file FatalException.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Core  /  HMVC  
File Role Description
  Plain text file ControllerInterface.php Class Class source
  Plain text file CoreInterface.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Core  /  Traits  
File Role Description
  Plain text file AuthorizesTrait.php Class Class source
  Plain text file SharedTrait.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Debug  
File Role Description
Files folder imageConfigs (2 files)
  Plain text file LogManager.php Class Class source
  Plain text file QuickSnapshot.php Class Class source
  Plain text file Snapshot.php Class Class source
  Plain text file SnapshotInterface.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Debug  /  Configs  
File Role Description
  Plain text file LogsConfig.php Class Class source
  Plain text file SnapshotConfig.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Encrypter  
File Role Description
Files folder imageConfigs (1 file)
Files folder imageExceptions (3 files)
  Plain text file Encrypter.php Class Class source
  Plain text file EncrypterInterface.php Class Class source
  Plain text file EncrypterManager.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Encrypter  /  Configs  
File Role Description
  Plain text file EncrypterConfig.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Encrypter  /  Exceptions  
File Role Description
  Plain text file DecryptException.php Class Class source
  Plain text file EncrypterException.php Class Class source
  Plain text file EncryptException.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Http  
File Role Description
Files folder imageConfigs (1 file)
Files folder imageCookies (3 files)
Files folder imageExceptions (10 files, 1 directory)
Files folder imageMiddlewares (6 files)
Files folder imageRequest (4 files, 1 directory)
Files folder imageResponse (1 file)
Files folder imageRouting (6 files, 1 directory)
Files folder imageTraits (3 files)
  Plain text file ErrorWriter.php Class Class source
  Plain text file HttpCore.php Class Class source
  Plain text file HttpDispatcher.php Class Class source
  Plain text file HttpInterface.php Class Class source
  Plain text file MiddlewareInterface.php Class Class source
  Plain text file MiddlewarePipeline.php Class Class source
  Plain text file RESTfulCore.php Class Class source
  Plain text file Uri.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Http  /  Configs  
File Role Description
  Plain text file HttpConfig.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Http  /  Cookies  
File Role Description
  Plain text file Cookie.php Class Class source
  Plain text file CookieManager.php Class Class source
  Plain text file CookieQueue.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Http  /  Exceptions  
File Role Description
Files folder imageClientExceptions (5 files)
  Plain text file ClientException.php Class Class source
  Plain text file DotNotFoundException.php Class Class source
  Plain text file HttpException.php Class Class source
  Plain text file InputException.php Class Class source
  Plain text file MiddlewareException.php Class Class source
  Plain text file ResponseException.php Class Class source
  Plain text file RESTfulException.php Class Class source
  Plain text file RouteException.php Class Class source
  Plain text file RouterException.php Class Class source
  Plain text file UndefinedRouteException.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Http  /  Exceptions  /  ClientExceptions  
File Role Description
  Plain text file BadRequestException.php Class Class source
  Plain text file ForbiddenException.php Class Class source
  Plain text file NotFoundException.php Class Class source
  Plain text file ServerErrorException.php Class Class source
  Plain text file UnauthorizedException.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Http  /  Middlewares  
File Role Description
  Plain text file CsrfFirewall.php Class Class source
  Plain text file CsrfMiddleware.php Class Class source
  Plain text file ExceptionWrapper.php Class Class source
  Plain text file JsonParser.php Class Class source
  Plain text file StrictCsrfFirewall.php Class Class source
  Plain text file TransactionMiddleware.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Http  /  Request  
File Role Description
Files folder imageBags (4 files)
  Plain text file InputInterface.php Class Class source
  Plain text file InputManager.php Class Class source
  Plain text file InputMapper.php Class Class source
  Plain text file RequestFilter.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Http  /  Request  /  Bags  
File Role Description
  Plain text file FilesBag.php Class Class source
  Plain text file HeadersBag.php Class Class source
  Plain text file InputBag.php Class Class source
  Plain text file ServerBag.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Http  /  Response  
File Role Description
  Plain text file ResponseWrapper.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Http  /  Routing  
File Role Description
Files folder imageTraits (1 file)
  Plain text file AbstractRoute.php Class Class source
  Plain text file ControllersRoute.php Class Class source
  Plain text file Route.php Class Class source
  Plain text file RouteInterface.php Class Class source
  Plain text file Router.php Class Class source
  Plain text file RouterInterface.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Http  /  Routing  /  Traits  
File Role Description
  Plain text file CoreTrait.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Http  /  Traits  
File Role Description
  Plain text file JsonTrait.php Class Class source
  Plain text file MiddlewaresTrait.php Class Class source
  Plain text file RouterTrait.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Models  
File Role Description
Files folder imageAccessors (3 files)
Files folder imageExceptions (1 file)
Files folder imageTraits (1 file)

  Files folder image Files  /  source  /  Spiral  /  Models  /  Accessors  
File Role Description
  Plain text file AbstractTimestamp.php Class Class source
  Plain text file SqlTimestamp.php Class Class source
  Plain text file UTCMongoTimestamp.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Models  /  Exceptions  
File Role Description
  Plain text file AccessorException.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Models  /  Traits  
File Role Description
  Plain text file TimestampsTrait.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Modules  
File Role Description
Files folder imageExceptions (4 files)
  Plain text file ConfigInjector.php Class Class source
  Plain text file ModuleInterface.php Class Class source
  Plain text file Publisher.php Class Class source
  Plain text file PublisherInterface.php Class Class source
  Plain text file Registrator.php Class Class source
  Plain text file RegistratorInterface.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Modules  /  Exceptions  
File Role Description
  Plain text file InjectorException.php Class Class source
  Plain text file ModuleException.php Class Class source
  Plain text file PublishException.php Class Class source
  Plain text file RegistratorException.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Pagination  
File Role Description
  Plain text file PaginationFactory.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Session  
File Role Description
Files folder imageConfigs (1 file)
Files folder imageExceptions (2 files)
Files folder imageHandlers (2 files)
Files folder imageHttp (1 file)
  Plain text file SectionInterface.php Class Class source
  Plain text file Session.php Class Class source
  Plain text file SessionFactory.php Class Class source
  Plain text file SessionInterface.php Class Class source
  Plain text file SessionSection.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Session  /  Configs  
File Role Description
  Plain text file SessionConfig.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Session  /  Exceptions  
File Role Description
  Plain text file MultipleSessionException.php Class Class source
  Plain text file SessionException.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Session  /  Handlers  
File Role Description
  Plain text file FileHandler.php Class Class source
  Plain text file NullHandler.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Session  /  Http  
File Role Description
  Plain text file SessionStarter.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Support  
File Role Description
  Plain text file ExceptionHelper.php Class Class source
  Plain text file Strings.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Translator  
File Role Description
Files folder imageConfigs (1 file)
Files folder imageExceptions (5 files)
Files folder imageLoaders (1 file)
Files folder imageTraits (1 file)
  Plain text file Catalogue.php Class Class source
  Plain text file Indexer.php Class Class source
  Plain text file LocatorInterface.php Class Class source
  Plain text file TranslationLocator.php Class Class source
  Plain text file Translator.php Class Class source
  Plain text file TranslatorInterface.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Translator  /  Configs  
File Role Description
  Plain text file TranslatorConfig.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Translator  /  Exceptions  
File Role Description
  Plain text file CatalogueException.php Class Class source
  Plain text file LocaleException.php Class Class source
  Plain text file PluralizationException.php Class Class source
  Plain text file SourceException.php Class Class source
  Plain text file TranslatorException.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Translator  /  Loaders  
File Role Description
  Plain text file PhpFileLoader.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Translator  /  Traits  
File Role Description
  Plain text file TranslatorTrait.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Validation  
File Role Description
Files folder imageCheckers (8 files, 1 directory)
Files folder imageConfigs (1 file)
Files folder imageExceptions (2 files)
Files folder imagePrototypes (2 files)
  Plain text file CheckerConditionInterface.php Class Class source
  Plain text file CheckerInterface.php Class Class source
  Plain text file ValidatesEntity.php Class Class source
  Plain text file Validator.php Class Class source
  Plain text file ValidatorInterface.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Validation  /  Checkers  
File Role Description
Files folder imageTraits (2 files)
  Plain text file AddressChecker.php Class Class source
  Plain text file FileChecker.php Class Class source
  Plain text file ImageChecker.php Class Class source
  Plain text file MixedChecker.php Class Class source
  Plain text file NumberChecker.php Class Class source
  Plain text file RequiredChecker.php Class Class source
  Plain text file StringChecker.php Class Class source
  Plain text file TypeChecker.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Validation  /  Checkers  /  Traits  
File Role Description
  Plain text file FileTrait.php Class Class source
  Plain text file NotEmptyTrait.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Validation  /  Configs  
File Role Description
  Plain text file ValidatorConfig.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Validation  /  Exceptions  
File Role Description
  Plain text file CheckerException.php Class Class source
  Plain text file ValidationException.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Validation  /  Prototypes  
File Role Description
  Plain text file AbstractChecker.php Class Class source
  Plain text file AbstractCheckerCondition.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Views  
File Role Description
Files folder imageConfigs (1 file)
Files folder imageEngines (3 files, 5 directories)
Files folder imageExceptions (5 files)
Files folder imageProcessors (5 files)
  Plain text file AbstractViewCache.php Class Class source
  Plain text file DynamicEnvironment.php Class Class source
  Plain text file EngineInterface.php Class Class source
  Plain text file EnvironmentInterface.php Class Class source
  Plain text file LoaderInterface.php Class Class source
  Plain text file ProcessorInterface.php Class Class source
  Plain text file ViewCacheLocator.php Class Class source
  Plain text file ViewInterface.php Class Class source
  Plain text file ViewLoader.php Class Class source
  Plain text file ViewManager.php Class Class source
  Plain text file ViewsInterface.php Class Class source
  Plain text file ViewSource.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Views  /  Configs  
File Role Description
  Plain text file ViewsConfig.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Views  /  Engines  
File Role Description
Files folder imageNative (1 file)
Files folder imagePrototypes (1 file)
Files folder imageStempler (3 files)
Files folder imageTraits (1 file)
Files folder imageTwig (3 files, 2 directories)
  Plain text file NativeEngine.php Class Class source
  Plain text file StemplerEngine.php Class Class source
  Plain text file TwigEngine.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Views  /  Engines  /  Native  
File Role Description
  Plain text file NativeView.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Views  /  Engines  /  Prototypes  
File Role Description
  Plain text file AbstractEngine.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Views  /  Engines  /  Stempler  
File Role Description
  Plain text file LoaderBridge.php Class Class source
  Plain text file StemplerCache.php Class Class source
  Plain text file StemplerView.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Views  /  Engines  /  Traits  
File Role Description
  Plain text file ProcessorsTrait.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Views  /  Engines  /  Twig  
File Role Description
Files folder imageExceptions (1 file)
Files folder imageExtensions (1 file)
  Plain text file LoaderBridge.php Class Class source
  Plain text file TwigCache.php Class Class source
  Plain text file TwigView.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Views  /  Engines  /  Twig  /  Exceptions  
File Role Description
  Plain text file CompileException.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Views  /  Engines  /  Twig  /  Extensions  
File Role Description
  Plain text file SpiralExtension.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Views  /  Exceptions  
File Role Description
  Plain text file CompileException.php Class Class source
  Plain text file EnvironmentException.php Class Class source
  Plain text file LoaderException.php Class Class source
  Plain text file RenderException.php Class Class source
  Plain text file ViewsException.php Class Class source

  Files folder image Files  /  source  /  Spiral  /  Views  /  Processors  
File Role Description
  Plain text file EnvironmentProcessor.php Class Class source
  Plain text file EvaluateProcessor.php Class Class source
  Plain text file ExpressionsProcessors.php Class Class source
  Plain text file PrettifyProcessor.php Class Class source
  Plain text file TranslateProcessor.php Class Class source

  Files folder image Files  /  source  /  views  
File Role Description
Files folder imageexceptions (2 directories)
Files folder imagehttp (4 files, 1 directory)

  Files folder image Files  /  source  /  views  /  exceptions  
File Role Description
Files folder imagedark (3 files)
Files folder imagelight (3 files)

  Files folder image Files  /  source  /  views  /  exceptions  /  dark  
File Role Description
  Accessible without login Plain text file fast.php Example Example script
  Accessible without login Plain text file slow.php Example Example script
  Accessible without login Plain text file style.php Aux. Auxiliary script

  Files folder image Files  /  source  /  views  /  exceptions  /  light  
File Role Description
  Accessible without login Plain text file fast.php Example Example script
  Accessible without login Plain text file slow.php Example Example script
  Accessible without login Plain text file style.php Aux. Auxiliary script

  Files folder image Files  /  source  /  views  /  http  
File Role Description
Files folder imagelayouts (1 file)
  Accessible without login Plain text file 400.dark.php Aux. Auxiliary script
  Accessible without login Plain text file 403.dark.php Aux. Auxiliary script
  Accessible without login Plain text file 404.dark.php Example Example script
  Accessible without login Plain text file 500.dark.php Aux. Auxiliary script

  Files folder image Files  /  source  /  views  /  http  /  layouts  
File Role Description
  Accessible without login Plain text file error.dark.php Aux. Auxiliary script

  Files folder image Files  /  tests  
File Role Description
Files folder image-app- (1 file, 6 directories)
Files folder imageCommands (7 directories)
Files folder imageConsole (4 files, 1 directory)
Files folder imageControllers (1 file)
Files folder imageCore (14 files, 1 directory)
Files folder imageDatabase (1 file)
Files folder imageDebug (2 files)
Files folder imageEncrypter (3 files)
Files folder imageHttp (23 files, 2 directories)
Files folder imageModels (2 files)
Files folder imageModules (2 files)
Files folder imagePagination (1 file)
Files folder imageSession (4 files)
Files folder imageSupport (2 files)
Files folder imageTranslator (6 files, 1 directory)
Files folder imageValidation (2 files, 3 directories)
Files folder imageViews (7 files)
  Plain text file BaseTest.php Class Class source
  Accessible without login Plain text file bootstrap.php Aux. Auxiliary script
  Accessible without login Plain text file php-travis.ini Data Auxiliary data
  Accessible without login Plain text file README.md Doc. Documentation
  Plain text file TestApplication.php Class Class source

  Files folder image Files  /  tests  /  -app-  
File Role Description
Files folder imagealternative (3 files)
Files folder imageclasses (4 files, 2 directories)
Files folder imageconfig (15 files, 1 directory)
Files folder imagefixtures (1 file)
Files folder imageresources (1 directory)
Files folder imageviews (10 files, 2 directories)
  Accessible without login Plain text file .env Data Auxiliary data

  Files folder image Files  /  tests  /  -app-  /  alternative  
File Role Description
  Accessible without login Plain text file home.dark.php Aux. Auxiliary script
  Accessible without login Plain text file isolated.twig Data Auxiliary data
  Accessible without login Plain text file native.php Aux. Auxiliary script

  Files folder image Files  /  tests  /  -app-  /  classes  
File Role Description
Files folder imageControllers (2 files)
Files folder imageDatabase (2 files)
  Plain text file EmptyModule.php Class Class source
  Plain text file InvalidModule.php Class Class source
  Plain text file ProfilerModule.php Class Class source
  Plain text file TestModule.php Class Class source

  Files folder image Files  /  tests  /  -app-  /  classes  /  Controllers  
File Role Description
  Plain text file DummyController.php Class Class source
  Plain text file MagicController.php Class Class source

  Files folder image Files  /  tests  /  -app-  /  classes  /  Database  
File Role Description
  Plain text file SampleDocument.php Class Class source
  Plain text file SampleRecord.php Class Class source

  Files folder image Files  /  tests  /  -app-  /  config  
File Role Description
Files folder imageschemas (3 files)
  Accessible without login Plain text file app.php Aux. Auxiliary script
  Accessible without login Plain text file broken.php Aux. Auxiliary script
  Accessible without login Plain text file console.php Aux. Auxiliary script
  Plain text file databases.php Class Class source
  Accessible without login Plain text file encrypter.php Aux. Auxiliary script
  Plain text file http.php Class Class source
  Accessible without login Plain text file migrations.php Aux. Auxiliary script
  Accessible without login Plain text file mongo.php Aux. Auxiliary script
  Plain text file monolog.php Class Class source
  Plain text file session.php Class Class source
  Accessible without login Plain text file snapshots.php Aux. Auxiliary script
  Accessible without login Plain text file tokenizer.php Aux. Auxiliary script
  Plain text file translator.php Class Class source
  Plain text file validation.php Class Class source
  Plain text file views.php Class Class source

  Files folder image Files  /  tests  /  -app-  /  config  /  schemas  
File Role Description
  Plain text file documents.php Class Class source
  Plain text file records.php Class Class source
  Plain text file relations.php Class Class source

  Files folder image Files  /  tests  /  -app-  /  fixtures  
File Role Description
  Accessible without login Plain text file hello.world Data Auxiliary data

  Files folder image Files  /  tests  /  -app-  /  resources  
File Role Description
Files folder imagelocales (1 directory)

  Files folder image Files  /  tests  /  -app-  /  resources  /  locales  
File Role Description
Files folder imageen (1 file)

  Files folder image Files  /  tests  /  -app-  /  resources  /  locales  /  en  
File Role Description
  Accessible without login Plain text file .empty Data Auxiliary data

  Files folder image Files  /  tests  /  -app-  /  views  
File Role Description
Files folder imagelayouts (1 file)
Files folder imagepartials (3 files)
  Accessible without login Plain text file hello.twig Data Auxiliary data
  Accessible without login Plain text file home.dark.php Aux. Auxiliary script
  Accessible without login Plain text file invalid.twig Data Auxiliary data
  Accessible without login Plain text file isolated-x.twig Data Auxiliary data
  Accessible without login Plain text file isolated-y.twig Data Auxiliary data
  Accessible without login Plain text file isolated.twig Data Auxiliary data
  Accessible without login Plain text file native.php Aux. Auxiliary script
  Accessible without login Plain text file run.dark.php Aux. Auxiliary script
  Accessible without login Plain text file sample.twig Data Auxiliary data
  Accessible without login Plain text file valued.twig Data Auxiliary data

  Files folder image Files  /  tests  /  -app-  /  views  /  layouts  
File Role Description
  Accessible without login Plain text file layout.twig Data Auxiliary data

  Files folder image Files  /  tests  /  -app-  /  views  /  partials  
File Role Description
  Accessible without login Plain text file element.dark.php Aux. Auxiliary script
  Accessible without login Plain text file input.dark.php Example Example script
  Accessible without login Plain text file links.twig Data Auxiliary data

  Files folder image Files  /  tests  /  Commands  
File Role Description
Files folder imageDatabase (2 files)
Files folder imageMigrations (1 file)
Files folder imageModules (2 files)
Files folder imageODM (1 file)
Files folder imageORM (1 file)
Files folder imageSpiral (5 files)
Files folder imageTranslator (1 file)

  Files folder image Files  /  tests  /  Commands  /  Database  
File Role Description
  Plain text file DescribeCommandTest.php Class Class source
  Plain text file ListCommandTest.php Class Class source

  Files folder image Files  /  tests  /  Commands  /  Migrations  
File Role Description
  Plain text file SchemaBasedTest.php Class Class source

  Files folder image Files  /  tests  /  Commands  /  Modules  
File Role Description
  Plain text file PublishCommandTest.php Class Class source
  Plain text file RegisterCommandTest.php Class Class source

  Files folder image Files  /  tests  /  Commands  /  ODM  
File Role Description
  Plain text file SchemaCommandTest.php Class Class source

  Files folder image Files  /  tests  /  Commands  /  ORM  
File Role Description
  Plain text file SchemaCommandTest.php Class Class source

  Files folder image Files  /  tests  /  Commands  /  Spiral  
File Role Description
  Plain text file BootloadsCommandTest.php Class Class source
  Plain text file CleanCommandTest.php Class Class source
  Plain text file ConfigureCommandTest.php Class Class source
  Plain text file ExtensionsCommandTest.php Class Class source
  Plain text file KeyCommandTest.php Class Class source

  Files folder image Files  /  tests  /  Commands  /  Translator  
File Role Description
  Plain text file IndexationTest.php Class Class source

  Files folder image Files  /  tests  /  Console  
File Role Description
Files folder imageFixtures (1 file)
  Plain text file ConfigTest.php Class Class source
  Plain text file DispatcherTest.php Class Class source
  Plain text file NullLocatorTest.php Class Class source
  Plain text file VerbosityTest.php Class Class source

  Files folder image Files  /  tests  /  Console  /  Fixtures  
File Role Description
  Plain text file EmptyCommand.php Class Class source

  Files folder image Files  /  tests  /  Controllers  
File Role Description
  Plain text file AuthorizesController.php Class Class source

  Files folder image Files  /  tests  /  Core  
File Role Description
Files folder imageFixtures (8 files)
  Plain text file AuthorizesTraitTest.php Class Class source
  Plain text file BootloadersTest.php Class Class source
  Plain text file ConfigsTest.php Class Class source
  Plain text file ControllersTest.php Class Class source
  Plain text file CoreTest.php Class Class source
  Plain text file DirectoriesTest.php Class Class source
  Plain text file EnvironmentTest.php Class Class source
  Plain text file ErrorHandlingTest.php Class Class source
  Plain text file LoaderTest.php Class Class source
  Plain text file MemoryTest.php Class Class source
  Plain text file RouteScopeTest.php Class Class source
  Plain text file ScopingTest.php Class Class source
  Plain text file ServicesTest.php Class Class source
  Plain text file TimezonesTest.php Class Class source

  Files folder image Files  /  tests  /  Core  /  Fixtures  
File Role Description
  Accessible without login Plain text file .env Data Auxiliary data
  Plain text file IsolatedBClass.php Class Class source
  Plain text file IsolatedCClass.php Class Class source
  Plain text file IsolatedClass.php Class Class source
  Plain text file SampleBoot.php Class Class source
  Plain text file SampleClass.php Class Class source
  Plain text file SampleInterface.php Class Class source
  Plain text file SharedComponent.php Class Class source

  Files folder image Files  /  tests  /  Database  
File Role Description
  Plain text file SessionsTest.php Class Class source

  Files folder image Files  /  tests  /  Debug  
File Role Description
  Plain text file QuickSnapshotTest.php Class Class source
  Plain text file SnapshotTest.php Class Class source

  Files folder image Files  /  tests  /  Encrypter  
File Role Description
  Plain text file ComponentTest.php Class Class source
  Plain text file ConfigTest.php Class Class source
  Plain text file EncrypterTest.php Class Class source

  Files folder image Files  /  tests  /  Http  
File Role Description
Files folder imageFixtures (6 files)
Files folder imageRequestFilters (3 files)
  Plain text file BasePathTest.php Class Class source
  Plain text file ClientExceptionsTest.php Class Class source
  Plain text file ControllerRouteTest.php Class Class source
  Plain text file CookieManagerTest.php Class Class source
  Plain text file CookieTest.php Class Class source
  Plain text file CsrfMiddlewareTest.php Class Class source
  Plain text file FilesBagTest.php Class Class source
  Plain text file HeaderBagTest.php Class Class source
  Plain text file HttpCoreTest.php Class Class source
  Plain text file HttpDispatcherTest.php Class Class source
  Plain text file HttpTest.php Class Class source
  Plain text file InputManagerTest.php Class Class source
  Plain text file JsonParserTest.php Class Class source
  Plain text file MatchesTest.php Class Class source
  Plain text file PipelineTest.php Class Class source
  Plain text file ResponseWrapperTest.php Class Class source
  Plain text file RESTfulCoreTest.php Class Class source
  Plain text file RouterTest.php Class Class source
  Plain text file RouteTest.php Class Class source
  Plain text file ServerBagTest.php Class Class source
  Plain text file SpiralMiddlewareTest.php Class Class source
  Plain text file UriGenerationTest.php Class Class source
  Plain text file UriTest.php Class Class source

  Files folder image Files  /  tests  /  Http  /  Fixtures  
File Role Description
  Plain text file AddressRequest.php Class Class source
  Plain text file BadPathRequest.php Class Class source
  Plain text file DemoRequest.php Class Class source
  Plain text file EmptyRequest.php Class Class source
  Plain text file SimpleRequest.php Class Class source
  Plain text file UploadRequest.php Class Class source

  Files folder image Files  /  tests  /  Http  /  RequestFilters  
File Role Description
  Plain text file BadConfigurationTest.php Class Class source
  Plain text file DemoRequestTest.php Class Class source
  Plain text file ScopingTest.php Class Class source

  Files folder image Files  /  tests  /  Models  
File Role Description
  Plain text file SqlTimestampsTest.php Class Class source
  Plain text file UTCTimestampsTest.php Class Class source

  Files folder image Files  /  tests  /  Modules  
File Role Description
  Plain text file ConfigInjectorTest.php Class Class source
  Plain text file PublisherTest.php Class Class source

  Files folder image Files  /  tests  /  Pagination  
File Role Description
  Plain text file PaginationFactoryTest.php Class Class source

  Files folder image Files  /  tests  /  Session  
File Role Description
  Plain text file FactoryTest.php Class Class source
  Plain text file NullHandlerTest.php Class Class source
  Plain text file SessionMiddlewareTest.php Class Class source
  Plain text file SignaturesTest.php Class Class source

  Files folder image Files  /  tests  /  Support  
File Role Description
  Plain text file ExceptionHelperTest.php Class Class source
  Plain text file StringsTest.php Class Class source

  Files folder image Files  /  tests  /  Translator  
File Role Description
Files folder imagefixtures (1 file, 1 directory)
  Plain text file CatalogueTest.php Class Class source
  Plain text file ConfigTest.php Class Class source
  Plain text file LocatorTest.php Class Class source
  Plain text file PHPLoaderTest.php Class Class source
  Plain text file TraitTest.php Class Class source
  Plain text file TranslatorTest.php Class Class source

  Files folder image Files  /  tests  /  Translator  /  fixtures  
File Role Description
Files folder imagelocales (2 directories)
  Accessible without login Plain text file ru.php Aux. Auxiliary script

  Files folder image Files  /  tests  /  Translator  /  fixtures  /  locales  
File Role Description
Files folder imageen (1 file)
Files folder imageru (2 files)

  Files folder image Files  /  tests  /  Translator  /  fixtures  /  locales  /  en  
File Role Description
  Accessible without login Plain text file .empty Data Auxiliary data

  Files folder image Files  /  tests  /  Translator  /  fixtures  /  locales  /  ru  
File Role Description
  Accessible without login Plain text file messages.ru.php Aux. Auxiliary script
  Accessible without login Plain text file views.ru.po Data Auxiliary data

  Files folder image Files  /  tests  /  Validation  
File Role Description
Files folder imageCheckers (8 files, 1 directory)
Files folder imageConditions (1 file)
Files folder imageFixtures (3 files)
  Plain text file ValidatesEntityTest.php Class Class source
  Plain text file ValidatorTest.php Class Class source

  Files folder image Files  /  tests  /  Validation  /  Checkers  
File Role Description
Files folder imagefixtures (4 files)
  Plain text file AddressCheckerTest.php Class Class source
  Plain text file FileCheckerTest.php Class Class source
  Plain text file ImageCheckerTest.php Class Class source
  Plain text file MixedCheckerTest.php Class Class source
  Plain text file NumberCheckerTest.php Class Class source
  Plain text file RequiredCheckerTest.php Class Class source
  Plain text file StringCheckerTest.php Class Class source
  Plain text file TypeCheckerTest.php Class Class source

  Files folder image Files  /  tests  /  Validation  /  Checkers  /  fixtures  
File Role Description
  Accessible without login Plain text file hack.jpg Data Auxiliary data
  Accessible without login Image file sample-1.jpg Icon Icon image
  Accessible without login Image file sample-2.png Icon Icon image
  Accessible without login Image file sample-3.gif Icon Icon image

  Files folder image Files  /  tests  /  Validation  /  Conditions  
File Role Description
  Plain text file IsLoadedConditionTest.php Class Class source

  Files folder image Files  /  tests  /  Validation  /  Fixtures  
File Role Description
  Plain text file IsLoadedCondition.php Class Class source
  Plain text file NestedEntity.php Class Class source
  Plain text file SampleEntity.php Class Class source

  Files folder image Files  /  tests  /  Views  
File Role Description
  Plain text file EnvironmentTest.php Class Class source
  Plain text file EvaluatorTest.php Class Class source
  Plain text file LoaderTest.php Class Class source
  Plain text file ManagerTest.php Class Class source
  Plain text file NativeTest.php Class Class source
  Plain text file StemplerTest.php Class Class source
  Plain text file TwigTest.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:69
This week:2
All time:8,898
This week:348Up