New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

larapack/attribute-hashing

Allows you to define what attributes in your Eloquent Model which should be hashed.
1,236 2

Larablocks Analysis

larapack/attribute-hashing works with any PHP project: the latest release (v1.0.0, Nov 27, 2015) doesn't depend on Laravel.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • No release in the last 12 months (last: Nov 27, 2015)
  • 0 downloads a month (needs 10,000)
  • 2 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Nov 27, 2015.
  • No releases in the last 12 months.
  • First released: Nov 27, 2015.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.

Install
composer require larapack/attribute-hashing
Latest Version:v1.0.0
License:MIT
Last Updated:Mar 4, 2016
Links: GitHub  ·  Packagist
Maintainer: marktopper

attribute-hashing

Allows you to define what attributes in your Eloquent Model which should be hashed.

Installing

Install using Composer composer require larapack/attribute-hashing 1.*.

Usage

First add the traits Manipulateable and Hashable to your Eloquent Model.

<?php

namespace App;

use Larapack/AttributeManipulating/Manipulateable;
use Larapack/AttributeHashing/Hashable;

class User
{
  use Manipulateable;
  use Hashable;
  
  /**
   * @var array List of attribute names which should be hashed
   */ 
  protected $hash = ['password']; // set the attribute names you which to hash
  
  //...
}

Now whenever you set the attribute password it will now be hashed.

Test:

$user = new App\User;
$user->password = 'secret';
echo $user->password // Here you will see the encrypted password

Alternatives to larapack/attribute-hashing

pderas/shambles

A hashing library that will generate and add hashes to your laravel models.

40,798 0
spoorsny/laravel-south-african-id

Validation rules and an Eloquent Model attribute cast to value object encapsulat...

1,600 0

Version History

Version Released License
v1.0.0 MIT