feature: Add contract features to dashboard page

This commit is contained in:
Keith Solomon
2026-02-11 19:14:48 -06:00
parent c935ac0dda
commit 86c58e8930
7 changed files with 587 additions and 76 deletions

20
lib/functions.php Normal file
View File

@@ -0,0 +1,20 @@
<?php
/**
* Spacetraders utility functions.
*
* @package SpacetradersAPI
* @author Keith Solomon <keith@keithsolomon.net>
* @license MIT License
* @version GIT: <git_id>
* @link https://git.keithsolomon.net/keith/Spacetraders
*/
/**
* Formats a string by replacing underscores with spaces and capitalizing the first letter.
*
* @param string $str The string to format.
* @return string The formatted string.
*/
function formatString( $str ) {
return ucfirst( strtolower( str_replace( '_', ' ', $str ) ) );
}

View File

@@ -17,6 +17,7 @@
require_once __DIR__ . '/spacetraders-api-exception.php';
require_once __DIR__ . '/spacetraders-storage.php';
require_once __DIR__ . '/functions.php';
/**
* Spacetraders API Client