PHPackages                             mralston/bark-sdk - 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. mralston/bark-sdk

ActiveLibrary[API Development](/categories/api)

mralston/bark-sdk
=================

PHP SDK for the Bark API.

v1.0.0(3y ago)015MITPHPPHP ^7.4|^8.0

Since May 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mralston/bark-sdk)[ Packagist](https://packagist.org/packages/mralston/bark-sdk)[ Docs](https://github.com/mralston/bark-sdk)[ RSS](/packages/mralston-bark-sdk/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Bark SDK
========

[](#bark-sdk)

This is PHP SDK for Bark. Bark is a world-leading services marketplace with over 5m customers in 8 countries around the world.

Visit the [Bark website](https://www.bark.com/) for more information.

---

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require mralston/bark-sdk
```

Basic Usage
-----------

[](#basic-usage)

```
use Mralston\Bark\Client;
use Mralston\Bark\Contact;
use Mralston\Bark\Flow;

// Log in
$client = new Client(
    $client_id,
    $secret,
    $apiEndpoint
);

// Fetch all barks
foreach ($client->listBarks() as $bark) {
    dump($bark);
}
```

Fluent API
----------

[](#fluent-api)

Many of the objects exposed by the API support method chaining.

Laravel
-------

[](#laravel)

**Configuration**

In Laravel, you can publish the config file with:

```
php artisan vendor:publish --provider="Mralston\Bark\BarkServiceProvider" --tag="config"
```

This is the contents of the published config file:

```
return [
    'client_id' => env('BARK_CLIENT_ID'),
    'secret' => env('BARK_SECRET'),
    'api_endpoint' => env('BARK_API_ENDPOINT'),
];
```

Configure the environment variables with your client ID, secret.

```
BARK_CLIENT_ID=
BARK_SECRET=
```

**Dependency Injection**

In addition to the method chaining described in the fluent API section above, the Laravel integration takes care of authentication automatically. All you need to do is grab an instance of the client from the container and start using it.

You can use dependency injection to get a pre-authenticated instance of the client:

```
use Illuminate\Http\Request;
use Mralston\Bark\Client;

class MyController
{
    public function create(Request $request, Client $client)
    {
        // Create new contact using POST data
        $barks = $client->listBarks(),
        )
    }
}
```

Alternatively, you can resolve an instance of the client from the container:

```
use Mralston\Bark\Client;

$client = app(Client::class);
```

**Facade**

In true Laravel tradition, you can also use a facade (along with method chaining, of course!).

```
use Mralston\Bark\Facades\Bark;

$barks = Bark::listBarks();
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Matt Ralston](https://github.com/mralston)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Unknown

Total

1

Last Release

1444d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/248387?v=4)[Matt](/maintainers/mralston)[@mralston](https://github.com/mralston)

---

Top Contributors

[![mralston](https://avatars.githubusercontent.com/u/248387?v=4)](https://github.com/mralston "mralston (3 commits)")

---

Tags

laravelBarkmralston

### Embed Badge

![Health badge](/badges/mralston-bark-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/mralston-bark-sdk/health.svg)](https://phpackages.com/packages/mralston-bark-sdk)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.2M718](/packages/statamic-cms)[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[atymic/twitter

Twitter API for PHP &amp; Laravel

945555.4k2](/packages/atymic-twitter)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1221.1k](/packages/codebar-ag-laravel-docuware)

PHPackages © 2026

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