Skip to content

v1.0.0

Choose a tag to compare

@olivermbs olivermbs released this 28 Jul 09:10
· 44 commits to main since this release

enumshare v1.0.0

First stable release of enumshare - share PHP enums with your TypeScript frontend.

Breaking Changes

  • Renamed package from olivermbs/laravel-enumshare to olivermbs/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/enumshare

Quick Start

use Olivermbs\Enumshare\Concerns\SharesWithFrontend;

enum Status: string
{
    use SharesWithFrontend;
    
    case Active = 'active';
    case Inactive = 'inactive';
}
php artisan enums:export

See the README for full documentation.