GithubHelp home page GithubHelp logo

amirhnajafiz / model-view-controller Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 106 KB

Implementing MVC architecture with PHP.

Home Page: https://packagist.org/packages/amirhnajafiz/basic_mvc

License: GNU General Public License v3.0

PHP 51.44% Blade 48.56%
mvc-architecture php mvc mvc-core mvc-pattern php-library

model-view-controller's Introduction


Implementing simple Model View Controller website with PHP. This is the base of a MVC project. All routes and models and controllers are already setupt. Just clone the project and use it.

How to use?

This project will build a basic website based on MVC. To customize it, first install composer.

Clone the project by:

git clone https://github.com/amirhnajafiz/PHP-MVC.git

Enter the main dir:

cd Basic-MVC

Update the composer for vendor creation:

composer update

All good, if you want to rename the package, go to composer.json and change the settings and update the composer again.

Now you are good to create your controllers and models.
You have to set the database configurations in /models/Database.php .

And finaly run the server by the following command:

php -S 127.0.0.1:8080 -t public

All done.

model-view-controller's People

Contributors

amirhnajafiz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.