Daniel St. Jules
e81dbaa6d9
Disable allowing failures for 5.6 and hhvm
2014-05-18 21:02:29 -04:00
Daniel St. Jules
2b2c03bd1f
Add 5.6 and hhvm to .travis.yml
2014-05-18 20:59:16 -04:00
Daniel St. Jules
7600549abc
1.5.1 release
1.5.1
2014-04-19 11:03:05 -04:00
Daniel St. Jules
8fe30d18b7
Fix toAscii failing to remove remaining non-ascii characters
2014-04-19 00:49:46 -04:00
Daniel St. Jules
ae7527ad4a
Remove leading or trailing replacement from slugified string, if present
2014-04-19 00:33:59 -04:00
Yuri Druzhkov
f74f535b78
add preg_quote, add test on regex special symbols
2014-04-15 10:09:11 +04:00
Yuri Druzhkov
5c5087db13
dashes fixes
2014-04-01 18:03:48 +04:00
Daniel St. Jules
8d961e25d0
1.5.0 release
1.5.0
2014-03-19 19:25:00 -04:00
Daniel St. Jules
e46797a9f8
Updated pad methods
2014-03-19 00:40:36 -04:00
Daniel St. Jules
f0805f522d
Merge branch 'pr/20' after cleanup
2014-03-18 23:36:52 -04:00
Bilge
6103eca714
Rewrote Stringy::pad to be DRY.
...
Fixed "Class 'CommonTest' not found" error when running specific tests in PHPUnit by including tests directory in Composer's autoloader.
2014-03-18 23:34:54 -04:00
Daniel St. Jules
952ffd4c00
Add tests classmap to composer
...
As suggested by Bilge in https://github.com/danielstjules/Stringy/pull/20
2014-03-09 20:52:18 -04:00
Daniel St. Jules
7832e22e09
Update require paths in tests
2014-03-09 20:12:53 -04:00
Daniel St. Jules
bcd87c69b8
Merge pull request #26 from lucasmichot/patch-1
...
Add PHPUnit 4.0.* to require-dev
2014-03-09 20:07:23 -04:00
Lucas
1d9001bcf0
Add PHPUnit 4.0.* to require-dev
2014-03-07 13:45:59 +01:00
Daniel St. Jules
ee88cd93e8
Rename protected method slug to applyDelimeter, fix typos in comments
2014-03-05 19:34:09 -05:00
Daniel St. Jules
48f53e98fa
Merge pull request #25 from BastianHofmann/patch-1
...
DRY underscored and dasherize methods
2014-03-05 19:24:34 -05:00
Daniel St. Jules
6e7415a9f5
Merge pull request #24 from maximal/patch-1
...
Remove conflicting transliteration for Bulgarian
2014-03-05 19:23:16 -05:00
BastianHofmann
c62a5e8d4e
DRY underscored and dasherize methods
2014-03-05 11:21:21 +01:00
MaximAL
cd41723b12
Update CommonTest.php
2014-02-19 10:43:06 +03:00
Daniel St. Jules
404909ffaa
Fixes #19 : Handle consecutive invalid chars in slugify
2014-02-17 11:22:59 -05:00
Daniel St. Jules
210c928b79
Added links to readme, included SliceableStringy
2014-02-17 10:41:38 -05:00
Daniel St. Jules
1965da2e39
Made str and encoding protected, added getEncoding
...
Neither should be private, so as to allow users to easily extend the
class
2014-02-16 21:22:32 -05:00
MaximAL
25fa7340ed
Hard sign in Russian is not equivalent to a
, it’s rather '
...
Apostrophe is also most common transliteration character for soft sign (ь).
2014-02-16 18:50:29 +03:00
Daniel St. Jules
e5f66c6eca
Merge pull request #21 from Bilge/dry-regex-replace
...
Optimized replace() and collapseWhitespace() by reusing regexReplace().
2014-02-14 07:09:57 -05:00
Bilge
5d7e9a8d36
Optimized replace() and collapseWhitespace() by reusing regexReplace().
...
Fixed bug in replace() where replacement string was being escaped with preg_quote() and added matching tests.
2014-02-14 01:26:55 +00:00
Daniel St. Jules
a7c5b8721c
Add composer.lock and .DS_Store to .gitignore
2014-02-13 13:29:57 -05:00
Daniel St. Jules
9399f7a694
Fix isJSON
...
Thanks to Drainedsoul
2014-02-13 06:32:54 -05:00
Daniel St. Jules
b990df3c61
1.4.0 release
1.4.0
2014-02-12 19:26:15 -05:00
Daniel St. Jules
220d4f95c0
Fix indentation in test - it was bugging me
2014-02-12 19:07:38 -05:00
Daniel St. Jules
b3e922c517
Start using PSR-4
2014-02-12 19:02:19 -05:00
Daniel St. Jules
edaf567a13
A bit of code cleanup
2014-02-11 22:55:26 -05:00
Daniel St. Jules
1d186ca79f
Code comments and documentation cleanup
2014-02-10 23:36:51 -05:00
Daniel St. Jules
ffe6c2575a
Add exceptions to ArrayAccess examples
2014-02-06 18:31:34 -05:00
Daniel St. Jules
3f5b6a2413
Update ArrayAccess interface implementation, add details to readme
2014-02-06 18:27:21 -05:00
Daniel St. Jules
ebc58a51ef
Stringy\Stringy now implements the ArrayAccess interface
2014-02-06 00:07:20 -05:00
Daniel St. Jules
1c13f2ad7e
Renamed count to countSubstr, implemented Countable interface
2014-02-03 23:41:57 -05:00
Daniel St. Jules
7313dcc07e
Fix failing tests, remove PHP 5.4 short array syntax
2014-02-02 16:10:06 -05:00
Daniel St. Jules
f14e8c16a4
Implemented IteratorAggregate, added chars()
2014-02-02 16:07:47 -05:00
Daniel St. Jules
9f930262af
Update changelog for 1.3.0
1.3.0
2013-12-16 21:04:30 -05:00
Daniel St. Jules
c230885a13
Require objects to have a __toString method, update readme
2013-12-15 01:08:23 -05:00
Daniel St. Jules
1f25d0c793
Merge Pull Request #18
2013-12-15 00:15:34 -05:00
Daniel St. Jules
0e70d72352
Merge pull request #16 from ivank/patch-2
...
Support Bulgarian in toAscii
2013-12-13 06:32:34 -08:00
Ivan Kerin
d54628e6ae
Support Bulgarian in toAscii
...
The “proper” bulgarian translitaration should encode ь to y [1],
However, since its not really that important to understand the actual
word, very rearly used and breaks compatibility with Russian, it might
be best to just leave it be, since Russian is a much larger torget.
[1] http://en.wikipedia.org/wiki/Romanization_of_Bulgarian
2013-12-13 11:05:23 +00:00
gotterdemarung
7335ee5c88
fixed T_OBJECT_OPERATOR issue in PHP 5.3
2013-12-10 23:10:44 +02:00
gotterdemarung
5e01d895db
titleize refactoring to avoid visibility problems in PHP 5.3
2013-12-10 22:59:10 +02:00
gotterdemarung
3458fd79fd
Stringy->$str became private to ensure its sting content and guarantee zero-exception __toString() execution
2013-12-10 22:34:19 +02:00
gotterdemarung
6e5e5e055f
primitives check in constructor & toString
2013-12-10 22:19:42 +02:00
gotterdemarung
88d5973701
Implicit cast argument to string in constructor
2013-12-10 22:15:58 +02:00
gotterdemarung
75404a0338
Stringy must correctly handle non-string arguments and implicitly cast to string to avoid problems in __toString() method
2013-12-10 22:15:28 +02:00