trending
Marius Pantea

21h ago

Maravel-Framework 10.64 Brings Resolving Events Cache And FormRequest to Maravel

Because Maravel-Framework is a DI centered framework, the efficiency of its container is crucial.

Version 10.64 introduces FormRequest in Maravel Micro-Framework 10.52.25.

Version 10.64 of Maravel-Framework removed the \Illuminate\Foundation\Providers\FormRequestServiceProvider, leading to faster registration and boot times.

Please note that using $app-beforeResolving, $app->resolving or $app->afterResolving events, the speed of the container decreases because for each resolve, all events are looped to search via === or instanceof/is_subclass_of for the ones that need to be triggered.

Marius Pantea

3d ago

Maravel-Framework 10.63.5 finished moving 24.7k lines of code to maravel-framework-dev

  • 10.8k dev commands

  • 10.2k test classes

  • 3.7k remaining test classes in v10.63.5

The tests using these MOVED classes must be updated with \MacropaySolutions\MaravelFrameworkDev\ instead of Illuminate\ FQN prefix.

The old tests will fail for sure because of this but production code should not if it does not use fake/test code/classes.

Marius Pantea

10d ago

Maravel Framework 10.63 avoids runtime reflection on DI

Because I dislike runtime reflection, I improved the autowiring:cache command to include also constructors, not just methods.

If the concrete has contextual bindings (and constructor parameters) the old reflection is still used.

If the parameters are sent as array list, concrete will be instantiated directly with them. On failure, it will default to the old reflection but at the cost of building an Exception.

Marius Pantea

11d ago

Updated Maravel Micro-Framework and Maravelith Documentation Available

The official web page https://maravel-framework.com/docs/ now holds links to the official updated documentation of the Maravel-Framework s Templates.

  • Maravel Micro-Framework Docs

  • Maravelith Docs

  • Maravel-Framework Wiki

The docs were updated, starting from Lumen and Laravel 10 docs, with the fixes and improvements up to Maravel-Framework 10.62.8.

Marius Pantea

2mo ago

Maravel-Framework boot speed improvements

Version 10.55.0 lost ~10.8 k rows of dev environment code that was moved to a separate package. https://marius-ciclistu.medium.c...

Version 10.56.0 brings faster boot time for apps that have many listeners for events and/or observers by improving the way they are registered, including caching the observers when events are cached. https://marius-ciclistu.medium.c...

Marius Pantea

7mo ago

Maravel PHP framework - Alternative to Lumen Framework

Maravel Framework and its template for APIs Maravel are an improvement inspired by Lumen 10.0.4 and Laravel packages v10.48.29. Maravelith is a template for monoliths that was inspired by Laravel 10.3.3 and Laravel Components 10.48.29.