Latent debt surfaced by the reusable PHPCS job (previously continue-on-error). PHPCS fixes (all pre-existing, not introduced by this PR): - Add @package PeptideReconstitutionCalculator to file docblocks in all 12 PHP files (previously missing; phpcbf cannot insert missing docblock tags). - Replace two short-ternary ?: operators in class-prc-preset-provider.php with full ternary (Universal.Operators.DisallowShortTernary.Found; lines 136+152). JS lint fix: - Add package.json + package-lock.json (no deps; lint script = node --check) so the reusable lint-js job's npm ci / cache: npm steps succeed. The calculator ships vanilla JS with no build toolchain — package.json is the minimal stub the reusable workflow requires for has_js: true. Agent-Session: claude/adopt-ci-20260616
147 lines
4.7 KiB
PHP
147 lines
4.7 KiB
PHP
<?php
|
|
/**
|
|
* Hardcoded default presets — fallback when PR Core is not active.
|
|
*
|
|
* What: Provides a curated list of popular peptide presets so the
|
|
* calculator is useful out of the box, even without the data layer.
|
|
* Who calls it: PRC_Preset_Provider when PR Core is absent or as gap-fill.
|
|
* Dependencies: None.
|
|
*
|
|
* @see class-prc-preset-provider.php — Merges these with live PR Core data.
|
|
* @package PeptideReconstitutionCalculator
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* Static class containing built-in peptide presets.
|
|
*/
|
|
class PRC_Default_Presets {
|
|
|
|
/**
|
|
* Get all built-in presets.
|
|
*
|
|
* Each preset includes common vial sizes, recommended reconstitution
|
|
* volume, typical dose ranges, and frequency. Data sourced from
|
|
* published literature and commonly available vendor specifications.
|
|
*
|
|
* @return array<int, array<string, mixed>>
|
|
*/
|
|
public static function get_all(): array {
|
|
return array(
|
|
array(
|
|
'slug' => 'bpc-157',
|
|
'name' => 'BPC-157',
|
|
'vial_sizes_mg' => array( 5, 10 ),
|
|
'default_vial_mg' => 5,
|
|
'recommended_water_ml' => 2.0,
|
|
'dose_range_min' => 200,
|
|
'dose_range_max' => 500,
|
|
'dose_unit' => 'mcg',
|
|
'typical_frequency' => 'twice daily',
|
|
'evidence_strength' => 'observational',
|
|
'dosing_row_count' => 0,
|
|
'source' => 'default',
|
|
),
|
|
array(
|
|
'slug' => 'tb-500',
|
|
'name' => 'TB-500',
|
|
'vial_sizes_mg' => array( 2, 5, 10 ),
|
|
'default_vial_mg' => 5,
|
|
'recommended_water_ml' => 2.0,
|
|
'dose_range_min' => 2000,
|
|
'dose_range_max' => 5000,
|
|
'dose_unit' => 'mcg',
|
|
'typical_frequency' => 'twice weekly',
|
|
'evidence_strength' => 'preclinical',
|
|
'dosing_row_count' => 0,
|
|
'source' => 'default',
|
|
),
|
|
array(
|
|
'slug' => 'semaglutide',
|
|
'name' => 'Semaglutide',
|
|
'vial_sizes_mg' => array( 2, 5, 10 ),
|
|
'default_vial_mg' => 5,
|
|
'recommended_water_ml' => 2.0,
|
|
'dose_range_min' => 0.25,
|
|
'dose_range_max' => 2.4,
|
|
'dose_unit' => 'mg',
|
|
'typical_frequency' => 'weekly',
|
|
'evidence_strength' => 'meta-analysis',
|
|
'dosing_row_count' => 0,
|
|
'source' => 'default',
|
|
),
|
|
array(
|
|
'slug' => 'cjc-1295-dac',
|
|
'name' => 'CJC-1295 (DAC)',
|
|
'vial_sizes_mg' => array( 2, 5 ),
|
|
'default_vial_mg' => 2,
|
|
'recommended_water_ml' => 1.0,
|
|
'dose_range_min' => 1000,
|
|
'dose_range_max' => 2000,
|
|
'dose_unit' => 'mcg',
|
|
'typical_frequency' => 'weekly',
|
|
'evidence_strength' => 'preclinical',
|
|
'dosing_row_count' => 0,
|
|
'source' => 'default',
|
|
),
|
|
array(
|
|
'slug' => 'ipamorelin',
|
|
'name' => 'Ipamorelin',
|
|
'vial_sizes_mg' => array( 2, 5 ),
|
|
'default_vial_mg' => 5,
|
|
'recommended_water_ml' => 2.0,
|
|
'dose_range_min' => 100,
|
|
'dose_range_max' => 300,
|
|
'dose_unit' => 'mcg',
|
|
'typical_frequency' => 'three times daily',
|
|
'evidence_strength' => 'preclinical',
|
|
'dosing_row_count' => 0,
|
|
'source' => 'default',
|
|
),
|
|
array(
|
|
'slug' => 'pt-141',
|
|
'name' => 'PT-141 (Bremelanotide)',
|
|
'vial_sizes_mg' => array( 2, 10 ),
|
|
'default_vial_mg' => 10,
|
|
'recommended_water_ml' => 2.0,
|
|
'dose_range_min' => 500,
|
|
'dose_range_max' => 2000,
|
|
'dose_unit' => 'mcg',
|
|
'typical_frequency' => 'as needed',
|
|
'evidence_strength' => 'rct-large',
|
|
'dosing_row_count' => 0,
|
|
'source' => 'default',
|
|
),
|
|
array(
|
|
'slug' => 'mk-677',
|
|
'name' => 'MK-677 (Ibutamoren)',
|
|
'vial_sizes_mg' => array( 15, 30 ),
|
|
'default_vial_mg' => 30,
|
|
'recommended_water_ml' => 3.0,
|
|
'dose_range_min' => 10,
|
|
'dose_range_max' => 25,
|
|
'dose_unit' => 'mg',
|
|
'typical_frequency' => 'daily',
|
|
'evidence_strength' => 'rct-small',
|
|
'dosing_row_count' => 0,
|
|
'source' => 'default',
|
|
),
|
|
array(
|
|
'slug' => 'ghrp-6',
|
|
'name' => 'GHRP-6',
|
|
'vial_sizes_mg' => array( 5, 10 ),
|
|
'default_vial_mg' => 5,
|
|
'recommended_water_ml' => 2.0,
|
|
'dose_range_min' => 100,
|
|
'dose_range_max' => 300,
|
|
'dose_unit' => 'mcg',
|
|
'typical_frequency' => 'three times daily',
|
|
'evidence_strength' => 'preclinical',
|
|
'dosing_row_count' => 0,
|
|
'source' => 'default',
|
|
),
|
|
);
|
|
}
|
|
}
|