An open API service indexing awesome lists of open source software.

https://github.com/bashmach/bluz-skeleton-parse


https://github.com/bashmach/bluz-skeleton-parse

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

Bluz, a lightweight PHP Framework
=================================
Easy to setup, easy to use. Example application

[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/bluzphp/main)

## Achievements

[![Build Status](https://secure.travis-ci.org/bluzphp/skeleton.png?branch=master)](https://travis-ci.org/bluzphp/skeleton)
[![Dependency Status](https://www.versioneye.com/php/bluzphp:skeleton/badge.png)](https://www.versioneye.com/php/bluzphp:skeleton)

[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/bluzphp/skeleton/badges/quality-score.png?s=5751f605c8db43a14bef3626d2c33749614d188a)](https://scrutinizer-ci.com/g/bluzphp/skeleton/)
[![Coverage Status](https://coveralls.io/repos/bluzphp/skeleton/badge.png?branch=master)](https://coveralls.io/r/bluzphp/skeleton?branch=master)

[![Latest Stable Version](https://poser.pugx.org/bluzphp/skeleton/v/stable.png)](https://packagist.org/packages/bluzphp/skeleton)
[![Total Downloads](https://poser.pugx.org/bluzphp/skeleton/downloads.png)](https://packagist.org/packages/bluzphp/skeleton)

[![License](https://poser.pugx.org/bluzphp/skeleton/license.svg)](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