Skip to content

v1.0.0

Choose a tag to compare

@CodeWithKyrian CodeWithKyrian released this 14 Dec 16:00
· 18 commits to main since this release

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

  1. Change package type to platform-package
  2. Create a platforms.yml to define platforms and platform-specific exclusions.
  3. Generate distribution URLs with a simple command.
  4. 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