Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme: PHP formatting fix #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,15 @@ Or manually edit your composer.json file:

In config/app.php, add the following entry to the end of the providers array:

Waavi\UrlShortener\UrlShortenerServiceProvider::class,
```php
Waavi\UrlShortener\UrlShortenerServiceProvider::class,
```

And the following alias:

'UrlShortener' => Waavi\UrlShortener\Facades\UrlShortener::class,
```php
'UrlShortener' => Waavi\UrlShortener\Facades\UrlShortener::class,
```

Publish the configuration file, the form view and the language entries:

Expand All @@ -49,14 +53,14 @@ Check the config files for the environment variables you need to set for the sel

### Shorten a url

```php
\UrlShortener::shorten('http://google.com'); // Uses default driver as per config settings
\UrlShortener::driver('bitly')->shorten('http://google.com');
```
```php
\UrlShortener::shorten('http://google.com'); // Uses default driver as per config settings
\UrlShortener::driver('bitly')->shorten('http://google.com');
```

### Expand a url

```php
\UrlShortener::expand('http://google.com'); // Uses default driver as per config settings
\UrlShortener::driver('bitly')->expand('http://google.com');
```
```php
\UrlShortener::expand('http://google.com'); // Uses default driver as per config settings
\UrlShortener::driver('bitly')->expand('http://google.com');
```