https://github.com/devfaysal/static-options
Helper functions that returns array of static options for Select
https://github.com/devfaysal/static-options
options php select
Last synced: over 1 year ago
JSON representation
Helper functions that returns array of static options for Select
- Host: GitHub
- URL: https://github.com/devfaysal/static-options
- Owner: devfaysal
- Created: 2023-08-12T09:30:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-28T05:01:56.000Z (almost 3 years ago)
- Last Synced: 2025-03-09T02:53:20.158Z (over 1 year ago)
- Topics: options, php, select
- Language: PHP
- Homepage:
- Size: 3.91 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Helper functions that return the array of static options for Select
Do not write or copy/paste in every project. Just require the package and use the global function
For Division/District/Upazila data of Bangladesh, check [devfaysal/laravel-bangladesh-geocode](https://github.com/devfaysal/laravel-bangladesh-geocode)
```bash
composer require devfaysal/static-options
```
### Blood Group
`bloodGroupOptions()`
```php
[
'A+' => 'A+',
'B+' => 'B+',
'AB+' => 'AB+',
'O+' => 'O+',
'A-' => 'A-',
'B-' => 'B-',
'AB-' => 'AB-',
'O-' => 'O-'
]
```
### Religion
`religionOptions()`
```php
[
'Islam' => 'Islam',
'Christianity' => 'Christianity',
'Hinduism' => 'Hinduism',
'Buddhism' => 'Buddhism',
'Other' => 'Other'
]
```
### Gender
`genderOptions()`
```php
[
'Male' => 'Male',
'Female'=> 'Female',
'Other' => 'Other'
]
```