Download the PHP package tobento/app without Composer

On this page you can find all versions of the php package tobento/app. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package app

App

Base application for creating any PHP project.\ You might get started with the App Skeleton where you will find a list of available app bundles.

Table of Contents

Getting Started

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

Requirements

Documentation

App Lifecycle

First, create the app from the provided app factory.\ Next, register any boot you want within your app.\ Finally, run your app.

App Factory

Parameters explanation

Parameter Description
resolverFactory If no resolver factory is set, it uses the Resolver Container.
booter If no booter is set, it uses the Default Booter.
dirs If no dirs is set, it uses the Default Dirs.

App Resolving

PSR-11

Autowiring

The app resolves any dependencies by autowiring, except build-in parameters needs a definition to be resolved.

On union types parameter, the first resolvable parameter gets used if not set by definiton.

Definitions

Check out the Resolver Definitions to learn more about definitions in general.

Make

Check out Resolver Make to learn more about it.

Call

Check out Resolver Call to learn more about it.

On

Check out Resolver On to learn more about it.

App Booting

You may call the booting method to boot the registered boots so as having access to its functionality, otherwise it gets called on the run method.

App Directories

You may add directories for its later usage.

Check out the Dir Service to learn more about dirs in general.

App Clock

App Macros

Check out the Macro Service to learn more about macros in general.

Available Boots

App Boot

The app boot does the following:

Config Boot

The config boot does the following:

Check out the Config Service to learn more about it in general.

Functions Boot

The functions boot does the following:

Check out the Helper Function Service to learn more about it in general.

Error Handling Boot

The error handling boot does the following:

Dater Boot

The dater boot does the following:

Check out the Dater Service to learn more about in general.

Handle Boot Errors

You might want to handle errors caused by boots in order to continue running the app:

Check out the Throwable Handlers to learn more about handlers in general.

Customization

Some boots might implement interfaces on their boot method such as the app http boot. There are several ways to change its implementations. But we need to keep in mind that other boots might have dependent boots defined.

Using the app on method

Boot extending

Boot implementation overwriting

Credits


All versions of app with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
psr/container Version ^2.0
psr/clock Version ^1.0
tobento/service-macro Version ^1.0
tobento/service-helper-function Version ^1.0
tobento/service-error-handler Version ^1.0
tobento/service-resolver Version ^1.0
tobento/service-resolver-container Version ^1.0
tobento/service-dir Version ^1.0
tobento/service-booting Version ^1.0
tobento/service-clock Version ^1.0
tobento/service-collection Version ^1.0
tobento/service-config Version ^1.0
tobento/service-dater Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tobento/app contains the following files

Loading the files please wait ....