Giter Club home page Giter Club logo

phalcon-devtools's Introduction

Phalcon Devtools

Webtools

What's Phalcon?

Phalcon PHP is a web framework delivered as a C extension providing high performance and lower resource consumption.

What are Devtools?

This tools provide you useful scripts to generate code helping to develop faster and easy applications that use with Phalcon framework.

Requirements

  • PHP >= 5.3.9
  • Phalcon >= 0.7.0

Installing via Composer

Install composer in a common location or in your project:

curl -s http://getcomposer.org/installer | php

Create the composer.json file as follows:

{
    "require": {
        "phalcon/devtools": "dev-master"
    }
}

Run the composer installer:

php composer.phar install

Create a symbolink link to the phalcon.php script:

ln -s ~/devtools/phalcon.php /usr/bin/phalcon
chmod ugo+x /usr/bin/phalcon

Installation via PEAR

Phalcon Devtools can be installed using PEAR. Since the current version of Devtools is in beta state, you might need to update your PEAR config. You can execute following to check your current state:

pear config-show | grep preferred_state | awk '{split($0, s, " "); print s[5]}'

If it prints "stable" you need to set the preferred_state to beta:

pear config-set preferred_state beta

After that just discover the channel and install the package:

pear channel-discover pear.phalconphp.com
pear install phalcon/Devtools

Alternatively you can just clone the repo and checkout the current branch

cd ~
git clone https://github.com/phalcon/phalcon-devtools.git
cd phalcon-devtools

This method requires a little bit more of setup. Probably the best way would be to symlink the phalcon.php to a directory in your PATH, so you can issue phalcon commands in each directory where a phalcon project resides.

ln -s ~/phalcon-devtools/phalcon.php /usr/bin/phalcon
chmod ugo+x /usr/bin/phalcon

Usage

To get a list of available commands just execute following:

$ phalcon commands

This command should display something similar to:

Phalcon DevTools (1.0.0)

Help:
  Lists the commands availables in Phalcon devtools

Available commands:
  commands (alias of: list, enumerate)
  controller (alias of: create-controller)
  model (alias of: create-model)
  all-models (alias of: create-all-models)
  project (alias of: create-project)
  migration
  scaffold
  webtools

phalcon-devtools's People

Contributors

andrei-tofan avatar andresgutierrez avatar anggiaj avatar arturgspb avatar carvajaldiazeduar avatar chuyskywalker avatar dedalozzo avatar denys-potapov avatar dreamsxin avatar ekho avatar eristoddle avatar gsouf avatar kenjikobe avatar larryli avatar marshalys avatar mibamur avatar navix avatar nexik avatar niden avatar nikolaygalkin avatar niterain avatar richmulhern avatar sirian avatar sjinks avatar smolak avatar svanpoeck avatar thedisco avatar vguardiola avatar wenchen avatar xboston avatar

Watchers

 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.