{"repo":"ElfSundae/laravel-hashid","free":true,"listed":false,"github":"https://github.com/ElfSundae/laravel-hashid","clone":"git clone https://github.com/ElfSundae/laravel-hashid.git","description":"Obfuscate your data by generating reversible, non-sequential, URL-safe identifiers.","language":"PHP","stars":416,"topics":["laravel","hashids","base62","base64","optimus","urlsafe","obfuscate","reversible","encryption"],"license":"MIT","category":"security-tools","readme_excerpt":"Laravel Hashid Laravel Hashid provides a unified API across various drivers such as [Base62], [Base64], [Hashids] and [Optimus], with support for multiple connections or different encoding options. It offers a simple, elegant way to obfuscate your data by generating reversible, non-sequential, URL-safe identifiers. - Installation - Configuration - Usage - Built-in Drivers - Base62 - Base64 - Hashids - Hex - Optimus - Custom Drivers - Testing - License Installation You can install this package using the Composer manager: For Lumen or earlier Laravel than v5.5, you need to register the service provider manually: Then publish the configuration file: Configuration Our well documented configuration file is extremely similar to the configurations of numerous Laravel manager integrations such as Database, Queue, Cache and Filesystem. So you do not need to spend extra time to learn how to configure Hashid. Additionally, for simplicity you do not need to add singleton drivers like Base64 to your config file as they have no encoding options, unless you would like to specify a meaningful connection name. Let's see an example of the configuration: Usage The hashid() helper or the Hashid facade may be used to interact with any of your configured connections or drivers: There are only two methods you need to know to use any connection or driver: - encode($data) for encoding data. - decode($data) for decoding data. And there are also two corresponding helper functions: - hashid encode($data","default_branch":null,"files":null,"tree":[],"storefront":"/r/ElfSundae","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ElfSundae/laravel-hashid/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}