This is not yet production ready software. Use at your own risk.
Majorak is a minimalist ADR templating PHP web framework.
It's ADR combined with low level control without getting in the way. A description of how ADR works can be found here. A better writeup is found here.
- ADR pattern (v0.1)
- Project initialization (v0.1)
- Integrated development server (v0.1)
- Templating (v0.2)
- Support Nginx
- Support i18n
An initial Majorak install has the following:
File/directory | Description |
---|---|
bin | Contains any CLI applications for development purposes. |
majorak | Contains the Majorak framework source code. |
.htaccess | Apache .htaccess ruleset. |
KINT_LICENSE | The Kint license (MIT). |
kint.phar | Kint debug library. |
LICENSE | The Majorak license (BSD 2-clause). |
README.md | Readme file. |
After running bin/majorak init
, it should have the following:
File/directory | Description |
---|---|
src/ | The applications source code directory. |
src/routes | Contains any url/route combinations. |
src/routes/index | Contains the example route. |
src/routes/indexAction.php | The index Action component. |
src/routes/indexDomain.php | The index Domain component. |
src/routes/indexResponder.php | The index Responder component. |
Routes are defined in the filesystem, under the routes
directory, like the table below:
Route | Directory |
---|---|
domain.xyz/foo | routes/foo/fooAction.php |
domain.xyz/foo/bar | routes/foo/bar/barAction.php |
Majorak aims to simplify development with a CLI application.
Usage is simply bin/majorak [argument(s)]
Argument | Description |
---|---|
help | Displays how to use the CLI app |
init | Initializes a basic Majorak app |
develop | Runs a PHP development server at localhost:8000 |
version | Display Majoraks version |
- Apache2 with mod_rewrite enabled and AllowOverride All