Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Pretty Printer Laravel Package

memio/pretty-printer

Memio PrettyPrinter is an opinionated PHP code generator that takes a Model and uses a TemplateEngine to produce “pretty” code. Outputs a string you can save to files, print to console, or render in web pages.

View on GitHub
Deep Wiki
Context7

Memio's PrettyPrinter

PrettyPrinter is a code generator (printer) that takes a Model and calls the appropriate TemplateEngine to actually generate the corresponding code, using highly opinionated coding standards (pretty).

PrettyPrinter returns a string that can be saved in a file, displayed on a console output or displayed in a web page. Possibilities are endless!

Note: This package is part of Memio. Have a look at the main repository.

Installation

Install it using Composer:

composer require memio/pretty-printer:^3.0

Want to know more?

Memio uses phpspec, which means the tests also provide the documentation. Not convinced? Then clone this repository and run the following commands:

make lib-init                        # Set up Docker environment
make phpspec arg='--format pretty'   # Run the specifications

Note: Run make or make help to see all available commands.

You can see the current and past versions using one of the following:

And finally some meta documentation:

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
directorytree/privacy-filter-classifier
directorytree/privacy-filter
babenkoivan/elastic-client
innmind/static-analysis
innmind/coding-standard
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit