Skip to content
This repository has been archived by the owner on Aug 1, 2021. It is now read-only.

o-alquimista/fragments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Fragments

Fragments aims to be a small framework for web applications. Keep in mind that this project is merely an experiment, and is not recommended for use in production.

Requirements

  • Composer
  • PHP XML extension. This package is called php-xml on Ubuntu.

Getting started

  1. Create a blank project: composer create-project crimsonking/fragments-skeleton <your-project-name>

  2. Configure your web server so that its root directory is <your-project-name>/public.

  3. Create /config/database.ini with the following lines to configure database connection details:

pdo_driver = mysql
database_name = fragments
host = 127.0.0.1
port = 3306
username = root
password = root
  1. Add routes in the file /config/routes.xml and start building your first controller at /src/Controller/. You can also try our Fragments Demo application to get an idea of how things work.

License

Copyright 2019-2020 Douglas Silva (0x9fd287d56ec107ac)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.

About

A small PHP framework for web applications

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages