Welcome to the official documentation for Nikka, an open-source software development framework for creating powerful and scalable applications. Whether you are a beginner or an experienced developer, this documentation will provide you with all the necessary information to get started with Nikka and take advantage of its features.
Before getting started, let’s cover the installation process for Nikka. Make sure you have the following prerequisites:
- PHP 7.2 or higher
- Composer
- MySQL/MariaDB
- Apache or Nginx web server
- Open your terminal and navigate to your project directory.
- Run the following command to install Nikka via Composer:
composer require nikka/framework
- Once the installation is complete, you can start building your application using Nikka.
In order to configure Nikka for your specific environment, you need to make a few adjustments. Follow the steps below:
- Make a copy of the
.env.example
file and rename it to.env
. - Edit the
.env
file and configure the necessary environment variables for your application (e.g., database connection).
Nikka provides a set of intuitive features for creating robust applications. Let’s explore some of the key functionalities:
Nikka’s routing system allows you to define URL routes for your application. Here’s an example of defining a basic route:
[code language="php"] $app->get('/hello/{name}', function ($name) { return 'Hello, ' . $name . '!'; }); [/code]
Connecting to your database is made simple with Nikka’s database module. Check out the example below:
[code language="php"] $pdo = $app['database']->getConnection(); [/code]
Nikka supports the use of views and templates to build dynamic web pages. Here’s how to render a basic view:
[code language="php"] return $app['view']->render('welcome', ['name' => 'John']); [/code]
In addition to this documentation, there are some additional resources you may find helpful:
For detailed information about Nikka’s API, please refer to the API reference.
If you have any questions or need assistance, feel free to reach out to our friendly community at the Nikka support forum or join our Discord channel (link provided).
We welcome contributions and feedback to improve the Nikka framework. Visit our GitHub repository to submit bug reports, feature requests, or even contribute to the development process.
With Nikka, you have a powerful toolset at your disposal to build amazing applications. We hope this documentation provides you with the necessary guidance to get started. Happy coding!