Download the PHP package subtext/app-engine without Composer
On this page you can find all versions of the php package subtext/app-engine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download subtext/app-engine
More information about subtext/app-engine
Files in subtext/app-engine
Package app-engine
Short Description Common code for bootstrapping a PHP web application
License MIT
Informations about the package app-engine
Subtext App Engine
A tiny framework for building PHP based web applications.
Installation
Provisioning
Create a directory named "config" in the root project directory. Copy the example.php and routes files from the config directory in the app-engine to the newly created config. The example.php file contains a sample PHP-DI container configuration. Edit this file to suit your needs. The example file uses the Twig template system. In order to use this, you would need to the Twig libraries with Composer. For more information see https://php-di.org/doc/
Edit the routes.php file to add a controller for any URL you want to create in your web application. The most basic addition is to add a controller for the home page of the application, like so:
You would then simply need to create the HomeController class extending from the Subtext\Base\Controller class. Add models and views as necessary to create any dependencies for your controllers as they will be the primary means of manipulating the application. For more information on configuring routes see: https://symfony.com/doc/4.3/components/routing.html
All versions of app-engine with dependencies
symfony/http-foundation Version ^5.0
symfony/config Version ^5.0
php-di/php-di Version ^6.0
symfony/routing Version ^5.0
monolog/monolog Version ^2.2
psr/log Version ^1.1
ext-pdo Version *