cryental / volistx-skeleton
Volistx Framework For RESTful API Based on Laravel/Lumen
Installs: 37
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^8.3
- ext-curl: *
- ext-json: *
- ext-pdo: *
- ext-zip: *
- guzzlehttp/guzzle: ^7.2
- interaction-design-foundation/laravel-geoip: ^3.3
- laravel/framework: ^11.0
- laravel/octane: ^2.3
- laravel/prompts: ^0.1.18
- laravel/tinker: ^2.9
- spatie/laravel-ignition: ^2.4
- volistx/framework-kernel: ^8.0
Requires (Dev)
- fakerphp/faker: ^1.23
- mockery/mockery: ^1.6
- nunomaduro/collision: ^8.0
- phpunit/phpunit: ^10.5
- spatie/ray: ^1.41
- dev-master
- 13.1.1
- 13.1.0
- 13.0.1
- 13.0.0
- 12.0.4
- 12.0.3
- 12.0.2
- 12.0.1
- 12.0.0
- 11.2.0
- 11.1.0
- 11.0.0
- 10.1.1
- 10.1.0
- 10.0.2
- 10.0.1
- 10.0.0
- 9.0.2
- 9.0.1
- 9.0.0
- 8.0.1
- 8.0.0
- 7.0.1
- 7.0.0
- 6.2.0
- 6.1.1
- 6.1.0
- 6.0.6
- 6.0.5
- 6.0.4
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- 5.0.2
- 5.0.1
- 5.0.0
- 4.4.2
- 4.4.1
- 4.4
- 4.3.2
- 4.3.1
- 4.3
- 4.2.1
- 4.2
- 4.1
- 4.0
- 3.1
- 3.0
- 2.11
- 2.10
- 2.9
- 2.8
- 2.7
- 2.6
- 2.5
- 2.4
- 2.3
- 2.2
- 2.1
- 2.0
- 1.46
- 1.45
- 1.41
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4
- 1.3
- 1.2
- 1.1
- 1.0
- dev-shift-116773
- dev-analysis-7a9jLE
- dev-analysis-KZbeLA
- dev-subscription_based_skeleton
This package is auto-updated.
Last update: 2024-11-15 15:03:29 UTC
README
Volistx Framework For RESTful API Based on Laravel 11.x
This is a framework skeleton for Volistx API platform using Laravel PHP Framework.
Let's make some awesome thing together!
Requirements
- PHP 8.2 or Above
- All Required Extensions for Laravel 11.x
- Redis PHP Extension
- Swoole or OpenSwoole Extension
- MariaDB 11.1 or Above
- Flare Subscription for Error Monitoring (Optional) (https://flareapp.io/)
Installation
composer create-project --prefer-dist volistx/framework myproject
Usage
-
Copy
.env.example
to.env
. -
Get GeoPoint API key and put it to
.env
file. (Optional, only if you want to use country filter) -
Put Flare key to
.env
file. (Optional, only if you want to use Flare). -
Run following commands:
composer install
php artisan key:generate
php artisan migrate
Do not forget to set a cronjob for production (This is not required if you're using Swoole):
* * * * * php /path/to/artisan schedule:run
Generate an admin access key using this command:
php artisan access-key:generate
Swoole Setup
It uses Laravel Octane. You can use Swoole or OpenSwoole. You can find the installation guide here: https://laravel.com/docs/11.x/octane
Run Swoole using this command:
php artisan octane:start
If you want the Swoole server to run after reboot, add the following line to your crontab:
@reboot php artisan octane:start
For Supervisor, check following configuration:
[program:volistx-octane-worker]
directory=/path/to/
command=php artisan octane:start
numprocs=1
autostart=true
autorestart=true
startretries=3
user=www-data
redirect_stderr=true
stdout_logfile=/var/log/supervisor/%(program_name)s.log