https://github.com/mamuz/mm-web
private blog site
https://github.com/mamuz/mm-web
application zf2
Last synced: 6 months ago
JSON representation
private blog site
- Host: GitHub
- URL: https://github.com/mamuz/mm-web
- Owner: mamuz
- Created: 2014-04-18T16:44:14.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-21T13:40:04.000Z (almost 10 years ago)
- Last Synced: 2025-02-13T00:46:31.857Z (8 months ago)
- Topics: application, zf2
- Language: PHP
- Homepage:
- Size: 2.45 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mm-web
Homepage with ZF2 and Doctrine2
## Domain
Private homepage to provide informations about: Practices, principles and patterns in web-development with PHP
## Functional Features
- Skeleton with twitter-Bootstrap
- Responsive Frontend
- Contact
- ContentManager
- Blog: Postlist is infinitive## Non-Functional Features
- ErrorLogging
- GoogleTracking Plugin
- Automail for new contact entry
- Config Cache
- Asset Versioning
- Output cache## Installation
### Create Application
```sh
cd /var/www
```
```sh
git clone https://github.com/mamuz/mm-web.git
```
```sh
cd mm-web
```
```sh
curl -s https://getcomposer.org/installer
php composer.phar self-update; php composer.phar install
```### Apache Setup
Add virtual host to apache
```sh
DocumentRoot /var/www/mm-web/public
ServerName local.mm-web.de
RewriteEngine On
RewriteRule ^(.*)\.[\d]{10}\.(css|js)$ $1.$2 [L]
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [NC,L]
RewriteRule ^ /index.php [NC,L]
DirectoryIndex index.php
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
```
Add servername `local.mm-web.de` to host file and restart apache server.
### Data directory
Create directories for temporary data
```sh
sh ./scripts/mkdata.sh
```### Environment
In `./environment.php` is an APPLICATION_ENV defined to `development`.
For other environments change it to `staging` or `production`.```php
putenv("APPLICATION_ENV=development");
```## Composer
Dependencies are handled by Composer package manager.
### Install dependencies with composer
```sh
php composer.phar self-update; php composer.phar install
```## Testrunner
In test directory an over all module tesrunner exists.
Be sure that each module is defined in `./test/config.php` and in `./test/phpunit.xml`.
Each module must have an autoloader classmap.### Execute Testrunner
```sh
./vendor/bin/phpunit -c test/
```### Filemaps
Each module should have an autoloader classmap and a template map.
```sh
sh ./scripts/generate_maps.sh
```## Application Configuration
In `./config/application.config` define which modules will be integrated and the config cache behavior.
## Application Module Configuration
See [README.md in Application module](https://github.com/mamuz/mm-web/tree/master/module/Application) for more informations.
## Scripts
See [README.md in scripts directory](https://github.com/mamuz/mm-web/tree/master/scripts) for more informations.