Download the PHP package vcarreira/wordsapi-laravel without Composer
On this page you can find all versions of the php package vcarreira/wordsapi-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vcarreira/wordsapi-laravel
More information about vcarreira/wordsapi-laravel
Files in vcarreira/wordsapi-laravel
Package wordsapi-laravel
Short Description A simple WordsAPI service provider for Laravel 5
License MIT
Homepage http://github.com/vcarreira/wordsapi-laravel
Informations about the package wordsapi-laravel
WordsApi
A simple Laravel 5 service provider for the WordsApi service.
Installation
Add the following line to the require
section of composer.json
:
Setup
In /config/app.php
, add the following to providers
:
and the following to aliases
:
Configuration
In order to use the service you must first get an API key from WordsAPI. By default, the package uses the following environment variables to auto-configure the service without modification:
To customize the configuration file, publish the package configuration using Artisan.
Update your settings in the generated app/config/wordsapi.php
configuration file.
Usage
To use the service within your app, you need to retrieve it from the Laravel IoC
Container. The following example uses the app
helper to retrieve information about the word 'effect'.
If the facade is registered within the aliases
section of the application configuration, you can also use the following code:
Limitation
Version 1.0 does not support search requests.
Links
All versions of wordsapi-laravel with dependencies
illuminate/support Version ~5.1
vcarreira/wordsapi Version ~1.0
ext-curl Version *