# PHPForge\Scaffold\Services

> 10 classes, 1 enum of the PHPForge\Scaffold\Services namespace.

[API reference](/docs/api/index.md) › [Scaffold](/docs/extensions/scaffold/reference/index.md) › Services

## Classes

| Class | Summary |
| --- | --- |
| [`ApplyPreview`](/docs/extensions/scaffold/reference/services/applypreview/index.md) final readonly | Represents the content a destination has now and the content it would have after applying its provider mapping. |
| [`ApplyPreviewer`](/docs/extensions/scaffold/reference/services/applypreviewer/index.md) final readonly | Computes in memory what applying a provider mapping would write to its destination, without touching the disk. |
| [`DiffService`](/docs/extensions/scaffold/reference/services/diffservice/index.md) final | Renders Git-compatible unified diffs of what applying the provider would change in tracked files. |
| [`EjectService`](/docs/extensions/scaffold/reference/services/ejectservice/index.md) final | Marks a file entry as ejected in `scaffold-lock.json` so scaffold stops writing it; the file stays on disk. |
| [`ProvidersService`](/docs/extensions/scaffold/reference/services/providersservice/index.md) final | Lists scaffold providers recorded in `scaffold-lock.json` with their file counts. |
| [`PruneService`](/docs/extensions/scaffold/reference/services/pruneservice/index.md) final | Reports the orphaned entries of `scaffold-lock.json` and, when forced, removes them from the lock and deletes the orphaned files that hold only provider content. |
| [`ReapplyService`](/docs/extensions/scaffold/reference/services/reapplyservice/index.md) final | Rewrites tracked files from their provider stubs; without `force` it merges `append` and `prepend` files and skips ejected, adopted, user-modified and existing `preserve` files; it always skips orphaned files. |
| [`ReapplySummary`](/docs/extensions/scaffold/reference/services/reapplysummary/index.md) final | Counts the outcomes of a `reapply` run and formats its summary line. |
| [`StatusService`](/docs/extensions/scaffold/reference/services/statusservice/index.md) final | Reports the state of each file tracked in `scaffold-lock.json` against the disk and the current provider stubs, and the provider files not tracked yet as `pending`. |
| [`SyncService`](/docs/extensions/scaffold/reference/services/syncservice/index.md) final | Applies the allowed and installed providers to the project from the command line, with the same rules as a Composer `install` or `update`, or previews what applying them would change. |

## Enums

| Enum | Summary |
| --- | --- |
| [`FileStatus`](/docs/extensions/scaffold/reference/services/filestatus/index.md) | Represents the state of a scaffold file, tracked in `scaffold-lock.json` or pending, as reported by the `status` command. |