Simple and fast PHP framework delivered as C-extension.
This is dev branch, we need to focus on the doc, tests, fixes and cleaning code, so we need your help.
- Fork the Ice framework repository.
- Create a new branch for each feature or improvement.
- Send a pull request from each feature branch to the dev branch*.
*please do not send files from /ext
directory, just those from the /ice
.
Ice is a C extension, so you need to download a binary for your platform or compile it from source code.
OpenSUSE package: php5-ice
There are two ways to compile Ice framework*:
- compile from
/ext
folder and C-files - recommended for beginners and for production machines; C-files are generated by Ice Team from time to time (eg. for every release) - build by zephir (generate, compile and install extension) - recommended for developers and for testing next release; by this way you generate C-files from Zep-files, so you can get newest features/fixes but it could be unstable
*before compilation please read the Requirements.
Clone and install from GitHub:
git clone --depth=1 https://github.com/ice/framework.git
cd framework/ext/
sudo ./install
or install using composer:
composer create-project iceframework/framework --no-dev
extension=ice.so
Finally restart the webserver
By default ./vendor/bin/zephir
runns zephir. You must run zephir begin in the /framework
directory to build Ice:
cd framework/
./vendor/bin/zephir build
*if you don't have zephir you need to compile zephir.
You can install zephir using composer. If you already have ice and you are inside /framework
directory:
composer update
mkdir vendor/phalcon/ && cd $_
git clone https://github.com/phalcon/zephir.git
# Compile json-c:
cd zephir/
./install-json
# Install zephir
./install
# Create symbolic link
mkdir ../../bin && cd $_
ln -s ../phalcon/zephir/bin/zephir
cd framework/
./vendor/bin/zephir
You can build from C-files or build by zephir
- g++ >= 4.4/clang++ >= 3.x/vc++ 9
- gnu make 3.81 or later
- php development headers and tools
- json-c (from Github)
- re2c
Ubuntu:
sudo apt-get install php5-dev libpcre3-dev gcc make re2c
Suse:
sudo zypper install php5-devel pcre-devel gcc make re2c
CentOS/Fedora/RHEL
sudo yum install php-devel pcre-devel gcc make re2c
Ice is open-sourced software licensed under the New BSD License. See the LICENSE file for more information.
Copyright (c) 2014-2015 Ice Team.