Repository navigation
v1.0.0
enumshare v1.0.0
First stable release of enumshare - share PHP enums with your TypeScript frontend.
Breaking Changes
- Renamed package from
olivermbs/laravel-enumsharetoolivermbs/enumshare - Dropped Laravel 10 support - now requires Laravel 11+
- Simplified TypeScript output format
- Removed deprecated Vite plugin (use artisan commands instead)
Changes
- Renamed service provider to
EnumshareServiceProvider - Updated all namespaces
- Simplified README documentation
- Improved CI test compatibility (Windows support)
- Updated PHPStan configuration
Installation
composer require olivermbs/enumshareQuick Start
use Olivermbs\Enumshare\Concerns\SharesWithFrontend;
enum Status: string
{
use SharesWithFrontend;
case Active = 'active';
case Inactive = 'inactive';
}php artisan enums:exportSee the README for full documentation.