PHP code example of cihansenturk / plaid-sdk-php
1. Go to this page and download the library: Download cihansenturk/plaid-sdk-php library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cihansenturk / plaid-sdk-php example snippets
$client = new \TomorrowIdeas\Plaid\Plaid("your-client-id", "your-secret", "environment");
$options = [
"foo" => "bar",
"baz" => "bat"
];
use TomorrowIdeas\Plaid\Plaid;
PLAID_CLIENT_ID"),
\getenv("PLAID_CLIENT_SECRET"),
\getenv("PLAID_ENVIRONMENT")
);
$item = $plaid->items->get("itm_1234");
$accounts = $plaid->accounts->list($access_token);
$auth = $plaid->auth->get($access_token);
create(
string $access_token,
string $idempotency_key,
string $type,
string $account_id,
string $network,
string $amount,
string $currency_code,
AccountHolder $account_holder,
string $description,
string $ach_class = null,
string $custom_tag = null,
array $metadata = [],
string $origination_account_id = null): object
$transfers = $plaid->bank_transfers->list();
$categories = $plaid->categories->list();
$institutions = $plaid->institutions->list(20, 0);
$holdings = $plaid->investments->listHoldings($access_token);
create(string $client_name,
string $language,
array $country_codes,
User $user,
array $products = [],
?string $webhook = null,
?string $link_customization_name = null,
?AccountFilters $account_filters = null,
?string $access_token = null,
?string $redirect_url = null,
?string $android_package_name = null,
?string $payment_id = null,
?string $institution_id = null,
?int $transactions_days_requested = null): object
$token = $plaid->tokens->create($client_name, $language, ["US","CA"], $user_id);
$token = $plaid->tokens->create(
$client_name,
$language,
["US", "CA"],
$user,
["transactions"],
transactions_days_requested: 730
);
$liabilities = $plaid->liabilities->list($access_token);
$item = $plaid->items->get($access_token);
$verification_key = $plaid->webhooks->getVerificationKey($key_id);
$transactions = $plaid->transactions->list($access_token, $start_date, $end_date);
$plaid->payments->createRecipient($name, $iban, $address);
$response = $plaid->sandbox->fireWebhook($access_token);
$token_user = new User(
string $id,
?string $name = null,
?string $phone_number = null,
?string $phone_number_verified_time = null,
?string $email_address = null,
?string $ssn = null,
?string $date_of_birth = null
)
$address = new TomorrowIdeas\Plaid\Entities\RecipientAddress("123 Elm St.", "Apt 1", "Anytown", "ABC 123", "GB");
$payment_schedule = new TomorrowIdeas\Plaid\Entities\PaymnentSchedule(
PaymentSchedule::INTERVAL_MONTHLY,
15,
new DateTime("2020-10-01")
);
bash
composer