2017 © Pedro Peláez
 

library password

For work with password

image

drmvc/password

For work with password

  • Wednesday, April 18, 2018
  • by EvilFreelancer
  • Repository
  • 1 Watchers
  • 0 Stars
  • 49 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Latest Stable Version Build Status Total Downloads License PHP 7 ready Code Climate Scrutinizer CQ, (*1)

DrMVC\Password

A small wrapper library for working with password hashes., (*2)

composer require drmvc/password

How to use

More examples you can find here., (*3)

<?php
require_once __DIR__ . '/../vendor/autoload.php';

$obj = new \DrMVC\Password();

// Generate hash from string
$hash = $obj->make('some_pass');

// Get info about current hash
$info = $obj->info($hash);

// Verify if password is valid
$verify1 = $obj->verify('some_pass', $hash); // true
$verify2 = $obj->verify('other_pass', $hash); // false

// Check if rehashing is required
$rehash = $obj->rehash($hash); // false

About PHP Unit Tests

First need to install all dev dependencies via composer update, then you can run tests by hands from source directory via ./vendor/bin/phpunit command., (*4)

Links

The Versions

18/04 2018

dev-master

9999999-dev https://drmvc.com/

For work with password

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

password

15/04 2018

3.0.0

3.0.0.0 https://drmvc.com/

For work with password

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

password