Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint-corelint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

- name: Install core-lint
run: |
go install dappco.re/go/lint/cmd/core-lint@latest || \
go install github.com/dappcore/lint/go/cmd/core-lint@latest || \
go install github.com/dappcore/lint/cmd/core-lint@latest
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"

Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This repository follows the core/go v0.9.0 consumer contract.

- Keep Go code under `go/`.
- Use `dappco.re/go` primitives instead of direct banned stdlib imports.
- Use `github.com/dappcore/go` primitives instead of direct banned stdlib imports.
- Do not edit `.core/` runtime configuration.
- Do not edit `external/` dependency sources.
- Verify with `bash /Users/snider/Code/core/go/tests/cli/v090-upgrade/audit.sh .`.
4 changes: 2 additions & 2 deletions go/cmd/core-php/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
package main

import (
php "dappco.re/go/php/pkg/php"
php "github.com/dappcore/php/go/pkg/php"

"dappco.re/go/cli/pkg/cli"
"github.com/dappcore/cli/go/pkg/cli"
)

func main() {
Expand Down
35 changes: 14 additions & 21 deletions go/go.mod
Original file line number Diff line number Diff line change
@@ -1,32 +1,26 @@
module dappco.re/go/php
module github.com/dappcore/php/go

go 1.26.2

require (
dappco.re/go v0.10.4
dappco.re/go/cli v0.9.0
dappco.re/go/i18n v0.9.0
dappco.re/go/io v0.9.0
github.com/dappcore/cli/go v0.14.0
github.com/dappcore/go v0.14.0
github.com/dappcore/go-io/go v0.16.0
github.com/dunglas/frankenphp v1.12.1
gopkg.in/yaml.v3 v3.0.1
)

require (
github.com/klauspost/compress v1.18.5 // indirect
github.com/stretchr/testify v1.11.1 // indirect
)
require github.com/stretchr/testify v1.11.1 // indirect

require (
dappco.re/go/inference v0.9.0 // indirect
dappco.re/go/log v0.9.0 // indirect
github.com/MauriceGit/skiplist v0.0.0-20211105230623-77f5c8d3e145 // indirect
github.com/RoaringBitmap/roaring/v2 v2.15.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bits-and-blooms/bitset v1.24.4 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/charmbracelet/x/ansi v0.11.6 // indirect
github.com/clipperhouse/displaywidth v0.11.0 // indirect
github.com/clipperhouse/uax29/v2 v2.7.0 // indirect
github.com/dappcore/go-i18n/go v0.13.0 // indirect
github.com/dappcore/go-log/go v0.14.0 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/dunglas/mercure v0.21.11 // indirect
github.com/dunglas/skipfilter v1.0.0 // indirect
Expand All @@ -38,12 +32,11 @@ require (
github.com/golang-jwt/jwt/v5 v5.3.1 // indirect
github.com/gorilla/handlers v1.5.2 // indirect
github.com/gorilla/mux v1.8.1 // indirect
github.com/lucasb-eyer/go-colorful v1.3.0 // indirect
github.com/mattn/go-runewidth v0.0.21 // indirect
github.com/mattn/go-runewidth v0.0.27 // indirect
github.com/maypok86/otter/v2 v2.3.0 // indirect
github.com/mschoch/smat v0.2.0 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
github.com/pelletier/go-toml/v2 v2.4.3 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/prometheus/client_golang v1.23.2 // indirect
github.com/prometheus/client_model v0.6.2 // indirect
Expand All @@ -62,10 +55,10 @@ require (
go.etcd.io/bbolt v1.4.3 // indirect
go.yaml.in/yaml/v2 v2.4.4 // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
golang.org/x/crypto v0.50.0 // indirect
golang.org/x/net v0.53.0 // indirect
golang.org/x/sys v0.43.0 // indirect
golang.org/x/term v0.42.0 // indirect
golang.org/x/text v0.36.0 // indirect
golang.org/x/crypto v0.54.0 // indirect
golang.org/x/net v0.57.0 // indirect
golang.org/x/sys v0.47.0 // indirect
golang.org/x/term v0.45.0 // indirect
golang.org/x/text v0.40.0 // indirect
google.golang.org/protobuf v1.36.11 // indirect
)
132 changes: 60 additions & 72 deletions go/go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion go/pkg/php/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net"
"net/http"

core "dappco.re/go"
core "github.com/dappcore/go"
)

// BridgeHandler is the interface that the host application implements to
Expand Down
6 changes: 3 additions & 3 deletions go/pkg/php/cmd.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package php

import (
core "dappco.re/go"
"dappco.re/go/cli/pkg/cli"
"dappco.re/go/io"
core "github.com/dappcore/go"
"github.com/dappcore/cli/go/pkg/cli"
"github.com/dappcore/go-io/go"
)

// DefaultMedium is the default filesystem medium used by the php package.
Expand Down
4 changes: 2 additions & 2 deletions go/pkg/php/cmd_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package php
import (
"context"

core "dappco.re/go"
"dappco.re/go/cli/pkg/cli"
core "github.com/dappcore/go"
"github.com/dappcore/cli/go/pkg/cli"
)

func addPHPBuildCommand(c *core.Core, prefix string) {
Expand Down
4 changes: 2 additions & 2 deletions go/pkg/php/cmd_ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"os/exec"
"time"

core "dappco.re/go"
"dappco.re/go/cli/pkg/cli"
core "github.com/dappcore/go"
"github.com/dappcore/cli/go/pkg/cli"
)

// CI command flags
Expand Down
2 changes: 1 addition & 1 deletion go/pkg/php/cmd_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
// - deploy:list: List recent deployments
package php

import core "dappco.re/go"
import core "github.com/dappcore/go"

// AddCommands registers the 'php' command and all subcommands.
func AddCommands(c *core.Core) {
Expand Down
4 changes: 2 additions & 2 deletions go/pkg/php/cmd_deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"time"

core "dappco.re/go"
"dappco.re/go/cli/pkg/cli"
core "github.com/dappcore/go"
"github.com/dappcore/cli/go/pkg/cli"
)

// Deploy command styles (aliases to shared)
Expand Down
4 changes: 2 additions & 2 deletions go/pkg/php/cmd_dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"syscall"
"time"

core "dappco.re/go"
"dappco.re/go/cli/pkg/cli"
core "github.com/dappcore/go"
"github.com/dappcore/cli/go/pkg/cli"
)

func addPHPDevCommand(c *core.Core, prefix string) {
Expand Down
4 changes: 2 additions & 2 deletions go/pkg/php/cmd_packages.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package php

import (
core "dappco.re/go"
"dappco.re/go/cli/pkg/cli"
core "github.com/dappcore/go"
"github.com/dappcore/cli/go/pkg/cli"
)

func addPHPPackagesCommands(c *core.Core, prefix string) {
Expand Down
4 changes: 2 additions & 2 deletions go/pkg/php/cmd_serve_frankenphp.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"os/signal"
"syscall"

core "dappco.re/go"
core "github.com/dappcore/go"
)

func init() {
Expand Down Expand Up @@ -47,7 +47,7 @@ func runFrankenPHPServe(line phpCommandLine) error { // Result boundary
}

// Graceful shutdown — os.Interrupt + signal.NotifyContext require
// chan os.Signal; no core wrapper exists in dappco.re/go v0.9.0.
// chan os.Signal; no core wrapper exists in github.com/dappcore/go v0.9.0.
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
defer stop()

Expand Down
2 changes: 1 addition & 1 deletion go/pkg/php/cmd_serve_frankenphp_stub.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package php
import (
"net/http"

core "dappco.re/go"
core "github.com/dappcore/go"
)

// execResponseWriter writes HTTP response body directly to stdout.
Expand Down
4 changes: 2 additions & 2 deletions go/pkg/php/compat.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package php

// This file collects small package-local helpers that fill gaps in the
// pinned dappco.re/go release (currently v0.9.0). Each helper has a
// pinned github.com/dappcore/go release (currently v0.9.0). Each helper has a
// matching core/go primitive landing post-#1329; remove this file and
// inline the canonical core wrapper once the dappco.re/go bump lands.
// inline the canonical core wrapper once the github.com/dappcore/go bump lands.

// trimTrailingSlash strips trailing "/" runes from s. Equivalent of
// strings.TrimRight(s, "/") for single-rune trim without importing
Expand Down
4 changes: 2 additions & 2 deletions go/pkg/php/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"os"
"os/exec"

core "dappco.re/go"
"dappco.re/go/cli/pkg/cli"
core "github.com/dappcore/go"
"github.com/dappcore/cli/go/pkg/cli"
)

// DockerBuildOptions configures Docker image building for PHP projects.
Expand Down
6 changes: 3 additions & 3 deletions go/pkg/php/coolify.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import (
"net/http"
"time"

core "dappco.re/go"
"dappco.re/go/cli/pkg/cli"
core "github.com/dappcore/go"
"github.com/dappcore/cli/go/pkg/cli"
)

// bytesReaderForHTTP wraps a []byte as an io.Reader for HTTP request
// bodies. Equivalent to bytes.NewReader without importing bytes;
// core.NewBufferReader is not yet in this repo's pinned dappco.re/go
// core.NewBufferReader is not yet in this repo's pinned github.com/dappcore/go
// release.
type bytesReaderForHTTP struct {
data []byte
Expand Down
2 changes: 1 addition & 1 deletion go/pkg/php/core_assert_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package php

import core "dappco.re/go"
import core "github.com/dappcore/go"

type T = core.T

Expand Down
2 changes: 1 addition & 1 deletion go/pkg/php/detect.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package php

import (
core "dappco.re/go"
core "github.com/dappcore/go"
)

// DetectedService represents a service that was detected in a Laravel project.
Expand Down
6 changes: 3 additions & 3 deletions go/pkg/php/dockerfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ package php
import (
"sort"

core "dappco.re/go"
"dappco.re/go/cli/pkg/cli"
core "github.com/dappcore/go"
"github.com/dappcore/cli/go/pkg/cli"
)

// dockerfileBuilder accumulates Dockerfile content as a string slice that's
// joined at the end. Equivalent to strings.Builder for our write-heavy use
// without importing strings — core.Builder is not yet in the pinned
// dappco.re/go v0.9.0 release.
// github.com/dappcore/go v0.9.0 release.
type dockerfileBuilder []string

func (b *dockerfileBuilder) WriteString(s string) {
Expand Down
4 changes: 2 additions & 2 deletions go/pkg/php/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"runtime"

core "dappco.re/go"
core "github.com/dappcore/go"
)

// RuntimeEnvironment holds the resolved paths for the running application.
Expand Down Expand Up @@ -63,7 +63,7 @@ func PrepareRuntimeEnvironment(laravelRoot, appName string) (*RuntimeEnvironment
return nil, core.E("php.PrepareRuntimeEnvironment", "remove extracted storage", r.Value.(error))
}
persistentStorage := core.PathJoin(dataDir, "storage")
// os.Symlink is retained — no core.Symlink wrapper exists in dappco.re/go v0.9.0.
// os.Symlink is retained — no core.Symlink wrapper exists in github.com/dappcore/go v0.9.0.
// Surface as wrapper gap when bumping core/go module dep.
if err := os.Symlink(persistentStorage, extractedStorage); err != nil {
return nil, core.E("php.PrepareRuntimeEnvironment", "symlink storage", err)
Expand Down
2 changes: 1 addition & 1 deletion go/pkg/php/extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package php
import (
"io/fs"

core "dappco.re/go"
core "github.com/dappcore/go"
)

// Extract copies an embedded Laravel app (from embed.FS) to a temporary directory.
Expand Down
4 changes: 2 additions & 2 deletions go/pkg/php/go_cli_helpers.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package php

import (
core "dappco.re/go"
"dappco.re/go/cli/pkg/cli"
core "github.com/dappcore/go"
"github.com/dappcore/cli/go/pkg/cli"
)

var phpCommandValueFlags = map[string]bool{
Expand Down
2 changes: 1 addition & 1 deletion go/pkg/php/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package php
import (
"net/http"

core "dappco.re/go"
core "github.com/dappcore/go"
"github.com/dunglas/frankenphp"
)

Expand Down
2 changes: 1 addition & 1 deletion go/pkg/php/handler_stub.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package php
import (
"net/http"

core "dappco.re/go"
core "github.com/dappcore/go"
)

// Handler implements http.Handler when the embedded FrankenPHP runtime is not built.
Expand Down
2 changes: 1 addition & 1 deletion go/pkg/php/i18n.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"embed"
"time"

core "dappco.re/go"
core "github.com/dappcore/go"
)

//go:embed locales/*.json
Expand Down
4 changes: 2 additions & 2 deletions go/pkg/php/packages.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"os"
"os/exec"

core "dappco.re/go"
"dappco.re/go/cli/pkg/cli"
core "github.com/dappcore/go"
"github.com/dappcore/cli/go/pkg/cli"
)

// LinkedPackage represents a linked local package.
Expand Down
4 changes: 2 additions & 2 deletions go/pkg/php/php.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"sync"
"time"

core "dappco.re/go"
"dappco.re/go/cli/pkg/cli"
core "github.com/dappcore/go"
"github.com/dappcore/cli/go/pkg/cli"
)

// Options configures the development server.
Expand Down
4 changes: 2 additions & 2 deletions go/pkg/php/quality.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"os"
"os/exec"

core "dappco.re/go"
"dappco.re/go/cli/pkg/cli"
core "github.com/dappcore/go"
"github.com/dappcore/cli/go/pkg/cli"
)

// FormatOptions configures PHP code formatting.
Expand Down
2 changes: 1 addition & 1 deletion go/pkg/php/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ package php
import (
"context"

core "dappco.re/go"
core "github.com/dappcore/go"
)

// PhpConfig configures the php service. Empty config gives the default
Expand Down
Loading
Loading