Skip to content

alessandrogarcez/Phar-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phar-installer

Description

Phar-installer makes easy package, deploy and install your PHP application.

Applying it in your project is very simple, it just needed copy some files to your application and configure it.

##Step by step##

###Packaging and installing###

  1. Download the sorce of Phar-installer
  2. Copy the following files to your application's root dir
    • app
    • defines.inc.php
    • install
    • make
  3. Edit the defines.inc.php setting the corretly values.
    • $name - name of your application
    • $installpath - path where the application will be installed
    • $ignored_files - The file's name or path's name the should be ignored in installation
    • $confs - configs of your application, this files will never be overwritten in a new installation.
  4. After configure the defines, execute the following command to generate the package.
    ./make installer
  5. The package will be generated in ~/BUILD/PHARS/
  6. Go to path where is the package
  7. Type the following command to install:
    php package-1.0.0.0.phar install or php package-1.0.0.0.phar --help to see the list of commands

Now your application is installed in path that was configured in defines.inc.php

###Consulting installed version###

  • Go into your installed application's path and type: ./app --version or ./app --help to see the list of commands.

Requirements

  • PHP 5.2 or newer as the PHP documemtation ( http://www.php.net/manual/en/phar.requirements.php )
  • To generate the package is necessary phar.readonly variable be off.
    • It's possible change it in php.ini
    • It possible type php --ri Phar to get information about it Phar variables.

Problems

  • I got some problems whe I've runned the command ./make installer. I received the error Call to undefined function posix_getuid() in /home/maubrent/imageimporter/make on line 68. I've solved it executing yum install php-process

About

A PHP scripts to package and deploy your website or application.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages