This package has been deprecated

Author message:

This package was replaced to php-scaffold, to install execute the command line npm i -g php-scaffold

generator-zf2-restful-crud

0.0.9 • Public • Published

Project

This project is a code generator for the Zend Framework 2, to generate the project skeleton the Resful architecture was used and the following packages are used to create the backend:

  • zendframework / zendframework 2.5
  • link / oauth2-client 2.3
  • lcobucci / jwt 3.2
  • doctrine / doctrine-module-0,10
  • doctrine / doctrine-module 1.1
  • zfr / zfr-cors 1

In creating the frontend was used Angular 5 together as the Material Bootstrap 4 the link to the layout can be found here:

What the zf2-restful-crud do?

When started the zf2-restful-crud generator suggests creating a project or pointing to an existing project, after that you can create your Modules and their Entities, and all the necessary files for the application to work will be created as based on the data provided.

Install

You need install Yeoman e o generator.

npm i -g yo
npm i -g generator-zf2-restful-crud

Use

To use the generator you can entry into the path of the project (if the project already exist) or you create new project.

  • If the project exists you must execute the following command line.
cd <my-project>

To start generator you need only execute the command line following.

yo zf2-restful-crud

Project Structure

The zend project will have the following structure.

|--client
|--config
|   |--autoload
|   |   |--doctrine_orm.global.php
|   |   |--global.php
|   |   |--README.md
|   |   |--zrf_cors.global.php
|   |--application.config.php
|--data
|   |--README.md
|--database
|   |--migration
|   |   |--README.md
|--module
|   |--Application
|   |   |--config
|   |   |   |--module.config.php
|   |   |--language
|   |   |--src
|   |   |   |--Application
|   |   |   |   |--Controller
|   |   |   |   |   |--AppAbstractController.php
|   |   |   |   |   |--IndexController.php
|   |   |   |   |--Entity
|   |   |   |   |   |--AppAbstractEntity.php
|   |   |   |   |--Exceptions
|   |   |   |   |   |--AccessDeniedException.php
|   |   |   |   |--http
|   |   |   |   |   |--ResponseBag.php
|   |   |   |   |--Messagens
|   |   |   |   |   |--AppMessages.php
|   |   |   |   |--Repository
|   |   |   |   |   |--AppRepositoryInterface.php
|   |   |   |   |--Service
|   |   |   |   |   |--AppAbstractEntityService.php
|   |   |   |--Module.php
|   |--<Your Modules>
|--public
    |--.htaccess
    |--index.php
|--tests
|--composer.json
|--init_autoloader.php
|--LICENCE.txt
|--phpunit.xml
|--README.md
|--Vagrantfile

Package Sidebar

Install

npm i generator-zf2-restful-crud

Weekly Downloads

0

Version

0.0.9

License

MIT

Unpacked Size

2.42 MB

Total Files

278

Last publish

Collaborators

  • jonathan.monteiro