{"id":29120784,"url":"https://github.com/rogervila/phashp","last_synced_at":"2026-02-07T08:32:09.138Z","repository":{"id":1748976,"uuid":"43978114","full_name":"rogervila/phashp","owner":"rogervila","description":"Combines different hash algos in order to create a strong hashed string.","archived":false,"fork":false,"pushed_at":"2024-10-07T04:41:29.000Z","size":24,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-02T10:48:03.593Z","etag":null,"topics":["hash","library","password","php","security"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rogervila.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-09T20:17:46.000Z","updated_at":"2021-04-30T09:08:54.000Z","dependencies_parsed_at":"2022-09-17T13:00:21.798Z","dependency_job_id":null,"html_url":"https://github.com/rogervila/phashp","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rogervila/phashp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogervila%2Fphashp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogervila%2Fphashp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogervila%2Fphashp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogervila%2Fphashp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rogervila","download_url":"https://codeload.github.com/rogervila/phashp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogervila%2Fphashp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29190195,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hash","library","password","php","security"],"created_at":"2025-06-29T15:09:59.638Z","updated_at":"2026-02-07T08:32:09.132Z","avatar_url":"https://github.com/rogervila.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phashp\n\n[![Build Status](https://travis-ci.org/rogervila/phashp.svg?branch=master)](https://travis-ci.org/rogervila/phashp)\n[![Build status](https://ci.appveyor.com/api/projects/status/tyme6yck2jc0mt0a?svg=true)](https://ci.appveyor.com/project/roger-vila/phashp)\n[![StyleCI](https://styleci.io/repos/43978114/shield?branch=master)](https://styleci.io/repos/43978114)\n[![Code Climate](https://codeclimate.com/github/rogervila/phashp/badges/gpa.svg)](https://codeclimate.com/github/rogervila/phashp)\n[![Dependency Status](https://dependencyci.com/github/rogervila/phashp/badge)](https://dependencyci.com/github/rogervila/phashp)\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/cd4c4a22-7b0a-4d41-b1ea-0bf127729075/big.png)](https://insight.sensiolabs.com/projects/cd4c4a22-7b0a-4d41-b1ea-0bf127729075)\n\nCombines different hash algorithms in order to create a stronger hashed string.\n\n[You can find the v1 docs here](https://github.com/rogervila/phashp/tree/1.0).\n\n### Install\n\nFirst, install [Composer](https://getcomposer.org/)\n```sh\n$ curl -sS https://getcomposer.org/installer | php\n$ sudo mv composer.phar /usr/local/bin/composer\n```\n\nThen, require the library on your project\n```sh\n$ composer require rogervila/phashp\n```\n\n### Usage\n\n```php\n// Simple usage\nPhashp::hash('stringToHash');\n\n// Full options\nPhashp::algos(['sha1', 'sha256'])-\u003ecycles(2)-\u003eoutput('sha512')-\u003ehash('stringToHash');\n```\n\n### Docs\n \n `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).\n \n `cycles()` accepts an integer greater than 0, that will determine the amount of cycles.\n \n **WARNING: a high amount of cycles can make PHP run out of memory**.\n\n`output()` accepts a valid hashing algorithm. The processed string will be returned in that hash algorithm format.\n\n`hash()` **the only mandatory method**. It accepts the string that will be processed. **It must go at the end of the fluent concatenation**.\n\n### License\n\n[MIT](https://github.com/rogervila/phashp/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogervila%2Fphashp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frogervila%2Fphashp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogervila%2Fphashp/lists"}