PackageTrack
Sign in Get early access

spatie/macroable

A trait to dynamically add methods to a class

2.1.0 67M downloads/mo #504 most downloaded on Packagist spatie/macroable

What this package is like to depend on

Last release 6 months ago

30 Jan 2026

Ships fairly regularly

a new release about every 3.1 years

Nearly every release is documented

notes for 5 of 5 stable releases

Nothing withdrawn

no release was ever pulled

9 years old

5 releases · first in 2017

1 release in the last 12 months

see the full history below

Release timeline

5 releases · Sep 2017 to Jan 2026
2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 5
  1. 2.1.0 30 Jan 2026
    Release notes

    What's Changed

    • Add PHP 8.5 support by fixing ReflectionMethod::setAccessible() deprecation warning
    • Upgrade minimum PHP version to 8.3
    • Upgrade to Pest 4 and PHPUnit 12

    Full Changelog: 2.0.0...2.1.0

    Open source →
    Release notes

    What's Changed

    • Add PHP 8.5 support by fixing ReflectionMethod::setAccessible() deprecation warning
    • Upgrade minimum PHP version to 8.3
    • Upgrade to Pest 4 and PHPUnit 12

    Full Changelog: https://github.com/spatie/macroable/compare/2.0.0...2.1.0

    Open source →
  2. 2.0.0 26 Mar 2021
    Release notes
    • require PHP 8+
    • drop support for PHP 7.x
    • convert syntax to PHP 8
    Open source →
    Release notes
    • require PHP 8+
    • drop support for PHP 7.x
    • convert syntax to PHP 8
    Open source →
  3. 1.0.1 03 Nov 2020
    Release notes
    • add support for PHP 8.0
    • drop support for PHP 7.1 and below
    Open source →
    Release notes
    • add support for PHP 8.0
    • drop support for PHP 7.1 and below
    Open source →
  4. 1.0.0 18 Sep 2017
    Release notes
    • initial release
    Open source →
    Release notes
    • initial release
    Open source →
  5. 0.0.1 17 Sep 2017
    Release notes
    • experimental release
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive