22[ ![ Total Downloads] ( https://img.shields.io/packagist/dt/phalcon/devtools.svg?style=flat-square )] ( https://packagist.org/packages/phalcon/devtools )
33[ ![ Software License] ( https://img.shields.io/badge/license-BSD--3-brightgreen.svg?style=flat-square )] ( https://github.com/phalcon/phalcon-devtools/blob/master/docs/LICENSE.txt )
44
5- Phalcon Devtools
6- ================
5+ # Phalcon Devtools
76
87![ Webtools] ( http://static.phalconphp.com/img/webtools.png )
98
10- What's Phalcon?
11- ---------------
9+ ## What's Phalcon?
10+
1211Phalcon PHP is a web framework delivered as a C extension providing high performance and lower resource consumption.
1312
14- What are Devtools?
15- ------------------
13+ ## What are Devtools?
14+
1615This tools provide you useful scripts to generate code helping to develop faster and easy applications that use
1716with Phalcon framework.
1817
19- Requirements
20- ------------
18+ ## Requirements
2119
2220* PHP >= 5.3.9
23- * Phalcon >= 0.7.0
21+ * Phalcon >= 2.0.0
22+
23+ ## Installing via Composer
2424
25- Installing via Composer
26- =======================
2725Install composer in a common location or in your project:
2826
2927``` bash
@@ -63,8 +61,8 @@ ln -s ~/devtools/phalcon.php /usr/bin/phalcon
6361chmod ugo+x /usr/bin/phalcon
6462```
6563
66- Installation via PEAR
67- =====================
64+ ## Installation via PEAR
65+
6866Phalcon Devtools can be installed using PEAR. Since the current version of Devtools
6967is in beta state, you might need to update your PEAR config. You can execute following to check
7068your current state:
@@ -103,8 +101,7 @@ ln -s ~/phalcon-devtools/phalcon.php /usr/bin/phalcon
103101chmod ugo+x /usr/bin/phalcon
104102```
105103
106- Usage
107- =====
104+ ## Usage
108105
109106To get a list of available commands just execute following:
110107
@@ -131,19 +128,42 @@ Available commands:
131128 webtools (alias of: create-webtools)
132129```
133130
134- Database adapter
135- =====
136- Should add 'adapter' parameter in your db config file (if you use not Mysql database). For PostgreSql will be
131+ ## Update WebTools from old version
132+
133+ Please remove manually directories:
134+
135+ * ` public/css/bootstrap `
136+ * ` public/css/codemirror `
137+ * ` public/js/bootstrap `
138+ * ` public/img/bootstrap `
139+ * ` public/js/codemirror `
140+ * ` public/js/jquery `
141+
142+ and files:
143+
144+ * ` public/webtools.config.php `
145+ * ` public/webtools.php `
146+
147+ and just run form your project root:
148+
137149``` bash
150+ $ phalcon webtools --action=enable
151+ ```
152+
153+ ## Database adapter
154+
155+ Should add 'adapter' parameter in your db config file (if you use not Mysql database). For PostgreSql will be
156+
157+ ``` php
138158$config = array(
139- " host" => " localhost" ,
140- " dbname" => " my_db_name" ,
159+ "host" => "localhost",
160+ "dbname" => "my_db_name",
141161 "username" => "my_db_user",
142162 "password" => "my_db_user_password",
143- " adapter" => " Postgresql" ,
144- );
145- ```
163+ "adapter" => "Postgresql",
164+ );
165+ ```
166+
167+ ## License
146168
147- License
148- =====
149169Phalcon Developer Tools is open source software licensed under the New BSD License. See the docs/LICENSE.txt file for more.
0 commit comments