- Requirements
- Installing
- Libraries
- Server Config
- Apache Config
- Nginx Config
- Caddy Config
- Renaming Project
- Versioning
composer create-project opulence/project --prefer-dist --stability=devBe sure to configure your server to finish the installation. Load up your website in a browser, and you should see a basic website explaining on how to start customizing it. That's it! If it does not show up, make sure you've made PATH_TO_OPULENCE/tmp writable.
Opulence is broken into various libraries, each of which can be installed individually:Note: You can download Composer from here.
- opulence/applications
- opulence/authentication
- opulence/authorization
- opulence/bootstrappers
- opulence/cache
- opulence/console
- opulence/cryptography
- opulence/databases
- opulence/debug
- opulence/environments
- opulence/events
- opulence/files
- opulence/http
- opulence/ioc
- opulence/memcached
- opulence/orm
- opulence/pipelines
- opulence/querybuilders
- opulence/redis
- opulence/routing
- opulence/sessions
- opulence/validation
- opulence/views
Create a virtual host in your Apache config with the following settings:Note: You must set
YOUR_SITE_DOMAINandYOUR_SITE_DIRECTORYwith the appropriate values in the configs below.
<VirtualHost *:80>
ServerName YOUR_SITE_DOMAIN
DocumentRoot YOUR_SITE_DIRECTORY/public
<Directory YOUR_DOCUMENT_ROOT/public>
<IfModule mod_rewrite.c>
RewriteEngine On
# Handle trailing slashes
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Create pretty URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
</Directory>
</VirtualHost>
server {
listen 80;
server_name YOUR_SITE_DOMAIN;
root YOUR_SITE_DIRECTORY/public;
index index.php;
# Handle trailing slashes
rewrite ^/(.*)/$ /$1 permanent;
# Create pretty URLs
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
}
YOUR_SITE_DOMAIN:80 {
rewrite {
r .*
ext /
to /index.php?{query}
}
fastcgi / 127.0.0.1:9000 php {
ext .php
index index.php
}
}
php apex app:rename Project NEW_NAME
This will automatically update all the folders, namespaces, and Composer config to use the new name.
Opulence follows semantic versioning 2.0.0. For more information on semantic versioning, check out its documentation.