PHPackages                             yekovalenko/larapassword - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. yekovalenko/larapassword

ActiveLibrary

yekovalenko/larapassword
========================

Password manager for Laravel

10PHP

Since Jul 30Pushed 6y agoCompare

[ Source](https://github.com/yekovalenko/LaraPassword)[ Packagist](https://packagist.org/packages/yekovalenko/larapassword)[ RSS](/packages/yekovalenko-larapassword/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

**LaraPassword** is a simple Password Manager for Laravel 5.\*.

ABOUT
-----

[](#about)

- Creating passwords
- Creating categories.
- Creating sub-categories.
- Generating random passwords

INSTALLATION
------------

[](#installation)

This package can be installed via [Composer](http://getcomposer.org):

```
composer require yekovalenko/larapassword

```

### Add the Service Provider &amp; Facade/Alias

[](#add-the-service-provider--facadealias)

Once LaraPassword is installed, you need to register the service provider in `config/app.php`. Make sure to add the following line **above** the `RouteServiceProvider`.

```
Yekovalenko\LaraPassword\LaraPasswordServiceProvider::class,
```

You may add the following `aliases` to your `config/app.php`:

```
'LaraPassword' => Yekovalenko\LaraPassword\Facades\LaraPassword::class,
```

Publish the package config file by running the following command:

```
php artisan vendor:publish --provider="Yekovalenko\LaraPassword\LaraPasswordServiceProvider"

```

CONFIGURATION
-------------

[](#configuration)

### Migrations

[](#migrations)

Two new tables will be created for storing categories and passwords:

```
lp_passwords
lp_categories

```

To run the migrations from this package use the following command:

```
php artisan migrate --path="/vendor/yekovalenko/larapassword/src/resources/migrations"

```

### Security Hash

[](#security-hash)

The *Label*, *Login*, *Password* and *Url* fields are hashed in the database.

To create a package security hash, run the next command:

```
php artisan larapassword:hash

```

To generate a package security hash without saving, run the next command:

```
php artisan larapassword:hash --show

```

The hash can also be saved in the `larapassword.php` file in the `config` directory. This should be a base64 encoded string, and look like Laravel `APP_KEY`.

ERRORS
------

[](#errors)

This package throws several exceptions. You are free to use `try/catch`statements or to rely on the Laravel built-in exceptions handler.

- `BadGeneratorAttributes` exception:

Wrong password generator params.

- `BadHash` exception:

Security hash is not set or is incorrect.

- `InvalidData` exception:

Invalid data provided when creating/updating the password/category.

- `NotFound` exception:

Password or category not found.

USAGE
-----

[](#usage)

### API

[](#api)

Create new category:

- `LaraPassword::addCategory($data)` where `$data` parameter can accept the next fields:

```
    $data = [
        'parent_id' => 1,
        'title' =>' Test Category',
        'description' => 'Test Category Description',
    ];
```

and will return ID of created category.

Edit category:

- `LaraPassword::editCategory($password_id, $new_data)` where `$data` parameter is similar to the `addCategory()` function.

Remove category:

- `LaraPassword::removeCategory($category_id)`

Get category details:

- `LaraPassword::getCategory($category_id)`

Get categories:

- `LaraPassword::getCategories($parent_id)`. Use `$parent_id` for get categories:

```
    $parent_id = null; // Get all categories
    $parent_id = 0;    // Get categories that are not assigned to any category
    $parent_id = 1;    // Get sub-categories that are assigned to category with ID = 1
```

Generate a random password:

- `LaraPassword::generate($length, $letters, $numbers, $chars, $uppercase)` where by default:

```
    $length = 12;
    $letters = true;
    $numbers = true;
    $chars = true;
    $uppercase = true;
```

Create new password:

- `LaraPassword::addPassword($data)` where `$data` can accept the next fields:

```
    $data = [
        'category_id' => 1,
        'label' => 'Test Password',
        'login' => 'root',
        'password' => 'password',
        'url' => 'example.com',
        'description' => 'Test Password Description',
        'metadata' => [
            'key1' => 'value',
            'key2' => 'value2'
        ]
    ];
```

and will return ID of created password.

Edit password:

- `LaraPassword::editPassword($password_id, $new_data)` where `$data` parameter is similar to the `addPassword()` function.

Remove password:

- `LaraPassword::removePassword($password_id)`

Get password details:

- `LaraPassword::getPassword($password_id)`

Get passwords:

- `LaraPassword::getPasswords($category_id)`. Use `$category_id` for get passwords:

```
    $category_id = null; // Get all passwords
    $category_id = 0;    // Get passwords that are not assigned to any category
    $category_id = 1;    // Get passwords that are assigned to category with ID = 1
```

CONTRIBUTE
----------

[](#contribute)

Feel free to comment, contribute and help.

LICENSE
-------

[](#license)

LaraPassword is licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/372ba91e66131cf14670e12d61dc57c6b952a0a083cfba012bd66b000ee1c9b9?d=identicon)[yekovalenko](/maintainers/yekovalenko)

---

Top Contributors

[![yekovalenko](https://avatars.githubusercontent.com/u/35382876?v=4)](https://github.com/yekovalenko "yekovalenko (4 commits)")

### Embed Badge

![Health badge](/badges/yekovalenko-larapassword/health.svg)

```
[![Health](https://phpackages.com/badges/yekovalenko-larapassword/health.svg)](https://phpackages.com/packages/yekovalenko-larapassword)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
