You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](LICENSE)[](https://github.com/imponeer/smarty-image/releases)[](http://php.net)[](https://packagist.org/packages/imponeer/smarty-image)[](https://smarty-php.github.io)
4
2
5
3
# Smarty Image
6
4
7
-
Some [Smarty](https://smarty.net)syntax plugins for operations with images.
5
+
A modern [Smarty](https://smarty.net)extension that provides image resizing capabilities with built-in caching. This extension allows you to resize images directly from your Smarty templates using the `resized_image` function.
@@ -51,8 +119,45 @@ This function supports such arguments:
51
119
52
120
All extra arguments will be rendered into image tag, if return mode is `image`.
53
121
122
+
## Development
123
+
124
+
This project uses modern PHP development tools and practices:
125
+
126
+
### Running Tests
127
+
```bash
128
+
composer test
129
+
```
130
+
131
+
### Code Style
132
+
The project follows PSR-12 coding standards. Check code style with:
133
+
```bash
134
+
composer phpcs
135
+
```
136
+
137
+
Fix code style issues automatically:
138
+
```bash
139
+
composer phpcbf
140
+
```
141
+
142
+
### Static Analysis
143
+
Run PHPStan for static code analysis:
144
+
```bash
145
+
composer phpstan
146
+
```
147
+
148
+
## Documentation
149
+
150
+
API documentation is automatically generated and available in the [project's wiki](https://github.com/imponeer/smarty-image/wiki). For more detailed information about the classes and methods, please refer to the [project wiki](https://github.com/imponeer/smarty-image/wiki).
151
+
54
152
## How to contribute?
55
153
56
-
If you want to add some functionality or fix bugs, you can fork, change and create pull request. If you not sure how this works, try [interactive GitHub tutorial](https://skills.github.com).
154
+
We welcome contributions! If you want to add functionality or fix bugs:
155
+
156
+
1. Fork the repository
157
+
2. Create a feature branch from `main`
158
+
3. Make your changes following the coding standards
159
+
4. Add or update tests as needed
160
+
5. Run the test suite to ensure everything works
161
+
6. Submit a pull request with a clear description of your changes
57
162
58
-
If you found any bug or have some questions, use [issues tab](https://github.com/imponeer/smarty-image/issues) and write there your questions.
163
+
For bug reports or feature requests, please use the [issues tab](https://github.com/imponeer/smarty-image/issues) and provide as much detail as possible.
0 commit comments