8000 GitHub - thijsvanderwoude/majorak: PHP ADR templating framework.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PHP ADR templating framework.

License

BSD-2-Clause, MIT licenses found

Licenses found

BSD-2-Clause
LICENSE
MIT
KINT_LICENSE
Notifications You must be signed in to change notification settings

thijsvanderwoude/majorak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Majorak v0.2

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.

What works:

  • ADR pattern (v0.1)
  • Project initialization (v0.1)
  • Integrated development server (v0.1)
  • Templating (v0.2)

Todo's:

  • Support Nginx
  • Support i18n

Source tree

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.

Development

Routes

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 CLI

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

Hosting requirements

  • Apache2 with mod_rewrite enabled and AllowOverride All

About

PHP ADR templating framework.

Topics

Resources

License

BSD-2-Clause, MIT licenses found

Licenses found

BSD-2-Clause
LICENSE
MIT
KINT_LICENSE

Stars

Watchers

Forks

Packages

No packages published

Languages

0