Skip to content

Commit 1271d66

Browse files
author
Ilya Sakovich
committed
Initial commit
0 parents  commit 1271d66

15 files changed

+241
-0
lines changed

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/.gitattributes export-ignore
2+
/.gitignore export-ignore
3+
/.styleci.yml export-ignore
4+
/phpunit.xml.dist export-ignore
5+
/tests export-ignore

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
vendor
2+
composer.lock
3+
.idea

.styleci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
preset: laravel

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
3+
All notable changes to `coderello/laravel-proximage` will be documented in this file
4+
5+
## 0.1.0
6+
7+
- Initial release

CONTRIBUTING.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Contributing
2+
3+
Contributions are **welcome** and will be fully **credited**.
4+
5+
Please read and understand the contribution guide before creating an issue or pull request.
6+
7+
## Requirements
8+
9+
If the project maintainer has any additional requirements, you will find them listed here.
10+
11+
12+
- **[PSR-2 Coding Standard.](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** The easiest way to apply the conventions is to install [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer).
13+
- **Add tests!** Your patch won't be accepted if it doesn't have tests.
14+
- **Document any change in behaviour.** Make sure the `README.md` and any other relevant documentation are kept up-to-date.
15+
- **Consider our release cycle.** We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.
16+
- **Create feature branches.** Don't ask us to pull from your master branch.
17+
- **One pull request per feature.** If you want to do more than one thing, send multiple pull requests.
18+
- **Send coherent history.** Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please [squash them](http://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages) before submitting.
19+
20+
**Happy coding!**

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Coderello
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Proximage
2+
3+
Image proxy for Laravel.
4+
5+
## Installation
6+
7+
You can install this package via composer using this command:
8+
9+
```bash
10+
composer require coderello/proximage
11+
```
12+
13+
The package will automatically register itself.
14+
15+
You can publish the config file with:
16+
17+
```bash
18+
php artisan vendor:publish --tag="proximage-config"
19+
```
20+
21+
## Testing
22+
23+
You can run the tests with:
24+
25+
```bash
26+
composer test
27+
```
28+
29+
## Changelog
30+
31+
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
32+
33+
## Contributing
34+
35+
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
36+
37+
## License
38+
39+
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

composer.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "coderello/laravel-proximage",
3+
"description": "Image proxy for Laravel.",
4+
"type": "library",
5+
"license": "MIT",
6+
"require": {
7+
"php": ">=7.1",
8+
"laravel/framework": "5.5.*|5.6.*|5.7.*"
9+
},
10+
"require-dev": {
11+
"orchestra/testbench": "~3.0"
12+
},
13+
"autoload": {
14+
"psr-4": {
15+
"Coderello\\Proximage\\": "src/"
16+
},
17+
"files": [
18+
"src/helpers.php"
19+
]
20+
},
21+
"autoload-dev": {
22+
"psr-4": {
23+
"Coderello\\Proximage\\Tests\\": "tests/"
24+
}
25+
},
26+
"scripts": {
27+
"test": "vendor/bin/phpunit --colors=always"
28+
},
29+
"extra": {
30+
"laravel": {
31+
"providers": [
32+
"Coderello\\Proximage\\Providers\\ProximageServiceProvider"
33+
]
34+
}
35+
}
36+
}

config/proximage.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
return [
4+
5+
//
6+
7+
];

phpunit.xml.dist

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit backupGlobals="false"
3+
backupStaticAttributes="false"
4+
beStrictAboutTestsThatDoNotTestAnything="false"
5+
bootstrap="vendor/autoload.php"
6+
colors="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false"
12+
>
13+
<testsuites>
14+
<testsuite name="Proximage Test Suite">
15+
<directory suffix=".php">./tests/</directory>
16+
</testsuite>
17+
</testsuites>
18+
<filter>
19+
<whitelist processUncoveredFilesFromWhitelist="true">
20+
<directory suffix=".php">./src/</directory>
21+
</whitelist>
22+
</filter>
23+
</phpunit>

0 commit comments

Comments
 (0)