PHPackages                             codesleeve/platform-publish - 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. codesleeve/platform-publish

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

codesleeve/platform-publish
===========================

Add on publishing capabilities (pages and menus) to platform-core

v0.0.1(12y ago)3333[5 issues](https://github.com/CodeSleeve/platform-publish/issues)MITPHP

Since Mar 24Pushed 12y ago2 watchersCompare

[ Source](https://github.com/CodeSleeve/platform-publish)[ Packagist](https://packagist.org/packages/codesleeve/platform-publish)[ RSS](/packages/codesleeve-platform-publish/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Getting Started
---------------

[](#getting-started)

First add to composer.json

```
	"codesleeve/platform-publish": "dev-master"

```

then add the service provider to the `providers` array in your `app\config\app.php`

```
	'Codesleeve\Platform\Publish\ServiceProvider',

```

then run commands for database

```
	php artisan migrate --package codesleeve/platform-publish

```

Models provided with publish
----------------------------

[](#models-provided-with-publish)

### Codesleeve\\Platform\\Publish\\Models\\Menu

[](#codesleeveplatformpublishmodelsmenu)

Name of the menu that hasMany menulinks.

- title - the title of the menu

### Codesleeve\\Platform\\Publish\\Models\\MenuLink

[](#codesleeveplatformpublishmodelsmenulink)

Links that belong to a menu, attributes are:

- title - title of this menu link
- url - url of this menu link
- menu\_id - belongsTo menu
- page\_id - belongTo page (this can be null)

### Codesleeve\\Platform\\Publish\\Models\\Page

[](#codesleeveplatformpublishmodelspage)

Content of a page that can be displayed, attributes are:

- title - title of page
- content - html content of page
- layout - a particular view that you want to embed page content within
- slug - human identifer for this page, primarily used to route to

### Codesleeve\\Platform\\Publish\\Models\\Photo

[](#codesleeveplatformpublishmodelsphoto)

This is a place to store photos at. It uses Codesleeve\\Stapler to handle uploads and it can be used with the wysiwyg uploader too.

Helper functions (possibly?)
----------------------------

[](#helper-functions-possibly)

menulinks($title) : Returns an array of menulinks that belong to the menu with given title

page($slug or $id) : Returns the given page with this slug or id

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

4434d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/609298af5265d6fb73ce9f9d9b83aed027150cf14378caffefb8685992284f7e?d=identicon)[kelt](/maintainers/kelt)

---

Top Contributors

[![kdocki](https://avatars.githubusercontent.com/u/772706?v=4)](https://github.com/kdocki "kdocki (20 commits)")

### Embed Badge

![Health badge](/badges/codesleeve-platform-publish/health.svg)

```
[![Health](https://phpackages.com/badges/codesleeve-platform-publish/health.svg)](https://phpackages.com/packages/codesleeve-platform-publish)
```

###  Alternatives

[onmotion/yii2-widget-apexcharts

Yii2 charts widget - wrapper for the ApexCharts.js

1957.6k1](/packages/onmotion-yii2-widget-apexcharts)

PHPackages © 2026

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