PHP code example of inventas / laravel-appstoreconnect

1. Go to this page and download the library: Download inventas/laravel-appstoreconnect 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/ */

    

inventas / laravel-appstoreconnect example snippets


return [
    'key_type' => env('APPSTORECONNECT_KEY_TYPE', 'team'),
    'key_id' => env('APPSTORECONNECT_KEY_ID'),
    'issuer_id' => env('APPSTORECONNECT_ISSUER_ID'),
    'private_key' => env('APPSTORECONNECT_PRIVATE_KEY'),
];

use Inventas\AppStoreConnectKit\AppStoreConnector;

$connector = new AppStoreConnector();
$response = $connector->apps()->appsGetCollection();

$apps = $response->json('data');
bash
php artisan vendor:publish --tag="laravel-appstoreconnect-config"