PHPackages                             bmilesp/endpoints - 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. bmilesp/endpoints

ActiveCakephp-plugin[API Development](/categories/api)

bmilesp/endpoints
=================

Simple CakePHP API endpoints plugin for simplicity in connecting to API endpoints

138PHP

Since Feb 27Pushed 11y ago1 watchersCompare

[ Source](https://github.com/bmilesp/Endpoints)[ Packagist](https://packagist.org/packages/bmilesp/endpoints)[ RSS](/packages/bmilesp-endpoints/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Endpoints
=========

[](#endpoints)

Simple CakePHP API endpoints plugin for simplicity in connecting to API endpoints

Requirements
============

[](#requirements)

CakePHP =&gt; 2.1

Installation
============

[](#installation)

*\[Using [Composer](http://getcomposer.org/)\]*

[View on Packagist](https://packagist.org/packages/bmilesp/endpoints), and copy the json snippet for the latest version into your project's `composer.json`. Eg, v. 2.1.x-dev would look like this:

```
{
	"require": {
		"bmilesp/endpoints": "2.1.x-dev"
	}
}
```

Enable plugin
=============

[](#enable-plugin)

Add following lines in yout app/Config/bootstrap.php file

```
Create a database config variable that uses the Endpoints.ApiSource datasource, and the API domain as the host:

```

```

	public $website_source = array(
    	'datasource' => 'Endpoints.ApiSource',
    	'host' => 'website.com'
    );
```

```
Then setup the model by using the behavior and datasource we've just setup:

```

```

	public $uses = array('website_source');
	public $actsAs = array('Endpoints.Endpint');
```

Usage
=====

[](#usage)

```
To send and retrieve data from an endpoint. here is an example:

```

```
	function unlock($slug = null){
		$postData = array('id' => 23);
		$result = $this->callEndpoint('/users/get_user_by_id',$postData);
		return $result->body;
	}
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2a2008b4ba4821748dc398401069c6896d9621de549029cc268d2ca7c1bccb67?d=identicon)[bmilesp](/maintainers/bmilesp)

---

Top Contributors

[![bmilesp](https://avatars.githubusercontent.com/u/202549?v=4)](https://github.com/bmilesp "bmilesp (15 commits)")

### Embed Badge

![Health badge](/badges/bmilesp-endpoints/health.svg)

```
[![Health](https://phpackages.com/badges/bmilesp-endpoints/health.svg)](https://phpackages.com/packages/bmilesp-endpoints)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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