Skip to content

Commit d49ba48

Browse files
committed
fixed Leaf Version issues
1 parent a517f06 commit d49ba48

File tree

4 files changed

+17
-99
lines changed

4 files changed

+17
-99
lines changed

README.md

Lines changed: 13 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,24 @@
1-
<p align="center">
2-
<br><br>
3-
<img src="https://leaf-docs.netlify.com/images/logo.png" height="100"/>
4-
<h1 align="center">Leaf MVC</h1>
5-
<br>
6-
<br><br><br>
7-
</p>
1+
# README
82

3+
This README would normally document whatever steps are necessary to get the
4+
application up and running.
95

10-
[![Latest Stable Version](https://poser.pugx.org/leafs/mvc/v/stable)](https://packagist.org/packages/leafs/mvc)
11-
[![Total Downloads](https://poser.pugx.org/leafs/mvc/downloads)](https://packagist.org/packages/leafs/mvc)
12-
[![License](https://poser.pugx.org/leafs/mvc/license)](https://packagist.org/packages/leafs/mvc)
6+
Things you may want to cover:
137

8+
* PHP version
149

15-
# Leaf
16-
LeafMVC is a simple MVC framework built on top of the leaf php micro-framework. LeafMVC lets you create clean but powerful web apps and APIs quickly. Leaf provides simple to use functions to take care of complex issues, eventually speeding up development and taking the pain out of development.
10+
* System dependencies
1711

18-
## Installation
12+
* Configuration
1913

20-
It's recommended that you use [Composer](https://getcomposer.org/) to install Leaf.
14+
* Database creation
2115

22-
```bash
23-
$ composer create project leafs/mvc <project-name>
24-
```
16+
* Database initialization
2517

26-
This will start a new LeafMVC app.
18+
* How to run the test suite
2719

20+
* Services (job queues, cache servers, search engines, etc.)
2821

29-
## Basic Info
30-
```bash
31-
C:.
32-
├───app
33-
│ ├───console
34-
│ ├───controllers
35-
│ │ └───Auth
36-
│ ├───database
37-
│ │ ├───factories
38-
│ │ ├───migrations
39-
│ │ └───seeds
40-
│ ├───helpers
41-
│ ├───models
42-
│ ├───routes
43-
│ └───views
44-
│ ├───assets
45-
│ │ ├───css
46-
│ │ ├───images
47-
│ │ ├───js
48-
│ │ └───sass
49-
│ ├───components
50-
│ └───pages
51-
│ └───errors
52-
├───config
53-
│ └───command
54-
├───public
55-
├───storage
56-
│ ├───app
57-
│ │ └───public
58-
│ ├───framework
59-
│ │ └───views
60-
│ └───logs
61-
└───vendor
62-
```
63-
This directory structure is a blend of Ruby on Rails and Laravel
22+
* Deployment instructions
6423

65-
To run your LeafMVC application, use
66-
```bash
67-
php leaf serve
68-
```
69-
70-
## Learning LeafMVC
71-
72-
LeafMVC has a very easy to understand [documentation](https://leafmvc.netlify.com/) which contains information on all operations in LeafMVC.
73-
74-
Since LeafMVC runs on Leaf, you can check out the Leaf PHP Framework documentation [here](https://leaf-docs.netlify.com).
75-
76-
77-
## License
78-
79-
The LeafMVC framework is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).
80-
81-
82-
## View LeafMVC's docs [here](https://leafmvc.netlify.com/)
83-
## View Leaf's docs [here](https://leaf-docs.netlify.com/)
24+
* ...

README2.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

app/routes/web.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
$response = new Leaf\Core\Http\Response;
1212

1313
$leaf->set404(function() use($response) {
14-
$response->renderHtml('app/views/pages/errors/404.html');
14+
$response->renderPage('app/views/pages/errors/404.html');
1515
});
1616

1717
$leaf->setNamespace('\App\Controllers');

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"require": {
2020
"doctrine/dbal": "^2.9",
2121
"illuminate/console": "^6.3",
22-
"leafs/leaf": "dev-master",
22+
"leafs/leaf": "1.5.0-alpha",
2323
"leafs/pagination": "dev-master",
2424
"psy/psysh": "^0.9.9",
2525
"symfony/console": "^4.3",
@@ -35,7 +35,8 @@
3535
},
3636
"scripts": {
3737
"post-root-package-install": [
38-
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
38+
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\"",
39+
"@php -r \"unlink('README.md'); rename('README2.md', 'README.MD');\""
3940
]
4041
}
4142
}

0 commit comments

Comments
 (0)