All Projects → phalcon → Phalcon Devtools

phalcon / Phalcon Devtools

Licence: other
Phalcon Developer Tools

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Phalcon Devtools

Ide Stubs
Phalcon IDE Stubs
Stars: ✭ 137 (-89.42%)
Mutual labels:  phalcon, ide, devtools
exlcode-chrome
EXLcode - VS Code-based Online IDE Chrome Extension
Stars: ✭ 18 (-98.61%)
Mutual labels:  ide, devtools
exlcode
EXLcode - VS Code-based Online IDE
Stars: ✭ 42 (-96.76%)
Mutual labels:  ide, devtools
Che
The Kubernetes-Native IDE for Developer Teams
Stars: ✭ 6,572 (+407.49%)
Mutual labels:  ide, devtools
Kail
kubernetes log viewer
Stars: ✭ 1,259 (-2.78%)
Mutual labels:  devtools
Apollo Client Devtools
Apollo Client browser developer tools.
Stars: ✭ 1,210 (-6.56%)
Mutual labels:  devtools
Moonshine Ide
Moonshine is a free and open source middleweight IDE built with ActionScript 3 for ActionScript 3, Apache Flex®, Apache Royale™, and Feathers development, with Cloud and Desktop support.
Stars: ✭ 76 (-94.13%)
Mutual labels:  ide
Phalcon Cron
Cron component for Phalcon.
Stars: ✭ 73 (-94.36%)
Mutual labels:  phalcon
Imposter Plugin
Composer plugin that wraps all composer vendor packages inside your own namespace. Intended for WordPress plugins.
Stars: ✭ 90 (-93.05%)
Mutual labels:  devtools
Album O Rama
Album O'Rama repository
Stars: ✭ 87 (-93.28%)
Mutual labels:  phalcon
So Eclipse Plugin
Eclipse plugin that enables you to get answers from Stack Overflow directly to your IDE 🔥
Stars: ✭ 84 (-93.51%)
Mutual labels:  ide
Vscode Gremlins
Gremlins tracker for Visual Studio Code: reveals invisible whitespace and other annoying characters
Stars: ✭ 78 (-93.98%)
Mutual labels:  ide
Atom Supercollider
SuperCollider development environment for Atom.io
Stars: ✭ 85 (-93.44%)
Mutual labels:  ide
Devtools
Tools for developing Elm programs! 🔧
Stars: ✭ 77 (-94.05%)
Mutual labels:  devtools
Devtools Terminal
Terminal in Chrome Devtools
Stars: ✭ 1,286 (-0.69%)
Mutual labels:  devtools
Elementary Ide
An unofficial elementary OS (Vala) oriented IDE.
Stars: ✭ 75 (-94.21%)
Mutual labels:  ide
Laravel Whoops Editor
Laravel Whoops Editor helps to open your code editor from exception stack trace.
Stars: ✭ 83 (-93.59%)
Mutual labels:  ide
Uaiso
A multi-language parsing infrastructure with an unified AST
Stars: ✭ 86 (-93.36%)
Mutual labels:  ide
Hops
An extension for Google Chrome to browse through the code just like you'd do in your IDE.
Stars: ✭ 81 (-93.75%)
Mutual labels:  ide
Pharothings
Live programming platform for IoT projects based on Pharo
Stars: ✭ 80 (-93.82%)
Mutual labels:  ide

Phalcon Devtools

codecov Latest Version Software License Total Downloads Daily Downloads Build Status

Phalcon 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 >= 7.2
  • Phalcon >= 4.0.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-dev": {
        "phalcon/devtools": "~4.0"
    }
}

If you are still using Phalcon 3.4.x, create a composer.json with the following instead:

{
    "require-dev": {
        "phalcon/devtools": "^3.4"
    }
}

Run the composer installer:

php composer.phar install

Build .phar

Install composer and box in a common location or in your project:

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

Build phar file phalcon-devtools

bin/box build -v
chmod +xr ./phalcon.phar
# Test it!
php ./phalcon.phar

Installation via Git

Phalcon Devtools can be installed by using Git.

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 file to a directory in your PATH, so you can issue phalcon commands in each directory where a phalcon project resides.

cd phalcon-devtools
ln -s $(pwd)/phalcon /usr/bin/phalcon
chmod ugo+x /usr/bin/phalcon

If you get a "phalcon: command not found" message while creating the symlink, make an alias.

alias phalcon=/home/[USERNAME]/phalcon-devtools/phalcon

Usage

To get a list of available commands just execute following:

phalcon commands help

This command should display something similar to:

$ phalcon --help

Phalcon DevTools (4.0.4)

Help:
  Lists the commands available in Phalcon DevTools

Available commands:
  info             (alias of: i)
  commands         (alias of: list, enumerate)
  controller       (alias of: create-controller)
  module           (alias of: create-module)
  model            (alias of: create-model)
  all-models       (alias of: create-all-models)
  project          (alias of: create-project)
  scaffold         (alias of: create-scaffold)
  migration        (alias of: create-migration)
  webtools         (alias of: create-webtools)
  serve            (alias of: server)
  console          (alias of: shell, psysh)

Database adapter

Should add adapter parameter in your db config file (if you use not MySQL database).

For PostgreSQL it will be something like:

$config = [
  'host'     => 'localhost',
  'dbname'   => 'my_db_name',
  'username' => 'my_db_user',
  'password' => 'my_db_user_password',
  'adapter'  => 'Postgresql'
];

Configuration file

By creating config.json or any other configuration file called config in root project you can set options for all possible commands, for example:

{
  "migration" : {
    "migrations": "App/Migrations",
    "config": "App/Config/db.ini"
  },
  "controller" : {
    "namespace": "Phalcon\\Test",
    "directory": "App/Controllers",
    "base-class": "App\\MyAbstractController"
  }
}

And then you can use use phalcon migration run or phalcon controller SomeClass and those commands will be executed with options from file. Arguments provided by developer from command line will overwrite existing one in file.

License

Phalcon Developer Tools is open source software licensed under the New BSD License.
© Phalcon Framework Team and contributors

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].