phpsafe 𝕏 GitHub
Official CA 421DTkQ3TSG3n7F9SkNZj9NxvdFGbypwkctPd2uupump This is the only official address.
All-in-one PHP security platform

Find the hole beforesomeone else does.

Security diagnostics built for PHP teams: static code analysis, response header grading and php.ini auditing in one place. Your code is analyzed in memory and never stored.

Open source Β· MIT license View the source on GitHub β†’
Live
5code scans run
15issues found
46sites graded
Built by PHP Safe

Three diagnostics, from code to server configuration.

Pick a tool, paste your input and press the button. Your code is analyzed in memory and never saved.

  1. 1Paste your code or address
  2. 2Run the check
  3. 3Fix what we find, line by line

Paste a PHP file or a snippet. We read it with PHP's own tokenizer and point out risky lines with a fix for each one.

Static analysis finds common patterns, not every bug. Use it with code review and the tools below.

Results will appear here.

Our open-source project

PHP Safe Guard v0.1.0 released

A dependency-free security layer for any PHP application. One line to install, published on GitHub under the MIT license.

Star on GitHub

Every check runs on code you can read.

Guard is an extra layer of defense. It does not replace prepared statements, escaping and keeping PHP updated.

# composer
composer require phpsafe/guard

; php.ini β€” protect every request
auto_prepend_file = /path/to/vendor/phpsafe/guard/shield.php

Shield

Blocks SQL injection, XSS, path traversal and malicious uploads before your code runs. Adds security headers and rate-limits logins.

Scanner CLI

The same engine as our online scanner, on your machine. Scan a whole project and fail CI when risky code appears.

Helpers

Small, tested functions for CSRF tokens, output escaping and safe file uploads.

Community token

$PHPSAFE, live on Solana

The community token behind PHP Safe. Market data refreshes every minute straight from the chain.

$PHPSAFE Solanapump.fun
Price USD
β€”
Market capβ€”
24h volumeβ€”
24h trades β€”
Buys β€”Sells β€”

Loading market data…

For information only, not financial advice. Crypto assets are highly volatile. Always verify the contract address above before trading.

Roadmap

Built in the open. Here's what's next.

Every feature ships as open source under the MIT license. Tell us what you need and the most requested items move up.

Shipped6

  • βœ“Code Scanner18 rules with fixes
  • βœ“Headers CheckerGrades, TLS and certificates
  • βœ“php.ini AuditorRisky server settings
  • βœ“PHP Safe Guard v0.1CLI, Shield and helpers
  • βœ“Security rules libraryCWE and OWASP references
  • βœ“Grade badgeShow your A on any site

Building now2

CIin progress

GitHub Action

Scan every push and pull request. Findings appear right on the diff, and a failing grade can block the merge.

Guardin progress

Guard v0.2

More rules, SARIF reports for GitHub code scanning, and a baseline file to ignore known issues.

Next up2

Site

Dependency check

Upload composer.lock and see which packages have known security advisories, with the version that fixes each one.

Site

Site monitoring

Daily re-checks of your site. Get an email when your grade drops or the certificate is about to expire.

Exploring3

Guard

Laravel & WordPress

Framework-aware rules for Blade, Eloquent, wpdb and plugins.

Editor

VS Code extension

Risky lines highlighted while you type.

Site

Public API

Run checks from your own tools and dashboards.

Have an idea? Open an issue on GitHub. Every request is read.

How to use PHP Safe

Secure your PHP app in 5 steps

  1. 01

    Learn the basics

    Work through the checklist below and know the common attacks.

  2. 02

    Scan your code

    Run the Code Scanner before every deploy.

  3. 03

    Lock dependencies

    Block packages with known vulnerabilities.

  4. 04

    Harden the server

    Fix php.ini and earn an A on the Headers Checker.

  5. 05

    Add a shield

    Put PHP Safe Guard and a WAF in front of your app.

PHP security rules Β· 18 rules β†’
Before you deploy

PHP security checklist

Tick each item once your project does it. Progress is saved in this browser only.

0 / 8
Copy & run

Quick start commands

Install PHP Safe Guardcomposer require phpsafe/guard
Scan your projectvendor/bin/phpsafe scan src
Block risky code in CIvendor/bin/phpsafe scan src --fail-on=high
Turn on Shield (php.ini)auto_prepend_file = /path/to/vendor/phpsafe/guard/shield.php
Audit dependenciescomposer audit