PHPackages                             josmlt/spoonacular-laravel-wrapper - 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. [Framework](/categories/framework)
4. /
5. josmlt/spoonacular-laravel-wrapper

AbandonedArchivedProject[Framework](/categories/framework)

josmlt/spoonacular-laravel-wrapper
==================================

A Laravel wrapper for Spoonacular API

v2.0.0(4y ago)118[1 issues](https://github.com/joslmt/spoonacular-laravel-wrapper/issues)MITPHPPHP ^7.3|^8.0

Since Jul 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/joslmt/spoonacular-laravel-wrapper)[ Packagist](https://packagist.org/packages/josmlt/spoonacular-laravel-wrapper)[ RSS](/packages/josmlt-spoonacular-laravel-wrapper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

 [ ![](https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg) ](https://laravel.com) [ ![](https://camo.githubusercontent.com/592c61c8c19032dc30899404c8079271f4e5a6664919de7370430e4837b564bf/68747470733a2f2f73706f6f6e6163756c61722e636f6d2f696d616765732f73706f6f6e6163756c61722d6c6f676f2d622e737667) ](https://spoonacular.com/food-api)

Spoonacular Laravel Wrapper
===========================

[](#spoonacular-laravel-wrapper)

- [Spoonacular Laravel Wrapper](#spoonacular-laravel-wrapper)
- [What is 📝](#what-is-memo)
    - [Purpose](#purpose)
    - [Steps to installation ℹ️](#steps-to-installation-information_source)
        - [Package Locally Development ℹ️](#package-locally-development-information_source)
        - [From Packagist ℹ️](#from-packagist-information_source)
    - [How to use it ❓](#how-to-use-it-question)
    - [Testing ✔️](#testing-heavy_check_mark)

What is 📝
=========

[](#what-is-memo)

It's a package that uses Facades to request resources from Spoonacular API, like recipes, random recipes, nutrients and offers different sort options like for calories, intolerances etc.

Purpose
-------

[](#purpose)

It was made to learn how Facades and Laravel packages works.

Steps to installation ℹ️
------------------------

[](#steps-to-installation-information_source)

It's necessary register in [Spoonacular](https://spoonacular.com/) and get an api key.

### Package Locally Development ℹ️

[](#package-locally-development-information_source)

We need to create a folder, within it we create a Laravel project and clone the repository. Structure similar to this :

```
-- foo
    -- laravel_project
    -- package_laravel

```

After that, open `composer.json` file in our main Laravel project, add the next properties :

```
 "require": {
     [. . .]
        "josmlt/spoonacular-laravel-wrapper": "dev-master",
    }
"repositories": [
      {
          "type": "path",
          "url": "../spoon-wrapper"
      }
    ],

```

Next step is require the package to our project, execute :

```
composer require josmlt/spoonacular-laravel-wrapper

```

We'll see the message: `Installing josmlt/spoonacular-laravel-wrapper (dev-master): Junctioning from ../spoon-wrapper`

Then execute the follow command, it publishes the config file :

```
php artisan vendor:publish --tag=spoonacular

```

Finally we have two options, first we could have a default value of SPOONACULAR\_API\_KEY, within `config/spoonacular.php` or as well we can add in our `.env` a new environment variable like `SPOONACULAR_API_KEY = ""`

### From Packagist ℹ️

[](#from-packagist-information_source)

We need to pull the package from packagist to our Laravel project.

```
composer require josmlt/spoonacular-laravel-wrapper

```

After a correct installation, we need to publish a custom config file, execute:

```
php artisan vendor:publish

```

Finally, we move into :

```
config/spoonacular.php

```

And add our api key from [Spoonacular](https://spoonacular.com/), or alternative you can create a new environment variable named like `SPOONACULAR_API_KEY`.

How to use it ❓
---------------

[](#how-to-use-it-question)

👉 If we want to get recipes with tomato, for example, we just need to search recipes with this keyword, type:

```
Spoonacular::searchRecipes('tomato');

```

👉 But what else? If you need a complex search, because for example you're intolerant with eggs or you want order the results for amount of calories ... Type :

```
Spoonacular::searchRecipes(
    [
        'query' => 'tomato',
        'intolerances' => 'egg',
        'sort' => 'calories'
    ]
);

```

👉 Or get random recipes :

```
Spoonacular::getRandomRecipes();

```

Testing ✔️
----------

[](#testing-heavy_check_mark)

This package provides a few tests, the objective is to get more confident using the package and check if it's possible add a new feature without broke nothing valuable.

Within the package, execute the follow : `vendor/bin/phpunit tests/Unit/SpoonacularFacadeTest.php`

Don't forget execute `composer install` after download or clone the project, also get a valid APIKEY.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~18 days

Total

3

Last Release

1717d ago

Major Versions

v0.1.1 → v2.0.02021-08-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/44ecfccb7af5f537b891cf03b02ed31430b28c86d263b417440721b07fe0ebeb?d=identicon)[joslmt](/maintainers/joslmt)

---

Top Contributors

[![joslmt](https://avatars.githubusercontent.com/u/64318244?v=4)](https://github.com/joslmt "joslmt (11 commits)")

---

Tags

backendfacade-patternlarave-packagelaravellaravel-apiphpphp-wrapperphpframeworklaravel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/josmlt-spoonacular-laravel-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/josmlt-spoonacular-laravel-wrapper/health.svg)](https://phpackages.com/packages/josmlt-spoonacular-laravel-wrapper)
```

###  Alternatives

[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[nunomaduro/laravel-desktop-notifier

Send notifications to your desktop from your Laravel commands. An JoliNotif wrapper for Laravel 5.

4781.7M8](/packages/nunomaduro-laravel-desktop-notifier)[defstudio/pest-plugin-laravel-expectations

A plugin to add laravel tailored expectations to Pest

98548.9k4](/packages/defstudio-pest-plugin-laravel-expectations)[hypervel/framework

The Hypervel framework.

1012.1k6](/packages/hypervel-framework)[richarddobron/laravel-fbt

A PHP Internationalization Framework for Laravel Application.

125.7k](/packages/richarddobron-laravel-fbt)

PHPackages © 2026

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