Download the PHP package tobento/apps without Composer
On this page you can find all versions of the php package tobento/apps. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package apps
Short Description Multiple apps support. Each app will run in its own application.
License MIT
Homepage https://www.tobento.ch
Informations about the package apps
Apps
Multiple apps support. Each app will run in its own application.
Table of Contents
- Getting Started
- Requirements
- Documentation
- App
- Creating A New App
- Booting Apps
- Apps Config
- Directory Structure
- Sharing Configurations
- Accessing Apps
- Console
- Apps List Command
- Apps Command
- Apps Create Console Command
- Testing
- Credits
Getting Started
Add the latest version of the apps project running this command.
Requirements
- PHP 8.0 or greater
Documentation
App
Check out the App Skeleton if you are using the skeleton.
You may also check out the App to learn more about the app in general.
Creating A New App
To create a new app, simply extend the and define the constants as you need it.
Allow Sub Apps
If your app supports sub apps, set the property to .
Booting Apps
After creating your apps, you will need to boot your apps:
Example Using Apps Within A Boot
Next, boot your boot:
Apps Config
The configuration for the apps is located in the file at the default App Skeleton config location.
Directory Structure
The directory structure will be like:
Sharing Configurations
You may share configurations between apps using the or directory to point to the same directory:
In each app :
And within your app:
Accessing Apps
You may access apps from within another app by using the to retrieve the desired app.
Sub Apps
When accessing a sup app, you will need to boot the parent app first, otherwise the sub app will not be found!
Console
The following commands should be run only on the root app console.
Apps List Command
The command provides an overview of all the apps:
Apps Command
With the command you can run any command within each apps.
Runs command on all apps:
Runs command on the frontend and backend app only:
Apps Create Console Command
You may create for each app a console using the command.
Once created, the console is available at each app directory:
Testing
When using the App Testing bundle, you need to return the specific app you want to test on the method:
Using The Tmp App
Example using a sub app:
Credits
- Tobias Strub
- All Contributors
All versions of apps with dependencies
tobento/app Version ^1.0.7
tobento/app-migration Version ^1.0
tobento/app-http Version ^1.0
tobento/app-console Version ^1.0