Download the PHP package meisam-mulla/laravel-openfda without Composer

On this page you can find all versions of the php package meisam-mulla/laravel-openfda. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-openfda

Laravel OpenFDA

The Laravel OpenFDA package simplifies accessing the openFDA APIs, allowing users to query the API with ease. While this package is designed to be used with Laravel, it can also be used independently.

You can use this API without an API key however you will be limited to 1,000 requests per day. You can get a free API key from openFDA directly

Installation

You can install the Laravel OpenFDA package via Composer by running the following command:

Usage

To use the Laravel OpenFDA package, follow the example below:

With Laravel

Without Laravel

Available Methods

The following methods are available for querying the openFDA APIs:

Method Description
use(string $endpoint): OpenFDA Set the API endpoint to be used.
search(string $query): OpenFDA Set the search query.
sort(string $sort): OpenFDA Set the sorting criteria.
count(int $count): OpenFDA Set the number of results to be counted.
limit(int $limit): OpenFDA Set the maximum number of results to be returned.
skip(int $skip): OpenFDA Set the number of results to skip.
get(): stdClass Send the API request and retrieve the response.

Available Endpoints

The Laravel OpenFDA package provides access to the following openFDA API endpoints:

Endpoint Description
ANIMAL_DRUG_EVENT Animal and Veterinary Drug Event
DRUG_EVENT Drug Event
DRUG_LABEL Drug Label
DRUG_NDC Drug NDC
DRUG_ENFORCEMENT Drug Enforcement
DRUG_FDA Drug FDA
DEVICE_501K Device 510k
DEVICE_CLASSIFICATION Device Classification
DEVICE_ENFORCEMENT Device Enforcement
DEVICE_EVENT Device Event
DEVICE_PMA Device PMA
DEVICE_RECALL Device Recall
DEVICE_REGISTRATION Device Registration Listing
DEVICE_COVID19 Device COVID-19 Serology
DEVICE_UDI Device UDI
FOOD_ENFORCEMENT Food Enforcement
FOOD_EVENT Food Event
TOBACCO_PROBLEM Tobacco Problem

Configuration

To configure the package, you can set the OPENFDA_APIKEY variable in your .env file. If the variable is set, it will be included as an authorization header in the API requests.

You can use this API without an API key however you will be limited to 1,000 requests per day. You can get a free API key from openFDA directly

Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue on GitHub.

License

The Laravel OpenFDA package is open-source software licensed under the MIT license.

Acknowledgements

This package is built upon the openFDA APIs. We would like to express our gratitude to the openFDA team for providing this valuable resource.

Contact

If you have any questions or need further assistance, feel free to contact the package maintainer at [email protected].


All versions of laravel-openfda with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package meisam-mulla/laravel-openfda contains the following files

Loading the files please wait ....