{"id":16720192,"url":"https://github.com/hsynlms/php-url-record","last_synced_at":"2025-07-11T05:30:26.590Z","repository":{"id":56986441,"uuid":"341333976","full_name":"hsynlms/php-url-record","owner":"hsynlms","description":"A simple slug generator","archived":false,"fork":false,"pushed_at":"2021-05-22T22:19:40.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-20T03:06:39.361Z","etag":null,"topics":["seo-friendly","slug","slugify"],"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/hsynlms.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":"2021-02-22T20:52:08.000Z","updated_at":"2021-09-18T14:31:52.000Z","dependencies_parsed_at":"2022-08-21T13:20:16.977Z","dependency_job_id":null,"html_url":"https://github.com/hsynlms/php-url-record","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsynlms%2Fphp-url-record","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsynlms%2Fphp-url-record/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsynlms%2Fphp-url-record/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsynlms%2Fphp-url-record/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hsynlms","download_url":"https://codeload.github.com/hsynlms/php-url-record/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225156999,"owners_count":17429699,"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":["seo-friendly","slug","slugify"],"created_at":"2024-10-12T22:06:09.809Z","updated_at":"2024-11-21T08:05:15.037Z","avatar_url":"https://github.com/hsynlms.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## php-url-record\n\u003e A simple slug generator. It's a PHP port from [nopCommerce](https://github.com/nopSolutions/nopCommerce) UrlRecord service.\n\n## Why php-url-record?\nThe reason behind this repository is nopCommerce, is an open source ASP.NET Core based ecommerce solution. I just wanted to create a port of the nopCommerce SEO friendly slug generation service which is in production for years and trusted by tens of thousands of stores.\n\n## Install\n\n```\n$ composer require hsynlms/url-record\n```\n\n## Usage\n\n```php\nuse hsynlms\\UrlRecord;\n\n$slugGenerator = new UrlRecord();\necho $slugGenerator-\u003eGetSeoFriendlyName('nobodY d0es_it better');\n// will return -\u003e nobody-d0es_it-better\n```\n\n## Options\n\n| Name                     | Type               | Default                             | Description                                                       |\n| ---                      | ---                | ---                                 | ---                                                               |\n| name                     | string             | -                                   | The string that will be slugified                                 |\n| convertNonWesternChars   | boolean            | true                                | A value indicating whether non western chars should be converted  |\n| allowUnicodeCharsInUrls  | boolean            | false                               | A value indicating whether Unicode chars are allowed              |\n\n## Compatibility\n\nPHP 7 \u003e= 7.4.0 required due to use of built-in [mb_str_split](https://www.php.net/manual/en/function.mb-str-split.php) function.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsynlms%2Fphp-url-record","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhsynlms%2Fphp-url-record","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsynlms%2Fphp-url-record/lists"}