Download the PHP package sterc/csp without Composer
On this page you can find all versions of the php package sterc/csp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package csp
Sterc Content Security Policy
The New Skeleton Structure
Dependencies
This package requires mmxDatabase to work with MODX database using Eloquent models.
The mmx/database
dependency will be downloaded automatically by Composer, you need only install it inside MODX.
Prepare
This package can be installed only with Composer.
If you are still not using Composer with MODX 3, just download the composer.json
of your version:
Then run composer update
and you are ready to install this package.
Install
After installation, module appears in the menu.
There was an issue with the symlink used to link the assets/components/sterc-csp folder to its actual location inside the vendor folder. However, it all worked after sterc-scp/assets files were copied to the location inside webroot/assets/components/ folder.
It appears issues is specific for MS Windows machines.
Update
Remove
Almost the same commands but in reversed order:
Custom tables will be deleted along with all other package entities.
The Old Project Skeleton
The old project skeleton has a different structure with webroot and private root folders
In order to install package on older skeleton, additional change is required:
In a file: private/core/vendor/sterc/csp/core/src/App.php
This line should be added at line 25:
This is to load mmxDatabase, without this it is not possible to install or use CSP package.
The rest of the installation is the same as with the new skeleton.
There was an issue with frontend call and redirection: https://evbox.com.local/en/sterc-csp/admin/groups
This is a VUE application that loads in modx manager page. The url path was prefixed with /en/.