anax / anax
The Anax framework, all included.
Installs: 1 640
Dependents: 21
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Language:CSS
Requires
- php: ^7.2
- anax/cache: ^2.0.0-beta.5
- anax/commons: ^2.0.12
- anax/configure: ^2.0.0-beta.1
- anax/content: ^2.0.0-beta.5
- anax/controller: ^2.0.0-beta.1
- anax/database: ^2.2.1
- anax/database-active-record: ^2.0.4
- anax/database-query-builder: ^2.0.4
- anax/di: ^2.0.4
- anax/log: ^2.0.0-beta.3
- anax/navigation: ^2.0.0
- anax/page: ^2.0.0-beta.1
- anax/proxy: ^1.0.2
- anax/request: ^2.0.2
- anax/response: ^2.0.1
- anax/router: ^2.0.0
- anax/session: ^2.0.1
- anax/textfilter: ^1.2.5
- anax/url: ^2.0.0-beta.2
- anax/view: ^2.0.2
- mos/cimage: ^0.7.20
- symfony/yaml: ^3.4.0
Requires (Dev)
- phpstan/phpstan: ^0.12
- phpunit/phpunit: ^8
README
The base for a complete installation of Anax with all the basic features. Use this to get going with your Anax project.
Table of Content
Requirements
You need:
- PHP 7.2 or later
composer
git
You might want to have:
- A webserver with PHP enabled.
make
node
andnpm
to work with thetheme/
.- Docker and
docker-compose
to run in containers.
Install
There are different ways on how to get going and install a fresh installation of the framework. They all include the following tasks:
- Get a copy of this repo.
- Do
composer install
to get all dependencies. - Execute all|some scaffolding scripts
.anax/*.d/*.bash
.
Composer
This is the prefered way since it only requires the use of composer.
Composer automatically installs in the directory site/
with the dependencies and processes all the scaffolding scripts.
composer create-project anax/anax site --stability beta
You might want to use the switch --ignore-platform-reqs
if your cli environment is different from your apache environment.
Git clone
This might be useful during development.
Clone this repo into a folder site/
and perform composer install and finish up by executing all of the scaffolding scripts.
git clone https://github.com/canax/anax.git site
cd site
composer install
composer run-script post-create-project-cmd
Scaffolding from Anax components
If you want a more customized installation you could decide on what postprocessing scripts you want to execute post the installation.
First, install the source and install the components using composer install
.
composer create-project anax/anax site --stability beta --no-scripts
# or
git clone https://github.com/canax/anax.git site
cd site
composer install
Then you can manually execute the scaffold script.
bash .anax/anax.bash version
bash .anax/anax.bash help
ls -d .anax/*.d
# See the available commands
bash .anax/anax.bash scaffold theme cimage
These are the basic parts of scaffolding.
You should remove the .anax
directory once you have scaffolded your site. Executing scaffolding repeated times is not guaranteed to work and may corrupt your installation.
Verify installation
These are steps you can carry out to verify your installation.
Open your site in a web browser
Point your web browser to the directory site/htdocs
.
Open your site, through docker, in a web browser
Start the docker container.
docker-compose up website
Point your web browser to http://localhost:8088/
.
Install development environment and run tests
The repo comes with a development environment which can be installed and the tests can be executed.
make install test
Run make
to see what more can be done.
Post installation
Here are more tasks to carry out to enhance your installation.
Suggested add-ons
Check what other packages that might be suggested. These are not essential, just suggestions. You can leave them as is for now.
composer suggests --no-dev --by-package
CLI-utility anax
When working with an anax installation you might want to opt to use the anax-cli (anax/anax-cli) to aid in scaffolding ordinary components.
You can install anax cli like this.
composer require anax/anax-cli
You can then execute it like this.
vendor/bin/anax.bash --help
License
This software carries a MIT license. See LICENSE.txt for details.
.
..: Copyright (c) 2013 - 2020 Mikael Roos, mos@dbwebb.se