├── src ├── Exception │ ├── InvalidArgument.php │ ├── OutOfRange.php │ ├── NotComparable.php │ └── IdentifierException.php ├── IdentifierFactory.php ├── BytesIdentifier.php ├── DateTimeIdentifier.php ├── IntegerIdentifier.php ├── DateTimeIdentifierFactory.php ├── BytesIdentifierFactory.php ├── StringIdentifierFactory.php ├── IntegerIdentifierFactory.php └── Identifier.php ├── .readthedocs.yaml ├── README.md ├── composer.json └── COPYING /src/Exception/InvalidArgument.php: -------------------------------------------------------------------------------- 1 | identifier/identifier 2 | 3 |

4 | Common Interfaces and Factories for Identifiers 5 |

6 | 7 | ## About 8 | 9 | This project is a specification defining common interfaces for representing and 10 | creating identifiers in PHP. For more information, 11 | [read the specification](https://php-identifier.readthedocs.io). 12 | 13 | This project adheres to a [code of conduct](CODE_OF_CONDUCT.md). 14 | By participating in this project and its community, you are expected to 15 | uphold this code. 16 | 17 | ## Installation 18 | 19 | Install this package as a dependency using [Composer](https://getcomposer.org). 20 | 21 | ``` bash 22 | composer require identifier/identifier 23 | ``` 24 | 25 | ## Contributing 26 | 27 | Contributions are welcome! To contribute, please familiarize yourself with 28 | [CONTRIBUTING.md](CONTRIBUTING.md). 29 | 30 | ## Coordinated Disclosure 31 | 32 | Keeping user information safe and secure is a top priority, and we welcome the 33 | contribution of external security researchers. If you believe you've found a 34 | security issue in software that is maintained in this repository, please read 35 | [SECURITY.md](SECURITY.md) for instructions on submitting a vulnerability report. 36 | 37 | ## Public Domain Dedication 38 | 39 | To the extent possible under law, Ben Ramsey has waived all copyright and 40 | related or neighboring rights to "Common Interfaces and Factories for 41 | Identifiers." 42 | 43 | CC0 44 | -------------------------------------------------------------------------------- /src/Identifier.php: -------------------------------------------------------------------------------- 1 |