2017 © Pedro Peláez
 

library elocrypt

Automatically encrypt and decrypt Eloquent attributes with ease.

image

dtisgodsson/elocrypt

Automatically encrypt and decrypt Eloquent attributes with ease.

  • Friday, April 15, 2016
  • by dtisgodsson
  • Repository
  • 1 Watchers
  • 4 Stars
  • 292 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 8 Versions
  • 2 % Grown

The README.md

Eloquent Encryption/Decryption for Laravel 4

Installation

This package can be installed via Composer by adding the following to your composer.json file:, (*1)

"require": {
    "dtisgodsson/elocrypt": "1.*"
}

You must then run the following command:, (*2)

composer update

Usage

Simply reference the ElocryptTrait in any Eloquent Model you wish to apply encryption to and then define an "encryptable" array on that model containing a list of the attributes you wish to Encrypt., (*3)

For example:, (*4)

class User extends Eloquent {

        use ElocryptTrait;

        public $encryptable = ['first_name', 'last_name', 'address_line_1', 'postcode'];
}

How it Works?

By including the ElocryptTrait, the __set() and __get() methods provided by Eloquent are overridden to include an additional step. This additional step simply checks whether the attribute being set or get is included in the "encryptable" array on the model, and either encrypts/decrypts it accordingly OR calls the parent __set() or __get() method., (*5)

The Versions

15/04 2016

dev-master

9999999-dev

Automatically encrypt and decrypt Eloquent attributes with ease.

  Sources   Download

The Requires

 

by Darren Taylor

laravel eloquent encrypt encryption laravel4 l4 eloquent encryption eloquent aes elocrypt laravel4 encryption laravel4 aes

15/04 2016

v1.6

1.6.0.0

Automatically encrypt and decrypt Eloquent attributes with ease.

  Sources   Download

The Requires

 

by Darren Taylor

laravel eloquent encrypt encryption laravel4 l4 eloquent encryption eloquent aes elocrypt laravel4 encryption laravel4 aes

10/09 2015

v1.5

1.5.0.0

Automatically encrypt and decrypt Eloquent attributes with ease.

  Sources   Download

The Requires

 

by Darren Taylor

laravel eloquent encrypt encryption laravel4 l4 eloquent encryption eloquent aes elocrypt laravel4 encryption laravel4 aes

08/09 2015

v1.4

1.4.0.0

Automatically encrypt and decrypt Eloquent attributes with ease.

  Sources   Download

The Requires

 

by Darren Taylor

laravel eloquent encrypt encryption laravel4 l4 eloquent encryption eloquent aes elocrypt laravel4 encryption laravel4 aes

05/09 2015

v1.3

1.3.0.0

Automatically encrypt and decrypt Eloquent attributes with ease.

  Sources   Download

The Requires

 

by Darren Taylor

laravel eloquent encrypt encryption laravel4 l4 eloquent encryption eloquent aes elocrypt laravel4 encryption laravel4 aes

05/09 2015

v1.2

1.2.0.0

Automatically encrypt and decrypt Eloquent attributes with ease.

  Sources   Download

The Requires

 

by Darren Taylor

laravel eloquent encryption laravel4 l4 eloquent encryption eloquent aes laravel4 encryption laravel4 aes

05/09 2015

v1.1

1.1.0.0

Automatically encrypt and decrypt Eloquent attributes with ease.

  Sources   Download

The Requires

 

by Darren Taylor

05/09 2015

v1

1.0.0.0

Automatically encrypt and decrypt Eloquent attributes with ease.

  Sources   Download

The Requires

 

by Darren Taylor