PHPackages                             artisan-build/crate-contracts - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. artisan-build/crate-contracts

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

artisan-build/crate-contracts
=============================

The thin, versioned package contract shared between crate-client and crate-server.

v0.1.0(1mo ago)002MITPHPPHP ^8.3

Since Jul 8Pushed 1mo agoCompare

[ Source](https://github.com/artisan-build/crate-contracts)[ Packagist](https://packagist.org/packages/artisan-build/crate-contracts)[ RSS](/packages/artisan-build-crate-contracts/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (2)Versions (2)Used By (2)

Crate Contracts
===============

[](#crate-contracts)

Framework-free value objects shared by Crate's client and server packages.

This package keeps the wire shapes stable without making either side depend on the other implementation package.

DTOs
----

[](#dtos)

- `ArtisanBuild\CrateContracts\ServedRepo`: `name`, `url`, `type`, and `status` for a repository served by Crate.
- `ArtisanBuild\CrateContracts\Credential`: `name`, one-time `plaintext`, and nullable `expires_at` for credential issue responses.

Both DTOs support:

- `make(...)`
- `toArray()`
- `fromArray(...)`
- `toJson()`
- `fromJson(...)`

Invalid payloads throw package exceptions instead of silently accepting malformed data.

Enums
-----

[](#enums)

- `RepoStatus`: `pending`, `building`, `active`, `failed`, `disabled`.
- `BuildStatus`: `queued`, `running`, `succeeded`, `failed`.
- `RepoType`: `vcs`, `git`, `path`.

Compatibility
-------------

[](#compatibility)

Contracts are additive within a major version. Existing fields are not removed or repurposed inside the same major line, so client and server releases can round-trip known payloads safely.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance90

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

49d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1053395?v=4)[Ed Grosvenor](/maintainers/edgrosvenor)[@edgrosvenor](https://github.com/edgrosvenor)

---

Top Contributors

[![edgrosvenor](https://avatars.githubusercontent.com/u/1053395?v=4)](https://github.com/edgrosvenor "edgrosvenor (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

composercontractslaravelregistrycrate

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/artisan-build-crate-contracts/health.svg)

```
[![Health](https://phpackages.com/badges/artisan-build-crate-contracts/health.svg)](https://phpackages.com/packages/artisan-build-crate-contracts)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
