{"id":17226904,"url":"https://github.com/dantleech/api-slugifier","last_synced_at":"2025-08-05T11:09:56.634Z","repository":{"id":33946059,"uuid":"37671958","full_name":"dantleech/api-slugifier","owner":"dantleech","description":"Symfony CMF Slugifier API","archived":false,"fork":false,"pushed_at":"2015-06-18T16:46:47.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-20T07:58:22.549Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/dantleech.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-06-18T16:44:47.000Z","updated_at":"2015-06-18T16:46:44.000Z","dependencies_parsed_at":"2022-07-13T18:20:39.249Z","dependency_job_id":null,"html_url":"https://github.com/dantleech/api-slugifier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dantleech/api-slugifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fapi-slugifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fapi-slugifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fapi-slugifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fapi-slugifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dantleech","download_url":"https://codeload.github.com/dantleech/api-slugifier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fapi-slugifier/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268883500,"owners_count":24323148,"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","status":"online","status_checked_at":"2025-08-05T02:00:12.334Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-15T04:17:31.564Z","updated_at":"2025-08-05T11:09:56.617Z","avatar_url":"https://github.com/dantleech.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Symfony CMF API\n===============\n\nThis package contains an interface for slugifier/urlizer implementations. The\naim is to enable slugifiers implementations to be reused both within the\nSymfony CMF components and with the wider community.\n\nUsage\n-----\n\nIf your class requires a slugifier:\n\n````php\n\nuse Symfony\\Cmf\\Api\\Slugifier\\SlugifierInterface;\n\nclass SomeUrlWriter\n{\n    private $slugifier;\n\n    public function __construct(SlugifierInterface $slugifier)\n    {\n        $this-\u003eslugifier = $slugifier;\n    }\n\n    public function generate($string)\n    {\n        return $this-\u003eslugifier-\u003eslugify($string);\n    }\n}\n````\n\nCallback Slugifier\n------------------\n\nThis package includes a callback slugifier which enables you to use slugifier\nimplementations which do not implement this interface:\n\nFor example, take the following fictional urlizer:\n\n````php\nclass DoNothingUrlizer\n{\n    public static function urlize($string, $delimiter = '-')\n    {\n        return $string;\n    }\n}\n````\n\nYou can use this through the Callback slugifier as follows:\n\n````php\n$slugifier = new CallbackSlugifier('DoNothingUrlizer::urlize');\n$slugified = $slugifier-\u003eslugify('slugify me');\n````\n\nThe callback slugifier uses `call_user_func` internally and can accept any\n[php callable](http://php.net/manual/en/language.types.callable.php).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdantleech%2Fapi-slugifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdantleech%2Fapi-slugifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdantleech%2Fapi-slugifier/lists"}