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 my custom MVC framework! This framework is inspired by in-depth knowledge of Laravel, symfony and Codeignitor Routing capabilities and is designed to be lightweight, flexible, and easy to use. It is perfect for developers who want to understand the inner workings of an MVC framework or those who want to build small to medium-sized applications without the overhead of a full-fledged framework.

Installation

You can install this framework via Composer:

Features

Requirements

Getting Started

1. Installation

Ensure that you have initialized the environment before cloning the repository. i.e., run

first, then

Clone the repository or install via Composer:

Copy the mcconsole file to your project root folder to access it in your terminal.

You can initialize a new project using:

2. Configuration

After installation, configure your application by copying the example environment file and updating it with your configuration:

copy the mcconsole file to your project root directory, if u wish to use it for CLI

2.1. User class

Run the following command to create a user model:

Replace the function/class body with the one in the User.example file. Ensure your class includes:

2.2. index.php

Copy the contents of index.example to /app/public/index.php.

then you will need to add the replace the function/class body with the one in the 'User.example' file the file provides a basic structure of a typical model class. You may modify it as per your need BUT remember to always have the following line in your class

3. Running the Application

Use the built-in PHP server or the mcconsole serve command to run your application:

OR

Navigate to http://localhost:8000 in your browser to see the application in action.

Documentation

Routing

Define your routes in the public/index.php file:

Controllers

Create controllers in the app/Controllers directory using:

Example controller:

Models

Create models in the app/Models directory using:

Example model:

CRUD

Access all CRUD functions in the CRUD class. Example:

Views

Create views in the app/views directory:

Contributing

Contributions are welcome! Please feel free to submit a Pull Request or open an Issue to help improve this project.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments


Happy coding!

SIGAWA


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
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 ....