Download the PHP package prologue/support without Composer
On this page you can find all versions of the php package prologue/support. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download prologue/support
More information about prologue/support
Files in prologue/support
Package support
Short Description Prologue Support is an extension for Illuminate Support
License MIT
Homepage https://github.com/Prologue/Support
Informations about the package support
Prologue Support
This package is now abandoned. No further development or bug fixes will happen.
Prologue Support is an extension for Illuminate Support. It provides you with extra helper functionality for your application.
Maintained by Cristian Tabacitu
Table of Contents
- Installation
- Usage
- Collection
- MessageBag
- Helper Functions
- Changelog
- License
Installation
You can install Prologue Support for your project through Composer.
Require the package in your composer.json
.
Run composer to install or update the package.
Usage
Collection
The Collection.php
class in Prologue Support comes with some additional functions.
filterBy($key, $value)
Used to filter for records which have a specific value set for a given key.
orderBy($key, $direction)
Used to order records by a given key.
You can also order in a descending way.
MessageBag
The MessageBag class in Prologue Support offers the ability to add arrays or other MessageBags as messages.
Now $messages
equals to:
You see? One of the messages is the array we added.
The same goes for instances of Illuminate\Support\MessageBag
.
Helper Functions
is_true($value)
Determine if a value is true.
is_false($value)
Determine if a value is false.
last_key(array $value)
Get the last key from an array.
Changelog
You view the changelog for this package here.
License
Prologue Support is licensed under the MIT License.