Versions in this module Expand all Collapse all v0 v0.0.3 Feb 1, 2026 Changes in this version + type CICheckResult struct + Details string + Duration string + Errors int + Issues int + Name string + Status string + Warnings int + type CIResult struct + Artifacts []string + Checks []CICheckResult + Duration string + ExitCode int + Passed bool + StartedAt time.Time + Summary CISummary + type CISummary struct + Failed int + Passed int + Skipped int + Total int + Warnings int v0.0.2 Jan 31, 2026 Changes in this version + const DefaultSSLDir + func AddCommands(root *cobra.Command) + func AddPHPCommands(root *cobra.Command) + func Analyse(ctx context.Context, opts AnalyseOptions) error + func BuildDocker(ctx context.Context, opts DockerBuildOptions) error + func BuildLinuxKit(ctx context.Context, opts LinuxKitBuildOptions) error + func CertPaths(domain string, opts SSLOptions) (certFile, keyFile string, err error) + func CertsExist(domain string, opts SSLOptions) bool + func DetectInfection(dir string) bool + func DetectPackageManager(dir string) string + func DetectRector(dir string) bool + func ExtractDomainFromURL(url string) string + func Format(ctx context.Context, opts FormatOptions) error + func GenerateDockerfile(dir string) (string, error) + func GenerateDockerfileFromConfig(config *DockerfileConfig) string + func GenerateDockerignore(dir string) string + func GetLaravelAppName(dir string) string + func GetLaravelAppURL(dir string) string + func GetMkcertCARoot() (string, error) + func GetQAChecks(dir string, stage QAStage) []string + func GetSSLDir(opts SSLOptions) (string, error) + func InstallMkcertCA() error + func IsDeploymentComplete(status string) bool + func IsDeploymentSuccessful(status string) bool + func IsFrankenPHPProject(dir string) bool + func IsLaravelProject(dir string) bool + func IsMkcertInstalled() bool + func IsPHPProject(dir string) bool + func LinkPackages(dir string, packages []string) error + func RunInfection(ctx context.Context, opts InfectionOptions) error + func RunParallel(ctx context.Context, opts TestOptions) error + func RunPsalm(ctx context.Context, opts PsalmOptions) error + func RunRector(ctx context.Context, opts RectorOptions) error + func RunTests(ctx context.Context, opts TestOptions) error + func ServeProduction(ctx context.Context, opts ServeOptions) error + func SetupSSL(domain string, opts SSLOptions) error + func SetupSSLIfNeeded(domain string, opts SSLOptions) (certFile, keyFile string, err error) + func Shell(ctx context.Context, containerID string) error + func UnlinkPackages(dir string, packages []string) error + func UpdatePackages(dir string, packages []string) error + type AnalyseOptions struct + Dir string + Level int + Memory string + Output io.Writer + Paths []string + type AnalyserType string + const AnalyserLarastan + const AnalyserPHPStan + func DetectAnalyser(dir string) (AnalyserType, bool) + type AuditAdvisory struct + Identifiers []string + Package string + Severity string + Title string + URL string + type AuditOptions struct + Dir string + Fix bool + JSON bool + Output io.Writer + type AuditResult struct + Advisories []AuditAdvisory + Error error + Tool string + Vulnerabilities int + func RunAudit(ctx context.Context, opts AuditOptions) ([]AuditResult, error) + type ComposerJSON struct + Name string + Require map[string]string + RequireDev map[string]string + type CoolifyApp struct + Branch string + Environment string + FQDN string + ID string + Name string + Repository string + Status string + type CoolifyClient struct + BaseURL string + HTTPClient *http.Client + Token string + func NewCoolifyClient(baseURL, token string) *CoolifyClient + func (c *CoolifyClient) GetApp(ctx context.Context, appID string) (*CoolifyApp, error) + func (c *CoolifyClient) GetDeployment(ctx context.Context, appID, deploymentID string) (*CoolifyDeployment, error) + func (c *CoolifyClient) ListDeployments(ctx context.Context, appID string, limit int) ([]CoolifyDeployment, error) + func (c *CoolifyClient) Rollback(ctx context.Context, appID, deploymentID string) (*CoolifyDeployment, error) + func (c *CoolifyClient) TriggerDeploy(ctx context.Context, appID string, force bool) (*CoolifyDeployment, error) + type CoolifyConfig struct + AppID string + StagingAppID string + Token string + URL string + func LoadCoolifyConfig(dir string) (*CoolifyConfig, error) + func LoadCoolifyConfigFromFile(path string) (*CoolifyConfig, error) + type CoolifyDeployment struct + Branch string + CommitMsg string + CommitSHA string + CreatedAt time.Time + DeployedURL string + FinishedAt time.Time + ID string + Log string + Status string + type DeployOptions struct + Dir string + Environment Environment + Force bool + PollInterval time.Duration + Wait bool + WaitTimeout time.Duration + type DeploymentStatus struct + Branch string + Commit string + CommitMessage string + CompletedAt time.Time + ID string + Log string + StartedAt time.Time + Status string + URL string + func Deploy(ctx context.Context, opts DeployOptions) (*DeploymentStatus, error) + func DeployStatus(ctx context.Context, opts StatusOptions) (*DeploymentStatus, error) + func ListDeployments(ctx context.Context, dir string, env Environment, limit int) ([]DeploymentStatus, error) + func Rollback(ctx context.Context, opts RollbackOptions) (*DeploymentStatus, error) + type DetectedService string + const ServiceFrankenPHP + const ServiceHorizon + const ServiceRedis + const ServiceReverb + const ServiceVite + func DetectServices(dir string) []DetectedService + type DevServer struct + func NewDevServer(opts Options) *DevServer + func (d *DevServer) IsRunning() bool + func (d *DevServer) Logs(service string, follow bool) (io.ReadCloser, error) + func (d *DevServer) Services() []Service + func (d *DevServer) Start(ctx context.Context, opts Options) error + func (d *DevServer) Status() []ServiceStatus + func (d *DevServer) Stop() error + type DockerBuildOptions struct + BuildArgs map[string]string + Dockerfile string + ImageName string + NoBuildCache bool + Output io.Writer + Platform string + ProjectDir string + Tag string + type DockerfileConfig struct + BaseImage string + HasAssets bool + HasOctane bool + IsLaravel bool + PHPExtensions []string + PHPVersion string + PackageManager string + UseAlpine bool + func DetectDockerfileConfig(dir string) (*DockerfileConfig, error) + type Environment string + const EnvProduction + const EnvStaging + type FormatOptions struct + Diff bool + Dir string + Fix bool + Output io.Writer + Paths []string + type FormatterType string + const FormatterPint + func DetectFormatter(dir string) (FormatterType, bool) + type FrankenPHPOptions struct + CertFile string + HTTPS bool + HTTPSPort int + KeyFile string + Port int + type FrankenPHPService struct + func NewFrankenPHPService(dir string, opts FrankenPHPOptions) *FrankenPHPService + func (s *FrankenPHPService) Logs(follow bool) (io.ReadCloser, error) + func (s *FrankenPHPService) Name() string + func (s *FrankenPHPService) Start(ctx context.Context) error + func (s *FrankenPHPService) Status() ServiceStatus + func (s *FrankenPHPService) Stop() error + type HorizonService struct + func NewHorizonService(dir string) *HorizonService + func (s *HorizonService) Logs(follow bool) (io.ReadCloser, error) + func (s *HorizonService) Name() string + func (s *HorizonService) Start(ctx context.Context) error + func (s *HorizonService) Status() ServiceStatus + func (s *HorizonService) Stop() error + type InfectionOptions struct + Dir string + Filter string + MinCoveredMSI int + MinMSI int + OnlyCovered bool + Output io.Writer + Threads int + type LinkedPackage struct + Name string + Path string + Version string + func ListLinkedPackages(dir string) ([]LinkedPackage, error) + type LinuxKitBuildOptions struct + Format string + Output io.Writer + OutputPath string + ProjectDir string + Template string + Variables map[string]string + type Options struct + Dir string + Domain string + FrankenPHPPort int + HTTPS bool + HTTPSPort int + NoHorizon bool + NoRedis bool + NoReverb bool + NoVite bool + RedisPort int + ReverbPort int + Services []DetectedService + VitePort int + type PsalmOptions struct + Baseline bool + Dir string + Fix bool + Level int + Output io.Writer + ShowInfo bool + type PsalmType string + const PsalmStandard + func DetectPsalm(dir string) (PsalmType, bool) + type QACheckResult struct + Duration string + Error error + Name string + Output string + Passed bool + Stage QAStage + type QACheckRunResult struct + Duration string + ExitCode int + Name string + Output string + Passed bool + Skipped bool + func (r QACheckRunResult) GetIssueMessage() string + type QAOptions struct + Dir string + Fix bool + Full bool + JSON bool + Quick bool + type QAResult struct + Checks []QACheckResult + Passed bool + Stages []QAStage + Summary string + type QARunResult struct + Duration string + FailedCount int + Passed bool + PassedCount int + Results []QACheckRunResult + SkippedCount int + type QARunner struct + func NewQARunner(dir string, fix bool) (*QARunner, error) + func (r *QARunner) BuildSpecs(checks []string) []process.RunSpec + func (r *QARunner) GetCheckOutput(check string) []string + func (r *QARunner) Run(ctx context.Context, stages []QAStage) (*QARunResult, error) + type QAStage string + const QAStageFull + const QAStageQuick + const QAStageStandard + func GetQAStages(opts QAOptions) []QAStage + type RectorOptions struct + ClearCache bool + Diff bool + Dir string + Fix bool + Output io.Writer + type RedisOptions struct + ConfigFile string + Port int + type RedisService struct + func NewRedisService(dir string, opts RedisOptions) *RedisService + func (s *RedisService) Logs(follow bool) (io.ReadCloser, error) + func (s *RedisService) Name() string + func (s *RedisService) Start(ctx context.Context) error + func (s *RedisService) Status() ServiceStatus + func (s *RedisService) Stop() error + type ReverbOptions struct + Port int + type ReverbService struct + func NewReverbService(dir string, opts ReverbOptions) *ReverbService + func (s *ReverbService) Logs(follow bool) (io.ReadCloser, error) + func (s *ReverbService) Name() string + func (s *ReverbService) Start(ctx context.Context) error + func (s *ReverbService) Status() ServiceStatus + func (s *ReverbService) Stop() error + type RollbackOptions struct + DeploymentID string + Dir string + Environment Environment + Wait bool + WaitTimeout time.Duration + type SSLOptions struct + Dir string + type SecurityCheck struct + CWE string + Description string + Fix string + ID string + Message string + Name string + Passed bool + Severity string + type SecurityOptions struct + Dir string + JSON bool + Output io.Writer + SARIF bool + Severity string + URL string + type SecurityResult struct + Checks []SecurityCheck + Summary SecuritySummary + func RunSecurityChecks(ctx context.Context, opts SecurityOptions) (*SecurityResult, error) + type SecuritySummary struct + Critical int + High int + Low int + Medium int + Passed int + Total int + type ServeOptions struct + ContainerName string + Detach bool + EnvFile string + HTTPSPort int + ImageName string + Output io.Writer + Port int + Tag string + Volumes map[string]string + type Service interface + Logs func(follow bool) (io.ReadCloser, error) + Name func() string + Start func(ctx context.Context) error + Status func() ServiceStatus + Stop func() error + type ServiceStatus struct + Error error + Name string + PID int + Port int + Running bool + type StatusOptions struct + DeploymentID string + Dir string + Environment Environment + type TestOptions struct + Coverage bool + CoverageFormat string + Dir string + Filter string + Groups []string + Output io.Writer + Parallel bool + type TestRunner string + const TestRunnerPHPUnit + const TestRunnerPest + func DetectTestRunner(dir string) TestRunner + type ViteOptions struct + PackageManager string + Port int + type ViteService struct + func NewViteService(dir string, opts ViteOptions) *ViteService + func (s *ViteService) Logs(follow bool) (io.ReadCloser, error) + func (s *ViteService) Name() string + func (s *ViteService) Start(ctx context.Context) error + func (s *ViteService) Status() ServiceStatus + func (s *ViteService) Stop() error