Skip to content

Commit

Permalink
Merge branch 'release/v1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
jstoone committed Aug 30, 2017
2 parents f0bd066 + 5ff203c commit eae3ef2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Let's say you have your own little URL-shortener, and each of the user submitted

## Usage
```php
$slugger = new Darkshare\IncrementalSlugger\Slugger();
$slugger = new Darkshare\Slugger();

// encode id's
$slugger->encode(1); // a
Expand All @@ -21,8 +21,3 @@ $slugger->decode('a'); // 1
$slugger->decode('fUcod'); // 81259151
```

# To-Can-Maybe-Do:
- [ ] Config: Encode/decode starting from id 0 or 1
- [ ] Internal: Make slugger able to have multiple implementations
- [ ] Short-style e.g. `gUcod`
- [ ] Blog-style e.g. `thirteen-years-of-blogging`
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
},
"require-dev": {
"symfony/var-dumper": "^3.1",
"phpunit/phpunit": "^5.4"
"phpunit/phpunit": "~6.0"
},
"autoload": {
"psr-4": {
"Darkshare\\IncrementalSlugger\\": "src/"
"Darkshare\\": "src/"
}
}
}
2 changes: 1 addition & 1 deletion src/Slugger.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Darkshare\IncrementalSlugger;
namespace Darkshare;

/**
* A simple class for creating incremental slugs.
Expand Down
7 changes: 4 additions & 3 deletions tests/unit/SluggerTest.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<?php

use Darkshare\IncrementalSlugger\Slugger;
use Darkshare\Slugger;
use PHPUnit\Framework\TestCase;

class SluggerTest extends PHPUnit_Framework_TestCase {
class SluggerTest extends TestCase {

/**
* The Slugger instance under test.
*
* @var Darkshare\IncrementalSlugger\Slugger
* @var Darkshare\Slugger
*/
protected $slugger;

Expand Down

0 comments on commit eae3ef2

Please sign in to comment.