PHPackages                             anteris-dev/laravel-autotask-client - 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. anteris-dev/laravel-autotask-client

ActiveLibrary[API Development](/categories/api)

anteris-dev/laravel-autotask-client
===================================

Integrates the Autotask client into Laravel.

v0.1.2(4y ago)2693[1 PRs](https://github.com/Anteris-Dev/laravel-autotask-client/pulls)MITPHP

Since Sep 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Anteris-Dev/laravel-autotask-client)[ Packagist](https://packagist.org/packages/anteris-dev/laravel-autotask-client)[ RSS](/packages/anteris-dev-laravel-autotask-client/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

Bringing the Autotask Client to Laravel
=======================================

[](#bringing-the-autotask-client-to-laravel)

This package bridges the Autotask client to Laravel by injecting it into the application container.

To Install
==========

[](#to-install)

Run `composer require anteris-dev/laravel-autotask-client`.

To publish the configuration file, use the command `php artisan vendor:publish --provider 'Anteris\Autotask\Laravel\ServiceProvider'`. Now you can enter your Autotask API information in the configuration file found at *config/autotask.php* or preferablly, in your *.env* file using the keys below.

```
AUTOTASK_USERNAME=username
AUTOTASK_SECRET=secret
AUTOTASK_INTEGRATION_CODE=integration-code
AUTOTASK_ZONE_URL=https://example.com

```

To register the facade so you may use the client like this: `Autotask::tickets()->findById(0)` add the following line to the 'aliases' key in the Laravel file *config/app.php*.

```
'Autotask' => Anteris\Autotask\Laravel\Facade::class,
```

Getting Started
===============

[](#getting-started)

You can inject the Autotask client like any other class. Laravel will automatically create the client and setup your credentials whenever you need it. An example is listed below.

```
use Anteris\Autotask\Client as AutotaskClient;

Route::get('/', function (AutotaskClient $autotask) {

    $ticket = $autotask->tickets()->findById(0);

});
```

You can also setup the facade (see above) for even easier access to the client. See the example below.

```
Route::get('/', function () {

    Autotask::tickets()->findById(0);

});
```

For more information about the client, check out the documentation over [here](https://github.com/anteris-dev/autotask-client).

WIP Section
===========

[](#wip-section)

We are currently working on a model that can be extended and interacted with like other Laravel models (relationships loaded, etc.). These models support caching the responses so requests are not constantly being made against the Autotask server. You can specify the number of seconds a response should be cached by setting the `$cache_time` variable on your model. By default this is set to 24 hours, settings this to 0 disables the cache.

- **Note**: These are not compatible with Eloquent models / relationships.

To Install
----------

[](#to-install-1)

Run `composer require anteris-dev/laravel-autotask-client:dev-master`.

Getting Started
---------------

[](#getting-started-1)

Create a new model by extending the Autotask model.

```
use Anteris\Autotask\Laravel\Models\AutotaskModel;

class Ticket extends AutotaskModel
{
    protected string $endpoint = 'Tickets'; // Must be the plural form of the endpoint
    protected int $cache_time  = 86400;     // 24 hours in seconds
}

// Supported actions:
Ticket::count(); // Used like the count in the query builder
Ticket::find();  // Array of IDs or an ID
Ticket::get(); // Used like the get in the query builder
Ticket::loop(); // Used like the loop in the query builder
Ticket::where(); // Used like the where in the query builder
Ticket::orWhere(); // Used like the orWhere in the query builder
```

Defining Relationships
----------------------

[](#defining-relationships)

Current belongsTo() and hasMany() relationships amongst other Autotask models is supported. These are defined as shown below.

```
use Anteris\Autotask\Laravel\Models\AutotaskModel;

class Contact extends AutotaskModel
{
    protected string $endpoint = 'Contacts'; // Must be the plural form of the endpoint
    protected int $cache_time  = 86400;      // 24 hours in seconds

    public function company()
    {
        return $this->belongsTo(Company::class);
    }

    public function tickets()
    {
        return $this->hasMany(Ticket::class);
    }
}

// Relationships can be referenced like normal Laravel models:
$contact = Contact::find(1);

echo $contact->company->companyName;
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

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 ~192 days

Total

3

Last Release

1693d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3dca3c3ac71024f7878526a0fe0a384fbf198ed711fe7e7bb34177a1dbc849f6?d=identicon)[golthem](/maintainers/golthem)

---

Top Contributors

[![aidan-casey](https://avatars.githubusercontent.com/u/6686277?v=4)](https://github.com/aidan-casey "aidan-casey (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/anteris-dev-laravel-autotask-client/health.svg)

```
[![Health](https://phpackages.com/badges/anteris-dev-laravel-autotask-client/health.svg)](https://phpackages.com/packages/anteris-dev-laravel-autotask-client)
```

###  Alternatives

[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[esign/laravel-conversions-api

A laravel wrapper package around the Facebook Conversions API

69145.4k](/packages/esign-laravel-conversions-api)[didww/didww-api-3-php-sdk

PHP SDK for DIDWW API 3

1218.2k](/packages/didww-didww-api-3-php-sdk)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)

PHPackages © 2026

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