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,100 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  
Name: Moamen Eltouny <contact>
Classes: 38 packages by
Country: Egypt Egypt
Age: 31
All time rank: 257626 in Egypt Egypt
Week rank: 136 Up2 in Egypt Egypt Up
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

  Files folder image Files (9)  /  .github  
File Role Description
  Accessible without login Plain text file FUNDING.yml Data Auxiliary data

  Files folder image Files (9)  /  src  
File Role Description
Files folder imageClasses (2 files)
Files folder imageTraits (3 files)
  Accessible without login Plain text file Helpers.php Example Example script

  Files folder image Files (9)  /  src  /  Classes  
File Role Description
  Plain text file ExceptionHandler.php Class Class source
  Plain text file FormRequest.php Class Class source

  Files folder image Files (9)  /  src  /  Traits  
File Role Description
  Plain text file HasCustomAttributes.php Class Class source
  Plain text file HasHashedPassword.php Class Class source
  Plain text file HasUuidKey.php Class Class source

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,100
This week:455Up