PHPackages                             mennen-online/simple-api-connector - 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. mennen-online/simple-api-connector

ActiveLibrary[API Development](/categories/api)

mennen-online/simple-api-connector
==================================

Configure each API you want to Connect simply via configuration File

0.6.0(2y ago)16GPL-3.0-or-laterPHPPHP ^8.2

Since Oct 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mennen-online/simple-api-connector)[ Packagist](https://packagist.org/packages/mennen-online/simple-api-connector)[ RSS](/packages/mennen-online-simple-api-connector/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (4)Versions (8)Used By (0)

Simple Api Connector
====================

[](#simple-api-connector)

Description
-----------

[](#description)

Are you tired of writing new API Connectors following the same procedures?

Save time using this Package:

Now you are able to connect third party APIs in a simple way: Through Laravels config files.

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

[](#installation)

```
composer require mennen-online/simple-api-connector
```

Usage
-----

[](#usage)

Create a new config file in config/api directory, named for example my-shopware6-shop.php Paste the following content into the file:

```
return [
    'fallback_response_model' => \MennenOnline\SimpleApiConnector\Models\BaseResponseModel::class,
    'base_url' => 'https://example.com/api',
    'authentication' => [
        'type' => 'basic', // basic, bearer, token, digest, client_credentials
        'username' => '', //use for basic and digest
        'password' => '', //use for basic and digest
        'token' => '', //use for bearer and token
        'client_id' => '', //use for client_credentials
        'client_secret' => '', //use for client_credentials
        'authentication_url' => '' //use for client_credentials
    ],
    'endpoints' => [
        'categories' => '/categories',
        'products' => '/products',
        'users/:id' => '/users/:id',
        'users/:user_id/orders/:order_id' => '/users/:user_id/orders/:order_id
    ],
    'response_models' => [
        'categories' => 'Model::class', //Response model for Categories
        'products' => 'Model::class', //Response model for Products
    ]
```

### Now we will explore the single Array keys and their meaning:

[](#now-we-will-explore-the-single-array-keys-and-their-meaning)

- fallback\_response\_model =&gt; We use this model if no response model is defined for a specific endpoint
- base\_url =&gt; The base url of the API
- authentication.type =&gt; The authentication method used for the API
- authentication.username =&gt; The username used for basic and digest authentication
- authentication.password =&gt; The password used for basic and digest authentication
- authentication.token =&gt; The token used for bearer and token authentication
- authentication.client\_id =&gt; The client id used for client\_credentials authentication
- authentication.client\_secret =&gt; The client secret used for client\_credentials authentication
- authentication.authentication\_url =&gt; The authentication url used for client\_credentials authentication
- endpoints =&gt; The endpoints of the API as endpoint\_name =&gt; endpoint\_url
- response\_models =&gt; The response models of the API as endpoint\_name =&gt; response\_model

The Package allows GET, POST, PUT and DELETE requests.

To instanciate the API Connector use the following code:

```
$connector = new \MennenOnline\SimpleApiConnector\Connector\ApiConnector('my-shopware6-shop');

// To Call the API use the following code:

// GET
$response = $connector->get('categories');

// POST
$response = $connector->post('categories', ['name' => 'My Category']);

// PUT
$response = $connector->put('categories/1', ['name' => 'My Category']);

// DELETE
$response = $connector->delete('categories/1');

// To use URLs with names ID
$response = $connector->get('users/:id', [':id' => 1]);

// To use URLs with multiple names ID
$response = $connector->get('users/:user_id/orders/:order_id', [':user_id' => 1, ':order_id' => 1]);
```

```

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Every ~0 days

Total

6

Last Release

937d ago

### Community

Maintainers

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

---

Top Contributors

[![hmennen90](https://avatars.githubusercontent.com/u/77828605?v=4)](https://github.com/hmennen90 "hmennen90 (2 commits)")

### Embed Badge

![Health badge](/badges/mennen-online-simple-api-connector/health.svg)

```
[![Health](https://phpackages.com/badges/mennen-online-simple-api-connector/health.svg)](https://phpackages.com/packages/mennen-online-simple-api-connector)
```

###  Alternatives

[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[spatie/laravel-route-discovery

Auto register routes using PHP attributes

23645.0k2](/packages/spatie-laravel-route-discovery)[esign/laravel-conversions-api

A laravel wrapper package around the Facebook Conversions API

69145.4k](/packages/esign-laravel-conversions-api)[didww/didww-api-3-php-sdk

PHP SDK for DIDWW API 3

1218.2k](/packages/didww-didww-api-3-php-sdk)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)

PHPackages © 2026

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