PHPackages                             inilim/php-code-minifier - 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. inilim/php-code-minifier

ActiveLibrary

inilim/php-code-minifier
========================

Is fork. PHP Code Minifier is a tool that allows you to minify your PHP code.

05PHP

Since Jan 24Pushed 3mo agoCompare

[ Source](https://github.com/inilim/php-code-minifier)[ Packagist](https://packagist.org/packages/inilim/php-code-minifier)[ RSS](/packages/inilim-php-code-minifier/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Code Minifier
=================

[](#php-code-minifier)

⭐ Star us on GitHub — it motivates us a lot! 😀

PHP Code Minifier is a tool that allows you to minify your PHP code. It removes all the unnecessary spaces and new lines from your PHP code and then split all the PHP code in the given `.php` file into one line.

I don't know why you would want to do this, but feel free to use it if you want to 😄

Installation
------------

[](#installation)

You can install PHP Code Minifier using [Composer](https://getcomposer.org/):

```
composer require php-code-minifier/php-code-minifier
```

Usage
-----

[](#usage)

Keep in mind, PHP code inside short opening PHP tags (`
