PHPackages                             rogervila/phashp - 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. [Security](/categories/security)
4. /
5. rogervila/phashp

ActiveLibrary[Security](/categories/security)

rogervila/phashp
================

Combines different hashing algorithms in order to create a strong hashed string

1.0.0(10y ago)237[1 PRs](https://github.com/rogervila/phashp/pulls)MITPHPPHP &gt;=5.3.0

Since Nov 19Pushed 1y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (6)Used By (0)

Phashp
======

[](#phashp)

[![Build Status](https://camo.githubusercontent.com/719441589a03dbe42ad551018dacf8d671d353578a6d3be3178a7f8275771977/68747470733a2f2f7472617669732d63692e6f72672f726f67657276696c612f7068617368702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rogervila/phashp)[![Build status](https://camo.githubusercontent.com/c1d879e318fedc9ff4cbd417b6face322a08d9cb8fdfafd9648dbfc915792e96/68747470733a2f2f63692e6170707665796f722e636f6d2f6170692f70726f6a656374732f7374617475732f74796d653679636b326a63306d7430613f7376673d74727565)](https://ci.appveyor.com/project/roger-vila/phashp)[![StyleCI](https://camo.githubusercontent.com/58147d941731074f327d7b788728e7d4747ec3f531bac872491be65a14ea00c4/68747470733a2f2f7374796c6563692e696f2f7265706f732f34333937383131342f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/43978114)[![Code Climate](https://camo.githubusercontent.com/559d629ff67a8e2c3efca4b440420b2c97f4da8823f0d68f102dc12743be4d2b/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f726f67657276696c612f7068617368702f6261646765732f6770612e737667)](https://codeclimate.com/github/rogervila/phashp)[![Dependency Status](https://camo.githubusercontent.com/66a71ed71c1955db8abb45e7eb679e1671dbb9f39eeb4d4f20300ff9dcc267b8/68747470733a2f2f646570656e64656e637963692e636f6d2f6769746875622f726f67657276696c612f7068617368702f6261646765)](https://dependencyci.com/github/rogervila/phashp)[![SensioLabsInsight](https://camo.githubusercontent.com/19af35c4bc2539039b315dcfd45dac9d2748a263d957da2ef451bbbded8a1407/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f63643463346132322d376230612d346434312d623165612d3062663132373732393037352f6269672e706e67)](https://insight.sensiolabs.com/projects/cd4c4a22-7b0a-4d41-b1ea-0bf127729075)

Combines different hash algorithms in order to create a stronger hashed string.

[You can find the v1 docs here](https://github.com/rogervila/phashp/tree/1.0).

### Install

[](#install)

First, install [Composer](https://getcomposer.org/)

```
$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer
```

Then, require the library on your project

```
$ composer require rogervila/phashp
```

### Usage

[](#usage)

```
// Simple usage
Phashp::hash('stringToHash');

// Full options
Phashp::algos(['sha1', 'sha256'])->cycles(2)->output('sha512')->hash('stringToHash');
```

### Docs

[](#docs)

`algos()` accepts an array of valid hashing algorithms. You can find which ones you can use on your current PHP version with [PHP hash\_algos() method](http://php.net/manual/en/function.hash-algos.php).

`cycles()` accepts an integer greater than 0, that will determine the amount of cycles.

**WARNING: a high amount of cycles can make PHP run out of memory**.

`output()` accepts a valid hashing algorithm. The processed string will be returned in that hash algorithm format.

`hash()` **the only mandatory method**. It accepts the string that will be processed. **It must go at the end of the fluent concatenation**.

### License

[](#license)

[MIT](https://github.com/rogervila/phashp/blob/master/LICENSE)

###  Health Score

30

—

LowBetter than 67% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 96.8% 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.

###  Release Activity

Cadence

Every ~417 days

Total

2

Last Release

3357d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/351443b7d23e94fcf31b250db90f0b9578cc9fd8e0cefbed9666467e3e9cb571?d=identicon)[rogervila](/maintainers/rogervila)

---

Top Contributors

[![rogervila](https://avatars.githubusercontent.com/u/6053012?v=4)](https://github.com/rogervila "rogervila (30 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")

---

Tags

hashlibrarypasswordphpsecuritysecurityhash

### Embed Badge

![Health badge](/badges/rogervila-phashp/health.svg)

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

###  Alternatives

[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k425.4M1.1k](/packages/phpseclib-phpseclib)[defuse/php-encryption

Secure PHP Encryption Library

3.9k158.4M190](/packages/defuse-php-encryption)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.1M95](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41176.1M104](/packages/robrichards-xmlseclibs)[spatie/laravel-csp

Add CSP headers to the responses of a Laravel app

8579.2M15](/packages/spatie-laravel-csp)[lastguest/murmurhash

MurmurHash3 Hash

1319.7M50](/packages/lastguest-murmurhash)

PHPackages © 2026

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