{"id":18291232,"url":"https://github.com/violinist-dev/slug-from-url","last_synced_at":"2025-04-09T07:49:45.759Z","repository":{"id":57078225,"uuid":"120779753","full_name":"violinist-dev/slug-from-url","owner":"violinist-dev","description":"Get a slug from a URL","archived":false,"fork":false,"pushed_at":"2019-05-16T13:54:05.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T02:15:29.427Z","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/violinist-dev.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":"2018-02-08T15:32:08.000Z","updated_at":"2019-05-16T13:53:08.000Z","dependencies_parsed_at":"2022-08-24T14:56:13.590Z","dependency_job_id":null,"html_url":"https://github.com/violinist-dev/slug-from-url","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/violinist-dev%2Fslug-from-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/violinist-dev%2Fslug-from-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/violinist-dev%2Fslug-from-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/violinist-dev%2Fslug-from-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/violinist-dev","download_url":"https://codeload.github.com/violinist-dev/slug-from-url/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247999840,"owners_count":21031044,"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":[],"created_at":"2024-11-05T14:13:34.185Z","updated_at":"2025-04-09T07:49:45.737Z","avatar_url":"https://github.com/violinist-dev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# slug-from-url\nGet a slug from a URL\n\n[![Coverage Status](https://coveralls.io/repos/github/violinist-dev/slug-from-url/badge.svg)](https://coveralls.io/github/violinist-dev/slug-from-url)\n[![Build Status](https://travis-ci.org/violinist-dev/slug-from-url.svg?branch=master)](https://travis-ci.org/violinist-dev/slug-from-url)\n[![Violinist enabled](https://img.shields.io/badge/violinist-enabled-brightgreen.svg)](https://violinist.io)\n\n## Installation\n\n```\ncomposer require violinist-dev/slug-from-url\n```\n\n## Usage\n\n```php\n\u003c?php\n\nuse Violinist\\Slug\\Slug;\n\n// Probably uou want to use this directly from a URL somehow. Like so:\n$slug = Slug::createFromUrl('https://github.com/violinist-dev/slug-from-url');\n// Maybe you want the github slug:\n$gh_slug = $slug-\u003egetSlug();       // Returns violinist-dev/slug-from-url\n// Or maybe you want to get the username:\n$username = $slug-\u003egetUserName();  // Returns violinist-dev\n// ...or here is the repo name.\n$repo = $slug-\u003egetUserRepo();      // Returns slug-from-url\n```\n\n## Licence\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviolinist-dev%2Fslug-from-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviolinist-dev%2Fslug-from-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviolinist-dev%2Fslug-from-url/lists"}