{"id":22396937,"url":"https://github.com/atrox/haikunatorphp","last_synced_at":"2025-04-06T22:07:26.958Z","repository":{"id":29162827,"uuid":"32693299","full_name":"Atrox/haikunatorphp","owner":"Atrox","description":"Generate Heroku-like random names to use in your php applications.","archived":false,"fork":false,"pushed_at":"2020-07-02T20:37:23.000Z","size":47,"stargazers_count":109,"open_issues_count":0,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-30T20:11:17.389Z","etag":null,"topics":["haikunator","heroku","php"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/atrox/haikunator","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Atrox.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-03-22T20:13:30.000Z","updated_at":"2025-02-17T12:47:49.000Z","dependencies_parsed_at":"2022-08-07T14:15:24.628Z","dependency_job_id":null,"html_url":"https://github.com/Atrox/haikunatorphp","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atrox%2Fhaikunatorphp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atrox%2Fhaikunatorphp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atrox%2Fhaikunatorphp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atrox%2Fhaikunatorphp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Atrox","download_url":"https://codeload.github.com/Atrox/haikunatorphp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247557767,"owners_count":20958047,"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":["haikunator","heroku","php"],"created_at":"2024-12-05T06:09:57.754Z","updated_at":"2025-04-06T22:07:26.929Z","avatar_url":"https://github.com/Atrox.png","language":"PHP","readme":"# HaikunatorPHP\n\n[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fatrox%2Fhaikunatorphp%2Fbadge\u0026style=flat-square)](https://actions-badge.atrox.dev/atrox/haikunatorphp/goto)\n[![Latest Version](https://img.shields.io/packagist/v/Atrox/haikunator.svg?style=flat-square)](https://packagist.org/packages/atrox/haikunator)\n[![Coverage Status](https://img.shields.io/codecov/c/github/atrox/haikunatorphp.svg?style=flat-square)](https://codecov.io/gh/atrox/haikunatorphp)\n\nGenerate Heroku-like random names to use in your PHP applications.\n\n## Installation\n\n```\ncomposer require atrox/haikunator\n```\n\n## Usage\n\nHaikunator is pretty simple.\n\n```php\nuse Atrox\\Haikunator;\n\n// default usage\nHaikunator::haikunate() // =\u003e \"wispy-dust-1337\"\n\n// custom length (default=4)\nHaikunator::haikunate([\"tokenLength\" =\u003e 6]) // =\u003e \"patient-king-887265\"\n\n// use hex instead of numbers\nHaikunator::haikunate([\"tokenHex\" =\u003e true]) // =\u003e \"purple-breeze-98e1\"\n\n// use custom chars instead of numbers/hex\nHaikunator::haikunate([\"tokenChars\" =\u003e \"HAIKUNATE\"]) // =\u003e \"summer-atom-IHEA\"\n\n// don't include a token\nHaikunator::haikunate([\"tokenLength\" =\u003e 0]) // =\u003e \"cold-wildflower\"\n\n// use a different delimiter\nHaikunator::haikunate([\"delimiter\" =\u003e \".\"]) // =\u003e \"restless.sea.7976\"\n\n// no token, space delimiter\nHaikunator::haikunate([\"tokenLength\" =\u003e 0, \"delimiter\" =\u003e \" \"]) // =\u003e \"delicate haze\"\n\n// no token, empty delimiter\nHaikunator::haikunate([\"tokenLength\" =\u003e 0, \"delimiter\" =\u003e \"\"]) // =\u003e \"billowingleaf\"\n\n// custom nouns and/or adjectives\nHaikunator::$ADJECTIVES = [\"red\", \"green\", \"blue\"];\nHaikunator::$NOUNS = [\"reindeer\"];\nHaikunator::haikunate(); // =\u003e \"blue-reindeer-4252\"\n```\n\n## Options\n\nThe following options are available:\n\n```php\nHaikunator::haikunate([\n  \"delimiter\" =\u003e \"-\",\n  \"tokenLength\" =\u003e 4,\n  \"tokenHex\" =\u003e false,\n  \"tokenChars\" =\u003e \"0123456789\"\n]);\n\n// get/set nouns or adjectives\nHaikunator::$ADJECTIVES\nHaikunator::$NOUNS\n```\n*If ```tokenHex``` is true, it overrides any tokens specified in ```tokenChars```*\n\n## Contributing\n\nEveryone is encouraged to help improve this project. Here are a few ways you can help:\n\n- [Report bugs](https://github.com/atrox/haikunatorphp/issues)\n- Fix bugs and [submit pull requests](https://github.com/atrox/haikunatorphp/pulls)\n- Write, clarify, or fix documentation\n- Suggest or add new features\n\n## Other Languages\n\nHaikunator is also available in other languages. Check them out:\n\n- Node: https://github.com/Atrox/haikunatorjs\n- .NET: https://github.com/Atrox/haikunator.net\n- Python: https://github.com/Atrox/haikunatorpy\n- Java: https://github.com/Atrox/haikunatorjava\n- Go: https://github.com/Atrox/haikunatorgo\n- Clojure: https://github.com/Atrox/haikunatorclj\n- Dart: https://github.com/Atrox/haikunatordart\n- Ruby: https://github.com/usmanbashir/haikunator\n- Rust: https://github.com/nishanths/rust-haikunator\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatrox%2Fhaikunatorphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatrox%2Fhaikunatorphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatrox%2Fhaikunatorphp/lists"}