Skip to content

Commit c7d9a3e

Browse files
committed
Merge pull request #415 from phalcon/2.0.x
2.0.2
2 parents a8f373f + 6777b68 commit c7d9a3e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+2946
-21111
lines changed

README.md

Lines changed: 45 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,26 @@
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+
1211
Phalcon 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+
1615
This tools provide you useful scripts to generate code helping to develop faster and easy applications that use
1716
with 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-
=======================
2725
Install composer in a common location or in your project:
2826

2927
```bash
@@ -63,8 +61,8 @@ ln -s ~/devtools/phalcon.php /usr/bin/phalcon
6361
chmod ugo+x /usr/bin/phalcon
6462
```
6563

66-
Installation via PEAR
67-
=====================
64+
## Installation via PEAR
65+
6866
Phalcon Devtools can be installed using PEAR. Since the current version of Devtools
6967
is in beta state, you might need to update your PEAR config. You can execute following to check
7068
your current state:
@@ -103,8 +101,7 @@ ln -s ~/phalcon-devtools/phalcon.php /usr/bin/phalcon
103101
chmod ugo+x /usr/bin/phalcon
104102
```
105103

106-
Usage
107-
=====
104+
## Usage
108105

109106
To 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-
=====
149169
Phalcon Developer Tools is open source software licensed under the New BSD License. See the docs/LICENSE.txt file for more.

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "phalcon/devtools",
33
"type": "library",
44
"description": "This tools provide you useful scripts to generate code helping to develop faster and easy applications that use with Phalcon framework.",
5-
"keywords": ["framework", "phalcon"],
5+
"keywords": ["framework", "phalcon", "devtools", "webtools"],
66
"homepage": "http://phalconphp.com",
77
"license": "BSD-3",
88
"authors": [
@@ -12,7 +12,8 @@
1212
}
1313
],
1414
"require": {
15-
"php": ">=5.3.9"
15+
"php": ">=5.3.9",
16+
"ext-phalcon": "~2.0"
1617
},
1718
"autoload": {
1819
"psr-0" : {

ide/phpstorm/phalcon.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ run_profile(){
2525
. $HOME/.profile
2626
elif [ -e $HOME/.bashrc ]; then
2727
. $HOME/.bashrc
28-
elif [ -e $HOME/.zshrc]; then
28+
elif [ -e $HOME/.zshrc ]; then
2929
. $HOME/.zshrc
30-
elif [ -e $HOME/.config/fish/config.fish]; then
30+
elif [ -e $HOME/.config/fish/config.fish ]; then
3131
. $HOME/.config/fish/config.fish
3232
fi
3333
}
@@ -48,5 +48,4 @@ else
4848
else
4949
echo "Error: Add environment variable PTOOLSPATH, unknown shell type"
5050
fi
51-
5251
fi

0 commit comments

Comments
 (0)