{"id":15831659,"url":"https://github.com/lichunqiang/hashids","last_synced_at":"2025-04-01T17:32:33.854Z","repository":{"id":35963410,"uuid":"40253630","full_name":"lichunqiang/hashids","owner":"lichunqiang","description":"Hashids for Yii2","archived":false,"fork":false,"pushed_at":"2018-02-28T15:40:03.000Z","size":30,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-12T12:31:16.022Z","etag":null,"topics":["hashids","yii2","yii2-extension","yii2-hashids"],"latest_commit_sha":null,"homepage":"http://hashids.org/php/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lichunqiang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-05T15:34:23.000Z","updated_at":"2022-05-20T13:05:49.000Z","dependencies_parsed_at":"2022-09-14T02:53:05.920Z","dependency_job_id":null,"html_url":"https://github.com/lichunqiang/hashids","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lichunqiang%2Fhashids","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lichunqiang%2Fhashids/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lichunqiang%2Fhashids/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lichunqiang%2Fhashids/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lichunqiang","download_url":"https://codeload.github.com/lichunqiang/hashids/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222744262,"owners_count":17031188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["hashids","yii2","yii2-extension","yii2-hashids"],"created_at":"2024-10-05T12:05:39.615Z","updated_at":"2024-11-02T17:02:31.668Z","avatar_url":"https://github.com/lichunqiang.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/yiisoft\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://avatars0.githubusercontent.com/u/993323\" height=\"100px\"\u003e\n    \u003c/a\u003e\n    \u003ch1 align=\"center\"\u003eYii2 Hashids\u003c/h1\u003e\n    \u003cbr\u003e\n\u003c/p\u003e\n\n[![Build Status](https://img.shields.io/travis/lichunqiang/hashids.svg?style=flat-square)](http://travis-ci.org/lichunqiang/hashids)\n[![version](https://img.shields.io/packagist/v/light/hashids.svg?style=flat-square)](https://packagist.org/packages/light/hashids)\n[![Download](https://img.shields.io/packagist/dt/light/hashids.svg?style=flat-square)](https://packagist.org/packages/light/hashids)\n[![Issues](https://img.shields.io/github/issues/lichunqiang/hashids.svg?style=flat-square)](https://github.com/lichunqiang/hashids/issues)\n\n\n__NOTE__: The master branch for 2.0 version, that require mini php version is 5.6. You can require `light/hashids:^1.0`to use old version.\n\n## Installation\n\nInstall this package via [Composer](https://getcomposer.org/):\n\n```\n$ composer require light/hashids=^2.0\n```\n\n## Usage\n\n### configurate is as a component\n\nIn your `main.php` or `web.php` (dependences your yii2 project constructor):\n\n```\n[\n\t'hahsids' =\u003e [\n\t\t'class' =\u003e 'light\\hashids\\Hashids',\n\t\t//'salt' =\u003e 'your salt',\n\t\t//'minHashLength' =\u003e 5,\n\t\t//'alphabet' =\u003e 'abcdefghigk'\n\t]\n]\n```\n\nAlso using this like this:\n\n```\n$hashids = Yii::createObject([\n\t'class' =\u003e 'light\\hashids\\Hashids'\n]);\n\n$id = $hashids-\u003eencode(1, 2, 3);\n$numbers = $hashids-\u003edecode($id);\nvar_dump($id, $numbers);\n```\n\n## Test\n\n```\n$ phpunit\n```\n\n## Lisence\n\n![MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)\n\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/lichunqiang/hashids/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flichunqiang%2Fhashids","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flichunqiang%2Fhashids","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flichunqiang%2Fhashids/lists"}