PHPackages                             cserepesmark/acounto-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. cserepesmark/acounto-api

ActiveLibrary[API Development](/categories/api)

cserepesmark/acounto-api
========================

Laravel package for Acounto Bulk API integration.

v1.2.0(1y ago)031PHPPHP ^8.0

Since Nov 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/cserepesmark/acounto-api)[ Packagist](https://packagist.org/packages/cserepesmark/acounto-api)[ RSS](/packages/cserepesmark-acounto-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (4)Used By (0)

Configuration
-------------

[](#configuration)

The configuration file `config/acounto-api.php` contains the following settings:

```
return [
    'api_key' => env('ACOUNTO_API_KEY', ''),
    'base_url' => env('ACOUNTO_ENV', 'dev') === 'prod'
        ? 'https://bulk.acounto.com/'
        : 'https://bulk.acounto.dev/',
];
```

Usage
-----

[](#usage)

Initializing the Client You can initialize the API client in your application like this:

```
use Cserepesmark\AcountoApi\AcountoApiClient;

$client = new AcountoApiClient();
```

Uploading a File
----------------

[](#uploading-a-file)

To upload a file, use the upload() method:

```
$fileContent = Storage::disk('local')->get($filePath);
$fileName = basename($filePath);

$response = $client->upload()->uploadFile($fileContent, $fileName, [
    'resourceType' => 'expense',
    'externalId' => 'example-id-123',
    'description' => 'Example description',
    'invoiceNumber' => 'AB-2024-01',
]);

echo $response->json();
```

Checking if a Resource Exists
-----------------------------

[](#checking-if-a-resource-exists)

To check if a resource exists by its external ID:

```
$response = $client->exists()->checkIfExists('example-id-123');

if ($response->json('exists')) {
    echo "The resource exists!";
} else {
    echo "The resource does not exist.";
}
```

Querying a Resource by External ID
----------------------------------

[](#querying-a-resource-by-external-id)

To query a resource by its external ID:

```
$response = $client->resourceByExternalId()->getResource('example-id-123');

echo $response->json();
```

Querying Resources by Dates
---------------------------

[](#querying-resources-by-dates)

To query resources uploaded within a date range:

```
$response = $client->resourceByDates()->getResourcesByDates([
    'page' => 0,
    'size' => 100,
    'fromDate' => '2024-01-01',
    'toDate' => '2024-12-31',
]);

print_r($response->json());
```

Example Routes
--------------

[](#example-routes)

For quick testing, you can add the following routes to your application:

```
use Cserepesmark\AcountoApi\Http\Controllers\AcountoApiTestController;

Route::get('/acounto/upload', [AcountoApiTestController::class, 'uploadExample']);
Route::get('/acounto/exists', [AcountoApiTestController::class, 'existsExample']);
Route::get('/acounto/resource', [AcountoApiTestController::class, 'resourceExample']);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance44

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~42 days

Total

3

Last Release

443d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c616bc4a19b8e1235a02349f73324e13037e3d0eec1acc6b309b4d36d2b9c2ef?d=identicon)[cserepesmark](/maintainers/cserepesmark)

---

Top Contributors

[![cserepesmark](https://avatars.githubusercontent.com/u/44177367?v=4)](https://github.com/cserepesmark "cserepesmark (5 commits)")

---

Tags

acountoapilaravel-packagephp

### Embed Badge

![Health badge](/badges/cserepesmark-acounto-api/health.svg)

```
[![Health](https://phpackages.com/badges/cserepesmark-acounto-api/health.svg)](https://phpackages.com/packages/cserepesmark-acounto-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M453](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
