Download the PHP package peekphp/peek without Composer
On this page you can find all versions of the php package peekphp/peek. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package peek
Short Description A package to ask any AI Client to give detailed answer of improvements on PHP files/snippets.
License MIT
Informations about the package peek
Peek
Peek is a lightweight and powerful PHP package that integrates with any AI Client to provide detailed insights, improvements, and optimization suggestions for your PHP files and code snippets.
Requires PHP 8.3+
✨ Key Features
- 🧠 Analyze PHP files or snippets with DeepSeek for actionable improvement suggestions.
- 🔍 Spot inefficiencies, errors, and optimization opportunities in your codebase.
- ⚡ Easily integrate into your existing workflows via a command-line interface.
🚀 Installation
Install Peek using Composer:
⚙️ Usage
Analyze a PHP File
Run the peek
command to analyze an entire PHP file:
Analyze a Code Snippet
Specify a line range within a file to analyze just a part of your code:
Example Output:
🔧 Configuration
To set up Peek in your project, use the init
command:
This will generate a peek.json configuration file in your project's root directory, allowing you to define client settings such as API key, URL, and model.
Example peek.json:
🤦🏻 Run Tests
Run the complete test suite using PHPUnit:
Peek comes with both unit and integration tests to ensure its reliability.
🤝 Contributing
Contributions are welcome! Feel free to submit issues or pull requests to help make Peek even better.
Steps to Contribute:
- Fork the repository.
-
Create a feature branch:
-
Commit your changes:
-
Push to your branch:
- Submit a pull request.
We appreciate your contributions! ❤️
📚 License
Peek is open-source software licensed under the MIT License.
Crafted with ❤️ by Doekos