v1.0.0
Composer Platform Package Installer - v1.0.0
🚀 Introduction
I'm excited to release the first version of Composer Platform Package Installer, a revolutionary solution for managing platform-specific package distributions in PHP projects!
✨ Key Features
Platform-Specific Package Management
- Fine-grained control over package distributions across different platforms and architectures
- Exclude specific folders and files for each platform
- Generate custom distribution URLs with ease
Flexible Configuration
- Simple YAML-based platform configuration
- Support for multiple platforms: Linux, macOS, Windows
- Comprehensive architecture support (x86_64, arm64, and more)
Powerful Utility Methods
findBestMatch()method for runtime platform-specific resource selection- Seamless integration with Composer's package management system
🔧 How It Works
- Change package type to
platform-package - Create a
platforms.ymlto define platforms and platform-specific exclusions. - Generate distribution URLs with a simple command.
- Automatically download platform-optimized packages
🛠 Installation
composer require codewithkyrian/platform-package-installer🌟 Example Configuration
linux-x86_64:
exclude:
- libs/linux-arm64
- libs/darwin-*
- "*.exe"
- "**/*.windows.*"
darwin-arm64:
exclude:
- libs/windows-*
- libs/linux-*
- "*.exe"
- "*.so"📦 Compatibility
- PHP 8.1+
- Composer 2.0+
🔒 License
MIT License
🙌 Contributing
Contributions are always welcome! Please open issues or submit pull requests; I always love that.
🔮 Future Roadmap
- Enhanced platform detection
- More distribution source integrations
- Improved performance and flexibility