PHPackages                             euskadi31/message-event-protocol - 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. euskadi31/message-event-protocol

ActiveLibrary

euskadi31/message-event-protocol
================================

232PHP

Since Mar 23Pushed 9y ago2 watchersCompare

[ Source](https://github.com/euskadi31/message-event-protocol)[ Packagist](https://packagist.org/packages/euskadi31/message-event-protocol)[ RSS](/packages/euskadi31-message-event-protocol/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Message Event Protocol
======================

[](#message-event-protocol)

Message Event Protocol are a language-neutral extensible mechanism for serializing structured data in JSON.

Work In Progress

Target supported
----------------

[](#target-supported)

- PHP 5.5
- PHP 7.1 (coming soon)
- TypeScript 2
- Go
- Java (coming soon)
- Swift 3 (coming soon)

Get Started
-----------

[](#get-started)

Generate PHP5 file:

```
./bin/mepc -o out_dir/ -t php5 MyEvent.mep
```

Generate Go file:

```
./bin/mepc -o out_dir/ -t go MyEvent.mep
```

Types supported
---------------

[](#types-supported)

- `String`
- `Boolean`
- `Integer`
- `Float`
- `DateTime`
- `Date`
- `Any`
- `Set`
- `Map`

Example
-------

[](#example)

MyEvent.mep:

```
package Acme\Event;

option java_package = "com.acme.event";
option go_extends = "no";
option php_serializer = "native";

message User {
    required Integer id;
    required String email;
    optional String firstname;
    optional String lastname;
}

message Device {
    required String type;
    optional String os;
    optional String osVersion;
    optional String brand;
    optional String manufacturer;
    optional String model;
    optional String serial;
}

message Context {
    required User user;
    required Device device;
}

message Event {
    required String id;
    required String type;
    required String action;
    required Context context;
    required Any payload;
    required DateTime createdAt;
    required DateTime sentAt;
}

message Size {
    required Integer width;
    required Integer height;
}

message PageViewPayload {
    required String url;
    required String referer;
    required String title;
    required Set keywords;
    required Map opengraph;
    required Size screen;
    required Size viewport;
    required String encoding;
}

```

License
-------

[](#license)

message-event-protocol is licensed under [the MIT license](LICENSE.md).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/166d3f646053e073824a9f1d2ef6c3bb6bbf9f28f5e3d5764ec45354ade21d7b?d=identicon)[euskadi31](/maintainers/euskadi31)

---

Top Contributors

[![euskadi31](https://avatars.githubusercontent.com/u/195383?v=4)](https://github.com/euskadi31 "euskadi31 (3 commits)")

### Embed Badge

![Health badge](/badges/euskadi31-message-event-protocol/health.svg)

```
[![Health](https://phpackages.com/badges/euskadi31-message-event-protocol/health.svg)](https://phpackages.com/packages/euskadi31-message-event-protocol)
```

PHPackages © 2026

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