Download the PHP package braunson/fatsecret-laravel without Composer
On this page you can find all versions of the php package braunson/fatsecret-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package fatsecret-laravel
FatSecret API for Laravel
The FatSecret API for Laravel gives you access to the FatSecret API.
FatSecret provides you with access to comprehensive nutrition data for many thousands of foods, not to mention a range exercises and great weight management tools for your applications.
Requirements
- Laravel versions: 5.6, 5.7 and 5.8
Looking for 4.x Compatibility?
While it may be unsupported now, you can find 4.x compatible versions in the laravel4
branch or tagged with 4.0
How to Install
-
Install the
braunson/fatsecret-laravel
package - Update
config/app.php
to activate FatSecret package
Configuration
-
Publish the config file:
- Open your
.env
file and add in
Usage
When you are using this package in a file, make sure to add this to the top of your file:
The FatSecret is available as FatSecret
, for example:
For more information on using the FatSecret API check out the documentation
Methods
-
Search ingredients by phrase, page and max results
-
Retrieve an ingredient by ID
-
Gets the set consumer key
-
Allows overriding or setting of the consumer key
-
Gets the set secret key
-
Allows overriding or setting of the secret key
-
Allows creation of a profile in FS with a user specific ID.
-
Get the authentication details of a profile
- Create a new session for JavaScript API users
Reporting Bugs or Feature Requests
Please report any bugs or feature requests on the github issues page for this project here:
https://github.com/braunson/fatsecret/issues
Contributing
- Fork the FatSecret on github
- Commit and push until you are happy with your contribution
- Run the tests to make sure they all pass:
composer install && ./vendor/bin/phpunit
- Make a pull request
- Thanks!
License
The FatSecret Laravel API is free software released under the MIT License. See LICENSE for details. This is not an official release and is released separately from FatSecret.