A
A
anna_makeenko2019-11-23 22:30:52
PHP
anna_makeenko, 2019-11-23 22:30:52

How to minify a batch of PHP files (psr-4)?

Let's say there is a package on GitHub (psr-4) that is intended to be installed via composer., is it really possible to compress everything into 1 file in order to include it via require?
1. We write the library in its normal form
2. We convert it into a single file
3. We use it in ancient CMS
Maybe someone has come across such tools?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
anna_makeenko, 2019-11-24
@anna_makeenko

composer require smartinus44/phpfilemerger
https://github.com/smartinus44/phpfilemerger

D
Daria Motorina, 2019-11-23
@glaphire

There is such a thing on packagist , maybe there is a fresher one, but I could not find it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question