PHPackages                             php-gear/auto-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. php-gear/auto-client

ActiveLibrary[API Development](/categories/api)

php-gear/auto-client
====================

A command-line tool to generate Javascript client-side APIs from REST PHP APIs

1.0.6(7y ago)0138MITPHPPHP &gt;=7

Since May 24Pushed 7y ago1 watchersCompare

[ Source](https://github.com/php-gear/auto-client)[ Packagist](https://packagist.org/packages/php-gear/auto-client)[ Docs](https://github.com/php-gear/auto-client)[ RSS](/packages/php-gear-auto-client/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (3)Used By (0)

Auto Client
===========

[](#auto-client)

##### A command-line tool to generate Javascript client-side APIs from REST PHP APIs

[](#a-command-line-tool-to-generate-javascript-client-side-apis-from-rest-php-apis)

Introduction
------------

[](#introduction)

This package provides a command-line tool for use either with the Laravel framework (as an Artisan command) or with the Electro framework (as a Workman command).

*TO DO: provide an explanation of the rationale behind this library and some usage examples.*

> **Note:** currently, this tool generates code for use with AngularJS 1.x, and it expects an Angular service called `remote` of type `RemoteService`.
>
> This requirement is temporary and it will be removed on a later version of this tool.

Documentation
-------------

[](#documentation)

Additional documentation will be written, as soon as I find the time for it.

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

[](#installation)

#### Runtime requirements

[](#runtime-requirements)

- PHP &gt;= 7.0
- AngularJS 1.x

##### Optionally, one of

[](#optionally-one-of)

- Laravel &gt;= 4.2
- Electro &gt;= 1.0

### Installing on Laravel

[](#installing-on-laravel)

On the command-line, type:

```
composer require php-gear/auto-client
```

Register the Artisan command on `artisan.php`:

```
Artisan::resolve (PhpGear\AutoClient\Laravel\AutoClientCommand::class);
```

### Installing on Electro

[](#installing-on-electro)

```
workman install php-gear/auto-client
```

Usage
-----

[](#usage)

### On Laravel

[](#on-laravel)

#### Configuring

[](#configuring)

On `config/app.php`, define the APIs to be exported to Javascript.

Example:

```
return [
  'autoclient' => [
    'APIs' => [
      // Endpoint URL => [controller class, target directory, Angular module name]
      'API/something' => [SomethingController::class, 'App/remote', 'App'],
    ],
  ],
  ///... the rest of the existing file
];
```

#### Running the generator

[](#running-the-generator)

```
artisan autoclient:generate
```

### On Electro

[](#on-electro)

#### Running the generator

[](#running-the-generator-1)

```
workman autoclient:generate
```

License
-------

[](#license)

This library is open-source software licensed under the **MIT license**.

See the accompanying `LICENSE` file.

Copyright © 2018 Cláudio Silva

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 88.9% 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 ~105 days

Total

2

Last Release

2806d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/27a806d464b6bd79c9f666c550806143dd6616ce8fc85e4b088ed1b9e545cea4?d=identicon)[claudio-silva](/maintainers/claudio-silva)

---

Top Contributors

[![claudiombsilva](https://avatars.githubusercontent.com/u/65917838?v=4)](https://github.com/claudiombsilva "claudiombsilva (8 commits)")[![claudio-silva](https://avatars.githubusercontent.com/u/1999803?v=4)](https://github.com/claudio-silva "claudio-silva (1 commits)")

---

Tags

pluginelectro

### Embed Badge

![Health badge](/badges/php-gear-auto-client/health.svg)

```
[![Health](https://phpackages.com/badges/php-gear-auto-client/health.svg)](https://phpackages.com/packages/php-gear-auto-client)
```

###  Alternatives

[sybrew/the-seo-framework

An automated, advanced, accessible, unbranded and extremely fast SEO solution for any WordPress website.

47078.8k](/packages/sybrew-the-seo-framework)[tinify/magento2

Make your web shop faster by compressing your JPEG and PNG images. This plugin automatically optimizes your images by integrating with the popular image compression services TinyJPG and TinyPNG.

4345.8k](/packages/tinify-magento2)[deniskorbakov/laravel-data-scribe

A Scribe Plugin to generate API doc from spatie/laravel-data

124.3k](/packages/deniskorbakov-laravel-data-scribe)

PHPackages © 2026

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