PHPackages                             tuanha/call-api - 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. tuanha/call-api

ActiveLibrary[API Development](/categories/api)

tuanha/call-api
===============

dung de call api den apiGateWay

1.1.2(6y ago)08PHPPHP ^7.2

Since Dec 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ViralS-tuanha/Call-API)[ Packagist](https://packagist.org/packages/tuanha/call-api)[ RSS](/packages/tuanha-call-api/feed)WikiDiscussions dev Synced 3w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Call-API
========

[](#call-api)

Thêm vào providers trong file app.php tại thư mục config:
---------------------------------------------------------

[](#thêm-vào-providers-trong-file-appphp-tại-thư-mục-config)

- `TuanHA\CallAPI\CallAPIServiceProvider::class,`

Chạy command:
-------------

[](#chạy-command)

- `php artisan vendor:publish --provider=TuanHA\CallAPI\CallAPIServiceProvider`

Cần thêm các giá trị vào file env để cấu hình:
----------------------------------------------

[](#cần-thêm-các-giá-trị-vào-file-env-để-cấu-hình)

- `API_SERVER = 'http://devapi.dxmb.vn/'` địa chỉ domain của server apigateway
- `CALL_API = 'api/v1/call'` function call
- `JWT_SERVICE_LIST_USERS = jwt'` token của app
- chạy command: `php artisan config:cache` để tải được config mới nhất

\##Hướng đẫn sử dụng:

- Khai báo ở đầu trang: `use TuanHA\CallAPI\Services\BaseAPIServices;`
- gọi : `$data = new BaseAPIServices();` để tạo một biến sử dụng class callAPI
- Dùng các hàm tương ứng để thực hiện các thao tác mong muốn:
- `$data = $data->all("list_products", 2, []);` lấy toàn bộ danh sách
- `$data = $data->create("create_products", array $input);` tạo mới bản ghi
- `$data = $data->show("show_products", $id)` chi tiết bản ghi
- `$data = $data->update("update_products", array $input, $id)` cập nhật bản ghi
- `$data = $data->delete("delete_products", $id)` xóa bản ghi
- `$data = $data->callAPI($url, $method, $headers, $data)` để gọi ra các API khác

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

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

2383d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/53259313?v=4)[ViralS-tuanha](/maintainers/ViralS-tuanha)[@ViralS-tuanha](https://github.com/ViralS-tuanha)

---

Top Contributors

[![ViralS-tuanha](https://avatars.githubusercontent.com/u/53259313?v=4)](https://github.com/ViralS-tuanha "ViralS-tuanha (6 commits)")

### Embed Badge

![Health badge](/badges/tuanha-call-api/health.svg)

```
[![Health](https://phpackages.com/badges/tuanha-call-api/health.svg)](https://phpackages.com/packages/tuanha-call-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k13](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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