Skip to content

Commit

Permalink
c1
Browse files Browse the repository at this point in the history
  • Loading branch information
tolgatasci committed Jun 20, 2021
1 parent af7931a commit 3e6d5f7
Show file tree
Hide file tree
Showing 16 changed files with 701 additions and 0 deletions.
1 change: 1 addition & 0 deletions .phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":1,"defects":{"tolgatasci\\soundcloud\\RequestExample::test_example":4,"tolgatasci\\soundcloud\\tests\\RequestExample::test_example":5,"tolgatasci\\soundcloud\\tests\\RequestExample::test_get_tracks_with_id":5,"tolgatasci\\soundcloud\\tests\\RequestExample::test_search_tracks":5,"tolgatasci\\soundcloud\\tests\\RequestExample::test_next_url":5,"tolgatasci\\soundcloud\\tests\\RequestExample::test_related_music":5,"tolgatasci\\soundcloud\\tests\\RequestExample::test_featured_music":5,"tolgatasci\\soundcloud\\tests\\RequestExample::test_search_playlist":4,"tolgatasci\\soundcloud\\tests\\RequestExample::test_get_comments":4,"tolgatasci\\soundcloud\\tests\\ToolsExample::test_convert_time_to_text":5},"times":{"tolgatasci\\soundcloud\\RequestExample::test_example":0.006,"tolgatasci\\soundcloud\\tests\\RequestExample::test_example":0.606,"tolgatasci\\soundcloud\\tests\\RequestExample::test_get_tracks_with_id":0.499,"tolgatasci\\soundcloud\\tests\\RequestExample::test_search_tracks":1.377,"tolgatasci\\soundcloud\\tests\\RequestExample::test_next_url":1.962,"tolgatasci\\soundcloud\\tests\\RequestExample::test_related_music":1.122,"tolgatasci\\soundcloud\\tests\\RequestExample::test_featured_music":1.519,"tolgatasci\\soundcloud\\tests\\RequestExample::test_search_playlist":1.371,"tolgatasci\\soundcloud\\tests\\RequestExample::test_get_comments":0.568,"tolgatasci\\soundcloud\\tests\\ToolsExample::test_convert_time_to_text":0.405,"tolgatasci\\soundcloud\\tests\\RequestExample::test_suggest_keyword":0.407}}
1 change: 1 addition & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
preset: laravel
8 changes: 8 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changelog

All notable changes to `Soundcloud` will be documented in this file.

## Version 1.0

### Added
- Everything
42 changes: 42 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "tolgatasci/soundcloud",
"description": "SoundCloud v2 api for laravel",
"license": "MIT",
"authors": [
{
"name": "tolga",
"email": "[email protected]",
"homepage": "https://www.henyr.com"
}
],
"homepage": "https://github.com/tolgatasci/soundcloud",
"keywords": ["Laravel", "Soundcloud"],
"require": {
"illuminate/support": "~7|~8",
"ixudra/curl": "6.*"
},
"require-dev": {
"phpunit/phpunit": "~9.0",
"orchestra/testbench": "~5|~6"
},
"autoload": {
"psr-4": {
"Tolgatasci\\Soundcloud\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tolgatasci\\Soundcloud\\Tests\\": "tests"
}
},
"extra": {
"laravel": {
"providers": [
"Tolgatasci\\Soundcloud\\SoundcloudServiceProvider"
],
"aliases": {
"Soundcloud": "Tolgatasci\\Soundcloud\\Facades\\Soundcloud"
}
}
}
}
7 changes: 7 additions & 0 deletions config/soundcloud.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

return [
'client_id' => env('CLIENT_ID', ''),
'app_version'=> env('APP_VERSION', '1620206878'),
'app_locale'=> env('APP_LOCALE', 'en'),
];
27 changes: 27 additions & 0 deletions contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Contributing

Contributions are welcome and will be fully credited.

Contributions are accepted via Pull Requests on [Github](https://github.com/tolgatasci/soundcloud).

# Things you could do
If you want to contribute but do not know where to start, this list provides some starting points.
- Add license text
- Remove rewriteRules.php
- Set up TravisCI, StyleCI, ScrutinizerCI
- Write a comprehensive ReadMe

## Pull Requests

- **Add tests!** - Your patch won't be accepted if it doesn't have tests.

- **Document any change in behaviour** - Make sure the `readme.md` and any other relevant documentation are kept up-to-date.

- **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.

- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.

- **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.


**Happy coding**!
21 changes: 21 additions & 0 deletions license.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# The license

Copyright (c) tolga <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
28 changes: 28 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="../../../vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Package">
<directory suffix=".php">./tests/</directory>
</testsuite>
<testsuite name="Unit">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
<testsuite name="Feature">
<directory suffix="Test.php">./tests/Feature</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory>src/</directory>
</whitelist>
</filter>
</phpunit>
57 changes: 57 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Soundcloud

[![Latest Version on Packagist][ico-version]][link-packagist]
[![Total Downloads][ico-downloads]][link-downloads]
[![Build Status][ico-travis]][link-travis]
[![StyleCI][ico-styleci]][link-styleci]

This is where your description should go. Take a look at [contributing.md](contributing.md) to see a to do list.

## Installation

Via Composer

``` bash
$ composer require tolgatasci/soundcloud
```

## Usage

## Change log

Please see the [changelog](changelog.md) for more information on what has changed recently.

## Testing

``` bash
$ composer test
```

## Contributing

Please see [contributing.md](contributing.md) for details and a todolist.

## Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

## Credits

- [tolga][link-author]
- [All Contributors][link-contributors]

## License

license. Please see the [license file](license.md) for more information.

[ico-version]: https://img.shields.io/packagist/v/tolgatasci/soundcloud.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/tolgatasci/soundcloud.svg?style=flat-square
[ico-travis]: https://img.shields.io/travis/tolgatasci/soundcloud/master.svg?style=flat-square
[ico-styleci]: https://styleci.io/repos/12345678/shield

[link-packagist]: https://packagist.org/packages/tolgatasci/soundcloud
[link-downloads]: https://packagist.org/packages/tolgatasci/soundcloud
[link-travis]: https://travis-ci.org/tolgatasci/soundcloud
[link-styleci]: https://styleci.io/repos/12345678
[link-author]: https://github.com/tolgatasci
[link-contributors]: ../../contributors
Loading

0 comments on commit 3e6d5f7

Please sign in to comment.