Download the PHP package wm/wm-package without Composer
On this page you can find all versions of the php package wm/wm-package. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wm/wm-package
More information about wm/wm-package
Files in wm/wm-package
Package wm-package
Short Description Webmapp laravel wm-package
License MIT
Homepage https://github.com/wm/wm-package
Informations about the package wm-package
Webmapp Laravel wm-package
Version: 1.1
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Installation
You can install the package via composer:
You can publish and run the migrations with:
Available migrations are:
create_jobs_table
, for default laravel job with an extra columncreate_hoqu_caller_jobs
, HoquCallerJob model table, necessary for processor/caller instances
You can publish the config file with:
This is the contents of the published config file:
Usage
Update
You can update the package via composer:
Testing
Developing
If you need to test the package on full laravel instance clone this repository in the same folder of the laravel dir, then add a new composer path repository in the laravel composer.json
file:
then you can install the package with compose require wm/wm-package
Pushing
We use git flow to add features to this repo. Please create a new feature then push it and ask a pull request via github interface from your feature branch to develop.
License
The MIT License (MIT). Please see License File for more information.
Docs
https://github.com/spatie/laravel-package-tools
https://laravel.com/docs/9.x/facades#facades-vs-dependency-injection
Default private/public routes (powered by Sanctum )
- public routes
POST /login
: consente la login tramite parametriemail
epassword
in formatox-www-form-urlencoded
- private routes
POST /logout
consente la logout tramite Bearer tokenGET /user
restituisce i dettagli dell'utente loggato tramite Bearer token
Artisan commands
hoqu:register-user
. Create a new user on Hoqu instance based on credetials provided in.env
file. Options:--R|role
: required, the role of this instance: "caller" , "processor" or "caller,processor"--endpoint=false
: the endpoint of this instance, default isAPP_URL
in .env file
hoqu:store
. Performs a call to Hoqu to store a job, saves a newHoquCallerModel
in the database with the hoqu response. Options:--class
: required, the class that will execute job on processor}--featureId
: required, the feature id to update after completed job}--field
: required, the field to update after completed job}--input
: required, the input to send to processor}
db:upload_db_aws
. Uploads the given sql file and the last-dump of the database to AWS. only from production Arguments:dumpname?
: the name of the sql zip file to upload
db:download
. download a dump.sql from server in storage/app/database folder. Has no arguments:
JWT
JWT verrà installato automaticamente come dipendenza. Gli utenti dovranno solo:
- Eseguire
composer require wm/wm-package
- Pubblicare la configurazione JWT con
php artisan vendor:publish --tag="wm-package-jwt-config"
- Configurare le variabili d'ambiente JWT nel file .env utilizzando il comando
php artisan jwt:secret
Il pacchetto JWT sarà gestito come dipendenza del wm-package invece che dover essere installato separatamente nell'applicazione principale.
All versions of wm-package with dependencies
illuminate/contracts Version ^10.0
laravel/sanctum Version ^3.0
spatie/laravel-package-tools Version ^1.13.0