Download the PHP package asciisd/autochartist-laravel without Composer
On this page you can find all versions of the php package asciisd/autochartist-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download asciisd/autochartist-laravel
More information about asciisd/autochartist-laravel
Files in asciisd/autochartist-laravel
Package autochartist-laravel
Short Description Autochartist API integration with Laravel
License MIT
Homepage https://github.com/asciisd/autochartist-laravel
Informations about the package autochartist-laravel
Autochartist for Laravel
A lightweight Laravel integration for the Autochartist API. It handles request authentication for you and exposes a simple, fluent way to fetch technical analysis data.
Requirements
- PHP
^8.1 - Laravel 10, 11, 12, or 13
Installation
Install the package via Composer:
The service provider and the Autochartist facade are registered automatically through Laravel package discovery.
Publishing the Config File
Publish the configuration file to your application's config directory:
This creates config/autochartist.php, where all values are read from your environment.
Environment Variables
Add the following keys to your Laravel project's .env file:
| Variable | Required | Description |
|---|---|---|
AUTOCHARTIST_URL |
No | Base URL for all API requests. Defaults to https://api.autochartist.com/. |
AUTOCHARTIST_BROKER_ID |
Yes | Your customer (broker) ID on Autochartist's systems. |
AUTOCHARTIST_SECRET_KEY |
Yes | The secret used to sign the request token. Keep this private. |
AUTOCHARTIST_ACCOUNT_TYPE |
No | demo or live. Defaults to demo. |
AUTOCHARTIST_TOKEN_TTL |
No | How long (in seconds) a generated token stays valid. Defaults to 259200 (3 days). |
Usage
Fetching Technical Trade Setups
Use the Autochartist facade to reach the Technical Analysis service and call technicalTradeSetups(). It returns the API response decoded into a PHP array (JSON data):
You can pass a query array to filter the results:
You may also resolve the service from the container instead of using the facade:
Authentication Requirement
Autochartist credentials are generated per authenticated user (the request token is bound to the user's email). Calls must therefore run within an authenticated context, for example inside a route protected by the auth middleware:
If no user is authenticated, or if the secret key is missing, an Asciisd\AutochartistLaravel\Exceptions\AutochartistException is thrown.
License
This package is open-sourced software licensed under the MIT license.
All versions of autochartist-laravel with dependencies
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^10.0|^11.0|^12.0|^13.0