Search by

sonatype / policy-demo

hi-expedition

Policy demo package for Sonatype

Package info

github.com/sonatype/php-policy-demo

pkg:composer/sonatype/policy-demo

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

1.3.0 2026-11-05 20:33 UTC

This package is not auto-updated.

Last update: 2026-11-10 20:22:58 UTC


README

This is a demo package for testing Sonatype policy functionality.

Versions

  • 1.0.0 - Normal status
  • 1.1.0 - Malicious status
  • 1.2.0 - Suspicious status
  • 1.3.0 - Pending status

Deployment Instructions (Composer / Packagist)

PHP packages managed by Composer are hosted in a version control system (like GitHub) and registered on Packagist.org.

  1. Initialize Composer: Run composer init in your package directory to generate a composer.json file with proper PSR-4 autoloading and a vendor/package-name format:

    docker run --rm -v "$(pwd)":/app -w /app composer:latest composer init
  2. Push to Version Control: Commit your code and push the repository to GitHub (or GitLab/Bitbucket):

    git add .
    git commit -m "Release v1.0.0"
    git push origin main
  3. Submit to Packagist: Go to Packagist.org, sign in, click Submit, and paste your GitHub repository URL. Packagist will now index your package so others can install it via composer require username/repo-name.