Packagist · packagist:spatie/better-types
spatie/better-types active
Improved abstraction for dealing with union and named types.
| Latest stable version | 1.1.0 |
|---|---|
| Published | 2026-02-21 22:37:38+00:00 |
| Install | composer require spatie/better-types |
| Required PHP version (composer.json) | PHP ^8.2 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-10-09 15:04:04 UTC |
| Sources | api.osv.dev, repo.packagist.org |
Maintenance
| Activity | slowing down |
|---|---|
| Last stable release | 2026-02-21 22:37:38 UTC · 229 days ago |
| Stable releases in the last 12 months | 1 |
| Published versions | 9 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
1.1.0 | 2026-02-21 22:37:38 UTC |
1.0.1 | 2025-03-08 12:10:32 UTC |
1.0.0 | 2025-02-20 13:29:00 UTC |
0.2.0 | 2024-03-08 11:36:18 UTC |
0.1.3 | 2023-01-25 09:32:02 UTC |
0.1.2 | 2022-07-18 08:51:21 UTC |
0.1.1 | 2022-01-14 08:30:08 UTC |
0.1.0 | 2021-10-06 07:59:14 UTC |
0.0.1 | 2021-09-03 09:05:12 UTC |
Showing the 9 most recent of 9 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
php 7.4 | none |
php 8.0 | 0.2.0 |
php 8.1 | 0.2.0 |
php 8.2 | 1.1.0 |
php 8.3 | 1.1.0 |
php 8.4 | 1.1.0 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of spatie/better-types?
The latest stable version of spatie/better-types is 1.1.0, published on 2026-02-21. Verified by Vigia on 2026-10-09.
How do I install the latest version of spatie/better-types?
Run composer require spatie/better-types. The latest stable version is 1.1.0 (verified 2026-10-09).
Is spatie/better-types deprecated?
No. spatie/better-types is not marked as deprecated in the registry.
Which PHP version does spatie/better-types require?
spatie/better-types 1.1.0 declares this requirement: PHP ^8.2.
Does spatie/better-types 1.1.0 have known vulnerabilities?
No known advisories affect spatie/better-types 1.1.0 according to the data Vigia checks.
Is spatie/better-types still maintained?
spatie/better-types published 1 stable releases in the last 12 months; the most recent was 229 days ago. Activity: slowing down.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- davaxi/sparkline
- spatie/laravel-event-sourcing
- hubspot/hubspot-php
- payum/iso4217
- open-telemetry/opentelemetry-auto-symfony
- bshaffer/oauth2-server-php
- oscarotero/env
- mjaschen/phpgeo
- cakephp/authentication
- psalm/plugin-symfony
- exercise/htmlpurifier-bundle
- cebe/php-openapi
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/packagist/spatie/better-types) [](https://vigia.coredls.cloud/packagist/spatie/better-types) [](https://vigia.coredls.cloud/packagist/spatie/better-types)
For agents
GET https://vigia.coredls.cloud/v1/packages/packagist/spatie/better-types
GET https://vigia.coredls.cloud/v1/packages/packagist/spatie/better-types/versions/{version}