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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wm-package

Webmapp Laravel wm-package

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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:

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 this package on full laravel instance you have to add this repository as submodule in the root path of Laravel with git submodule add {git repo}, then add a new composer path repository in the laravel composer.json file:

at last you can install the package with compose require wm/wm-package

Testing

These tools are used to test the stand alone instance of wm-package: https://packages.tools/

Execute these commands to runs tests:

./vendor/bin/testbench migrate It migrates workbench tables on a sqlite database located in a vendor folder. Phpunit will use this database as tests memory support.

./vendor/bin/pest To run tests.

If an evaluation of testbench env I suggest to use the config() function (eg: config('database.connections.sqlite')) with the testbench implementation of tinker ./vendor/bin/testbench tinker, it is also useful to understand which things are loaded on the testbench env.

Testbench reference: https://packages.tools/testbench.html Workbench reference: https://packages.tools/workbench.html

Also a simple php docker container is available to run tests, you can start it using docker compose up -d and enter inside with docker compose exec -it php bash or directly docker compose exec -it php ./vendor/bin/pest (check permissions on files before run it, if you have problems use the -u param on exec command with the id of the user who owns project files and directories, to check your current user id you can use the command id).

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.

Run ./vendor/bin/phpstan before push to evaluate errors

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

https://pestphp.com/

Default private/public routes (powered by Sanctum )

Artisan commands

JWT

JWT verrà installato automaticamente come dipendenza. Gli utenti dovranno solo:

  1. Eseguire composer require wm/wm-package
  2. Pubblicare la configurazione JWT con php artisan vendor:publish --tag="wm-package-jwt-config"
  3. 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

PHP Build Version
Package Version
Requires php Version >8.1
illuminate/contracts Version >10.0
kiritokatklian/nova-permission Version *
laravel/sanctum Version *
maatwebsite/excel Version ^3.1
spatie/laravel-package-tools Version >1.16
spatie/laravel-permission Version *
tymon/jwt-auth Version >2.0
laravel/nova Version ^4.0 <=4.33.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wm/wm-package contains the following files

Loading the files please wait ....