Download the PHP package yd-shomer/php-shomer without Composer

On this page you can find all versions of the php package yd-shomer/php-shomer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-shomer

🛡️ PHP Shomer (שומר)

Version Downloads License PHP Version

Shomer (שומר) means "Guardian" in Hebrew

Your SQL Query Guardian - Runtime validation and security for PHP development. Catch SQL errors and security issues before they reach production.

🎯 Why "Shomer"?

French citation : "Il ne dort ni ne sommeille le Gardien ..."

Just as a guardian protects and watches over, Shomer vigilantly protects your application by validating SQL queries during development, catching errors and security issues before they reach production.

In the Hebrew tradition, a Shomer (שומר) is a vigilant guardian who watches and protects. PHP Shomer applies this same vigilance to your SQL queries, acting as a silent guardian during development, ready to alert you at the slightest danger.

✨ Features

📦 Installation

🚀 Quick Start

Disable in Production

📚 Usage Examples

Example 1: Validate Prepared Statement (PDO Style)

Example 2: Detect Parameter Mismatch

Example 3: Detect SQL Injection Attempts

Example 4: Classic Query (Non-Prepared) - Not Recommended

Example 5: Email Notifications

🔧 Configuration

Basic Configuration

Advanced Usage

🎓 What Shomer Validates

Prepared Statements

Syntax Validation

Security Checks

Best Practices

📊 Validation Report Structure

📍 Execution Context (Auto-Captured)

Shomer automatically captures where the query validation was called:

This means debugging is instant - no need to search through your codebase! The error report comes "ready to use" with all the information you need.

Example email alert:

💡 Secure Query Suggestions (Verbose Mode)

When verbose mode is enabled, Shomer doesn't just tell you what's wrong—it shows you how to fix it!

For each detected issue, Shomer provides:

Example:

Suggestions are provided for:

This makes Shomer not just a validator, but a teaching tool that helps you learn secure SQL practices!

🔒 Security Note

Shomer is a development tool, not a replacement for proper security practices:

DO: Use Shomer during development to catch issues early
DO: Always use prepared statements in production
DO: Disable Shomer in production (SHOMER_ENABLED = false)
DO: Validate and sanitize user input

DON'T: Rely solely on Shomer for production security
DON'T: Use raw SQL queries in production
DON'T: Trust user input without validation

🚀 Performance

Development Mode (SHOMER_ENABLED = true):

Production Mode (SHOMER_ENABLED = false):

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📝 Testing

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

📞 Support


Shomer: Because your database deserves a guardian.
שומר - Protecting your queries, one validation at a time.


All versions of php-shomer with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package yd-shomer/php-shomer contains the following files

Loading the files please wait ...