PHPackages                             zoopcommerce/gateway-module - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. zoopcommerce/gateway-module

ActiveLibrary[HTTP &amp; Networking](/categories/http)

zoopcommerce/gateway-module
===========================

Zend Framework 2 module that extends zoop's Shard Module with authentication services

2.1.0(11y ago)1377MITPHPPHP &gt;=5.4

Since Aug 30Pushed 11y ago2 watchersCompare

[ Source](https://github.com/zoopcommerce/gateway-module)[ Packagist](https://packagist.org/packages/zoopcommerce/gateway-module)[ Docs](http://zoopcommerce.github.io/gateway-module)[ RSS](/packages/zoopcommerce-gateway-module/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (10)Versions (5)Used By (0)

Zoop gateway-module
===================

[](#zoop-gateway-module)

[![Build Status](https://camo.githubusercontent.com/714ee2fb3240226b43bb85993844028733ed39bd7f30b7ab1d24426f820df863/68747470733a2f2f6170692e736869707061626c652e636f6d2f70726f6a656374732f3534306537616337333437396335656138663965626130312f62616467653f6272616e63684e616d653d6d6173746572)](https://app.shippable.com/projects/540e7ac73479c5ea8f9eba01/builds/latest)

Zend Framework 2 module that extends zoop's Shard Module with authentication services. Provides:

- Stateful authentication once per session (for stateful services, such as a website with login form)
- Secure remember me cookies for long lasting authentication across sessions
- Stateless authentication once per request (for stateless services, such as a REST api)

Install
-------

[](#install)

Add the following to your composer root:

```
"require": {
    "zoopcommerce/gateway-module" : "~1.0"
}

```

Add the module to your application config:

```
'modules' => [
    'Zoop\GatewayModule'
],

```

Configuration
-------------

[](#configuration)

See `config/module.config.php` for config options.

Per Session Use
---------------

[](#per-session-use)

Requires per-session to be enabled in the module config.

To login, send the following request:

```
http://mysite.com/rest/authenticated-user
POST
Content: '{"username": , "password": }'
Accept: application/json
Content-type: application/json

```

On successful login, request will return the authenticated user object as json. On login fail, will return an error as json.

To logout, send the following request:

```
http://mysite.com/rest/authenticated-user
DELETE

```

To get the currently authenticated user, send the following request:

```
http://mysite.com/rest/authenticated-user
GET
Accept: application/json

```

Remember Me Use
---------------

[](#remember-me-use)

Requires per-session and remember me to be enabled in the module config.

If to use the remember me service on login, send the following request:

```
http://mysite.com/rest/authenticated-user
POST
Content: '{"username": , "password": , "rememberMe": true}'
Accept: application/json
Content-type: application/json

```

Per Request Use
---------------

[](#per-request-use)

Requires per request to be enabled in the module config.

To authenticate on any request, add the following http header:

```
http Authorization: Basic

```

username:password must be base64 encoded, and the request must be made across `https`, not `http`.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~111 days

Total

4

Last Release

4353d ago

Major Versions

1.0.1 → 2.0.02014-07-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f3bf5fcc3eabf76d34f29c0dd234bd0651efd165c700cd214c5d87be894edc5?d=identicon)[superdweebie](/maintainers/superdweebie)

---

Top Contributors

[![superdweebie](https://avatars.githubusercontent.com/u/1670364?v=4)](https://github.com/superdweebie "superdweebie (13 commits)")

---

Tags

restAuthenticationdoctrinezf2shardzoop

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/zoopcommerce-gateway-module/health.svg)

```
[![Health](https://phpackages.com/badges/zoopcommerce-gateway-module/health.svg)](https://phpackages.com/packages/zoopcommerce-gateway-module)
```

###  Alternatives

[maldoinc/doctrine-filter

Quickly add advanced filtering/searching and sorting capabilities to any resource in your APIs or Web apps that use Doctrine.

607.7k](/packages/maldoinc-doctrine-filter)[pz/doctrine-rest

Rest API library for Doctrine 2 ORM

255.7k1](/packages/pz-doctrine-rest)

PHPackages © 2026

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