Gracili is a PHP Application Template to quickly create a new Project

Related tags

Frameworks gracili
Overview

Gracili

Scrutinizer Code Quality Build Status Code Coverage


What is Gracili?

Gracili is a PHP Application Template to quickly create a new Project. Using this template can save you a lot of time. With the Slim PHP Framework is a fast and simple base provided to easily extend your application to grow with the required workload.

Installation

Download the latest version of Gracili and extract it to the XAMPP htdocs-folder. You need to run the composer installation command once after the extraction to install all required libraries

$ composer install

There are usually many environments that your application is installed (you should not develop on the productive server ;) ). There is a environment configuration file to solve the problem with different configurations and password per environment. You have to rename the config/env.example.php file to config/env.php and fill in your data. If the config/env.php file is not found, the application will look for it in the parent directory (most probably the htdocs folder in your xampp environment). If the env.php file is not found there, the application will throw an Error. You can also define a APP_ENV environment variable and add a .php file in the config/ folder to specify public configurations for e.g. your CI Service (NOT PASSWORD OR ANY SECRETS)

Gracili is now successfully installed and ready to work on.

Afterwards you can start your local Apache Server with XAMPP. To visit your Website you have to open http://localhost/ /.

Structure

The Gracili Application Template is build on the MVC Design Pattern. All source code should be in the src/ directory.

Folder Content
config/ All files required for the configuration of your application
public/ Static accessible web files (images, css, fonts, etc.)
resources/ Other resources, that should not be public (migrations or translations)
src/ All PHP source code (The App namespace)
src/Controller/ Directory for all Controllers (one per 'page')
src/Datarow/ Classes for the Database sets that are returend and hydrated (one per 'select')
src/Service/ All services for the businesslogic are here. It is recommended to structure it modular
src/Table/ The classes for the database queries (one per 'table')
src/Util/ Helper classes like a validation context.
templates/ The Twig template files
tests/ Directory for tests
temp/ Temporary files (logfiles, cache)

Afterwards you can start your local Apache Server with XAMPP. To visit your Website you have to open http://localhost/ /.

Running the tests

Supposing, that you have Apache Ant installed, just run the following command to run all PHPUnit tests

$ ant phpunit

Running the tests with coverage

Run the following command to generate a coverage file in the generated build folder build/logs/clover.xml

$ ant phpunit-coverage

Running single test files

To run just a few tests, not the whole test suite, you can run the following command after you added the @group actual annotation to the test class docblock

$ ant phpunit-actual

The test class doc block to run the test in the actual group must look like this

/**
 * My test class
 * @group actual
 */
class MyTest
{
  // PHPUnit Test here ...
}

Built with

License

Copyright 2018

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

You might also like...
Pug template engine adapter for Slim

Pug for Slim For details about the template engine see phug-lang.com Installation Install with Composer: composer require pug/slim Usage with Slim 3 u

The package provides definition syntax. Definition is describing a way to create and configure a service or an object.
The package provides definition syntax. Definition is describing a way to create and configure a service or an object.

Yii Definitions The package ... Requirements PHP 7.4 or higher. Installation The package could be installed with composer: composer require yiisoft/de

Quantum PHP Project

Quantum PHP Framework (project) Website Blog Very fast and extremely simple, next generation PHP MVC framework with modular structure, which allows yo

Bootcamp project based on PHP-MVC using MySQL database.
Bootcamp project based on PHP-MVC using MySQL database.

Up-Stream This is the implementation of a full website based on PHP MVC. Using MySql database to create a website. And Bootstrap4 for front-end. Start

A multithreaded application server for PHP, written in PHP.

appserver.io, a PHP application server This is the main repository for the appserver.io project. What is appserver.io appserver.io is a multithreaded

a framework for WebDevelop based on the mvc structure. The name of this project for Fun because everyone can use it. Completely simple and powerful structure for all your projects

A_A (-.-) ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ |-| █▄─▄▄─█▄─██─▄█─▄▄▄▄█─▄▄▄▄█▄─█─▄█─▄▄▄─██▀▄─██─▄

Laravel 8 Project Restrict User Access From IP Addresses. prevent other ip address that want to access over secure api or urls.

block-ip-address-laravel Laravel 8 Project Restrict User Access From IP Addresses. prevent other ip address that want to access over secure api or url

🎁  Datagrid component project skeleton based on Nette Framework
🎁 Datagrid component project skeleton based on Nette Framework

🎁 Datagrid component project skeleton based on Nette Framework

🎲 This project provides an integration for the Doctrine ORM and the Hyperf framework

Hyperf 🤝 Doctrine This project provides an integration for the Doctrine ORM and the Hyperf framework. Install composer require leocavalcante/hyperf-d

Comments
  • ⚠ Deprecation notice

    ⚠ Deprecation notice

    Dear D4rkMindz,

    Everyone is deprecating PHP since the language isn't that good. Please consider the use of Spring or other non deprecated technologies. The inconsistency and poor design has been proven several times, and the time has come to deprecate PHP.

    Thanks in advance,

    opened by michaelbeutler 0
Releases(0.1.0)
Owner
Björn Pfoster
Application developer in switzerland Consultant, Coder, Thinker, ICT-Scout. Always looking for the most fun-efficiency-balanced way to handle a challenge
Björn Pfoster
Silex Skeleton - a fully-functional Silex application that you can use as the skeleton for your new applications

Silex Skeleton - a fully-functional Silex application that you can use as the skeleton for your new applications

Silex 789 Dec 5, 2022
Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs.

Slim Framework Slim is a PHP micro-framework that helps you quickly write simple yet powerful web applications and APIs. Installation It's recommended

Slim Framework 11.5k Jan 4, 2023
Simple PHP framework that helps you quickly understand and write simple APIs.

Lightweight-PHP-Framework-For-APIs. Simple PHP framework that helps you quickly understand and write simple APIs. Installation Use the package manager

Youssef Hajjari 24 Jul 22, 2022
Simple PHP framework that helps you quickly understand and write simple APIs.

Lightweight PHP Framework For Web and APIs PHP framework that helps you write quickly simple but powerful web apps and APIs Installation Use the packa

Youssef Hajjari 24 Jul 22, 2022
🍸A Slim Web Application Template

Gracili What is Gracili? Gracili is a PHP Application Template to quickly create a new Project. Using this template can save you a lot of time. With t

Björn Pfoster 1 May 12, 2021
Hello, this is simple attribute validation for PHP Models, based on the new features, presented in PHP 8

Hello, this is simple attribute validation for PHP Models, based on the new features, presented in PHP 8 It works as a standalone and can be use in custom projects or in libraries like Symfony and Laravel.

Ivan Grigorov 88 Dec 30, 2022
:gem: Go! AOP PHP - modern aspect-oriented framework for the new level of software development

Go! Aspect-Oriented Framework for PHP Go! AOP is a modern aspect-oriented framework in plain PHP with rich features for the new level of software deve

Go! Aspect-Oriented Framework 1.6k Dec 29, 2022
Hamtaro - the new web framework for front-end / back-end development using Php and Javascript.

Hamtaro framework About Technologies Controllers Components Commands Front-end development Getting Started About Hamtaro is the new web framework for

Phil'dy Jocelyn Belcou 3 May 14, 2022
This repository contains custom View classes for the template frameworks

Slim Views This repository contains custom View classes for the template frameworks listed below. You can use any of these custom View classes by eith

Slim Framework 308 Nov 7, 2022
Plates Template Integration for Slim micro framework 3

Plates Template Integration for Slim micro framework 3 Render your Slim 3 application views using Plates template engine. Install Via Composer $ compo

Projek XYZ 26 Feb 5, 2022