https://github.com/bashmach/bluz-skeleton-parse
https://github.com/bashmach/bluz-skeleton-parse
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bashmach/bluz-skeleton-parse
- Owner: bashmach
- License: mit
- Created: 2015-09-16T17:17:15.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-18T17:06:42.000Z (about 10 years ago)
- Last Synced: 2025-01-19T15:51:55.587Z (10 months ago)
- Language: JavaScript
- Size: 1.42 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Bluz, a lightweight PHP Framework
=================================
Easy to setup, easy to use. Example application
[](https://gitter.im/bluzphp/main)
## Achievements
[](https://travis-ci.org/bluzphp/skeleton)
[](https://www.versioneye.com/php/bluzphp:skeleton)
[](https://scrutinizer-ci.com/g/bluzphp/skeleton/)
[](https://coveralls.io/r/bluzphp/skeleton?branch=master)
[](https://packagist.org/packages/bluzphp/skeleton)
[](https://packagist.org/packages/bluzphp/skeleton)
[](https://packagist.org/packages/bluzphp/skeleton)
## Installation
Bluz works with PHP 5.6 or later and MySQL 5.4 or later (please check [requirements](https://github.com/bluzphp/skeleton/wiki/Requirements))
### From composer
Download `composer.phar`, it's easy:
```
curl -s https://getcomposer.org/installer | php
```
Run `create-project` command (replace `%path%` ;):
```
php composer.phar create-project bluzphp/skeleton %path% --stability=dev
```
### From repository
Get Bluz skeleton source files from GitHub repository:
```
git clone git://github.com/bluzphp/skeleton.git %path%
```
Download `composer.phar` to the project folder:
```
cd %path%
curl -s https://getcomposer.org/installer | php
```
Install composer dependencies with the following command:
```
php composer.phar install
```
### With PhpStorm
For install you need any web-server (for Windows) and PhpStorm. dows) и PhpStorm.
Create project in PhpStorm:
1. File -> New project;
2. Set the project name and location;
3. In a Project type field choose Composer project;
4. Check that radiobutton is set opposite "Download composer.phar from getcomposer.org", type in a search field "bluzphp/skeleton", select this package in Available packages window and click OK.
5. After that file composer.phar and all dependencies will be loaded.
### Last step
Restore database structure from `structure.ddl` file (use InnoDB as the Default MySQL Storage Engine for avoid "Error Code: 1071"!).
Restore default database data from `dump.sql`
Edit your configuration's files `/path/to/application/configs/dev/*.php` (configuration for development environment)
Run internal PHP web-server with simple console tool (for Linux):
```
/path/to/bin/server.sh -e dev
```
Or create symlink to Apache document root (required FollowSymlinks option):
* Linux
```
ln -s /path/to/public /path/to/web
```
* Win
```
mklink /D /path/to/web path/to/public
```
## Usage
Controller:
```php
user = Users\Table::findRow($id);
};
```
View:
```php
=$user->login?>
```
Model:
```php