sightpress / core
The core of SightPress, a powerful multi-site, multilingual CMS for everyone, designed with blind and low-vision creators and audiences in mind. Built on modern, object-oriented PHP.
Requires
- php: >=8.5
- ext-exif: *
- ext-fileinfo: *
- ext-gd: *
- ext-intl: *
- ext-sodium: *
- composer/semver: ^3
- doctrine/dbal: ^4
- doctrine/migrations: ^3
- doctrine/orm: ^3
- enshrined/svg-sanitize: ^1
- intervention/image: ^4
- league/flysystem: ^3
- league/flysystem-local: ^3
- monolog/monolog: ^3
- nyholm/psr7: ^1
- nyholm/psr7-server: ^1
- php-di/php-di: ^7
- psr/clock: ^1
- psr/event-dispatcher: ^1
- sightpress/module-interface: ^0.4
- sightpress/theme-default: ^0.3
- sightpress/theme-interface: ^0.2
- slim/csrf: ^1
- slim/slim: ^4
- symfony/cache: ^8
- symfony/console: ^8
- symfony/html-sanitizer: ^8
- symfony/http-client: ^8
- symfony/mailer: ^8
- symfony/rate-limiter: ^8
- symfony/translation: ^8
- symfony/validator: ^8
- symfony/workflow: ^8
- twig/twig: ^3
- wamania/php-stemmer: ^4
Requires (Dev)
Suggests
- aws/aws-sdk-php: Needed with league/flysystem-aws-s3-v3 to keep a site's files in S3-compatible storage.
- league/flysystem-aws-s3-v3: Install it to keep a site's files in S3-compatible storage (AWS S3, R2, Spaces, MinIO).
Provides
None
Conflicts
None
Replaces
None
- dev-main / 0.4.x-dev
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
- dev-task/Q-1-m4-crawl
- dev-task/N-6-two-step
- dev-task/N-5-phone-sign-in
- dev-chore/branch-alias-0.4
- dev-test/upload-waits-for-script
- dev-task/Q-1-m3-crawl
- dev-task/T-3-layouts
- dev-task/T-2-appearance
- dev-task/T-1-theme-discovery
- dev-task/T-0-extract-default-theme
- dev-task/T-5-theme-preview
- dev-chore/branch-alias-0.3
- dev-chore/help-index-m2-docs
- dev-task/Q-1-m2-crawl
- dev-docs/accept-m2-adrs
- dev-task/F-2-features
- dev-task/P-3-scheduled-publishing
- dev-task/P-2-revisions
This package is auto-updated.
Last update: 2026-11-26 13:02:20 UTC
README
The core of SightPress, a powerful multi-site, multilingual CMS for everyone, designed with blind and low-vision creators and audiences in mind. It is built on modern, object-oriented PHP.
Core holds the kernel, the module loader and the built-in modules. Every feature is a module, built on the same
contracts that third-party modules use (sightpress/module-interface).
To start a new site, use the skeleton project instead of this package.
Requirements
- PHP 8.5 or later
Development
Clone module-interface next to this repo (Composer finds it at ../module-interface through path repositories), then:
composer install composer check
Composer commands:
composer check: everything that must pass before a commit. It validatescomposer.json, checks the code style, runs static analysis, runs the unit suite with the coverage gate, then runs the integration suite.composer test: both test suites.composer test:unitandcomposer test:integrationrun one suite each.composer test:coverage: the unit suite with coverage. It fails if unit tests cover less than 100% of the lines or methods insrc/, and it lists what is not covered.@codeCoverageIgnoreis not allowed. The HTML report is written tobuild/coverage/html/.composer fix: applies Rector refactorings, then fixes the code style.
Coverage needs the PCOV extension, or Xdebug in coverage mode. If your PHP has neither, use the
development image in docker/dev-php/, which has PHP 8.5, PCOV, SQLite, the image extensions (gd, exif) and Composer. Run it from this folder:
docker build -t sightpress/dev-php:8.5 docker/dev-php docker run --rm --user "$(id -u):$(id -g)" -e HOME=/tmp -v "$PWD/..:/workspace" -w /workspace/core \ sightpress/dev-php:8.5 composer check
The parent folder is mounted so that the sibling repos are visible inside the container.
Accessibility tests
Playwright and axe-core check the skeleton's pages against WCAG 2.2 AA. You need Node.js and a running skeleton
(docker compose up in ../skeleton), then:
npm ci npx playwright install chromium composer a11y
Set SIGHTPRESS_BASE_URL if the skeleton is not on http://localhost:8080. The tests live in tests/A11y/.
Playwright also starts two test servers with PHP's built-in web server: core's component gallery
(tests/A11y/gallery, port 8099) and a small site with two accounts for the sign-in pages (tests/A11y/sign-in,
port 8098, kept in the system's temporary folder).
Continuous integration
Every pull request and every push to main runs two GitHub Actions workflows:
CI(composer check):composer validate, code style, PHPStan, the unit suite with the 100% coverage gate, the integration suite on SQLite in memory, andcomposer audit. The coverage report is uploaded as an artifact.Accessibility(Playwright and axe): boots the skeleton with docker compose, using this branch of core, and runscomposer a11y.
A third workflow, DB matrix, runs the integration suite against MySQL, MariaDB and PostgreSQL (the skeleton's
compose profiles). It runs nightly, from the Actions tab, and on pull requests with the db-matrix label; it is not
a required check, but it must be green before a release. To run it locally, start a profile in ../skeleton and
point SIGHTPRESS_TEST_DATABASE_URL at it from a container on the same network (the skeleton's PHP image has the
MySQL and PostgreSQL drivers):
(cd ../skeleton && docker compose --profile postgres up --detach --wait postgres && docker compose build php) docker run --rm --network skeleton_default --user "$(id -u):$(id -g)" -e HOME=/tmp \ -e SIGHTPRESS_TEST_DATABASE_URL='postgresql://sightpress:sightpress@postgres:5432/sightpress?serverVersion=18' \ -v "$PWD/..:/workspace" -w /workspace/core --entrypoint php skeleton-php vendor/bin/phpunit --testsuite integration
For MySQL and MariaDB use mysql://root:sightpress-root@mysql:3306/sightpress?serverVersion=8.4.0 or
mariadb://root:sightpress-root@mariadb:3306/sightpress?serverVersion=11.8.0-MariaDB: the user must be allowed to
create databases, because every test gets its own sp_test_* database (dropped again afterwards).
Commit messages follow Conventional Commits; release-please uses them to
keep a release pull request and CHANGELOG.md up to date.
main is protected by the ruleset in .github/rulesets/main.json. Changes reach it only through a pull request that
passes the composer check and Playwright and axe checks and has one approval. Pull requests are squash-merged.
Admins can bypass the ruleset.
Contributing
Everyone can help, not only developers. See CONTRIBUTING.md for the ways to take part, and the Code of Conduct that everyone who takes part agrees to follow.
Licence
GNU General Public License v3.0 or later. See LICENSE.