Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 14, 2024 via composer

sebastian/version 4.0.1

Library that helps with managing the version number of Git-hosted PHP projects
Package summary
Share
0
issues
1
license
1
BSD-3-Clause
Package created
5 Jan 2013
Version published
7 Feb 2023
Maintainers
1
Total deps
1
Direct deps
0
License
BSD-3-Clause

Issues

0
This package has no issues

Licenses

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
sebastian/version@4.0.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of sebastian/version 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does sebastian/version do?

Sebastian/version is a PHP library that provides a smooth mechanism for managing the version number of Git-hosted PHP projects. Through its user-friendly interface and efficient tools, this library allows you to keep track of and manage project versions, making it an essential asset for developers working with PHP projects hosted on Git.

How do you use sebastian/version?

Utilizing sebastian/version in your PHP project is straightforward. Installation is performed via Composer, a tool for dependency management in PHP. You can add the library to your project using the following command:

composer require sebastian/version

For adding this library as a development-time dependency(in case you need this library for running your project's test suite), use:

composer require --dev sebastian/version

After installing the library, an instance of the SebastianBergmann\Version class can be created by providing two parameters: a $release version number (or the name of the release series if no release has been made yet), and a $path (usually __DIR__) which refers to the source code directory of the project. Then, you can leverage the asString() method of this class to return the version information:

<?php declare(strict_types=1);
use SebastianBergmann\Version;

$version = new Version('1.0.0', __DIR__);

var_dump($version->asString());

You would need to update the string passed as $release parameter when new release is prepared.

Where are the sebastian/version docs?

In terms of documentation for sebastian/version, the most comprehensive resources can be found directly in the associated GitHub repository. The readme file located there provides a detailed overview of the library's purpose, methods, and general usage instruction. No separate official documentation apart from this exists, which implies that the GitHub repository is the definitive source for all related information.