Skip to content

zero-to-prod/composer-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

51fd774 · Feb 20, 2025
Feb 20, 2025
Jan 15, 2025
Feb 3, 2025
Feb 18, 2025
Jan 15, 2025
Jan 14, 2025
Jan 15, 2025
Jan 14, 2025
Jan 14, 2025
Jan 14, 2025
Jan 14, 2025
Jan 23, 2025
Feb 10, 2025
Feb 4, 2025
Feb 7, 2025
Jan 14, 2025
Jan 14, 2025
Jan 15, 2025
Jan 15, 2025

Repository files navigation

Zerotoprod\ComposerPackage

Repo GitHub Actions Workflow Status GitHub Actions Workflow Status Packagist Downloads php Packagist Version License wakatime Hits-of-Code

Contents

Introduction

Creates a DataModel representation of a composer.json file.

Requirements

  • PHP 8.1 or higher.

Installation

Install Zerotoprod\ComposerPackage via Composer:

composer require zero-to-prod/composer-package

This will add the package to your project’s dependencies and create an autoloader entry for it.

Usage

Create a DataModel from a composer.json file like this:

use Zerotoprod\ComposerPackage\ComposerPackage;

$ComposerPackage = ComposerPackage::from(json_decode(file_get_contents(__DIR__ . 'composer.json'), true));

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page if you want to contribute.

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Commit changes (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature-branch).
  5. Create a new Pull Request.