Download the PHP package tobento/service-booting without Composer

On this page you can find all versions of the php package tobento/service-booting. 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 service-booting

Booting Service

Booting for any PHP applications.

Table of Contents

Getting started

Add the latest version of the booting service project running this command.

Requirements

Highlights

Documentation

Booter

Create Booter

Parameters explanation

Parameter Description
bootFactory The boot factory.
name The name of the booter.
bootMethods The boot methods the booter calls if exists, in the order defined.
terminateMethods The terminate methods the booter calls if exists, in the order defined.

Register Boots

Each boot class is registered once. If you register the same class again it will just overwrite it.

Booting

You may call the booting methods as many times as you want. By default the boot methods gets called once, except declared otherwise with the constant REBOOTABLE in the boot classes. See Rebooting.

Example

Misc

get

Returns the specified boot registry if exist, otherwise NULL.

getBoot

Returns the specified boot if exist, otherwise NULL.

getBoots

Returns the registered boots.

getBooted

For debugging purposes, you might want to get boots booted.

Boots

Create Boot

You can create a Boot by simply exenting Tobento\Service\Booting\Boot:

Currently, your Boot doesn't do anything. Depending on the booter boot and terminate methods defined, you can now define these methods in your Boot class which support method injection (autowiring).

Dependent Boot

If your Boot depends on another Boot you may ensure that the Boot has always been initiated before by using the constant BOOT.

Boot Priority

You may declare a boot priority by using the constant PRIORITY. The default priority is 1000.

Rebooting

By default, when the booter calls the Booting methods muliple times, the boot method gets call once only. You may define methods as rebootable by using the constant REBOOTABLE.

Boot Info

You may add some info for your boot methods by using the constant INFO.

Credits


All versions of service-booting with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
psr/container Version ^2.0
tobento/service-autowire 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/service-booting contains the following files

Loading the files please wait ....