PHPackages                             ekoh/blog-posts - 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. ekoh/blog-posts

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

ekoh/blog-posts
===============

A simple blog package in php

00PHP

Since Jun 5Pushed 2y ago1 watchersCompare

[ Source](https://github.com/franklinekoh/php-package-dev)[ Packagist](https://packagist.org/packages/ekoh/blog-posts)[ RSS](/packages/ekoh-blog-posts/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#Blog Posts Package

A simple blog posts package in PHP used for teaching package development in PHP on my [free youtube course](https://youtu.be/SAmvsOIFaec).

\##installation

To install this package, use composer

```
composer require ekoh/blog-posts
```

\##Usage

```
$blog = Blog::getInstance();

$postArray = [
                 'id' => 1,
                 'Title' => 'Post title',
                 'image' => 'Path/to/image (optional)',
                 'body' => 'post body',
                 'author' => 'author',
                 'hidden' => 0,
                 'comments' => []
             ];

$blog->addPost($postArray);

$blog->getPosts($offset, $limit);

$blog->editPost($postId, $postArray);

$blog->getPost($postId);

$post = new Post($postId);

$commentArray = [
                   'body' => 'post comment',
                   'author' => 'optional'
               ];

$post->addComment($commentArray);

$post->getComments($offset, $limit);

$post->editComment($commentId, $commentArray);
```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/93e4fe6265c7b98fb2444fd610c500b3603b42a15e23f0a8347a217a81d76fdf?d=identicon)[scoudu](/maintainers/scoudu)

---

Top Contributors

[![franklinekoh](https://avatars.githubusercontent.com/u/30264870?v=4)](https://github.com/franklinekoh "franklinekoh (6 commits)")

### Embed Badge

![Health badge](/badges/ekoh-blog-posts/health.svg)

```
[![Health](https://phpackages.com/badges/ekoh-blog-posts/health.svg)](https://phpackages.com/packages/ekoh-blog-posts)
```

###  Alternatives

[typisttech/imposter-plugin

Composer plugin that wraps all composer vendor packages inside your own namespace. Intended for WordPress plugins.

158251.0k2](/packages/typisttech-imposter-plugin)

PHPackages © 2026

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