doMynation Framework
  • About
  • Getting Started
  • Modules
  • Dependency Injection
  • Routing
  • Eventing
  • Templating
Powered by GitBook
On this page
  • Requirements
  • Installing - TL;DR Version
  • Installing - Longer Version
  • Install the Framework
  • Prepare the Entry Point to Your App
  • Configure Your App

Was this helpful?

Getting Started

Getting started with the doMynaton framework.

PreviousAboutNextModules

Last updated 4 years ago

Was this helpful?

Requirements

  • PHP >=7.4

  • PHP extensions:

    • ctype

    • cURL

    • fileinfo

    • json

    • mbstring

    • openssl

    • pdo

Installing - TL;DR Version

To get started quickly, clone the .

# Clone the repo
git clone https://github.com/doMynation/doMynation-starter.git

# Install dependencies
composer install

Installing - Longer Version

Install the Framework

The first step is to clone the repository.

git clone https://github.com/doMynation/doMynation-framework.git

You'll then need to create the following directory structure and files:

/config
  - application.php  # Your app configuration
/public
  - index.php        # The entry point to your app
  - .htaccess        # Only applicable if you use Apache
/storage
  /files             # Default location for uploaded files
    - .gitkeep
  /logs              # Default location for logs
    - .gitkeep

Prepare the Entry Point to Your App

Open /public/index.php and paste the following code in it.

// Include composer dependencies
require_once __DIR__ . '/../vendor/autoload.php';

// Create an application instance with the path corresponding to the root of your project
$app = new Domynation\Application(__DIR__ . '/../');

// Boot the application
$app->boot();

// Execute the request
$app->run();

Configure Your App

Once you're done, head over to the section to create your first module.

The next step is to configure your app through /config/application.php. For an example along with an explanation of each setting, see the in the main repository.

starter project
Module
sample file