Packagist · packagist:spatie/once
spatie/once active
A magic memoization function
| Latest stable version | 3.1.2 |
|---|---|
| Published | 2025-11-25 15:44:06+00:00 |
| Install | composer require spatie/once |
| Required PHP version (composer.json) | PHP ^8.0 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-10-09 15:04:39 UTC |
| Sources | api.osv.dev, repo.packagist.org |
Maintenance
| Activity | slowing down |
|---|---|
| Last stable release | 2025-11-25 15:44:06 UTC · 318 days ago |
| Stable releases in the last 12 months | 1 |
| Published versions | 19 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
3.1.2 | 2025-11-25 15:44:06 UTC |
3.1.1 | 2024-05-27 09:17:58 UTC |
3.1.0 | 2022-04-21 12:23:20 UTC |
3.0.2 | 2022-02-04 09:04:33 UTC |
3.0.1 | 2021-07-04 12:06:29 UTC |
3.0.0 | 2020-11-03 13:23:06 UTC |
2.2.1 | 2020-10-29 18:22:10 UTC |
2.2.0 | 2020-02-18 15:10:38 UTC |
2.1.3 | 2019-10-31 02:50:53 UTC |
2.1.2 | 2019-08-05 07:49:58 UTC |
2.1.1 | 2019-06-26 22:24:18 UTC |
2.1.0 | 2019-06-19 13:16:23 UTC |
2.0.2 | 2018-12-27 15:11:46 UTC |
2.0.1 | 2018-01-31 16:35:16 UTC |
2.0.0 | 2018-01-31 12:35:03 UTC |
1.1.0 | 2017-08-24 21:16:25 UTC |
1.0.1 | 2016-11-14 09:46:00 UTC |
1.0.0 | 2016-11-07 10:34:57 UTC |
0.0.1 | 2016-11-06 21:43:26 UTC |
Showing the 19 most recent of 19 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 | 2.2.1 |
php 8.0 | 3.1.2 |
php 8.1 | 3.1.2 |
php 8.2 | 3.1.2 |
php 8.3 | 3.1.2 |
php 8.4 | 3.1.2 |
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/once?
The latest stable version of spatie/once is 3.1.2, published on 2025-11-25. Verified by Vigia on 2026-10-09.
How do I install the latest version of spatie/once?
Run composer require spatie/once. The latest stable version is 3.1.2 (verified 2026-10-09).
Is spatie/once deprecated?
No. spatie/once is not marked as deprecated in the registry.
Which PHP version does spatie/once require?
spatie/once 3.1.2 declares this requirement: PHP ^8.0.
Does spatie/once 3.1.2 have known vulnerabilities?
No known advisories affect spatie/once 3.1.2 according to the data Vigia checks.
Is spatie/once still maintained?
spatie/once published 1 stable releases in the last 12 months; the most recent was 318 days ago. Activity: slowing down.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- mcamara/laravel-localization
- jcupitt/vips
- liip/test-fixtures-bundle
- donatj/phpuseragentparser
- stillat/blade-parser
- srmklive/paypal
- nb/oxymel
- magento/magento-coding-standard
- league/flysystem-azure-blob-storage
- mollie/laravel-mollie
- spatie/period
- google/cloud-recaptcha-enterprise
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/once) [](https://vigia.coredls.cloud/packagist/spatie/once) [](https://vigia.coredls.cloud/packagist/spatie/once)
For agents
GET https://vigia.coredls.cloud/v1/packages/packagist/spatie/once
GET https://vigia.coredls.cloud/v1/packages/packagist/spatie/once/versions/{version}