wyrihaximus/makefiles
Generate and manage GNU Makefiles for PHP projects with sensible defaults and helpers. Simplifies common tasks like testing, linting, building, and CI-friendly workflows so you can standardize project automation with minimal setup.
Start by requiring the package via Composer: composer require wyrihaximus/makefiles. Despite the low star count and distant future release date (likely a placeholder), the package offers a fluent PHP API to programmatically build and manipulate Makefiles. The primary entry point is the WyriHaximus\Makefile\Makefile class. Your first use case might be generating a reusable Makefile from PHP logic—for instance, defining tasks dynamically based on project structure or environment. Check the src/ folder in the repository (if available) for core classes like Task, Variable, and Command, which are the building blocks used to assemble Makefiles.
Task::create('build', [Command::create('composer install'), Command::create('php bin/build')]) to define a task with multiple commands.Variable::create('APP_ENV', 'prod') and attach them to tasks or include globally.Makefile::toString() or write directly to Makefile using Makefile::write('Makefile').make -n (dry-run) or make --print-data-base.Command objects use proper indentation—this library usually handles it, but double-check output with cat -A Makefile.Task or Command to inject custom macros or project-specific shortcuts (e.g., MakeTask::db:migrate()).var_dump(Makefile::toString()) early to inspect generated output, and enable verbose logging in your build scripts to trace dynamic task injection.How can I help you explore Laravel packages today?