Download the PHP package unicate/no-framework without Composer
On this page you can find all versions of the php package unicate/no-framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package no-framework
No-Framework
Packages YES, Framework NO!
What is it?
Call it "Glue" or call it "Boilerplate". "No-Framework" aims to give you a head start for development with a simple and understandable foundation.
"No-framework" is based on popular and proven packages which are easily exchangeable with others you like or already know.
Mainly the following packages are used: For dependency injection PHP-DI, for Database access and queries Medoo, for Templating Plates and a few others... And also little self written code as "glue" in between.
Why No-Framework
- I want to have control and I want to understand what I'm doing.
- I want to start small and extend if necessary.
- I want to focus on the solution, not the framework.
- I want to develop fast but without reinventing the wheel.
- I want to use interchangeable components.
The basic answer to satisfy all these needs are packages. Packages as extendable, exchangeable components. With Composer and Packagist the PHP ecosystem offers a perfect solution for this.
What it's not!
It's not another PHP framework. There are already great frameworks out there. Full-fledged like Laravel or Synfony and also Micro-Frameworks like Slim and others.
Using a framework offers some great advantages but has also a few drawbacks. In short that's the following:
- PROs: Fast Development, Security, Documentation, Maintenance and Community.
- CONs: Generic solution that might not suit your needs, limited control, time to learn and understand, overhead and slower execution.
Getting Started
Use Git or Composer:
The "Task List" Demo is a simple example application. Download the code and see what happens. To help you understand, a view hints and principles:
- Important: Setup a local Test-Database with the code in
db/
. - Important: Copy the .env-default to .env in
app/config
and enter DB connection details. - Important: To start the local PHP server, just execute
serve.sh
. - The architecture is based on the MVC pattern.
- Objects are only created by the Dependency Injection container and configured in
app/config/dependencies.php
- All environment dependent configuration is done in
app/config/.env
. - Routes are defined in
app/config/routes.php
. - If you want to change file paths, use
app/core/constants.php
. - Your controller should extend
AbstractController
class. - Only CSS and JS files should be located in the public directory.
- If you like to exchange a basic package, have a look at
app/config/dependencies.php
and the service classes inapp/services
.
Folder structure is pretty self explaining:
Disclaimer & License
This code should help you build your own solution. It's not mature and fully tested software. You use anything at your own risk. Have fun with it.
No-Framework is released under the MIT licence.
Finally
Now go and build something and make people happy!
All versions of no-framework with dependencies
laminas/laminas-diactoros Version 2.3.0
laminas/laminas-httphandlerrunner Version 1.1.0
league/route Version 4.5.0
league/plates Version 3.3.0
php-di/php-di Version 6.1.0
tuupola/slim-jwt-auth Version 3.4.0
catfan/medoo Version 1.7.10
unicate/language-detection Version 1.2
unicate/logger Version 1.2
unicate/translation Version 1.0