PHPackages                             aashley/chef - 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. [API Development](/categories/api)
4. /
5. aashley/chef

ActiveLibrary[API Development](/categories/api)

aashley/chef
============

Opscode Chef API library

2.0.1(5y ago)03MITPHPPHP &gt;=7.0.0

Since Jul 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/aashley/php-chef)[ Packagist](https://packagist.org/packages/aashley/chef)[ RSS](/packages/aashley-chef/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (5)Used By (0)

Chef
====

[](#chef)

The Chef Server API is used to provide access to objects on the Chef Server, including nodes, environments, roles, cookbooks (and cookbook versions), and to manage an API client list and the associated RSA public key-pairs.

*This is a generic library and has additional support for the Laravel framework.*

This is forked from  I have some different requirements and will be maintaining it independantly. For legacy compatibility reasons I still use the original packages namespace so this is a drop in replacement.

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

[](#installation)

Add `aashley/chef` as a requirement to composer.json:

```
composer require "aashley/chef" "^2.0"

```

Update your packages with `composer update` or install with `composer install`.

Usage
-----

[](#usage)

Create a chef object like this:

```
// composer
require_once 'vendor/autoload.php';
use Jenssegers\Chef\Chef;

// create chef object
$chef = new Chef($server, $client, $key, $version);

// API request
$response = $chef->api($endpoint, $method, $data);

```

See [http://docs.opscode.com/api\_chef\_server.html](http://docs.opscode.com/api_chef_server.html) for all available endpoints.

Examples
--------

[](#examples)

Get nodes:

```
$nodes = $chef->get('/nodes');

```

Create a data bag:

```
$bag = new stdClass;
$bag->name = "test";

$resp = $chef->post('/data', $bag);

```

Update a node:

```
$node = $chef->get('/nodes/webserver1');
$node->attributes->type = "webserver";

$chef->put('/nodes/webserver1', $node);

```

Delete a data bag:

```
$chef->delete('/data/test/item');

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 76.3% 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

Every ~511 days

Total

4

Last Release

2116d ago

Major Versions

1.0.1 → 2.0.02018-02-12

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

2.0.0PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/4faf31828d53ce750a7b5565b8f40c5de5a658623f1be4a9de7946a7aa794a08?d=identicon)[adam.ashley](/maintainers/adam.ashley)

---

Top Contributors

[![jenssegers](https://avatars.githubusercontent.com/u/194377?v=4)](https://github.com/jenssegers "jenssegers (29 commits)")[![warroyo](https://avatars.githubusercontent.com/u/616621?v=4)](https://github.com/warroyo "warroyo (4 commits)")[![glensc](https://avatars.githubusercontent.com/u/199095?v=4)](https://github.com/glensc "glensc (2 commits)")[![jeichorn](https://avatars.githubusercontent.com/u/122486?v=4)](https://github.com/jeichorn "jeichorn (1 commits)")[![ROunofF](https://avatars.githubusercontent.com/u/5734058?v=4)](https://github.com/ROunofF "ROunofF (1 commits)")[![viktors](https://avatars.githubusercontent.com/u/3460?v=4)](https://github.com/viktors "viktors (1 commits)")

---

Tags

chef

### Embed Badge

![Health badge](/badges/aashley-chef/health.svg)

```
[![Health](https://phpackages.com/badges/aashley-chef/health.svg)](https://phpackages.com/packages/aashley-chef)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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