PHPackages                             nualiian/php-m - 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. nualiian/php-m

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

nualiian/php-m
==============

A PHP boilerplate for less configurable environments.

16PHP

Since Mar 31Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Nualiian/php-m)[ Packagist](https://packagist.org/packages/nualiian/php-m)[ RSS](/packages/nualiian-php-m/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

php-m framework
===============

[](#php-m-framework)

php-m is a very slim framework, that offers a solid boilerplate, that can be used for many simple, but also more complex web applications.

php-m was designed to be very unopinionated, lightweight and secure. It is also designed to be deployed easily in any environmnet as it tries to rely on as little operating system specific functionality and config-specific functionality as possible.

Installation instructions
-------------------------

[](#installation-instructions)

To initiate a new project in php-m with [composer](https://getcomposer.org/), follow these easy steps:

- `composer create-project nualiian/php-m`
- `mv .env.example .env` and fill out your credentials
- `bower install` to install the frontend dependencies
- `npm install` to install all the npm dependencies
- `npm run build` to build the resources
- ready to use!

---

php-m offers this functionality out of the box:

Authentication
--------------

[](#authentication)

The framework has its own session based Auth class, that is ready to be used in your application. The main user model class is located in `framework/Core/Auth`. To login a user you simply need to call `Auth::login($credentials)` in you controller. Logout on the toher hand is provided via `Auth::logout()`. Auth class also offers a convenience method for retrieving the user from the session by calling `Auth::user()`. If there is no user loggd in `false` will be returned. To create a new user, you can call `User::create($credentials)` and pass in an array of credentials (email and password) to persist a newly created user into the database.

Database manipulation
---------------------

[](#database-manipulation)

php-m uses [NotORM](http://www.notorm.com/) as and active record manager for the database.

Building resources
------------------

[](#building-resources)

This boilerplate comes with a custom gulpfile that builds your resources, which are located in the `resources` folder. It uses Sass for stylesheets. php-m also comes preloaded with [MaterializeCSS](http://materializecss.com) framework.

What to do when developing
--------------------------

[](#what-to-do-when-developing)

- `npm run watch` to build resources as you go
- serve your webpage, e.g. `php -S localhost:3000 -t .`, or set up any other server using apache, nginx, ...

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

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://avatars.githubusercontent.com/u/5659209?v=4)[Richard Rosko](/maintainers/Nualiian)[@Nualiian](https://github.com/Nualiian)

---

Top Contributors

[![Nualiian](https://avatars.githubusercontent.com/u/5659209?v=4)](https://github.com/Nualiian "Nualiian (23 commits)")

### Embed Badge

![Health badge](/badges/nualiian-php-m/health.svg)

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

###  Alternatives

[neo/laravel-early-access

Adds an early access page to your Laravel application.

1781.1k](/packages/neo-laravel-early-access)[netresearch/contexts

Multi-channel content visibility for TYPO3 - by Netresearch

1118.6k1](/packages/netresearch-contexts)[honeybee/honeybee

Library for implementing CQRS driven, event-sourced and distributed architectures.

212.1k4](/packages/honeybee-honeybee)

PHPackages © 2026

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