---
title: "Installation — Package Toolkit for Laravel | Roundly"
description: "Install via Composer — the toolkit is a library your package’s service provider builds on, with nothing to publish."
url: https://roundly-consulting.com/open-source/docs/package-toolkit-for-laravel/installation
language: en
---

[All packages](https://roundly-consulting.com/open-source.md)

[Package Toolkit for Laravel](https://roundly-consulting.com/open-source/docs/package-toolkit-for-laravel.md)

# Installation

Require the toolkit in the package you are building:

```bash
composer require roundly-consulting/package-toolkit-for-laravel
```

The toolkit ships no config, migrations or assets of its own, and no service provider to register — it is a library that your package’s service provider builds on. There is nothing to publish and nothing to migrate.

## What you get

- PackageServiceProvider + Package — the fluent package-bootstrap builder.
- KeyType and the Blueprint macros — ownerKey(), morphKey(), polymorphicSubject(), auditable().
- DatabaseDriver, whereLikeEscaped() and LikeEscaper — driver-aware, injection-safe queries.
- Config, ConfigValidator and ModelResolver — validate-or-throw config (secret readers included) and model resolution.
- InteractsWithGates, RegistersBladeDirectives, RegistersBlueprintMacros, ResolvesModels and ProvidesRetryAfter — opt-in traits, plus RedactsSensitiveArguments for your package’s own facade.
- A PHPStan extension (extension.neon) that declares the macros for static analysis.

## Show your open-source love

This package is free and MIT-licensed. If it saves you time, a one-off donation or a Patreon membership keeps it maintained, tested and documented.

[More ways to support, including crypto](https://roundly-consulting.com/support-us.md)

By donating, you agree to our [donation terms](https://roundly-consulting.com/donation-terms.md).

[Support our open source work (opens in a new tab)](https://donate.stripe.com/dRmeVe8FX5PF1Qd9pXcEw00) [Join us on Patreon (opens in a new tab)](https://www.patreon.com/cw/roundly)

## Want this built into your product?

We integrate our packages into custom Laravel and AI builds. Tell us what you're working on and we'll reply within 48 hours.

[Get a quote in 48 hours](https://roundly-consulting.com/contact.md) [Browse all packages](https://roundly-consulting.com/open-source/docs/package-toolkit-for-laravel.md)
