Download the PHP package filefabrik/bootraiser without Composer

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

Bootraiser

Booting Utility for Laravel custom Packages

Features

If you write your own Laravel packages, parts of your package usually have to be booted in Laravel.

This can sometimes cost an unnecessary amount of time.

Filefabrik-Bootraiser provides you with all important Laravel boot methods immediately and without much configuration effort. It is also quite cool if the Laravel “publish” methods are supported so that views|translations|packageConfig overrides can be published later.

current state is "dev". there are no tests. but they are under construction

Installation:

If you only want to use Bootraiser during development, integrate the bootraiser package with:

Then please remember to implement your own boot mechanisms or copy the boot mechanisms you need from the Bootraiser-Trait into your YourPackageServiceProvider

Modify your YourPackageServiceProvider.php

Then go to your provider file, which is usually under:

~/packages/your-package/src/Providers/YourPackageServiceProvider.php

YourPackageServiceProvider.php file looks like this:

  1. To use Bootraiser, use WithBootraiser; must be included.

  2. Then which components you want to boot with Bootraiser as an Array.

Note: You can enter all parts as boot parts. Bootraiser only boots the parts that are actually in your package.

Split Bootraiser Boot process

Subdivide the boot process with boot raiser if needed.

The following boot mechanisms are available to you:

boot Routes

packages/your-package/routes/web.php

@see https://laravel.com/docs/11.x/packages#routes

boot Migrations (publish migrations into Laravel migration directory)

Offers migration files for publishing packages/your-package/database/migrations/*

@see https://laravel.com/docs/11.x/packages#migrations

integrate Migrations without publishing

It is not necessary to publish the migration files of the package. Bootraiser can make the migrations available for each package individually in the command php artisan migrate:status

To do this, place the following snippet in your register or boot method

without integrating Migrations

with integrate Migrations

boot Translations (Language-Files)

packages/your-package/lang/*

https://laravel.com/docs/11.x/packages#language-files

boot Views (blade) and View Components

@see https://laravel.com/docs/11.x/packages#views

boot Commands

Boot your commands if any are existing, and if you handle laravel at the moment with cli

packages/your-package/src/Console/Commands

@see https://laravel.com/docs/11.x/packages#commands

boot Config

packages/your-package/packageConfig/packageConfig.php

packageConfig is singular!

will output to packageConfig/your-package.php or with custom $bootraiserPackage->setGroupName('cooler') to packageConfig/cooler.php

register Config

please see under Advanced usage for a little bit more functionality

boot Livewire

If you create your own Livewire views, Livewire is also supported and booted.

boot livewire will support the dotted namespaces (will also work without the paxsy generator)

Booting Livewire will also be displayed in Laravel's debug-bar

note: Laravel Debug-Bar can be installed via

A note on vendor:publish --tag=“your-package”-views|translations|migrations

If your package name is too long or cumbersome to create a memorable group name, simply set a different identifier for the group names

Now all your publish tag options will look like --tag=cooler-views

command bootraiser:seed

The bootraiser:seed command gets a menu with Bootraiser:

Choose a seeder that you would like to perform

So that you can execute database seeders for packages, the db:seed command has been extended by the following options.

--main database Seeders

All DatabaseSeeder.php they are tracked by Bootraiser will be executed --main

With the --main flag all DatabaseSeeder are executed in DatabaseSeeder.php.

For example, all executed DatabaseSeeders:

The Laravel Application Seeder

And for packages they are using bootraiser:

@see https://laravel.com/docs/11.x/seeding#running-seeders

Advanced usage

If you want to make your packageConfig publishable, you would also have to adapt the YourServiceProvider::register() as follows

While using in YourServiceProvider the register(), and boot() methods use a better the following Schema:

https://laravel.com/docs/11.x/packages#default-package-configuration

Events

Bootraiser handles also package events by the following conventions.

BootraiserDemoEventServiceProvider EventServiceProvider
package composer.json

Remember to run the Laravel Host composer.json

Todos

todo reflection command to show which laravel-components are inside such as seeder or livewire or or or. todo default database seeder in a package is the class DatabaseSeeder from there the method db:seed has to be run todo with explizit class name, the explizit class will be run todo with flag --package or and with a class in the package directory todo describe db seeder (with "") php artisan db:seed "\DemoPackage\TryCommandOptions\Database\Seeders\MySeeder" php artisan db:seed --class="\DemoPackage\TryCommandOptions\Database\Seeders\MySeeder"


All versions of bootraiser with dependencies

PHP Build Version
Package Version
No informations.
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 filefabrik/bootraiser contains the following files

Loading the files please wait ....