All In One Compiler PHP Combine Files: Combine multiple files in single output file

Recommend this page to a friend!
  Info   View files Example   View files View files (26)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2021-07-02 (2 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 51 All time: 10,061 This week: 184Up
Version License PHP version Categories
alo 1.0MIT/X Consortium ...7Utilities and Tools, Files and Folders, P...
Description Author

This package can combine multiple files in single output file.

It can take an array with the paths of a list of PHP script files and combines them into a single PHP output file.

The package may optionally if there is a process of compilation of files to be outputted into the same directory and wait until that process ends.

Picture of Isa Eken
  Performance   Level  
Name: Isa Eken <contact>
Classes: 11 packages by
Country: Turkey Turkey
Innovation award
Innovation award
Nominee: 7x

Details

All In One Compiler

Project goal is to combine multiple PHP files into a single file ?, to increase performance ? and ease of use ???.

Projenin amac?, performans? ? ve kullan?m kolayl???n? art?rmak ??? için birden çok PHP dosyas?n? tek bir dosyada ? birle?tirmektir.

Requirements / Gereksinimler

Tested on Windows 10 with PHP 8.0.1 - Composer - PHP ^8.0

Installation / Kurulum

Firstly clone this repo,

git clone https://github.com/isaeken/alo.git && cd alo

And install dependencies.

composer install

Usage / Kullan?m?

Example command:

php bin/alo.php your/project/directory your_index_file.php output_file.php

The command structure:

/bin/php bin/alo.php <Directory of your project> <The main file of your project. Example: index.php> <Output file path> [--watch=true|false] [--help]

Options

--help : Display help message.
--watch=true : Automatically compile enable project on file changes.

Before / Önce

`
|- template
|  `- header.php
|  `- footer.php
|- index.php

After / Sonra

`
|- output.php

LICENSE

The MIT License (MIT)

Copyright 2021 ?sa Eken

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

  Files folder image Files  
File Role Description
Files folder imagebin (2 files)
Files folder imagesrc (5 files, 1 directory)
Files folder imagetests (2 files, 2 directories)
Plain text file composer.json Data Auxiliary data
Plain text file phpunit.xml Data Auxiliary data
Plain text file README.md Doc. Documentation

  Files folder image Files  /  bin  
File Role Description
  Plain text file alo.bat Data Auxiliary data
  Plain text file alo.php Example Example script

  Files folder image Files  /  src  
File Role Description
Files folder imageExceptions (2 files)
  Plain text file Alo.php Class Class source
  Plain text file Cli.php Class Class source
  Plain text file Helpers.php Class Class source
  Plain text file Merger.php Class Class source
  Plain text file Watcher.php Class Class source

  Files folder image Files  /  src  /  Exceptions  
File Role Description
  Plain text file DirectoryNotFoundException.php Class Class source
  Plain text file FileNotFoundException.php Class Class source

  Files folder image Files  /  tests  
File Role Description
Files folder imageexample_project (2 files, 2 directories)
Files folder imagetests (6 files)
  Plain text file CliTest.php Class Class source
  Plain text file CompileTest.php Class Class source

  Files folder image Files  /  tests  /  example_project  
File Role Description
Files folder imageassets (1 file)
Files folder imagetemplate (3 files)
  Plain text file compiled.php Aux. Auxiliary script
  Plain text file index.php Aux. Auxiliary script

  Files folder image Files  /  tests  /  example_project  /  assets  
File Role Description
  Plain text file app.css Data Auxiliary data

  Files folder image Files  /  tests  /  example_project  /  template  
File Role Description
  Plain text file footer.php Aux. Auxiliary script
  Plain text file header.php Aux. Auxiliary script
  Plain text file home.php Aux. Auxiliary script

  Files folder image Files  /  tests  /  tests  
File Role Description
  Plain text file custom.php Aux. Auxiliary script
  Plain text file include.php Aux. Auxiliary script
  Plain text file include_once.php Aux. Auxiliary script
  Plain text file lorem.txt Doc. Documentation
  Plain text file require.php Aux. Auxiliary script
  Plain text file require_once.php Aux. Auxiliary script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:51
This week:0
All time:10,061
This week:184Up
For more information send a message to info at phpclasses dot org.