Download

Download PHPMaker today and enjoy the free 30-day trial. PHPMaker is fully functional during the trial period.

If you have any problems downloading PHPMaker, please contact us at sales@phpmaker.dev.

 

System Requirements

PHPMaker

If you use SQL Server or Oracle, PHPMaker requires the following database drivers (x86 versions) to connect to the database:

Server

Browser

  • Chrome/Edge/Firefox/Safari/Opera (latest), IE 11+.

 

Composer

Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.

If you have not used Composer before, please read Introduction first. PHPMaker uses Composer to manage required third party packages. Make sure you install Composer (if not already installed) when you install PHPMaker.

Composer is run by php.exe, so you need PHP installed on your PC. In most cases you already have PHP installed. If not, install it first.

A few sensitive PHP settings and compile flags are also required, when using the Composer installer you will be warned about any incompatibilities.

It is recommended that you upgrade your PHP to the latest stable version (v7.4.x as of today), download the version that suits your PC (x86 or x64). If you are not sure about Non Thread Safe or Thread Safe version, you may try the Non Thread Safe version first. Download the Zip version, which includes matching extensions for that version.

If you do not have php.ini yet, copy the php.ini-development and rename it as php.ini. Open the php.ini with a text editor, make sure AT LEAST the following are enabled:

; On windows:
extension_dir = "ext"

extension=curl
extension=openssl
extension=gd2
extension=mbstring
extension=fileinfo
extension=intl

You also need to enable other extensions that your project requires, including those for your database(s), e.g.

; For MySQL
extension=php_pdo_mysql.dll
; or
extension=php_mysqli.dll

; For SQLite
extension=php_pdo_sqlite.dll

; For PostgreSQL
extension=php_pdo_pgsql.dll

; For Oracle
extension=php_oci8_12c.dll

; For SQL Server
; Note: This example assumes PHP 7.4 NTS 64 bit, you must change to your own according to:
https://docs.microsoft.com/en-us/sql/connect/php/system-requirements-for-the-php-sql-driver?view=sql-server-ver15

extension=php_sqlsrv_74_nts_x64.dll

When PHPMaker starts, it checks if Composer is ready, if not, it will ask you to install. Do not skip, just install. The installer (Composer-Setup.exe shipped with PHPMaker) will download composer for you and set up your PATH environment variable so that you can call composer from any directory after installation. During installation, the installer will try to find your php.exe. If the installer cannot find your installed php.exe automatically, you just specify it when asked.

After installation, open a command prompt and test Composer by entering:

composer -V

If Composer is installed properly, you should see the version number, e.g. Composer version 1.10.9 2020-07-16 12:57:00.

Note Close your current command prompt. Test usage with a new command prompt. This is important since the PATH only gets loaded when the new command prompt starts.

PHPMaker will then call composer update automatically after script generation to install/update libraries for your projects. After the FIRST generation, Composer needs to download all the required packages, it may take a longer time, please be patient. Later generation will not run "composer update" again unless you enable/disable some features that require third party packages.

Notes

  1. Composer downloads packages from the internet, make sure that you are online when rin "composer update".
  2. The packages downloaded by Composer are put in the "vendor" subfolder under the project folder of your project. Make sure you upload this "vendor" subfolder to your site together with other generated files.

 

URL Rewrite

The generated web application requires URL Rewrite, you need to configure your web server to send HTTP requests to your PHP front-controller file, i.e. the index.php.

By default .htaccess files (for Apache) and web.config file (for IIS) will be generated for your web server. You may not need to configure manually. However, if the generated files do not work for your web server, you should check the follows.

 

Apache

Ensure that the Apache mod_rewrite module is installed and enabled. Ensure your .htaccess and index.php files are in the same directory. The .htaccess file should contain following rewrite rules:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

Note There are TWO set of .htaccess files and index.php, one under the project folder, the other under the "api" subfolder.

Some Apache servers requires RewriteBase directive, you may need to add:

a. If you generate to root folder of your site,

# For the .htaccess under the project folder
RewriteBase /

# For the .htaccess under the "api" folder
RewriteBase /api/

b. If you generate to a subfolder (e.g. "demo2021") of your site,

# For the .htaccess under the project folder
RewriteBase /demo2021/

# For the .htaccess under the "api" folder
RewriteBase /demo2021/api/

If your server requires this setting, you can click Tools -> Advanced Settings and set RewriteBase directive, e.g. / or /demo2021/, then generate .htaccess files again.

Make sure your virtual host is configured with the AllowOverride option so that the .htaccess rewrite rules can be used. Open your httpd.conf or apache.conf in a text editor, and locate the <Directory> section and change the AllowOverride line to:

AllowOverride All

To understand more about the Apache mod_rewrite module, please refer to Apache web site:
https://httpd.apache.org/docs/current/mod/mod_rewrite.html

 

Internet Information Services (IIS)

The URL Rewrite module is not built-in, so you need to download and install the IIS URL Rewrite module from the microsoft web site below first:
https://www.iis.net/downloads/microsoft/url-rewrite
After installing, you should see URL Rewrite module in IIS Manager for your web site:

To perform the mapping, you can use the IIS Manager, but it is simpler to use web.config file directly.

Ensure the web.config and index.php files are in the same directory (the project folder). The web.config file should contain this code:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <rewrite>
      <rules>
        <rule name="api" patternSyntax="Wildcard">
          <match url="api/*" />
          <conditions>
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
          </conditions>
          <action type="Rewrite" url="api/index.php" />
        </rule>
        <rule name="slim" patternSyntax="Wildcard">
          <match url="*" />
          <conditions>
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
          </conditions>
          <action type="Rewrite" url="index.php" />
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration>
      

To understand more about the IIS URL Rewrite, please refer to the Microsoft article:
https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/using-the-url-rewrite-module

 

Other Web Servers

See Web Servers.

 
Installation
Important Before installing PHPMaker, you must log in Windows as administrator.

PHPMaker can co-exist with previous version of PHPMaker. You do NOT need to uninstall previous version of PHPMaker if you don't want to.

Double-click on the downloaded executable to start the installation process. Follow the prompts and change the settings whenever necessary.

 

Download

Please fill in your email and then click the Submit button

 

Other Downloads

Template file only
Demo project

 

 

 ©2021 e.World Technology Limited. All rights reserved.