Currently Available: Need a skilled Software Developer for your next project?
Categories
Laravel

Setting a Maintenance Schedule for Your Laravel Package

Package maintainers need a schedule for checking dependencies, updating instructions, releasing changes, and testing the Laravel and PHP versions the package claims to support. A steady schedule helps them catch problems before users report them without prompting unnecessary releases or reviews.

Laravel does not set a maintenance calendar for independent packages. Set the schedule according to risk: run tests on every pull request, review routine dependency updates weekly, update documentation when behavior changes, and release tested changes when they are useful. A compatibility matrix lists the Laravel and PHP versions the package claims to support. Test those combinations before making or keeping those claims.

Review dependencies weekly and security issues promptly

Set a weekly time to review dependency-update pull requests and check for security advisories. GitHub Dependabot supports scheduled checks, including weekly checks, so its proposed updates arrive in a predictable batch. Treat those proposals as candidates for review: updating a dependency can change the versions Composer selects, so run the package’s tests before merging.

Run composer audit in continuous integration, the automated checks that run when code changes, or during the weekly review. Composer uses this command to check installed dependencies against security advisories and dependency policies. An audit reports security findings, but it does not show whether an upgrade preserves your package’s behavior. When a security advisory affects a dependency, investigate and test a fix as soon as practical rather than waiting for the next routine review.

If the dependency backlog grows, temporarily review updates more frequently until it is manageable. Keep major-version updates separate when that makes their compatibility impact easier to assess. For additional guidance on the checks themselves, see setting up continuous integration for Laravel packages.

Update documentation when package behavior changes

Update documentation with the code change that makes it inaccurate. When a configuration option changes, revise the configuration instructions. When the package adds support for a Laravel version, update its compatibility claims. Also check examples and upgrade instructions so users can understand how the change affects existing code.

Keep a changelog, a record of notable changes for users, with an Unreleased section for work that has not shipped. Add an entry when a change matters to users, then move the entry into a dated version section when you publish a release. Keep a Changelog recommends recording user-facing changes rather than copying every commit message. A monthly documentation review can catch missed edits, but it should back up updates made with relevant code changes, not replace them. For release-specific wording, see writing clear upgrade notes.

Release validated changes when they are ready

Publish a release when a tested change gives users a useful fix, feature, or compatibility update. Review ready-to-release changes monthly, but release only when there is a useful change to ship.

Use a consistent versioning policy. Under Semantic Versioning, a patch version signals a backward-compatible bug fix, a minor version signals a backward-compatible feature, and a major version signals a backward-incompatible change. Those version numbers communicate intent, but tests still need to verify the change. Once you publish a version, publish a new version for later changes rather than altering the released contents.

Laravel’s own schedule gives useful context, not a release rule for packages: its framework release policy describes annual major releases and minor or patch releases that can arrive weekly. Your package’s release pace should reflect its changes and users’ needs. Release security and important compatibility fixes promptly after validation, and avoid holding ready fixes just to match an arbitrary calendar. A repeatable package release process can make that decision easier to carry out consistently.

Test the versions you claim to support

Run tests and compatibility checks on every pull request. Testing in continuous integration means running the checks automatically when code changes; a matrix lets the same job run across several configured PHP and Laravel versions. Choose combinations that cover the oldest and newest versions you claim, then add other combinations where they cover differences worth testing without making routine checks too costly.

For Laravel package tests, Orchestra Testbench provides a Laravel environment inside the package’s test suite. GitHub Actions matrix jobs can run those tests across selected version combinations. Schedule tests against newer versions to catch compatibility problems before you change your published support claims.

Reassess the matrix when Laravel or PHP releases a major version and when an upstream support period approaches its end. Laravel publishes framework support dates, while PHP publishes its own version lifecycle: each branch receives two years of full support followed by two years of critical-security-only support, then reaches end of life. Those policies describe the upstream products, not your package. Verify a combination with your code and tests before adding it to composer.json or your README, and remove or qualify support claims when you no longer test them.

A practical maintenance calendar

When What to do
Every pull request Run tests for the Laravel and PHP combinations you claim to support.
As security alerts arrive Investigate affected dependencies and test an appropriate fix.
Weekly Review dependency-update pull requests and inspect Composer audit findings.
With relevant code changes Update affected documentation and add a changelog entry for notable user-facing changes.
Monthly Review the dependency backlog, open issues, support claims, and changes ready to release.
When a change is validated and useful Publish a release that follows your versioning policy.
On new Laravel or PHP major releases, and near upstream end-of-support dates Re-test and reassess your advertised compatibility matrix.

These intervals are suggested starting points; Laravel does not require them. Maintainers of a low-activity package can keep the same safeguards while reviewing releases less often. Packages with security exposure or frequent framework integrations need more frequent attention.

What I'm building

Delegate tasks. Get software.

Give Vroni a GitHub issue, bug report, spec, or rough idea. It reads the repo, plans the change, writes code, runs checks, and works toward a review-ready pull request.

Take a look at vroni.com

Email updates

Usually a new article and a few links I found interesting.

No spam. Unsubscribe with one click.

Leave a Reply

Your email address will not be published. Required fields are marked *