Commit Graph

138 Commits

Author SHA1 Message Date
Ben Ramsey dfbf8b8098 Abstract time generation into family of TimeGeneratorInterface classes 2015-07-27 11:14:20 -05:00
Ben Ramsey 1bdc10a306 Add RandomBytesGenerator for use with PHP 7. 2015-07-22 21:34:15 +00:00
Ben Ramsey a06a01b07d Clean up docblocks in Ramsey\Uuid\Uuid. 2015-07-22 21:28:38 +00:00
Ben Ramsey a300a9dce1 Removing the VERSION constant 2015-07-16 12:57:05 -05:00
Ben Ramsey 9092d16213 Have UuidInterface extend from JsonSerializable and cover it with a test 2015-07-16 11:36:05 -05:00
Ben Ramsey db27dc1680 Rename UuidBuilder to Builder\UuidBuilderInterface 2015-07-16 10:06:16 -05:00
Ben Ramsey 3f0ba1ed00 Move CodecInterface to the Codec namespace 2015-07-16 10:01:24 -05:00
Ben Ramsey b3ef99a2e9 Move RandomGeneratorInterface and RandomGeneratorFactory to Generator NS 2015-07-16 09:54:04 -05:00
Ben Ramsey e006f669ad Adding common docblock file header 2015-07-15 13:59:52 -05:00
Ben Ramsey b375d1de2b Separate uuid CLI tool into separate project
Closes #52
2015-06-21 19:37:32 -05:00
Ben Ramsey de02e532b2 Separate Doctrine\UuidTupe into an external library
Closes #51
2015-06-21 18:05:49 -05:00
Yves Berkholz 505b2ac498 Migrating changes made by @yberkholz in c90233d6e2 into 3.0 2015-06-16 10:26:40 -05:00
Ben Ramsey 2053cd3633 Coding standards fix 2015-06-16 10:23:29 -05:00
Jesper Pedersen 7fe43508a4 Added caching of system node information
Applied optimization found in 2.8 for caching of system node information
2015-06-16 10:22:48 -05:00
Ben Ramsey d67c3490a8 Change namespace to "Ramsey"; closes #48 2015-04-25 12:11:37 -05:00
Ben Ramsey 2fd86e2cf9 Coding standards fixes 2015-03-21 20:14:43 +00:00
Thibaud Fabre 8bece7c95b Add COMB and GUID options to command line 2015-02-07 13:14:58 +01:00
Thibaud Fabre cc23f64d58 Add COMB generator for use with UUID4 2015-02-07 13:14:58 +01:00
Thibaud Fabre d6205aaf47 Remove hackish extension_loaded mock 2014-12-29 22:00:47 +01:00
Thibaud Fabre 34cc28cc30 Add more unit tests for Pecl-based factory
Do not try to install UUID ext in HHVM run
2014-12-29 22:00:36 +01:00
Thibaud Fabre 2873c1ad3f Add tests for Pecl factory 2014-12-17 01:42:57 +01:00
Thibaud Fabre b8fe2e4a91 Extract factory interface & add basic pecl impl 2014-12-17 01:42:57 +01:00
Thibaud Fabre 3ca7eaa070 Fix PHPCS violation 2014-11-09 11:34:28 +01:00
Thibaud Fabre 463aa47338 Extract classes for CLI rendering 2014-11-09 11:31:08 +01:00
Thibaud Fabre 2069071f66 Remove unneeded parent class 2014-11-09 11:03:09 +01:00
Ben Ramsey 680fd794cb Interfaces should have the suffix "Interface" in their names 2014-11-08 16:27:20 -05:00
Ben Ramsey ebea9b969b Add ircmaxell-RandomLib to the dev dependencies 2014-11-08 16:24:22 -05:00
Ben Ramsey 958643e7b6 Introduce Provider namespace and move Node and Time classes into it 2014-11-08 16:16:44 -05:00
Ben Ramsey 90fd1531d0 Fixing PSR2 standards violations reported by PHP_CodeSniffer 2014-11-08 15:50:04 -05:00
Ben Ramsey cd2d09c356 Introduce Converter namespace and move Number and Time classes into it 2014-11-08 14:43:09 -05:00
Thibaud Fabre 61ba697853 Fix decode output for v5 (incorrect hash algo name) 2014-11-08 16:28:19 +01:00
Thibaud Fabre 6ef25d3040 Refactor long method 2014-11-08 16:13:49 +01:00
Thibaud Fabre 260063c1b5 Fix incorrect return type 2014-11-08 16:01:48 +01:00
Thibaud Fabre cce58a0b8a Fix doc comments and remove unneeded usings 2014-11-08 15:57:30 +01:00
Thibaud Fabre ed06e0a84e Remove unused code 2014-11-08 15:50:19 +01:00
Thibaud Fabre b0192fa9b0 Handle unknown versions 2014-11-08 15:42:36 +01:00
Thibaud Fabre 04c64d6f45 Refactor duplicate code 2014-11-08 15:41:53 +01:00
Thibaud Fabre 9df122eb00 Remove duplication in UuidFactory 2014-11-08 15:08:06 +01:00
Thibaud Fabre c07988fe31 Refactor codecs to remove duplication 2014-11-08 15:00:58 +01:00
Thibaud Fabre 84123b2060 Remove all env related logic from factory
Defers all environment related decisions to factory initialization
All behavior is customizable through DI, but all deps are initialized to proper default instances
Removes static factory configuration
2014-11-08 12:41:40 +01:00
Thibaud Fabre f97c9e08f9 Rename degraded feature classes with more consistent names 2014-11-06 10:42:02 +01:00
Thibaud Fabre cd3e58b1f5 Refactor fromInteger method to use factory 2014-10-30 16:07:48 +01:00
Thibaud Fabre 653349f490 Remove final keyword (rebase error...) 2014-10-30 15:26:30 +01:00
Thibaud Fabre fead6f3223 Refactor in the spirit of #1 & #34 2014-10-30 15:16:59 +01:00
Thibaud Fabre 723ef345bf Refactor factory functions
Remove $littleEndian parameter
Add fromGuidString/Bytes factory methods for GUIDs
No longer possible to output GUIDs as UUIDs and vice-versa
Pass tests
2014-10-30 15:15:16 +01:00
Thibaud Fabre 13b3bf7ed9 Refactor from/toString methods to codecs 2014-10-30 15:15:16 +01:00
Thibaud Fabre 0650b46d0e Remove non PHP 5.3 syntax 2014-10-30 15:13:45 +01:00
Thibaud Fabre b28029fbc7 Add support for MS GUIDs 2014-10-30 15:13:45 +01:00
Ben Ramsey 750801f4f5 Fixing the copyright years to coincide with the first release 2014-10-30 01:05:28 -05:00
Ben Ramsey e3d39bce99 Merge branch 'dvk/remove_final' of github.com:dvankley/uuid into dvankley-dvk/remove_final
Conflicts:
	src/Uuid.php
2014-10-29 23:09:20 -05:00