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 2d 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 4% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity17

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://avatars.githubusercontent.com/u/18674199?v=4)[Till Kleisli](/maintainers/kleisli)[@Kleisli](https://github.com/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/dusk

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

1.9k39.6M299](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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