Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/afshinakhgar/afshlim_framework

FullStack Slim Framework In my Way
https://github.com/afshinakhgar/afshlim_framework

blade boilerplate cli eloquent fast micro-framework migration mvc php-framework skeleton slim slim-framework slim3 start

Last synced: 2 months ago
JSON representation

FullStack Slim Framework In my Way

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/afshinpersian/afshlim_framework.svg?branch=master)](https://travis-ci.org/afshinpersian/afshlim_framework)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/afshinpersian/afshlim_framework/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/afshinpersian/afshlim_framework/?branch=master)
[![Total Downloads](https://poser.pugx.org/afshinpersian/afshlim_framework/downloads)](https://packagist.org/packages/afshinpersian/afshlim_framework)
[![License](https://poser.pugx.org/afshinpersian/afshlim_framework/license)](https://packagist.org/packages/afshinpersian/afshlim_framework)
[![Latest Stable Version](https://poser.pugx.org/afshinpersian/afshlim_framework/v/stable)](https://packagist.org/packages/afshinpersian/afshlim_framework)

[![Twitter](https://img.shields.io/twitter/url/https/github.com/afshinpersian/afshlim_framework.svg?style=social)](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2Fafshinpersian%2Fafshlim_framework)
## AfshlimFramework

a Slim framework boilerplate in my Way
- [PSR-7](http://www.php-fig.org/psr/psr-7/ "PHP Framework Interop Group")
- [PSR-4](http://www.php-fig.org/psr/psr-4/ "PHP Framework Interop Group")
- PHP 7.0
- Namespaced
- MVC
--------------------

## Contents
- [Usage](#Usage)

---------------------

### Usage
> as a php developer I used to use many php frameworks such as laravel- yii - codeigniter and in the other hand I have used some php micro frameworks like SLIM , SILEX , FatfreeFramework ... but micro frameworks are tiny and fullstacks are huge , this skeleton is very slim with features of full stack frameworks ..
this is my way to creating new framework ... I know it's not perfect .. but it's easy to use and full featured tool
### How to install
Run this command from the directory in which you want to install
```bash
composer create-project afshinpersian/afshlim_framework
```

create mysql database

copy .env_example file

```bash
cp .env_example .env
```
run migration with this command
```bash
php afsh migrate
```
it's done

----------

### Libraries
* Helpers
* Services
* Symfony VarDumper
* Environment variables with Dotenv
* Translation And Localizations
* Core Interfaces
* MVC Pattern
* DataAccess Repository Pattern
* Command Line Tool For Better and Easy Developing
* [Facade Pattern slim-facades](https://github.com/zhshize/slim-facades)
* [Logging with Monolog](https://github.com/Seldaek/monolog)
* [Blade View](https://github.com/rubellum/Slim-Blade-View)
* [slim/csrf](https://github.com/slimphp/Slim-Csrf)
* [slim/Flash](https://github.com/slimphp/Slim-Flash)
* [symfony command](https://github.com/symfony/console/blob/master/Command/Command.php)
* [Database Migration With PhpMig](https://github.com/davedevelopment/phpmig)
* [Image Manupulation with gregwar/image](https://github.com/Gregwar/Image)
* Modular System

### CLI Tools
* Currently there are some supported commands:
* `php afsh make:controller MyControllerClassName`
* `php afsh make:middleware MyMiddlewareClassName`
* `php afsh make:model MyModelClassName`
* `php afsh make:migration MymigrationClassName`
* `php afsh list` // list of commnads
* `php afsh migrate` // run migrations
* `php afsh migrate:rollback`// rollback migrations
* `php afsh migration:status` // checking status of migrations
* `php afsh routes:list` // getting routes list in cli tool

#### TODO
- [x] registration
- [x] login 1 step
- [x] login 2 step
- [ ] admin panel
- [ ] sending email
- [x] image manupulation
- [ ] ajax support