Giter Site home page Giter Site logo

bearframework / bearframework Goto Github PK

View Code? Open in Web Editor NEW
45.0 8.0 8.0 1.36 MB

An open-source PHP framework. Incredibly lightweight. Powerful enough.

Home Page: https://bearframework.com/

License: MIT License

PHP 100.00%
php-framework php php7 framework routing data-storage web-application-framework

bearframework's Introduction

Bear Framework

Incredibly lightweight. Powerful enough.

An open-source PHP framework that can help you build successful projects better. It's also easy to install and extend. Just like you'd expect from a modern framework.

Bear Framework provides all the basic tools you need to develop a modern website or application. You've got routing, data storage, addons, logs, assets helpers and few more useful tools.

Latest Stable Version License

Simple and powerful

Bear Framework is one of the easiest PHP frameworks you can find. See for yourself. Here is a simple app that outputs 'Hi'.

<?php
require 'path/to/vendor/autoload.php';
use BearFramework\App;

$app = new App();

$app->routes->add('/', function() {
    return new App\Response('Hi');
});

$app->run();

Download and install

  • Install via Composer
composer require bearframework/bearframework

or the following command to create a sleketon application

composer create-project bearframework/app [my-app-name]
  • Download a zip/phar file

Download the latest release from our GitHub page.

Documentation

Documentation is available at http://bearframework.com/docs/.

How to run the tests

After installing the dependencies with Composer, you will have a local version of PHPUnit. You can run the tests like this: vendor/bin/phpunit tests/.

License

Bear Framework is open-source software. It's free to use under the MIT license. See the license file for more information.

Let's talk

Follow and contact Bear Framework team at bearframework.com, Twitter (@bearframework) and Facebook.

bearframework's People

Contributors

cowa avatar ivopetkov avatar mirovit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bearframework's Issues

App\Response\HTML doesn't seem to be recognized as html

This probably a pilot error, but the code below doesn't result in a interpreted output-just text.
I added the setContentType just because it wasn't working -- not because I thought I needed it.

$app->routes->add('/info/', function() {
$html = phpinfo();
$page = new App\Response\HTML($html);
$page->setContentType('text/html');
return $page;
});

Request URL:https://www.emerika.com/info/
Request Method:GET
Status Code:503 Service Unavailable
Remote Address:45.79.96.87:443

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.