Securing PHP APIs with Laravel Passport
When a PHP API serves multiple clients, Laravel Passport lets those clients authenticate and receive limited permissions through OAuth 2.0. OAuth 2.0…
When a business hires a provider to maintain a Laravel application, both sides need clear answers on which environments and services the provider supports, who handles deployments and queued jobs, how support requests work, and which tasks cost extra.
A Service Definition Document (SDD) answers those questions. It describes the service, lists what it covers, and assigns each party’s responsibilities. A Service Level Agreement (SLA) sets measurable targets, such as how fast the provider acknowledges a request and how it reports performance. You can combine the SDD and SLA into one document or keep them separate, as long as the contract package shows where each commitment lives.
A clear SDD names the Laravel application and every part needed to run it, explains how support works, and separates routine maintenance from feature development. When a request comes in, both parties can check the document to see whether the service covers it, who acts next, and how the provider measures its performance.
Use the SDD alongside the main agreement to explain how the maintenance service works. The main agreement usually holds the legal terms. If you keep the SLA in a separate document, list its name and version in the SDD and state which document takes precedence if their terms conflict.
No single SDD format is required. Government service-agreement guidance focuses on scope, responsibilities, operations, performance, reporting, and financial arrangements. The NIST definition of an SLA covers service details, responsibilities, expected performance, reporting, resolution, and termination. Use these areas as a practical checklist when drafting your document.
Start by writing down what the service helps the customer achieve, then list the systems and tasks needed to make that happen. A vague line like “maintain the customer portal” leaves both sides guessing whether the provider must fix a queue outage or build a new checkout flow. Name the portal, its environments, and the exact tasks the provider will perform.
Name the Laravel application and every part of its production setup that the provider will support. Record the Laravel and PHP versions, the database, the hosting arrangement, the source repository, the deployment method, and any relevant integrations. List both production and staging environments, and state whether the provider also supports development environments.
Next, assign an owner to each part of running the application. Laravel’s documentation explains how the framework runs queued jobs and scheduled tasks, but it cannot tell you who manages hosting, monitoring, or infrastructure under your contract. The SDD has to make those assignments.
| Component | What the SDD should assign |
|---|---|
| Hosting and infrastructure | Who manages the hosting account, servers, access, and infrastructure incidents |
| Deployments | Who approves and runs releases, checks the result, and handles rollback decisions |
| Queue workers | Who monitors worker health, reviews failed jobs, and operates the process monitor |
| Scheduled tasks | Who configures and checks the server cron entry and investigates missed tasks |
| Database | Who reviews and runs migrations, and who manages backups and restoration |
| Monitoring and external services | Which party watches each service and coordinates with hosting, payment, mail, or other vendors |
A cron entry is a server instruction that runs a command on a set schedule. Laravel’s scheduler usually relies on a server cron entry that runs schedule:run every minute, so the SDD should name who manages that entry and who investigates missed tasks. Laravel also describes queue workers as long-running processes. Those workers need a process monitor to check that they stay running, and someone must restart them after code deployments. Assign responsibility for the workers, the monitor, and post-deployment restarts explicitly. Do not assume that general code maintenance covers these tasks. You can review the technical details in Laravel’s documentation on task scheduling and queues.
Draw a clear line between included maintenance and work that requires a new estimate or approval. Included work might cover dependency reviews, bug investigations, or scheduled checks on failed jobs. A new customer workflow, a large data migration, a redesign, or a platform move will usually need separate approval. For every excluded task, explain how the customer requests it, such as by asking for a written estimate. Writing “custom development excluded” does not tell anyone where bug fixes stop and feature work begins.
Explain how the customer reports a problem and what the provider does next. Name the support channel, who can submit requests, the service hours and time zone, and the details the customer needs to include. For an incident, that usually means the affected feature, when the issue started, and the steps to reproduce it.
Base severity levels on business impact. Separate an outage that blocks customers from finishing a core task from a minor display bug that has a workaround. Then set distinct commitments for acknowledgment, response, updates, and resolution. An acknowledgment confirms the provider received the request. A response explains what the provider has done or plans to do first. A resolution means the provider fixed the bug or both parties agreed on a workaround.
Do not promise a fixed resolution time when another vendor controls a service the fix depends on. Instead, state what the maintenance provider will do: investigate the Laravel application, share the findings, and escalate the issue to the hosting or payment provider. The SLA should explain how both parties measure each commitment, which logs or records count, and whether the clock pauses while the provider waits for customer access or a decision. The DoD ESI SLA guidance recommends clear service items and metrics, and it warns that vague phrases like “standard hours” need exact definitions.
A Laravel maintenance contract covers day-to-day operations alongside code changes. In the deployment section, state who approves production releases, which checks the provider runs before deploying, and who verifies the application afterward. Laravel’s deployment guidance covers production configuration and restarting long-running services after a release. Your contract needs to say which party performs those steps.
In the database section, separate reviewing and running migrations from other data work. State who approves migrations, what backup rules apply, and whether the maintenance fee covers data cleanup or restoration. Laravel ships with database migration tools, but those tools cannot guarantee that a migration is safe to run, nor do they decide who is responsible if one fails.
Spell out what testing the provider must perform. If the provider has to run existing automated tests, name the test suite or checks and state what happens when tests are missing or already failing. Laravel supports automated testing, but your SDD should reflect the application’s actual test coverage and release habits.
If you include an availability target, name the exact endpoint the provider monitors and list the parts of the service included in that measurement. Explain how both sides account for planned maintenance, hosting outages, third-party failures, and customer-made changes. A Laravel health route by itself does not create an uptime guarantee. The SDD has to separate the parts the provider controls from the services another vendor runs.
Record the application’s current Laravel and PHP versions, then outline what both parties will do as those versions near end of support. Under Laravel’s published release policy, framework releases receive 18 months of bug fixes and two years of security fixes. As of November 21, 2026, Laravel lists security fixes through February 24, 2027, for Laravel 12 and through March 17, 2028, for Laravel 13 in its release support schedule.
PHP runs on its own schedule. The PHP project provides two years of active support followed by two years of security-only support for each branch; check its supported versions schedule for current dates. The SDD should name who checks compatibility, tests an upgrade, requests approval, and estimates the effort. Published support dates from Laravel and PHP do not mean the maintenance fee automatically covers an upgrade.
For every service item, state what the provider does, what triggers the work or how often it runs, what the provider delivers, and what the customer must supply. The examples below show the level of detail to aim for. Adjust the commitments to fit your own contract.
| Service item | Included activity | Trigger or frequency | Provider output | Boundary or dependency |
|---|---|---|---|---|
| Framework maintenance | Review applicable Laravel updates and assess compatibility | Agreed review cycle or relevant security advisory | Findings and a proposed update plan | A major-version upgrade requires separate approval unless included |
| Incident support | Triage and investigate reported application faults | Request through the agreed support channel | Acknowledgment, updates, and a fix or workaround | Resolution depends on third-party vendors when their services cause the fault |
| Queue operations | Review agreed worker-health or failed-job indicators | Agreed monitoring cadence or alert | Findings and a record of action | The SDD identifies who operates the queue infrastructure |
| Release support | Run agreed checks and deploy approved changes | Approved release window | Deployment status and post-release check results | The customer provides approval and access to the required environment |
State whether the fee covers a fixed block of work or a defined service capacity, how the provider bills extra work, and whether the customer must approve extra charges before work starts. Government service-definition examples routinely place exclusions and constraints right next to the service description. This published service definition example shows how limits and dependencies clarify the scope.
Both the application and the way your team runs it will change over time. Set a date to review the SDD, and require both parties to approve an update whenever you change a covered environment, shift responsibility for a component, switch support channels, or adjust a commitment. Record the document version, effective date, approvers, and governing agreement so everyone can tell which terms are active.
List the customer’s responsibilities in the same document. The customer may need to grant access to the source repository and hosting account, approve production releases, supply test data, make product decisions, or coordinate with an external vendor. If the provider gets blocked because the customer has not acted, the provider should name the missing input and explain how the delay affects the service commitments.
Keep privacy, security, liability, intellectual-property ownership, and other legal terms in the main agreement or a dedicated schedule. Those requirements depend on the application’s data, jurisdiction, and risk profile, so both parties should have legal counsel review the contract language.
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