Download the PHP package codemini/framework without Composer

On this page you can find all versions of the php package codemini/framework. 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 framework

Codemini

Codemini

Mini PHP framework - Create quickly application with standard MVC structure.

Leia na versão em português (pt-BR): Português pt-BR

Why use Codemini?

If you don't want to use a complex structure due to any reasons and don't want being tied down it, so Codemini is option for you.

Codemini is very simple to use, you can run your projet in public folder like Laravel, CodeIgniter 4 or if you are using shared host, just copy index.php and .htaccess from public folder into root folder and all things going to work well.

You can use easily other packages from Packagist.org into your project, just run composer require <vendor>/<package> and Codemini will understanding all packages that you have installed.

Third party tools like WAMP or XAMPP

As i sad above, if you are using shared host or using tools like WAMP or XAMPP, just copy index.php and .htaccess from public folder into root folder and all things going to work well.

Example:

  1. Copy your project folder into www or htdocs
  2. Copy index.php and .htaccess from public folder into root folder

Note: Remove public folder if you want

Why do it?

Because when you are using tools like WAMP or XAMPP, the DocumentRoot of Apache is point to root folder www (WAMP) or htdocs (XAMPP) and not to public folder of framework.

This rule is valid not only for Codemini but CodeIgniter 4, Laravel etc. It is the way the frameworks works.

Requirements

Project structure

Installation

With Composer Creating Project

1 - If you want to install as composer project, run: composer create-project --prefer-dist codemini/framework name-folder-of-you-project

2 - Open terminal and run cli-tools: php cli-tools serve

Optional: Run with PHP built-in server, go to public folder and run: php -S localhost:8080

Note: In this case it is not necessary to run composer install because the composer create-project already do it for you.

With Github

1 - If you want to install with Git clone, run: git clone https://github.com/fabriciopolito/Codemini.git or download "Download ZIP" and extract files.

2 - Run Composer (required) in root project folder where contain composer.json to create autoload files.

3 - Open terminal and run cli-tools: php cli-tools serve

Optional: Run with PHP built-in server, go to public folder and run: php -S localhost:8080


Your index.php should looks like this:

Configuration

Note: Codemini does not has many configurations.

Modify standards files:

Example:

Note: the file app/Config.php has full documentation each option

Using Controller, Models and Views

Creating Controller

Controllers / Home.php

Output: ./app/Controllers/Home.php

Creating Views

Views / Template/index.phtml

Creating Models

Models / Products.php

Output: ./app/Models/Products.php

Helper Functions

Libraries

How to use librarie in Controller?

It is very simple! Just load it with use instruction and the librarie will be available for you.

Example:

The basic libraries of Codemini

Note: The libraries has full documentation in each option.

Do you want to create other folders and files?

You are free! So example, create a folder Helpers in ./app/ and a file Upload.php and the only thing you have to do is set the properly namespace for autoloading.

Example ./app/Helpers/Upload.php:

And then use it in any controller this way:

Example ./app/Controllers/Home.php

Do you want to use other components from Packagist?

It is very simple! Just run Composer require command and load it the same way above.

Example 1: composer require plasticbrain/php-flash-messages

Example 2: composer require monolog/monolog

Author

Fabricio Pólito - https://github.com/fabriciopolito

Thanks using it :+1:

License

Codemini is licensed under the MIT License :heavy_check_mark:


All versions of framework with dependencies

PHP Build Version
Package Version
Requires php Version >= 5.4
plasticbrain/php-flash-messages Version ^1.0
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 codemini/framework contains the following files

Loading the files please wait ....