---
title: "Satis: Composer dependencies and relative URIs in PHP"
description: "Fixes in Satis in PHP: a partial build with a packages filter now resolves dependencies, and homepage and the archive prefix-url accept relative URIs."
url: "https://vulcode.com/en/opensource/contributions/satis"
lang: "en"
---

[All contributions](https://vulcode.com/en/opensource/contributions)

composer/satis

# Satis

A static Composer repository generator where PHP teams keep their private libraries and archives.

[See the repository](https://github.com/composer/satis) [All contributions](https://vulcode.com/en/opensource/contributions)

- **Language**: PHP
- **GitHub stars**: 3,307
- **Merged changes**: 4

## What we changed

A partial build with a packages filter now finds dependencies in the repositories the filter dropped, and homepage and archive.prefix-url in satis.json accept relative references such as /satis.

### What this work shows

- Composer dependency resolution

- Config validation with JSON Schema

- PHPUnit tests on throwaway repositories

What was broken

### A partial build lost the dependencies

The command satis build satis.json web/ vendor/package narrowed the repository list to those matching the packages filter. The dependency pass reused that narrowed list, so with require-dependencies it could not find any dependency.

How we fixed it

### Dropped repositories return for dependencies

PackageSelection keeps the repositories the packages filter dropped and adds them to the set used to look up dependencies, as the repository URL filter already did. A test builds two local repositories and checks that the dependency ends up in the result.

[#1207](https://github.com/composer/satis/pull/1207)

What was broken

### The config rejected relative addresses

The satis.json schema required a full URI for homepage and archive.prefix-url. A value such as /satis failed the config check, which made running Satis locally harder.

How we fixed it

### The uri-reference format in the schema

Both fields now use the uri-reference format, which the json-schema library already supports. /satis passes the check while text that is not an address is still rejected, and new BuildCommand tests cover it.

[#1218](https://github.com/composer/satis/pull/1218)

What was broken

### Purge failed on a missing archive

The purge command failed with unlink(...): No such file or directory when another build or purge had already removed an unreferenced archive. The same race affected the removal of empty directories.

How we fixed it

### A missing archive is skipped with a warning

Deletion now goes through Composer's Filesystem. If it fails and the file is already gone, purge prints Skipped missing archive and carries on, while a file that exists but cannot be deleted still throws. Empty directories are removed with @rmdir, and two new tests cover disappearing archives and an archive that cannot be deleted.

[#1252](https://github.com/composer/satis/pull/1252)

## Merged changes 4

- [#1280 Validate the repository name in the init command Merged 23 November 2026](https://github.com/composer/satis/pull/1280)

- [#1252 Skip unreferenced archives that are already gone when purging Merged 18 November 2026](https://github.com/composer/satis/pull/1252)

- [#1218 Allow relative URI references for homepage and archive prefix-url Merged 6 October 2026](https://github.com/composer/satis/pull/1218)

- [#1207 Resolve dependencies through the repositories the packages filter dropped Merged 14 September 2026](https://github.com/composer/satis/pull/1207)

## What it taught us

A filter that picks what to build must not decide where dependencies may come from. In a JSON schema we pick the format that fits real use: uri-reference lets /satis through and still rejects text that is not an address.

[More about this technology: PHP](https://vulcode.com/en/technologies/php)

## Other projects we write code for

- [**Composer** PHP · 29,590 stars The dependency manager for PHP: it installs and updates a project's libraries from its composer.json.](https://vulcode.com/en/opensource/contributions/composer)

- [**PHPMailer** PHP · 22,347 stars The classic PHP library for sending email, used by WordPress and many other systems.](https://vulcode.com/en/opensource/contributions/phpmailer)

- [**Monolog** PHP · 21,407 stars A PHP logging library that sends records to files, sockets, inboxes, databases and web services. Symfony and Laravel use it, among others.](https://vulcode.com/en/opensource/contributions/monolog)

- [**Carbon** PHP · 16,583 stars A PHP DateTime extension for working with dates, standard in the Laravel ecosystem.](https://vulcode.com/en/opensource/contributions/carbon)

- [**Whoops** PHP · 13,231 stars A PHP library that turns uncaught exceptions into a readable error page with the stack trace, known from Laravel.](https://vulcode.com/en/opensource/contributions/whoops)

- [**ramsey/uuid** PHP · 12,642 stars A PHP library for generating universally unique identifiers (UUIDs).](https://vulcode.com/en/opensource/contributions/ramsey-uuid)

## Describe your project.

A free quote comes back within an hour during working hours.

### Rather skip the form?

Ask in the chat or write to us directly.

Open the chat

- **Email**: [hello@vulcode.com](mailto:hello@vulcode.com)
- **Phone**: [+48 576 043 920](tel:+48576043920)
- **Discord**: [discord.gg/vulcode](https://discord.gg/vulcode)
