Framework for PHP 7.1+

4.2.6 2019-12-18 22:47 UTC

This package is auto-updated.

Last update: 2024-04-08 16:30:25 UTC


README

Nova Framework

Nova Framework 4.2 (Kernel)

Total Downloads Dependency Status GitHub license GitHub stars GitHub forks

Join the chat at https://gitter.im/nova-framework/framework/novausers

Note: This repository contains the core code of the Nova framework. If you want to build an application using Nova 4, visit the main Nova repository.

What is the Nova Framework?

Nova Framework is a PHP 7.1 MVC system. It's designed to be lightweight and modular, allowing developers to build better and easy to maintain code with PHP.

Requirements

The framework requirements are limited.

The following PHP extensions should be enabled:

  • Fileinfo (edit php.ini and uncomment php_fileinfo.dll or use php selector within cpanel if available.)
  • OpenSSL
  • INTL

Note: Although a database is not required, if a database is to be used, the system is designed to work with a MySQL database using PDO.

Installation

This framework was designed and is strongly recommended to be installed above the document root directory, with it pointing to the public folder.

Additionally, installing in a sub-directory, on a production server, will introduce severe security issues.

Recommended

The framework is located on Packagist.

You can install the framework from a terminal by using:

composer create-project nova-framework/framework foldername 4.* -s dev

The foldername is the desired folder to be created.

Note: You can install the bare application variant from a terminal by using:

composer create-project nova-framework/app foldername 4.* -s dev

Documentation

Full docs & tutorials are available on novaframework.com.

Offline docs are available in PDF, EPUB and MOBI formats on Leanpub.

Screencasts are available on Novacasts.

Contributing

Issue Tracker

You can find outstanding issues on the GitHub Issue Tracker.

Pull Requests

  • Each pull request should contain only one new feature or improvement.
  • Pull requests should be submitted to the correct version branch ie master

Code Style

All pull requests must use the PSR-2 code style.

  • Code MUST use the PSR-1 code style.
  • Code MUST use 4 spaces for indenting, not tabs.
  • There MUST NOT be a hard limit on line length; the soft limit MUST be 120 characters; lines SHOULD be 80 characters or less.
  • There MUST be one blank line after the namespace declaration, and there MUST be one blank line after the block of use declarations.
  • Opening braces for classes MUST go on the next line, and closing braces MUST go on the next line after the body.
  • Opening braces for methods MUST go on the next line, and closing braces MUST go on the next line after the body.
  • Visibility MUST be declared on all properties and methods; abstract and final MUST be declared before the visibility; static MUST be declared after the visibility.
  • Control structure keywords MUST have one space after them; method and function calls MUST NOT.
  • Opening braces for control structures MUST go on the same line, and closing braces MUST go on the next line after the body.
  • Opening parentheses for control structures MUST NOT have a space after them, and closing parentheses for control structures MUST NOT have a space before.

License

The Nova Framework is under the MIT License.