PHPackages                             pickmap/service-request - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pickmap/service-request

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pickmap/service-request
=======================

A regular structure for sending requests from client to client

0.2.0(2y ago)0282MITPHPPHP ^8.0

Since Sep 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Visapick-Team/service-request)[ Packagist](https://packagist.org/packages/pickmap/service-request)[ RSS](/packages/pickmap-service-request/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

##### If you work in a macro service structure or if you need a very light library to send and receive reposts in a simple service or application, this library will greatly help you.

[](#if-you-work-in-a-macro-service-structure-or-if-you-need-a-very-light-library-to-send-and-receive-reposts-in-a-simple-service-or-application-this-library-will-greatly-help-you)

Currently, it is only implemented to receive tokens from , but you can complete it ‍‍‍‍ The best usage example is shown in this chart so that you can do the "Request To Service With Token" step with this library.

[![enter image description here](https://camo.githubusercontent.com/bcb3c0fee4bf43984472edb0c2b532147497a815c201bac5ad5a596dbfea2142/68747470733a2f2f73362e7575706c6f61642e69722f66696c65732f63686172745f736d37762e6a7067)](https://camo.githubusercontent.com/bcb3c0fee4bf43984472edb0c2b532147497a815c201bac5ad5a596dbfea2142/68747470733a2f2f73362e7575706c6f61642e69722f66696c65732f63686172745f736d37762e6a7067)

setp #1
-------

[](#setp-1)

```
composer require pickmap/service-request
```

setp #2
-------

[](#setp-2)

Define the following variables in your .env file

```
KEYCLOAK_CLIENT_ID=client-id
KEYCLOAK_CLIENT_SECRET=keycloak-secret-key
KEYCLOAK_USERNAME=usernameOrEmail
KEYCLOAK_PASSWORD=password
KEYCLOAK_LOGIN_URL='https://...openid-connect/token?grant_type=password'
```

setp #2
-------

[](#setp-2-1)

In any class you want to be equipped to send a request like a model or controller, do the following

```
class  sample {
use  ServiceRequest;

public  function  aMethod()
	{
		self::requestPost('https:://service.com/list');
	}
}
```

You can access these methods separately

```
//If $refreshToken is equal to true, the token will be refreshed regardless of the cache
self::getToken($refreshToken);

self::requestToKeyCloak();

/*
Authorization is set in all tokens, but with this method, it is overwritten by the third parameter of post and get methods.
*/
self::HeadersProcess($newHeader);

self::requestPost(string  $url,array  $data  = [],$headers  = []);

self::requestGet(string  $url,array  $data  = [],$headers  = []);
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

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.

###  Release Activity

Cadence

Every ~115 days

Total

2

Last Release

848d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a883a672b3c166ad0c3f694b0c4d1824402287d057e7ae875828b1cd3e619565?d=identicon)[SalehiAlireza](/maintainers/SalehiAlireza)

---

Top Contributors

[![SalehiAlireza](https://avatars.githubusercontent.com/u/46676671?v=4)](https://github.com/SalehiAlireza "SalehiAlireza (10 commits)")

### Embed Badge

![Health badge](/badges/pickmap-service-request/health.svg)

```
[![Health](https://phpackages.com/badges/pickmap-service-request/health.svg)](https://phpackages.com/packages/pickmap-service-request)
```

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)[backpack/basset

Dead-simple way to load CSS or JS assets only once per page, when using Laravel 10+.

202832.4k6](/packages/backpack-basset)[firefly-iii/data-importer

Firefly III Data Import Tool.

7545.8k](/packages/firefly-iii-data-importer)[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.3k](/packages/blair2004-nexopos)[nickurt/laravel-akismet

Akismet for Laravel 11.x/12.x/13.x

97139.6k2](/packages/nickurt-laravel-akismet)

PHPackages © 2026

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