Skip to content

Commit 4aa6678

Browse files
committed
Rename library to StringyInflector
1 parent 5918e92 commit 4aa6678

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# CapitalizePersonalNamesWithStringy
1+
# StringyInflector
22
A PHP library that helps you capitalize personal names. Extends [Stringy](https://github.com/danielstjules/Stringy), a PHP string manipulation library with multibyte support.
33

44
Personal names such as "Marcus Aurelius" are sometimes typed incorrectly using lowercase ("marcus aurelius").
55

66
Capitalizing "marcus aurelius" is a simple task. But some names are less simple. Consider "Zeno of Citium". If you have the string "zeno of citium", you should capitalize "zeno" and "citium", but not "of".
77

8-
CapitalizePersonalNamesWithStringy helps you capitalize personal names by checking against a list of special cases that shouldn't be capitalized. If the name is in the list, it isn't capitalized.
8+
StringyInflector helps you capitalize personal names by checking against a list of special cases that shouldn't be capitalized. If the name is in the list, it isn't capitalized.
99

1010

1111
## Installation
@@ -18,7 +18,7 @@ Add the following to your `composer.json`:
1818
"repositories": [
1919
{
2020
"type": "vcs",
21-
"url": "https://github.com/yhoiseth/CapitalizePersonalNamesWithStringy"
21+
"url": "https://github.com/yhoiseth/StringyInflector"
2222
}
2323
],
2424
```
@@ -27,7 +27,7 @@ Add the following to your `composer.json`:
2727
```php
2828
<?php
2929

30-
use CapitalizePersonalNamesWithStringy\CapitalizePersonalNamesWithStringy as S;
30+
use StringyInflector\StringyInflector as S;
3131

3232
$stringy = S::create('zeno of citium');
3333

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"uppercase",
1111
"capitalize"
1212
],
13-
"homepage": "https://github.com/yhoiseth/CapitalizePersonalNamesWithStringy",
13+
"homepage": "https://github.com/yhoiseth/StringyInflector",
1414
"license": "MIT",
1515
"authors": [
1616
{
@@ -24,12 +24,12 @@
2424
"danielstjules/stringy": "~2.3"
2525
},
2626
"support": {
27-
"issues": "https://github.com/yhoiseth/CapitalizePersonalNamesWithStringy/issues",
28-
"source": "https://github.com/yhoiseth/CapitalizePersonalNamesWithStringy"
27+
"issues": "https://github.com/yhoiseth/StringyInflector/issues",
28+
"source": "https://github.com/yhoiseth/StringyInflector"
2929
},
3030
"autoload": {
3131
"psr-4": {
32-
"CapitalizePersonalNamesWithStringy\\": "src/"
32+
"StringyInflector\\": "src/"
3333
}
3434
}
3535
}

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpunit.xml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
stopOnFailure="false"
55
syntaxCheck="false">
66
<testsuites>
7-
<testsuite name="CapitalizePersonalNamesWithStringy">
8-
<file>tests/CapitalizePersonalNamesWithStringyTest.php</file>
7+
<testsuite name="StringyInflector">
8+
<file>tests/StringyInflectorTest.php</file>
99
</testsuite>
1010
</testsuites>
1111
<php>

src/CapitalizePersonalNamesWithStringy.php renamed to src/StringyInflector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace CapitalizePersonalNamesWithStringy;
3+
namespace StringyInflector;
44

55
use Stringy\Stringy;
66

7-
class CapitalizePersonalNamesWithStringy extends Stringy
7+
class StringyInflector extends Stringy
88
{
99
/**
1010
*

tests/CapitalizePersonalNamesWithStringyTest.php renamed to tests/StringyInflectorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

33
require_once __DIR__ . "/../vendor/autoload.php";
4-
require __DIR__ . '/../src/CapitalizePersonalNamesWithStringy.php';
4+
require __DIR__ . '/../src/StringyInflector.php';
55

6-
use CapitalizePersonalNamesWithStringy\CapitalizePersonalNamesWithStringy as S;
6+
use StringyInflector\StringyInflector as S;
77

8-
class CapitalizePersonalNamesWithStringyTest extends PHPUnit_Framework_TestCase
8+
class StringyInflectorTest extends PHPUnit_Framework_TestCase
99
{
1010
/**
1111
* @dataProvider capitalizePersonalNameProvider()

0 commit comments

Comments
 (0)