{"id":19183995,"url":"https://github.com/sunrise-php/slugger","last_synced_at":"2025-05-08T00:02:13.935Z","repository":{"id":33185069,"uuid":"154366791","full_name":"sunrise-php/slugger","owner":"sunrise-php","description":"Simple slugger for PHP 7.1+ based on ICU","archived":false,"fork":false,"pushed_at":"2025-05-02T10:29:49.000Z","size":50,"stargazers_count":10,"open_issues_count":5,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-02T11:39:33.774Z","etag":null,"topics":["icu","latin","php-library","php7","php8","slug","slugger","slugify","translit","transliterate","transliteration","transliterator"],"latest_commit_sha":null,"homepage":"","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/sunrise-php.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-10-23T17:08:19.000Z","updated_at":"2023-10-18T20:03:57.000Z","dependencies_parsed_at":"2022-08-07T20:15:16.217Z","dependency_job_id":"dfd8f314-4389-4c32-95c4-4d8300121a08","html_url":"https://github.com/sunrise-php/slugger","commit_stats":{"total_commits":62,"total_committers":5,"mean_commits":12.4,"dds":"0.32258064516129037","last_synced_commit":"0f369246cdf78d86e3e58f70b31d61fc8e2122e3"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunrise-php%2Fslugger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunrise-php%2Fslugger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunrise-php%2Fslugger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunrise-php%2Fslugger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunrise-php","download_url":"https://codeload.github.com/sunrise-php/slugger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252973675,"owners_count":21834107,"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":["icu","latin","php-library","php7","php8","slug","slugger","slugify","translit","transliterate","transliteration","transliterator"],"created_at":"2024-11-09T11:05:47.554Z","updated_at":"2025-05-08T00:02:13.669Z","avatar_url":"https://github.com/sunrise-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple slugger for PHP 7.1+ based on ICU\n\n[![Gitter](https://badges.gitter.im/sunrise-php/support.png)](https://gitter.im/sunrise-php/support)\n[![Build Status](https://circleci.com/gh/sunrise-php/slugger.svg?style=shield)](https://circleci.com/gh/sunrise-php/slugger)\n[![Code Coverage](https://scrutinizer-ci.com/g/sunrise-php/slugger/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/sunrise-php/slugger/?branch=master)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/sunrise-php/slugger/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/sunrise-php/slugger/?branch=master)\n[![Total Downloads](https://poser.pugx.org/sunrise/slugger/downloads?format=flat)](https://packagist.org/packages/sunrise/slugger)\n[![Latest Stable Version](https://poser.pugx.org/sunrise/slugger/v/stable?format=flat)](https://packagist.org/packages/sunrise/slugger)\n[![License](https://poser.pugx.org/sunrise/slugger/license?format=flat)](https://packagist.org/packages/sunrise/slugger)\n\n## Installation\n\n```bash\ncomposer require sunrise/slugger\n```\n\n## How to use\n\n#### Russian to Latin (default)\n\n```php\nuse Sunrise\\Slugger\\Slugger;\n\n$slugger = new Slugger();\n\n// syesh-yeshche-etikh-myagkikh-frantsuzskikh-bulok-da-vypey-chayu\n$slugger-\u003eslugify('Съешь ещё этих мягких французских булок, да выпей чаю');\n```\n\n#### Deutsch to Latin\n\n```php\nuse Sunrise\\Slugger\\Slugger;\n\n$slugger = new Slugger('de-ASCII');\n\n// falsches-ueben-von-xylophonmusik-quaelt-jeden-groesseren-zwerg\n$slugger-\u003eslugify('Falsches Üben von Xylophonmusik quält jeden größeren Zwerg');\n```\n\n#### Custom replacements\n\n```php\n$slugger = new Slugger(null, [\n    '.' =\u003e ' dot ',\n    '@' =\u003e ' at ',\n]);\n\n// admin@acme.com\n$slugger-\u003eslugify('admin-at-acme-dot-com');\n```\n\n## Useful links\n\n* http://site.icu-project.org/\n* http://userguide.icu-project.org/transforms/general\n* http://demo.icu-project.org/icu-bin/translit\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunrise-php%2Fslugger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunrise-php%2Fslugger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunrise-php%2Fslugger/lists"}