{"repo":"cybercog/laravel-optimus","free":true,"listed":false,"github":"https://github.com/cybercog/laravel-optimus","clone":"git clone https://github.com/cybercog/laravel-optimus.git","description":"Transform your internal id's to obfuscated integers based on Knuth's integer hash. Laravel wrapper for the Optimus Library by Jens Segers with multiple connections support.","language":"PHP","stars":193,"topics":["cog","optimus","laravel","hashids","id","public-id","encrypt","decrypt","obfuscate","cybercog"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Laravel Optimus Introduction Laravel wrapper for the Optimus Library by Jens Segers with multiple connections support. Optimus is a small open-source library that generates short, unique, non-sequential ids from numbers. With this library, you can transform your internal id's to obfuscated integers based on Knuth's integer hash. It is similar to Hashids, but will generate integers instead of random strings. It is also super fast. Contents - Features - Installation - Configuration - Usage - Examples - Changelog - Contributing - Testing - Security - Contributors - Alternatives - License - About CyberCog Features - Configurable multiple Optimus connections support. - Implicit route model binding. - Designed to work with Laravel Eloquent models. - Dependency Injection ready. - Includes Facade. - Following PHP Standard Recommendations: - PSR-1 (Basic Coding Standard). - PSR-2 (Coding Style Guide). - PSR-4 (Autoloading Standard). - Covered with unit tests. Installation First, pull in the package through Composer. Register Package Manually (optional) If you disabled package auto-discovery you can register it manually. Include the service provider within app/config/app.php . If you want you can use the facade. Add the reference in config/app.php to your aliases array. Configuration Laravel Optimus requires connection configuration. To get started, you'll need to publish config file: This will create a config/optimus.php file in your app that you can modify to set your configuration. ","default_branch":null,"files":null,"tree":[],"storefront":"/r/cybercog","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cybercog/laravel-optimus/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."}