https://github.com/codeat3/laravel-1on1-questions
A laravel package wrapper of '1on1-questions' by 'VGraupera'
https://github.com/codeat3/laravel-1on1-questions
Last synced: about 2 months ago
JSON representation
A laravel package wrapper of '1on1-questions' by 'VGraupera'
- Host: GitHub
- URL: https://github.com/codeat3/laravel-1on1-questions
- Owner: codeat3
- License: mit
- Created: 2020-02-18T16:21:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-17T14:07:32.000Z (about 5 years ago)
- Last Synced: 2025-01-29T22:33:12.777Z (4 months ago)
- Language: PHP
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# A laravel package wrapper of '1on1-questions' by 'VGraupera'
[](https://packagist.org/packages/codeat3/laravel-1on1-questions)
[](https://travis-ci.org/codeat3/laravel-1on1-questions)
[](https://scrutinizer-ci.com/g/codeat3/laravel-1on1-questions)
[](https://packagist.org/packages/codeat3/laravel-1on1-questions)A laravel wrapper package to access the questions and categories from '1on1-questions' repositories by 'VGraupera'.
## Installation
You can install the package via composer:
```bash
composer require codeat3/laravel-1on1-questions
```## Usage
``` php
// to get the list of categories
\Laravel1on1Questions::categories();// to get the random question
\Laravel1on1Questions::random();// to get ths list of questions
\Laravel1on1Questions::get();// to get ths list of questions from particular category
$category = 'Job satisfaction';
\Laravel1on1Questions::get($category);// to get the random question from particular category
$category = 'About Manager';
\Laravel1on1Questions::random($category);
```### Testing
``` bash
composer test
```### Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
### Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
## Credits
- [Swapnil Sarwe](https://github.com/codeat3)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
## Laravel Package Boilerplate
This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).