PHPackages                             defra91/levecchiecredenze.it - 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. defra91/levecchiecredenze.it

ActiveLibrary[Framework](/categories/framework)

defra91/levecchiecredenze.it
============================

a back-end website development for a restaurant

001PHP

Since Jun 1Pushed 11y ago1 watchersCompare

[ Source](https://github.com/defra91/levecchiecredenze.it)[ Packagist](https://packagist.org/packages/defra91/levecchiecredenze.it)[ RSS](/packages/defra91-levecchiecredenzeit/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

levecchiecredenze.it - a website php project
============================================

[](#levecchiecredenzeit---a-website-php-project)

This repository provide a versioning system for the website levecchiecredenze.it.

- Public domain reference:  (not deployed yet, old version)

Status
------

[](#status)

Under development. See the [release](https://github.com/defra91/levecchiecredenze.it/releases) section for more information;

Current features
----------------

[](#current-features)

- Static homepage with restaurant information;
- Static page with history of restaurant information;
- Dynamic page with restaurant menu (not implemented);
- Dynamic page with news list;
- Dynamic page with event list (not implemented);
- Dynamic page with gallery (not implemented);
- Static page with driving information and google maps frame;
- Static page with form for contact;
- Static page with credits information;
- Static page with login form;
- Standard error page view;

Standard and references
-----------------------

[](#standard-and-references)

- XHtml standard:
- CSS2 standard:
- Javascript reference:

Project structure
-----------------

[](#project-structure)

The project strictly follows the MVC design pattern. The public pages are picked on the directory `public_html`, within which reside the following directories:

- `images/`, where content images are stored;
- `css/`, where css stylesheet are stored;
- `js/`, where Javascript client-side scripts are stored;
- `data/`, where documents and other binary stuff are stored;

The `resources` directories contains all the back-end. It contains the directory `library` where are stored php scripts. The `library` directory's structure is shown below:

- `model/`, which contains script for database management;
- `controller/`, which contains script to generate page sections and communicate with model;
- `utils/`, which contains other php classes;
- `vendor/`, which contains external libraries from package manager composer;ù
- `composer.json` file, which contains the description of the package;

You can also find `backup/` directory inside `resources` folder. It contains all backup files, such as mysql backups.

Requirements
------------

[](#requirements)

- PHP &gt;= 5.3.2 with [cURL](http://php.net/manual/en/book.curl.php) extension;
- [Composer](https://getcomposer.org/);
- [MySQL](https://www.mysql.it/) database;

First use
---------

[](#first-use)

To make the website working you need to follow the following steps:

- First of all you need to create a php configuration file class. Open a terminal and access to project's directory. You need to create a file named `Configuration.php` inside the path `./resources/`. You can run the following command:

`touch ./resources/Configuration.php`

- Write class code insisde `Configuration.php` file. You are free to setup your file as you wish but in order to make project working you need to follow the template shown below:

```
