php

package
v0.0.22-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PhpPackageRepository = packageRepository.PackageRepository{
	GetVersionStrings:      GetVersionStrings,
	GetVersionStringsBelow: GetVersionStringsBelow,
	GetVersionStringsAbove: GetVersionStringsAbove,
	GetFirstVersionString:  GetFirstVersionString,
	GetLastVersionString:   GetLastVersionString,
}

Functions

func GetFirstVersionString

func GetFirstVersionString(depName string, knowledge *bun.DB) (string, error)

GetFirstVersionString retrieves the first (lowest) version string of a given dependency. It returns the version string and an error if any.

func GetLastVersionString

func GetLastVersionString(depName string, knowledge *bun.DB) (string, error)

GetLastVersionString retrieves the last (highest) version string of a given dependency. It returns the version string and an error if any.

func GetVersionStrings

func GetVersionStrings(depName string, knowledge *bun.DB) ([]string, error)

GetVersionStrings retrieves the version strings of a given dependency. It first checks if the version strings are already cached in the dependencyVersionsCache. If not, it queries the database to fetch the version strings and stores them in the cache for future use. The dependency name can be in the format "vendor/package". It returns the version strings in ascending order and an error if any.

func GetVersionStringsAbove

func GetVersionStringsAbove(depName string, depVersion string, limit int, knowledge *bun.DB) ([]string, error)

GetVersionStringsAbove retrieves the version strings of a given dependency that are above a specified version. It returns the version strings in ascending order and an error if any.

func GetVersionStringsBelow

func GetVersionStringsBelow(depName string, depVersion string, limit int, knowledge *bun.DB) ([]string, error)

GetVersionStringsBelow retrieves the version strings of a given dependency that are below a specified version. It returns the version strings in ascending order and an error if any.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL