Download the PHP package zendframework/zftool without Composer

On this page you can find all versions of the php package zendframework/zftool. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package zftool

Zend Framework 2 Tool

Repository abandoned 2019-12-05

This repository is no longer maintained. Tooling was not updated to work with ZF3, and with the transition to Laminas, we will be deciding what, if any, new tooling we want to provide for the MVC framework.

ZFTool is an utility module for maintaining modular Zend Framework 2 applications. It runs from the command line and can be installed as ZF2 module or as PHAR (see below).

Features

Requirements

Installation using Composer

  1. Open console (command prompt)
  2. Go to your application's directory.
  3. Run composer require zendframework/zftool:dev-master
  4. Execute the vendor/bin/zf.php as reported below

Using the PHAR file (zftool.phar)

  1. Download the zftool.phar from packages.zendframework.com
  2. Execute the zftool.phar with one of the options reported below (zftool.phar replace the zf.php)

You can also generate the zftool.phar using the bin/create-phar command as reported below

Usage

Basic information

zf.php modules [list]           show loaded modules
zf.php version | --version      display current Zend Framework version

Diagnostics

zf.php diag [options] [module name]

[module name]       (Optional) name of module to test
-v --verbose        Display detailed information.
-b --break          Stop testing on first failure.
-q --quiet          Do not display any output unless an error occurs.
--debug             Display raw debug info from tests.

Project creation

zf.php create project <path>

<path>              The path of the project to be created

Module creation

zf.php create module <name> [<path>]

<name>              The name of the module to be created
<path>              The path to the root folder of the ZF2 application (optional)

Controller creation:

zf.php create controller <name> <module> [<path>]

<name>      The name of the controller to be created
<module>    The module in which the controller should be created
<path>      The root path of a ZF2 application where to create the controller

Action creation:

zf.php create action <name> <controller> <module> [<path>]

<name>          The name of the action to be created
<controller>    The name of the controller in which the action should be created
<module>        The module containing the controller
<path>          The root path of a ZF2 application where to create the action

Application configuration

zf.php config list                  list all configuration option
zf.php config get <name>            display a single config value, i.e. "config get db.host"
zf.php config set <name> <value>    set a single config value (use only to change scalar values)

Classmap generator

zf.php classmap generate <directory> <classmap file> [--append|-a] [--overwrite|-w]

<directory>         The directory to scan for PHP classes (use "." to use current directory)
<classmap file>     File name for generated class map file  or - for standard output. If not supplied, defaults to
                    autoload_classmap.php inside <directory>.
--append | -a       Append to classmap file if it exists
--overwrite | -w    Whether or not to overwrite existing classmap file

ZF library installation

zf.php install zf <path> [<version>]

<path>              The directory where to install the ZF2 library
<version>           The version to install, if not specified uses the last available

Compile the PHAR file

You can create a .phar file containing the ZFTool project. In order to compile ZFTool in a .phar file you need to execute the following command:

bin/create-phar

This command will create a zftool.phar file in the bin folder. You can use and ship only this file to execute all the ZFTool functionalities. After the zftool.phar creation, we suggest to add the folder bin of ZFTool in your PATH environment. In this way you can execute the zftool.phar script wherever you are, for instance executing the command:

mv zftool.phar /usr/local/bin/zftool.phar

Note: If the above fails due to permissions, run the mv line again with sudo.

Todo


All versions of zftool with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
zendframework/zenddiagnostics Version >=1.0.0
zendframework/zend-code Version >=2.2.2
zendframework/zend-config Version >=2.2.2
zendframework/zend-console Version >=2.2.2
zendframework/zend-file Version >=2.2.2
zendframework/zend-form Version >=2.2.2
zendframework/zend-loader Version >=2.2.2
zendframework/zend-modulemanager Version >=2.2.2
zendframework/zend-mvc Version >=2.2.2
zendframework/zend-serializer Version >=2.2.2
zendframework/zend-servicemanager Version >=2.2.2
zendframework/zend-stdlib Version >=2.2.2
zendframework/zend-text Version >=2.2.2
zendframework/zend-version Version >=2.2.2
zendframework/zend-view Version >=2.2.2
zendframework/zend-http Version >=2.2.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zendframework/zftool contains the following files

Loading the files please wait ....