PHPackages                             betasyntax/betasyntax - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. betasyntax/betasyntax

ActiveProject[Framework](/categories/framework)

betasyntax/betasyntax
=====================

Beta Syntax Framework.

0.1.0(8y ago)263MITPHPPHP &gt;=5.5.9

Since Aug 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/betasyntax/Betasyntax)[ Packagist](https://packagist.org/packages/betasyntax/betasyntax)[ RSS](/packages/betasyntax-betasyntax/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (6)Versions (8)Used By (0)

Betasyntax Framework
====================

[](#betasyntax-framework)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

This framework is highly experimental. Until I remove this notice please use at your own risk. You have been warned!

The Betasyntax Framework is an easy to use framework based on PHP. It implements the MVC design pattern with easy to read code and a really simple learning curve. I built this taking inspiration from Rails, Laravel and all with mostly drop in components like league/container, Twig, Haml, flash messages, super simple ORM all while trying to keep the main goal of slim, featured and easy to use.

#### Current features:

[](#current-features)

- Custom Database Abstraction Layer (Currently only MySQL and PostgreSQL are supported)
- Full support for database migrations and seeding thanks to [Phinx](https://github.com/robmorgan/phinx)
- Utilizes [Twig](http://twig.sensiolabs.org/), [Haml](http://haml.info/) and [Less](http://lesscss.org/) for easy front end development. Don't like twig or haml? You can implement your own!.
- Uses [League Container](https://github.com/thephpleague/container) for super simple IoC Container Dependency Injection for the entire framework.
- Use Service Providers to manage what components are loaded and what gets injected into your app.
- Easy to use Middleware via [Relay](http://relayphp.com/)
- Modular Authentication system for quick setups. Don't want to use the built in auth system, you can build your own and inject it into your app.
- Easyily create menus from a database table with a simple command called WayFinder. Allows for active css tags to be applied to active menu items.
- Custom PHP Debugbar implementation for even faster development. Easily see all generated sql statements, request variables, exceptions, as well as developer generated errors and messages.

Installation:
-------------

[](#installation)

```
cd /web/server/root
composer create-project betasyntax/betasyntax ./
```

Or you can install the development version:

```
git clone https://github.com/betasyntax/betasyntax.git ./
composer install
```

Next create a database, edit /conf/config.php to your liking and run the migration to get your dynamic menus working.

```
vendor/bin/phinx migrate -e development
```

#### You can use migrations to quickly seed your database.

[](#you-can-use-migrations-to-quickly-seed-your-database)

```
vendor/bin/phinx seed:run -e development
```

#### Easily rollback a migration.

[](#easily-rollback-a-migration)

```
vendor/bin/phinx rollback
```

Basic Usage:
------------

[](#basic-usage)

\###Routes (/app/routes.php)

```
  ['GET','/','index@HomeController','home'] //loads /app/Controllers/HomeController->index()
  ['GET','/user/[i:id]','getUser@AccountController'] //loads /app/Controllers/AccountController->getUser($id)
  ['GET','/account/[*:string1]/[*:string2]','getUser@AccountController'] //loads /app/Controllers/AccountController->accountMethod($string1,$string2)
```

\###Controllers (/app/Controllers/HomeController.php)

```
