PHPackages                             adibenc/mapplic-php - 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. adibenc/mapplic-php

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

adibenc/mapplic-php
===================

A mapplic js lib for php

0.12(3y ago)112MITPHP

Since Feb 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/adibenc/mapplic-php)[ Packagist](https://packagist.org/packages/adibenc/mapplic-php)[ RSS](/packages/adibenc-mapplic-php/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

mapplic-php
===========

[](#mapplic-php)

@adib-enc

json generator for mapplic js, a JS visual map library.

install
-------

[](#install)

```
composer require adibenc/mapplic-php

```

Example
-------

[](#example)

```
use Mapplic\Levels;
use Mapplic\Struct;
use Mapplic\Location;
use Mapplic\LocationFull;

$ms = new Struct();

// /*
$id = 1;
$title = "Lot 1";
$description = "Lot 1 Description";
// $x = 1;
// $y = 1;

// , $x, $y
$level = new Levels(0, "level1", "map.svg");
$ms->appendLevel($level);

// preout($ms);
// exit;

$ml = new Location($id, $title, $description);
$mlfull = new LocationFull($id, $title, $description);

$ms->appendLocation($ml);
$ms->appendLocation($ml);
$ms->appendLocation($ml);

$mlfull->setDescription("desc full");
$ms->appendLocations([$mlfull, $mlfull]);

// preson($ms);
```

json of `$ms` @ `json_encode($ms)`.

```
{
    "mapwidth": 1600,
    "mapheight": 900,
    "bottomLat": null,
    "leftLng": null,
    "topLat": null,
    "rightLng": null,
    "styles": [],
    "groups": [],
    "levels": [
        {
            "map": "map.svg",
            "locations": [
                {
                    "about": null,
                    "description": "Lot 1 Description",
                    "pin": null,
                    "label": null,
                    "category": null,
                    "link": null,
                    "x": 1,
                    "y": 1,
                    "id": 1,
                    "title": "Lot 1"
                },
                {
                    "about": null,
                    "description": "Lot 1 Description",
                    "pin": null,
                    "label": null,
                    "category": null,
                    "link": null,
                    "x": 1,
                    "y": 1,
                    "id": 1,
                    "title": "Lot 1"
                },
                {
                    "about": null,
                    "description": "Lot 1 Description",
                    "pin": null,
                    "label": null,
                    "category": null,
                    "link": null,
                    "x": 1,
                    "y": 1,
                    "id": 1,
                    "title": "Lot 1"
                },
                {
                    "fill": null,
                    "style": null,
                    "action": null,
                    "tootlip": null,
                    "lightbox": null,
                    "openLink": null,
                    "openLinkNewTab": null,
                    "image": null,
                    "external": null,
                    "reveal": null,
                    "none": null,
                    "disabled": null,
                    "select": null,
                    "thumbnail": null,
                    "hide": null,
                    "x": null,
                    "y": null,
                    "lat": null,
                    "lng": null,
                    "zoom": null,
                    "about": null,
                    "description": "desc full",
                    "pin": null,
                    "label": null,
                    "category": null,
                    "link": null,
                    "id": 1,
                    "title": "Lot 1"
                },
                {
                    "fill": null,
                    "style": null,
                    "action": null,
                    "tootlip": null,
                    "lightbox": null,
                    "openLink": null,
                    "openLinkNewTab": null,
                    "image": null,
                    "external": null,
                    "reveal": null,
                    "none": null,
                    "disabled": null,
                    "select": null,
                    "thumbnail": null,
                    "hide": null,
                    "x": null,
                    "y": null,
                    "lat": null,
                    "lng": null,
                    "zoom": null,
                    "about": null,
                    "description": "desc full",
                    "pin": null,
                    "label": null,
                    "category": null,
                    "link": null,
                    "id": 1,
                    "title": "Lot 1"
                }
            ],
            "id": 0,
            "title": "level1"
        }
    ]
}
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

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

Unknown

Total

1

Last Release

1287d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24596057?v=4)[M Adib zamzam](/maintainers/adibenc)[@adibenc](https://github.com/adibenc)

---

Top Contributors

[![adibenc](https://avatars.githubusercontent.com/u/24596057?v=4)](https://github.com/adibenc "adibenc (18 commits)")

### Embed Badge

![Health badge](/badges/adibenc-mapplic-php/health.svg)

```
[![Health](https://phpackages.com/badges/adibenc-mapplic-php/health.svg)](https://phpackages.com/packages/adibenc-mapplic-php)
```

###  Alternatives

[alfallouji/php_multithread

iPHP library to handle multi-threading

3231.0k](/packages/alfallouji-php-multithread)[heimrichhannot/contao-encore-bundle

This bundle brings deep integration for symfony encore into contao. On the one hand, your can prepare your bundles to define own webpack entries, which added with just one command to your webpack entries. On the other hand, this bundle allows you to add encore entries only on the pages you need them for optimizing your website performance.

1016.8k](/packages/heimrichhannot-contao-encore-bundle)

PHPackages © 2026

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