-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MvcCore v3.1.2 implementation, readme updates, composer.json updates,…
… config comments updates, newly named view template
- Loading branch information
Showing
11 changed files
with
149 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,79 @@ | ||
# MvcCore - Example - Hello World | ||
Basic MVC application and packaging demonstration. | ||
|
||
## Features | ||
- all packing ways are possible to use: | ||
- PHAR | ||
- PHP | ||
- strict package (currently used for packed app in result dir) | ||
- strict hdd | ||
- preserve package | ||
- preserve hdd | ||
[![Latest Stable Version](https://img.shields.io/badge/Stable-v3.1.2-brightgreen.svg?style=plastic)](https://github.com/mvccore/example-helloworld/releases) | ||
[![License](https://img.shields.io/badge/Licence-BSD-brightgreen.svg?style=plastic)](https://github.com/mvccore/example-helloworld/blob/master/LICENCE.md) | ||
[![Packager Build](https://img.shields.io/badge/Packager%20Build-passing-brightgreen.svg?style=plastic)](https://github.com/mvccore/packager) | ||
![PHP Version](https://img.shields.io/badge/PHP->=5.3-brightgreen.svg?style=plastic) | ||
|
||
- [**MvcCore**](https://github.com/mvccore/mvccore) very basic application and packaging demonstration. | ||
- **Result** is **completly portable** - `./release/index.php` | ||
- Result application **currently packed in strict package mode**, all packing configurations included in `./.packager/` | ||
- Packed with [**Packager library - mvccore/packager**](https://github.com/mvccore/packager)), all packing ways possible: | ||
- **PHAR file** | ||
- standard PHAR package with whole devel dir content | ||
- **PHP file** | ||
- **strict package** | ||
- everything is contained in result `index.php` | ||
- only `.htaccess` or `web.config` are necessary to use mod_rewrite | ||
- **preserve package** | ||
- result `index.php` file contains PHP files, | ||
PHTML templates but no CSS/JS/fonts or images | ||
- all wrapped file system functions are looking inside | ||
package first, then they try to read data from HDD | ||
- **preserve hdd** | ||
- result `index.php` file contains PHP files, | ||
PHTML templates but no CSS/JS/fonts or images | ||
- all wrapped file system functions are looking on HDD first, | ||
then they try to read data from package inself | ||
- **strict hdd** | ||
- result `index.php` file contains only PHP files, | ||
but PHTML templates, all CSS/JS/fonts and images are on HDD | ||
- no PHP file system function is wrapped | ||
|
||
## Instalation | ||
```shell | ||
# load project | ||
composer require mvccore/example-helloworld | ||
|
||
# update dependencies for packing | ||
composer update | ||
# load example | ||
composer create-project mvccore/example-helloworld | ||
|
||
# go to development directory | ||
cd development | ||
# go to project development dir | ||
cd example-helloworld/development | ||
|
||
# update dependencies for application sources | ||
# update dependencies for app development sources | ||
composer update | ||
``` | ||
|
||
## Build | ||
|
||
### 1. Prepare application | ||
- go to `example-helloworld/development` | ||
- clear everything in `./Var/Tmp/` | ||
- change `$app->Run();` to `$app->Run();` in `./index.php` | ||
- visit all aplication routes where are different JS/CSS bundles | ||
groups to generate `./Var/Tmp/` content for result app | ||
- run build process | ||
|
||
### 2. Build | ||
|
||
#### Linux: | ||
```shell | ||
# go to project root dir | ||
cd example-helloworld | ||
# run build process into single PHP file | ||
sh make.sh | ||
# or Windows: | ||
``` | ||
|
||
#### Windows: | ||
```shell | ||
# go to project root dir | ||
cd example-helloworld | ||
# run build process into single PHP file | ||
make.cmd | ||
``` | ||
|
||
#### Browser: | ||
```shell | ||
# visit script `make-php.php` in your project root directory: | ||
http://localhost/example-helloworld/make-php.php | ||
# now run your result in: | ||
http://localhost/example-helloworld/release/ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.