Download the PHP package belicfr/mvclite-core without Composer

On this page you can find all versions of the php package belicfr/mvclite-core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mvclite-core

MVCLite official repository: Click here

About MVCLite

MVCLite is a lightweight MVC (Model-View-Controller) framework for building web applications in PHP. It provides a robust foundation for structuring your application's codebase, including features such as middlewares, routing system, ORM (Object-Relational Mapping), Twig templating engine integration, and more.

Features

Installation

You can install MVCLite via Composer. Run the following command in your terminal:

After installing MVCLite, you have to configure your application's settings in the config directory. The config.php file contains the main settings for your application.

You also have to configure the htaccess file, you can use the .htaccess_example file as a base.

Usage

Router

Define your application's routes in the src/Router/routes.php file. Here's an example of a simple route:

You can also define routes with a custom name

ORM

The build-in ORM allows you to interact with your database. Here's an example of a simple SELECT query:

The is still in development and more features will be added in the future, if you want to do custom queries you can use the Database class.

Middlewares

Middlewares are used to perform pre-processing logic on your application's request-response cycle. You can define a middleware in the constructor of your controller.

Views

MVCLite uses the Twig templating engine for separating logic from presentation in your views. You can create your views in the src/Views directory and then render them in your controllers.

Twig

You can use the Twig templating engine to create your views. Here's an example of a simple Twig template:

Contributing

Feel free to contribute to MVCLite by submitting a pull request, opening an issue, or sharing your ideas for new features.

License

MVCLite is open-sourced software licensed under the MIT license.

Credits

MVCLite is maintained by belicfr

Thank you to all the contributors who have helped make MVCLite better :


All versions of mvclite-core with dependencies

PHP Build Version
Package Version
Requires ext-pdo Version *
symfony/string Version ^7.0
twig/twig Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package belicfr/mvclite-core contains the following files

Loading the files please wait ....