An open API service indexing awesome lists of open source software.

https://github.com/nishchay/framework

Nishchay - PHP framework
https://github.com/nishchay/framework

framework nishchay php php-framework

Last synced: 17 days ago
JSON representation

Nishchay - PHP framework

Awesome Lists containing this project

README

          

# Nishchay PHP Framework





![PHP Version Support](https://img.shields.io/packagist/php-v/nishchay/nishchay)
![Latest version](https://img.shields.io/packagist/v/nishchay/nishchay.svg)
![Downloads](https://img.shields.io/packagist/dt/nishchay/nishchay.svg)

Nishchay is open structure php framework which allows us to create web application, REST web services and more.

## Install

This framework is installed using composer only. Use below command

```
composer create-project nishchay/nishchay {YourAppName}
```

## Installaion guidelines

- [Linux Ubuntu](https://nishchay.io/learningCenter/installation/ubuntu/composer)
- [Linux CentOS](https://nishchay.io/learningCenter/installation/centos/composer)
- [Windows](https://nishchay.io/learningCenter/installation/windows/composer)
- [MacOS](https://nishchay.io/learningCenter/installation/macos/composer)

## Learn

Learn everything about nishchay [here](https://nishchay.io/learningCenter).

## Next thing

If you are using framework for the first time, please go throw implementation which came with installatiion.

This installation comes with following implementations:

1. Login
2. Register
3. Get user detail
4. Static pages `aboutUs`, `help` & `terms`.

#### Setup things

Setup your application by one of **Installaion guidelines**, once that is done follow below steps

###### Step 1: Database setting

Database settings are located in `settings/configuration/database.php`, where you can place one or more database connection configuration.

###### Step 2: Import tables

In order to check implementation which came with installation, please execute `db.sql` which is placed at root directory of application.

###### Step 3: Create account

If you have configured your app on domain name `http://app.nishchay.local`, then make POST request to `http://app.nishchay.local/service/account/register` with following parameters:

1. email
2. firstName
3. lastName
4. password
5. isTermAccepted = Y
6. scope=user

This will return access token using which you can access services which requires token.

###### Step 4: Check login

Check login service by providing credential which you used while creating account in above step. This service is accessed at `http://app.nishchay.local/service/account/authorize`. Pass following parameters:

1. email
2. password
3. scope=user

This service also returns access token.

###### Step 5: Get user detail

Using `http://app.nishchay.local/service/account` service get user detail, You only need to following parameters:

1. Pass access token in header with name `X-Service-Token`.
2. Pass `scope` in GET parameter.