Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ktutumi/BEAR.Package

 
 

Repository files navigation

BEAR.Package

Introduction

BEAR.Package is a BEAR.Sunday resource oriented framework package.

Installation

$ curl -s https://getcomposer.org/installer | php
$ php composer.phar create-project -s dev --dev bear/package ./bear

More information is availavle at wiki:install.

built-in web server for development

$ cd bear/apps/Sandbox/public
$ php -S localhost:8088 web.php
$ php -S localhost:8089 api.php

Virtual Host for Production

Set up a virtual host to point to the public/ directory of the application.

Console

$ php web.php get /index
$ php api.php get page://self/index
$ php api.php get 'app://self/first/greeting?name=World'
$ php api.php get app://self/blog/posts

Make your own application

$ cd bear/apps
$ php ../../composer.phar create-project -s dev --dev bear/skeleton ./MyApp
$ cd MyApp/public
// Console
$ php web.php get /
// Web
$ php -S localhost:8090 web.php

About

This is a sandbox application using the BEAR.Sunday resource oriented framework.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 84.9%
  • JavaScript 15.0%
  • Shell 0.1%