Skip to content
This repository was archived by the owner on Jul 15, 2020. It is now read-only.

Commit f076a07

Browse files
do
0 parents  commit f076a07

13 files changed

+1068
-0
lines changed

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/node_modules
2+
/public/hot
3+
/public/storage
4+
/storage/*.key
5+
/vendor
6+
.env
7+
.env.backup
8+
.phpunit.result.cache
9+
Homestead.json
10+
Homestead.yaml
11+
npm-debug.log
12+
yarn-error.log

.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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changelog
2+
3+
All notable changes to `laravel-cloudinary` will be documented in this file.
4+
5+
## Version 1.0
6+
7+
### Added
8+
- Everything

composer.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"name": "unicodeveloper/laravel-cloudinary",
3+
"description": "A Laravel Cloudinary Package",
4+
"license": "MIT",
5+
"authors": [
6+
{
7+
"name": "Prosper Otemuyiwa",
8+
"email": "prosperotemuyiwa@gmail.com",
9+
"homepage": "https://github.com/unicodeveloper"
10+
}
11+
],
12+
"homepage": "https://github.com/unicodeveloper/laravel-cloudinary",
13+
"keywords": ["Laravel", "laravel-cloudinary"],
14+
"require": {
15+
"illuminate/support": "~5|~6|~7"
16+
},
17+
"require-dev": {
18+
"phpunit/phpunit": "^8.0",
19+
"mockery/mockery": "^1.1",
20+
"orchestra/testbench": "~3|~4",
21+
"sempro/phpunit-pretty-print": "^1.0"
22+
},
23+
"autoload": {
24+
"psr-4": {
25+
"Unicodeveloper\\Cloudinary\\": "src/"
26+
},
27+
"files": [
28+
"src/Support/helpers.php"
29+
]
30+
},
31+
"autoload-dev": {
32+
"psr-4": {
33+
"Unicodeveloper\\Cloudinary\\Tests\\": "tests"
34+
}
35+
},
36+
"extra": {
37+
"laravel": {
38+
"providers": [
39+
"Unicodeveloper\\Cloudinary\\CloudinaryServiceProvider"
40+
],
41+
"aliases": {
42+
"Cloudinary": "Unicodeveloper\\Cloudinary\\Facades\\Cloudinary"
43+
}
44+
}
45+
}
46+
}

config/cloudinary.php

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Laravel Cloudinary package.
5+
*
6+
* (c) Prosper Otemuyiwa <prosperotemuyiwa@gmail.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
return [
13+
14+
/*
15+
|--------------------------------------------------------------------------
16+
| Cloudinary Configuration
17+
|--------------------------------------------------------------------------
18+
|
19+
| An HTTP or HTTPS URL to notify your application (a webhook) when the process of uploads, deletes, and any API
20+
| that accepts notification_url has completed.
21+
|
22+
|
23+
*/
24+
'notification_url' => env('CLOUDINARY_NOTIFICATION_URL', ''),
25+
26+
27+
/*
28+
|--------------------------------------------------------------------------
29+
| Cloudinary Configuration
30+
|--------------------------------------------------------------------------
31+
|
32+
| Here you may configure your Cloudinary settings. Cloudinary is a cloud hosted
33+
| media management service for all file uploads, storage, delivery and transformation needs.
34+
|
35+
|
36+
*/
37+
38+
'account_details' => [
39+
40+
'account' => [
41+
/**
42+
* Cloud Name From Cloudinary Dashboard
43+
*
44+
*/
45+
'cloud_name' => env('CLOUDINARY_CLOUD_NAME'),
46+
47+
/**
48+
* API Key From Cloudinary Dashboard
49+
*
50+
*/
51+
'api_key' => env('CLOUDINARY_API_KEY'),
52+
53+
/**
54+
* API Secret From Cloudinary Dashboard
55+
*
56+
*/
57+
'api_secret' => env('CLOUDINARY_API_SECRET')
58+
],
59+
60+
'url' => [
61+
'secure' => true
62+
]
63+
]
64+
];

contributing.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Contributing
2+
3+
Contributions are welcome and will be fully credited.
4+
5+
Contributions are accepted via Pull Requests on [Github](https://github.com/unicodeveloper/laravel-cloudinary).
6+
7+
# Things you could do
8+
If you want to contribute but do not know where to start, this list provides some starting points.
9+
- Add license text
10+
- Remove rewriteRules.php
11+
- Set up TravisCI, StyleCI, ScrutinizerCI
12+
- Write a comprehensive ReadMe
13+
14+
## Pull Requests
15+
16+
- **Add tests!** - Your patch won't be accepted if it doesn't have tests.
17+
18+
- **Document any change in behaviour** - Make sure the `readme.md` and any other relevant documentation are kept up-to-date.
19+
20+
- **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.
21+
22+
- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.
23+
24+
- **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.
25+
26+
27+
**Happy coding**!

license.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# The license
2+
3+
Copyright (c) Prosper Otemuyiwa <prosperotemuyiwa@gmail.com>
4+
5+
...Add your license text here...

phpunit.xml

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

readme.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# laravel-cloudinary
2+
3+
[![Latest Version on Packagist][ico-version]][link-packagist]
4+
[![Total Downloads][ico-downloads]][link-downloads]
5+
[![Build Status][ico-travis]][link-travis]
6+
[![StyleCI][ico-styleci]][link-styleci]
7+
8+
This is where your description should go. Take a look at [contributing.md](contributing.md) to see a to do list.
9+
10+
## Installation
11+
12+
Via Composer
13+
14+
``` bash
15+
$ composer require unicodeveloper/laravel-cloudinary
16+
```
17+
18+
## Usage
19+
20+
## Change log
21+
22+
Please see the [changelog](changelog.md) for more information on what has changed recently.
23+
24+
## Testing
25+
26+
``` bash
27+
$ composer test
28+
```
29+
30+
## Contributing
31+
32+
Please see [contributing.md](contributing.md) for details and a todolist.
33+
34+
## Security
35+
36+
If you discover any security related issues, please email prosperotemuyiwa@gmail.com instead of using the issue tracker.
37+
38+
## Credits
39+
40+
- [Prosper Otemuyiwa][link-author]
41+
- [All Contributors][link-contributors]
42+
43+
## License
44+
45+
MIT. Please see the [license file](license.md) for more information.
46+
47+
[ico-version]: https://img.shields.io/packagist/v/unicodeveloper/laravel-cloudinary.svg?style=flat-square
48+
[ico-downloads]: https://img.shields.io/packagist/dt/unicodeveloper/laravel-cloudinary.svg?style=flat-square
49+
[ico-travis]: https://img.shields.io/travis/unicodeveloper/laravel-cloudinary/master.svg?style=flat-square
50+
[ico-styleci]: https://styleci.io/repos/12345678/shield
51+
52+
[link-packagist]: https://packagist.org/packages/unicodeveloper/laravel-cloudinary
53+
[link-downloads]: https://packagist.org/packages/unicodeveloper/laravel-cloudinary
54+
[link-travis]: https://travis-ci.org/unicodeveloper/laravel-cloudinary
55+
[link-styleci]: https://styleci.io/repos/12345678
56+
[link-author]: https://github.com/unicodeveloper
57+
[link-contributors]: ../../contributors

0 commit comments

Comments
 (0)