2017 © Pedro Peláez
 

library slug-from-url

Get a slug from a URL

image

violinist-dev/slug-from-url

Get a slug from a URL

  • Wednesday, July 11, 2018
  • by eiriksm
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,745 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 28 % Grown

The README.md

slug-from-url

Get a slug from a URL, (*1)

Coverage Status Build Status Violinist enabled, (*2)

Installation

composer require violinist-dev/slug-from-url

Usage

<?php

use Violinist\Slug\Slug;

// Probably uou want to use this directly from a URL somehow. Like so:
$slug = Slug::createFromUrl('https://github.com/violinist-dev/slug-from-url');
// Maybe you want the github slug:
$gh_slug = $slug->getSlug();       // Returns violinist-dev/slug-from-url
// Or maybe you want to get the username:
$username = $slug->getUserName();  // Returns violinist-dev
// ...or here is the repo name.
$repo = $slug->getUserRepo();      // Returns slug-from-url

Licence

MIT, (*3)

The Versions

11/07 2018

dev-master

9999999-dev

Get a slug from a URL

  Sources   Download

MIT

The Development Requires

by Eirik S. Morland

12/02 2018

1.0.0

1.0.0.0

Get a slug from a URL

  Sources   Download

MIT

The Development Requires

by Eirik S. Morland