PHPackages                             kleisli/milly-tools - 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. [Framework](/categories/framework)
4. /
5. kleisli/milly-tools

ActiveNeos-framework[Framework](/categories/framework)

kleisli/milly-tools
===================

0162PHP

Since Nov 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Kleisli/Milly.Tools)[ Packagist](https://packagist.org/packages/kleisli/milly-tools)[ RSS](/packages/kleisli-milly-tools/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (2)

Milly.Tools
===========

[](#millytools)

Reflection and MVC mapping tools for Neos Flow

This package has been implemented to be used in [Milly.CrudForms](https://github.com/Kleisli/Milly.CrudForms) but might also be of use for others.

ClassMappingService
-------------------

[](#classmappingservice)

Determine what Model, Repository and Controller classes belong together. Mapping is done based on the Flow conventions and can be overruled by defining the constant ENTITY\_CLASSNAME in either a Repository or a Controller class.

```
const ENTITY_CLASSNAME = ModelToBeMapped::class;

```

public functions

### getRepositoryClassByModel

[](#getrepositoryclassbymodel)

@param object|string $model An object (class instance) or a string (class name) of a domain model

@return string

### getControllerClassByModel

[](#getcontrollerclassbymodel)

@param object|string $model An object (class instance) or a string (class name) of a domain model

@return string

### get\*Class functions

[](#getclass-functions)

- getModelClass
- getRepositoryClass
- getControllerClass

@param string $className a Controller, Model or Repository class name

@return string class

### get\*Name functions

[](#getname-functions)

- getPackageName
- getControllerName
- getModelName

@param string $className a Controller, Model or Repository class name

@return string just the name of the package, controller or model without the class path

### convertClass

[](#convertclass)

to convert a class of type Model, Repository or Controller into another of these types

@param string $className a Controller, Model or Repository class name

@param string $type one of the ClassMappingService::TYPE\_\* constants

@return string className of type ClassMappingService::TYPE\_\*

ReflectionService
-----------------

[](#reflectionservice)

### getTypeOfProperty

[](#gettypeofproperty)

@param $className

@param $propertyName

@return string

### getTypeOfRelation

[](#gettypeofrelation)

@param $className

@param $relationName

@return string

### isToOneRelation / isToManyRelation

[](#istoonerelation--istomanyrelation)

@param $className

@param $relationName

@return bool

### isPropertyPublic

[](#ispropertypublic)

@param object|string $class An object (class instance) or a string (class name)

@param $propertyName

@return bool

### cleanClassName

[](#cleanclassname)

get the real class name, from a doctrine proxy class

@param $className

@return string

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity16

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/b0c4c2e910a7d2e4fd8cf1e4a2392d2c54622ae5ab12e8b338422d404fa8f21a?d=identicon)[kleisli](/maintainers/kleisli)

---

Top Contributors

[![Kleisli](https://avatars.githubusercontent.com/u/18674199?v=4)](https://github.com/Kleisli "Kleisli (12 commits)")

---

Tags

neos-flow

### Embed Badge

![Health badge](/badges/kleisli-milly-tools/health.svg)

```
[![Health](https://phpackages.com/badges/kleisli-milly-tools/health.svg)](https://phpackages.com/packages/kleisli-milly-tools)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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