PHPackages                             ankewk/easyapi - 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. ankewk/easyapi

ActiveLibrary[API Development](/categories/api)

ankewk/easyapi
==============

php api class

24PHP

Since Nov 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ankewk/EasyApi)[ Packagist](https://packagist.org/packages/ankewk/easyapi)[ RSS](/packages/ankewk-easyapi/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

EasyApi
=======

[](#easyapi)

The API class of PHP
--------------------

[](#the-api-class-of-php)

```
The class is for dev api file in PHP.
It`s can do POST GET DELETE all RESTAPI method in futrue.
It`s can do ping url host and checksign.
It`s can do api dataFormat to json or xml.
it`s Chain operation.
Though it is small, it is very practical.

```

check domain
------------

[](#check-domain)

```
$easyApi = new EasyApi();
$easyApi->init(['url'=>'www.github.com'])->checkDomain();
EasyApi::$response();

```

---

check sign by sha1
------------------

[](#check-sign-by-sha1)

```
$easyApi = new EasyApi();
$easyApi->init([])->signature();
EasyApi::$response();

```

---

GET
---

[](#get)

```
$easyApi = new EasyApi();
$easyApi->init(['url'=>'www.github.com','param'=>'','method'=>'get'])->get();
EasyApi::$response();
if you want the response data is xml you can do it
$easyApi->init(['url'=>'www.github.com','param'=>'','method'=>'get'])->get('xml');

```

---

POST
----

[](#post)

```
$easyApi = new EasyApi();
$easyApi->init(['url'=>'www.github.com','param'=>'','method'=>'get'])->json()->post();
EasyApi::$response();
if you want the response data is xml you can do it
$easyApi->init(['url'=>'www.github.com','param'=>'','method'=>'get'])->xml()->get('xml');

```

---

FAQ
---

[](#faq)

```
Q:How to use it?
A:First you must load this class in you project and call the new the class EasyApi.
The next thing, you can do it of call operation methods if you do.
Finally you can do EasyApi::$response(); get the api response.

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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/4768a4846d9aa9122594984e7d68b4ba7f69067b44f9041d53faa48791cc5bfb?d=identicon)[ankewk](/maintainers/ankewk)

---

Top Contributors

[![ankewk](https://avatars.githubusercontent.com/u/17630270?v=4)](https://github.com/ankewk "ankewk (1 commits)")

### Embed Badge

![Health badge](/badges/ankewk-easyapi/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M271](/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.1M454](/packages/google-gax)

PHPackages © 2026

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