Coder Social home page Coder Social logo

isabella232 / php-proto-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from magento/php-proto-generator

0.0 0.0 0.0 4.77 MB

A tool to generate Magento modules from proto definitions

License: Open Software License 3.0

Dockerfile 2.60% PHP 62.27% Smarty 35.13%

php-proto-generator's Introduction

Overview

This project is a Magento code generator based on proto files provided

Installation (Docker)

  • Install docker
  • docker build -t magento/proto-generator:latest . in project root directory

Usage

CLI usage

Run packages:generate [-c|--composer_version [COMPOSER_VERSION]] [--] <proto-dir> <output-dir>, where

  • --composer_version|-c - version of generated composer package, this is an optional argument
  • <proto-dir> - directory that contains Protobuf files
  • <output-dir> - result output directory

Docker usage

Run docker run --rm -it -v $(pwd):/build magento/proto-generator:latest /build/tests/fixtures/ /build/tests/tmp

  • -v $(pwd):/build - mounts directory with proto files inside container in /build path
  • /build/tests/fixtures/ - directory containing proto files
  • /build/tests/tmp - output directory
  • --composer_version|-c - version of generated composer package, this is an optional argument (default version is 0.0.1)

You can mount any amount of directories and point input/output to different directories.

Testing

Run docker run --rm -it -v $(pwd):/build --entrypoint="/app/vendor/bin/phpunit" magento/proto-generator:latest

Contributing

Contributions are welcomed! Read the Contributing Guide for more information.

Licensing

This project is licensed under the OSL-3.0 License. See LICENSE for more information.

php-proto-generator's People

Contributors

joni-jones avatar kokoc avatar le0n4ik avatar mslabko avatar paliarush avatar vgoncharenko avatar yaroslavgoncharuk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.