tobento/app-skeleton

PHP application skeleton.

1.0.1 2022-02-16 18:11 UTC

This package is auto-updated.

Last update: 2022-10-02 17:50:13 UTC


README

Use this app skeleton to quickly setup and start working on a new App project.

Table of Contents

Getting Started

Add the latest version of the app skeleton running this command.

composer create-project tobento/app-skeleton [my-app-name]

Requirements

  • PHP 8.0 or greater

Documentation

App

Check out the App to learn more about the app in general.

Directory Structure

The directories are set on the app.php file. You can freely change them as you prefer.

app/app.php

Check out the App Directories to learn more about directories in general.

Config

Some App Bundles have config file, which will be located as default at:

app/config/

Src

Some App Bundles have will install php files for customization at:

app/src/

Or you might put your own files there.

Register Boots

You may register boots on two places.

On the app.php config file

app/config/app.php
return [
    
    /*
    |--------------------------------------------------------------------------
    | Application Boots
    |--------------------------------------------------------------------------
    |
    | The application boots.
    |
    */
        
    'boots' => [
        \Tobento\App\Boot\ErrorHandling::class,
        
        // add more boots.
        AnyBoot::class,
    ],
    
];

On the app.php file

app/app.php
// Boot the app -----------------------------------------------------------
$app->boot(\Tobento\App\Boot\App::class);

// Add more boots here
$app->boot(AnyBoot::class);

App Bundles

Coming soon

  • Database - Database support.
  • Debugbar - Debug routes, middlewares and much more.
  • Http - Http, routing, middleware and session support.
  • Migration - Migration support.
  • Localization - Languages and translation support.
  • Resource - Resources support.
  • Shop - An online e-commerce store.
  • Storage - Storages support.
  • View - Views rendering support.

Credits