spatie/better-types
Improved abstraction for dealing with union and named types.
1.1.0
4.1M downloads/mo
#1706 most downloaded on Packagist
spatie/better-types
What this package is like to depend on
Last release 6 months ago
21 Feb 2026
Ships fairly regularly
a new release about every 6 months
Most releases are documented
notes for 7 of 9 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
9 releases · first in 2021
1 release in the last 12 months
see the full history below
Release timeline
9 releases · Sep 2021 to Feb 2026Releases
latest 9-
1.1.021 Feb 2026 -
1.0.108 Mar 2025Release notes
Open source →What's Changed
- Small improvements by @maartenpaauw in #7
- Add support for union types by @maartenpaauw in #8
New Contributors
- @maartenpaauw made their first contribution in #7
Full Changelog: 1.0.0...1.0.1
Release notes
Open source →What's Changed
- Small improvements by @maartenpaauw in https://github.com/spatie/better-types/pull/7
- Add support for union types by @maartenpaauw in https://github.com/spatie/better-types/pull/8
New Contributors
- @maartenpaauw made their first contribution in https://github.com/spatie/better-types/pull/7
Full Changelog: https://github.com/spatie/better-types/compare/1.0.0...1.0.1
-
1.0.020 Feb 2025 -
0.2.008 Mar 2024Release notes
Open source →What's Changed
- Allow Laravel 11 by @inmanturbo in #6
New Contributors
- @inmanturbo made their first contribution in #6
Full Changelog: 0.1.3...0.2.0
Release notes
Open source →What's Changed
- Allow Laravel 11 by @inmanturbo in https://github.com/spatie/better-types/pull/6
New Contributors
- @inmanturbo made their first contribution in https://github.com/spatie/better-types/pull/6
Full Changelog: https://github.com/spatie/better-types/compare/0.1.3...0.2.0
-
0.1.325 Jan 2023 -
0.1.218 Jul 2022 -
0.1.114 Jan 2022 -
0.1.006 Oct 2021Nothing published for this version
-
0.0.103 Sep 2021Nothing published for this version