Download the PHP
package eelcol/laravel-bootstrap-alerts without Composer
On this page you can find all versions of the php package
eelcol/laravel-bootstrap-alerts. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
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.
Informations about the package laravel-bootstrap-alerts
Laravel Bootstrap Alerts
One of the tasks I do repeatedly, is displaying Bootstrap success messages and alert messages. This is why I created this package. I want to easily display messages when a form is submitted, when a task is completed and in lots of other situations.
Ofcourse I can do something like this:
`
However, I wanted to create a different solution for this. This enables me, for example, to add multiple alerts in different parts of the code.
Example
I have included the 3 types of Bootstrap alerts I use the most: danger (for alerts), success (for success messages) and info (obviously for informational messages). With this package, I can easily do the following:
`
If you already use the success, error or info functions elsewhere in the code, I can also do the following:
`
Display the message
Edit your Blade file to display the messages in the place you want:
`
Just include this simple line and your Bootstrap alerts will be displayed. Form validation errors by Laravel are automaticly also displayed in a single Laravel alert.
Customize
Do you want to customize the HTML? Simply override the alert.blade.php file. Create a folder called resources/views/vendor/laravel-bootstrap-alerts and create a file alerts.blade.php in this folder. Copy the contents from the alerts.blade.php file from this package, and make adjustments as wanted.
Installation
Require this package with composer.
`
Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php
`
All versions of laravel-bootstrap-alerts with dependencies
Requiresphp Version
^8.0 illuminate/support Version
^8.0|^9.0|^10.0|^11.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 eelcol/laravel-bootstrap-alerts contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.