2017 © Pedro Peláez
 

project dry-dock-of-ark

A sample project based on Ark

image

sinri/dry-dock-of-ark

A sample project based on Ark

  • Wednesday, May 16, 2018
  • by sinri
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

DryDockOfArk

A sample project based on Ark., (*1)

PHP 7 is required. Licensed with MIT., (*2)

To build a project with Ark

Yes, you just need to use the Dry Dock of Ark., (*3)

First, you need to get the complete code of DryDockOfArk, use, (*4)

composer create-project sinri/dry-dock-of-ark YourProjectName

and do not forget to run composer install inside., (*5)

Then create the config.php in the directory of config, a sample given there named config.sample.php., (*6)

Configure your own config file, check your requirements on Database, Cache and Log, and make modification., (*7)

It is recommended to load all those components when project is loading, so you can do this job in loadComponent.php., (*8)

If you use Apache to load the project, you need to add the .htaccess file and open the allow override option., (*9)

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]

For Nginx, you should use try_files., (*10)

server {
    location / {
        try_files $uri $uri/ /index.php$is_args$args;
    }
}

Those command would let all requests be led to the target file first, and if not exists let index.php handle them., (*11)

If you need to embed frontend inside, though not a good choice for huge site, directory frontend is provided there by default, and index.html is there as sample., (*12)

The Versions

16/05 2018

dev-master

9999999-dev

A sample project based on Ark

  Sources   Download

MIT

The Requires

 

15/02 2018

0.2

0.2.0.0

A sample project based on Ark

  Sources   Download

MIT

The Requires

 

15/02 2018

0.1

0.1.0.0

A sample project based on Ark

  Sources   Download

MIT

The Requires