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
- Host: GitHub
- URL: https://github.com/nishchay/framework
- Owner: nishchay
- License: bsd-3-clause
- Created: 2020-06-29T11:10:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-18T15:21:26.000Z (over 4 years ago)
- Last Synced: 2025-07-31T01:44:39.204Z (8 months ago)
- Topics: framework, nishchay, php, php-framework
- Language: PHP
- Homepage: https://nishchay.io
- Size: 1.23 MB
- Stars: 13
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nishchay PHP Framework



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.