PHPackages                             stellarwp/foundation-container-wordpress - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. stellarwp/foundation-container-wordpress

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

stellarwp/foundation-container-wordpress
========================================

The Foundation DI container wrapper for WordPress projects.

1.2.0(today)00GPL-2.0-or-laterPHPPHP &gt;=8.3

Since Jul 1Pushed todayCompare

[ Source](https://github.com/stellarwp/foundation-container-wordpress)[ Packagist](https://packagist.org/packages/stellarwp/foundation-container-wordpress)[ RSS](/packages/stellarwp-foundation-container-wordpress/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

Foundation Container WordPress
==============================

[](#foundation-container-wordpress)

Warning

**This is a read-only repository!** For pull requests or issues, see [stellarwp/foundation](https://github.com/stellarwp/foundation).

A WordPress-focused wrapper around [stellarwp/foundation-container](https://github.com/stellarwp/foundation-container). It exposes the full Foundation DI container API and adds WordPress-specific helpers.

Installation
------------

[](#installation)

```
composer require stellarwp/foundation-container-wordpress
```

Usage
-----

[](#usage)

Create a new `ContainerAdapter`, passing in a Foundation container adapter. It implements the [`Contracts/Container.php`](./Contracts/Container.php) interface, which extends the base Foundation container contract:

```
