PHPackages                             nextdeveloper/agreement - 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. nextdeveloper/agreement

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

nextdeveloper/agreement
=======================

NextDeveloper Generator Package

v0.1.7(6mo ago)01.9k↑246.7%[1 PRs](https://github.com/nextdeveloper-nl/agreement/pulls)MITPHPPHP &gt;=8.2.0

Since Jul 29Pushed 1mo agoCompare

[ Source](https://github.com/nextdeveloper-nl/agreement)[ Packagist](https://packagist.org/packages/nextdeveloper/agreement)[ Docs](https://github.com/nextdeveloper-nl/agreement)[ RSS](/packages/nextdeveloper-agreement/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (7)Versions (11)Used By (0)

NextDeveloper Agreement
=======================

[](#nextdeveloper-agreement)

This module is a part of the NextDeveloper project. It provides a way to create and manage agreements between the store owner and the customer.

Requirements
------------

[](#requirements)

- [NextDeveloper Iam](https://github.com/nextdeveloper-nl/iam)
- [NextDeveloper Commons](https://github.com/nextdeveloper-nl/commons)

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

[](#installation)

You can install the package via Composer:

```
composer require nextdeveloper/agreement
```

Database Tables
---------------

[](#database-tables)

The package includes the following tables:

- `agreement_templates`
- `agreement_contracts`
- `agreement_webhooks`

Usage
-----

[](#usage)

### Storing Agreement Templates

[](#storing-agreement-templates)

You can store agreement templates using the following example:

```
curl -X POST \
  http://example.com/agreement/templates \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer {token}' \
  -d '{
    "name": "Terms and Conditions",
    "description": "Terms and Conditions",
    "reference": "2ab1eefc-c585-4b80-9d85-ba9e5a1a45af"  // This is the reference of the template in the external system
}'
```

### Storing Agreement Contracts

[](#storing-agreement-contracts)

You can store agreement contracts using the following example:

```
curl -X POST \
  http://example.com/agreement/contracts \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer {token}' \
  -d '{
    "name": "Terms and Conditions",
    "description": "Terms and Conditions",
    "object_type": "NextDeveloper\\Partnerships\\Database\\Models\\Partnership",
    "object_id": 1,
    "template_reference": "2ab1eefc-c585-4b80-9d85-ba9e5a1a45af"
}'
```

### Storing Webhooks

[](#storing-webhooks)

You can store webhooks using the following example:

```
curl -X POST \
  http://example.com/agreement/webhooks \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
    "source": "inspakt",
    "data": "{\"event\": \"agreement_created\", \"agreement_id\": 1}"
}'
```

Commercial Support
------------------

[](#commercial-support)

Please let us know if you need any commercial support. We dont have such a business plan but we will be happy to help you on your project and/or applying this library in your project

Want to contribute?
-------------------

[](#want-to-contribute)

You are very welcome to contribute of course. Please send us an email so that we can get in touch and talk about details;

---

Our Libraries
-------------

[](#our-libraries)

This library is part of the **NextDeveloper / PlusClouds open-source ecosystem**. Browse all available libraries and find the right building blocks for your next project:

---

Join the Community
------------------

[](#join-the-community)

We believe great software is built together. The PlusClouds developer community is a place where engineers share ideas, ask questions, showcase what they have built, and help shape the direction of these libraries. Whether you are integrating a single package or building an entire platform on top of our stack, you are very welcome here.

Come and join us — we would love to see what you build:

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance80

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.8% 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 ~74 days

Recently: every ~0 days

Total

8

Last Release

187d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/95028646?v=4)[Harun Barış Bulut](/maintainers/yakari007)[@yakari007](https://github.com/yakari007)

---

Top Contributors

[![yakari007](https://avatars.githubusercontent.com/u/95028646?v=4)](https://github.com/yakari007 "yakari007 (7 commits)")[![ikhalilatteib](https://avatars.githubusercontent.com/u/69690003?v=4)](https://github.com/ikhalilatteib "ikhalilatteib (6 commits)")

---

Tags

contract-managementcontractslaravelphp

### Embed Badge

![Health badge](/badges/nextdeveloper-agreement/health.svg)

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[concrete5/core

Concrete core subtree split

20166.1k52](/packages/concrete5-core)

PHPackages © 2026

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