Git Product home page Git Product logo

edamam-php's Introduction

Edamam-PHP

Software License Build Status StyleCI Total Downloads

The Edama-PHP library provides access to the Edamam API for the PHP language.

Installation

Install with composer using composer require kylemilloy/edamam-php

Usage

Simple usage looks like:

\Edamam\Api\FoodDatabase\FoodDatabase::setApiCredentials('app_id', 'app_key');

$results = \Edamam\Api\FoodDatabase\FoodRequest::find(['ingredient' => 'pizza'])->results();

For more complex usage view the FoodDatabase API Docs.

Todo

  • Add full support for Food Database API
  • Add full support for Nutrition Analysis API
  • Add full support for Recipe Search API

edamam-php's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Forkers

iamb0rgy

edamam-php's Issues

Laravel 9 Issue

Hi,

I am getting this error.

`PS C:\xampp\htdocs\food> composer require kylemilloy/edamam-php
Using version ^0.2.2 for kylemilloy/edamam-php
./composer.json has been updated
Running composer update kylemilloy/edamam-php
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires kylemilloy/edamam-php ^0.2.2 -> satisfiable by kylemilloy/edamam-php[0.2.2].
- kylemilloy/edamam-php 0.2.2 requires guzzlehttp/guzzle ^6.3 -> found guzzlehttp/guzzle[6.3.0, ..., 6.5.x-dev] but it conflicts with your root composer.json require (^7.5).

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require kylemilloy/edamam-php:*" to figure out if any version is installable, or "composer require kylemilloy/edamam-php:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.