PHP Classes

Laravel Helpers Classes: General-purpose classes, traits and functions

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 32 All time: 11,115 This week: 455Up
Version License PHP version Categories
laravel-helpers 1.0MIT/X Consortium ...5PHP 5, Debug, Libraries, Validation, S..., D...
Description 

Author

This package provides general-purpose classes, traits, and functions.

It comes with a few useful components that can be reused in any Laravel based application. Currently, it provides:

- Trait to set a password attribute of a model class to a hashed value
- Trait to set custom model class attributes
- Trait to set a UUID attribute of a model class
- Exception handler class that can throw message values that identify the location of the source code file that triggered the exception in the application production environment
- Form request error handler class that returns a JSON data structure or an error string and redirect the request, depending on whether the current request requires a JSON formatted response

Picture of Moamen Eltouny
  Performance   Level  
Innovation award
Innovation award
Nominee: 22x

 

Documentation

Laravel Helpers

use Pharaonic\Laravel\Helpers\...

Traits

HasCustomAttribtues (Getter, Setter)
HasHashedPassword (User Creating, Updating password)
HasUuidKey (id > UUID)

Classes

ExceptionHandler
FormRequest

Functions

function json(bool $success, string $message = null, $data = null, $extra = [], array $errors = null, $status = 200, array $headers = null, $options = 0)
function validate(Request $request, array $rules, string $defaultMessage = null, array $messages = null, array $fields = null, bool $redirectToRoute = false, string $redirectTo = null, array $redirectParams = null)

  Files folder image Files (9)  
File Role Description
Files folder image.github (1 file)
Files folder imagesrc (1 file, 2 directories)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:32
This week:0
All time:11,115
This week:455Up