Download the PHP package mackensiealvarezz/tdameritrade-laravel without Composer

On this page you can find all versions of the php package mackensiealvarezz/tdameritrade-laravel. 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 tdameritrade-laravel

Continuous Integration

TD Ameritrade API for Laravel

This package is a wrapper for the TD Ameritrade API. You will need a developer account to use this API.

Installing

1 . install the package via composer:

2. Publish Config

3. Set ENV Variables

Include these two variables inside of your .env

4. Include Package

When using the package, don't forget to include It on top of the file

use Mackensiealvarezz\Tdameritrade\Tdameritrade;

OAuth

To use the API, the must have an access_token. You can easily create an access token using the redirect function.

Creating OAuth URL

To create a OAuth URL, you will need to use:

 Tdameritrade::redirectOAuth(); // will return string (url)

It is important that you create a callback route for the URL you set inside of the .env

Refresh Token

To refresh the token and create another access_token.

//Create client 
$client =  new Tdameritrade('access_token', 'refresh_token');
//Refresh token
$response = $client->refreshToken();

Usage

The package is written to use every class inside of /src/api as a function.

Accounts

List accounts

This will return a list of all the accounts

Get account

This will return all the information for one account. Requires account_id

Instruments

Search

This will return a list of tickers based on the symbol entered

Get

This wil return one ticker information

Market Hours

List

This will return a list of all the different market hours

Get

This wil return one market information

Movers

Get

This wil return a list of symbols that are moving

Price

History

This will return a list of quotes for the ticker

Get Quote

This wil return the quote for one ticker

Get Quotes

This wil return the quote for multiple tickers

License

The MIT License (MIT). Please see MIT license for more information.


All versions of tdameritrade-laravel with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^6.5
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 mackensiealvarezz/tdameritrade-laravel contains the following files

Loading the files please wait ....