volistx/framework

Volistx Framework For RESTful API Based on Laravel/Lumen
54 2
Install
composer require volistx/framework
Latest Version:13.1.1
PHP:^8.3
License:MIT
Last Updated:Sep 15, 2024
Links: GitHub  ·  Packagist
Maintainer: Cryental

Volistx Framework

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

Related Packages

laravel/pint

An opinionated code formatter for PHP.

199,422,676 3,171
tightenco/duster

Automatic configuration for Laravel apps to apply Tighten's standard linting & c...

3,273,308 604
directorytree/ldaprecord-laravel

LDAP Authentication & Management for Laravel.

2,820,558 575
hemp/presenter

Easy Model Presenters in Laravel

645,429 247
juzaweb/cms

Juzaweb CMS is a Content Management System (CMS) developed based on Laravel Fram...

571,275 191

Version History

Version Released PHP Laravel License
13.1.1 ^8.3 ^11.0 MIT
13.1.0 ^8.3 ^11.0 MIT
13.0.1 ^8.3 ^11.0 MIT
13.0.0 >=8.1 ^10.0 MIT
12.0.4 >=8.1 ^10.0 MIT