Download the PHP package sigawa/mvc-core without Composer

On this page you can find all versions of the php package sigawa/mvc-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 mvc-core

Custom MVC Framework

PHP Composer License

πŸš€ Introduction

Welcome to the Custom MVC Framework! This framework is inspired by the routing capabilities of Laravel, Symfony, and CodeIgniter. It's designed to be lightweight, flexible, and easy to use, making it ideal for developers seeking to understand the inner workings of an MVC framework or build small to medium-sized applications without the overhead of a full-fledged framework.

πŸ› οΈ Features

πŸ“‹ Requirements


πŸ§‘β€πŸ’» Installation

1. Install via Composer

WHAT'S NEW

API calls and protected routes using Middlewares Auth logic handling seamlessly with access_tokens

2. Clone the Repository

After cloning, copy the mcconsole file to your project root directory to enable the command-line utility.

3. Initialize a New Project

Follow the prompts to set up your project structure automatically.

4. Configure Your Environment

Copy the example .env file and customize it for your environment:


🚦 Getting Started

Running the Application

Use the built-in PHP server or the mcconsole serve command:

or

Visit http://localhost:8000 to view your application.


πŸ“š Documentation

Routing

Define routes in your public/index.php file:

Controllers

Generate a controller using:

Example:

Models

Generate a model using:

Example:

CRUD Operations

Example CRUD usage:

NOTE: More of these CRUD methods are implemented in the Model class and can be called statically in the model classes

Example:

Views

Create views in the app/views directory:


Bonus

In the vendor directory, locate the js/base.js file and you may use it in your frontend js files for sanitizing and forming the formData object

OTHER ESSENTIAL CLASSES:

For file serving, you can make use of the UtilityController.example class For pdf generation, you can make use of the the PDFGenerator.example class

SINCERITY

I recognize that I may be having ambitious ideas to revolutionize our my MVC ubderstanding, and that’s a great direction. However, I admit that I have so many conspicous flaws (may be irritating), that is why knowledge is progressive and I will always improve and learn more especially from your observations.

A full controller example, say, ClientsController

NOTE: The Trekafrica namespace is used for demonstration purposes only and should not be used in your application whatsoever.

The above example assumes React-like behaviour (that's why we didn't render a view in the view method, but rather just returned a json response instead). However, you are not limited to rendering a view if you deem so necessary

🀝 Contributing

Contributions are welcome! Submit a pull request or open an issue to help improve this framework.


πŸ“„ License

This project is licensed under the MIT License.


❀️ Acknowledgments


Happy Coding! πŸŽ‰

GitHub


All versions of mvc-core with dependencies

PHP Build Version
Package Version
Requires vlucas/phpdotenv Version 5.6.x-dev
symfony/console Version 7.1.x-dev
phpmailer/phpmailer Version dev-master
predis/predis Version ^3.0@alpha
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 sigawa/mvc-core contains the following files

Loading the files please wait ....