{"id":13673852,"url":"https://github.com/zendframework/ZFTool","last_synced_at":"2025-04-28T13:31:55.531Z","repository":{"id":3929779,"uuid":"5020117","full_name":"zendframework/ZFTool","owner":"zendframework","description":"Utility module for maintaining modular Zend Framework 2 applications.","archived":true,"fork":false,"pushed_at":"2019-12-06T17:22:16.000Z","size":632,"stargazers_count":186,"open_issues_count":32,"forks_count":101,"subscribers_count":41,"default_branch":"master","last_synced_at":"2025-04-17T15:27:23.802Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zendframework.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-13T14:04:10.000Z","updated_at":"2025-03-03T18:17:29.000Z","dependencies_parsed_at":"2022-09-09T16:41:36.248Z","dependency_job_id":null,"html_url":"https://github.com/zendframework/ZFTool","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zendframework%2FZFTool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zendframework%2FZFTool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zendframework%2FZFTool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zendframework%2FZFTool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zendframework","download_url":"https://codeload.github.com/zendframework/ZFTool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250628892,"owners_count":21461709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T11:00:26.005Z","updated_at":"2025-04-28T13:31:50.462Z","avatar_url":"https://github.com/zendframework.png","language":"PHP","readme":"  Zend Framework 2 Tool\n=========================\n\n\u003e ## Repository abandoned 2019-12-05\n\u003e\n\u003e 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.\n\n**ZFTool** is an utility module for maintaining modular Zend Framework 2 applications.\nIt runs from the command line and can be installed as ZF2 module or as PHAR (see below).\n\n## Features\n * Class-map generator\n * Listing of loaded modules\n * Create a new project (install the ZF2 skeleton application)\n * Create a new module\n * Create a new controller\n * Create a new action in a controller\n * [Application diagnostics](docs/DIAGNOSTICS.md)\n\n## Requirements\n * Zend Framework 2.0.0 or later.\n * PHP 5.3.3 or later.\n * Console access to the application being maintained (shell, command prompt)\n\n## Installation using [Composer](http://getcomposer.org)\n 1. Open console (command prompt)\n 2. Go to your application's directory.\n 3. Run `composer require zendframework/zftool:dev-master`\n 4. Execute the `vendor/bin/zf.php` as reported below\n\n## Using the PHAR file (zftool.phar)\n\n 1. Download the [zftool.phar from packages.zendframework.com](http://packages.zendframework.com/zftool.phar)\n 2. Execute the `zftool.phar` with one of the options reported below (`zftool.phar` replace the `zf.php`)\n\nYou can also generate the zftool.phar using the `bin/create-phar` command as reported below\n\n## Usage\n\n### Basic information\n\n    zf.php modules [list]           show loaded modules\n    zf.php version | --version      display current Zend Framework version\n\n### Diagnostics\n\n    zf.php diag [options] [module name]\n\n    [module name]       (Optional) name of module to test\n    -v --verbose        Display detailed information.\n    -b --break          Stop testing on first failure.\n    -q --quiet          Do not display any output unless an error occurs.\n    --debug             Display raw debug info from tests.\n\n### Project creation\n\n    zf.php create project \u003cpath\u003e\n\n    \u003cpath\u003e              The path of the project to be created\n\n### Module creation\n\n    zf.php create module \u003cname\u003e [\u003cpath\u003e]\n\n    \u003cname\u003e              The name of the module to be created\n    \u003cpath\u003e              The path to the root folder of the ZF2 application (optional)\n\n### Controller creation:\n\tzf.php create controller \u003cname\u003e \u003cmodule\u003e [\u003cpath\u003e]\n\n\t\u003cname\u003e      The name of the controller to be created\n\t\u003cmodule\u003e    The module in which the controller should be created\n\t\u003cpath\u003e      The root path of a ZF2 application where to create the controller\n\n### Action creation:\n\tzf.php create action \u003cname\u003e \u003ccontroller\u003e \u003cmodule\u003e [\u003cpath\u003e]\n\n\t\u003cname\u003e          The name of the action to be created\n\t\u003ccontroller\u003e    The name of the controller in which the action should be created\n\t\u003cmodule\u003e        The module containing the controller\n\t\u003cpath\u003e          The root path of a ZF2 application where to create the action\n\n### Application configuration\n\n    zf.php config list                  list all configuration option\n    zf.php config get \u003cname\u003e            display a single config value, i.e. \"config get db.host\"\n    zf.php config set \u003cname\u003e \u003cvalue\u003e    set a single config value (use only to change scalar values)\n\n### Classmap generator\n\n    zf.php classmap generate \u003cdirectory\u003e \u003cclassmap file\u003e [--append|-a] [--overwrite|-w]\n\n    \u003cdirectory\u003e         The directory to scan for PHP classes (use \".\" to use current directory)\n    \u003cclassmap file\u003e     File name for generated class map file  or - for standard output. If not supplied, defaults to\n                        autoload_classmap.php inside \u003cdirectory\u003e.\n    --append | -a       Append to classmap file if it exists\n    --overwrite | -w    Whether or not to overwrite existing classmap file\n\n### ZF library installation\n\n    zf.php install zf \u003cpath\u003e [\u003cversion\u003e]\n\n    \u003cpath\u003e              The directory where to install the ZF2 library\n    \u003cversion\u003e           The version to install, if not specified uses the last available\n\n### Compile the PHAR file\n\nYou can create a .phar file containing the ZFTool project. In order to compile ZFTool in a .phar file you need\nto execute the following command:\n\n    bin/create-phar\n\nThis command will create a *zftool.phar* file in the bin folder.\nYou can use and ship only this file to execute all the ZFTool functionalities.\nAfter the *zftool.phar* creation, we suggest to add the folder bin of ZFTool in your PATH environment. In this\nway you can execute the *zftool.phar* script wherever you are, for instance executing the command:\n\n    mv zftool.phar /usr/local/bin/zftool.phar\n\nNote: If the above fails due to permissions, run the mv line again with sudo.\n\n\n## Todo\n * Module maintenance (installation, configuration, removal etc.) [installation DONE]\n * Inspection of application configuration. [DONE]\n * Deploying zf2 skeleton applications. [DONE]\n * Reading and writing app configuration. [DONE]","funding_links":[],"categories":["Modules","Uncategorized"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzendframework%2FZFTool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzendframework%2FZFTool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzendframework%2FZFTool/lists"}