Skip to content

Commit

Permalink
feat: first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
YunzhiYike committed Apr 3, 2024
1 parent 50fb7b8 commit a8ce323
Show file tree
Hide file tree
Showing 12 changed files with 4,536 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# CakePHP 3

/.idea*
/vendor/*
/config/app.php

Expand Down
93 changes: 93 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<?php

declare(strict_types=1);

$header = <<<'EOF'
This file is part of Yunzhiyike
EOF;

return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'@Symfony' => true,
'@DoctrineAnnotation' => true,
'@PhpCsFixer' => true,
'header_comment' => [
'comment_type' => 'PHPDoc',
'header' => $header,
'separate' => 'none',
'location' => 'after_declare_strict',
],
'array_syntax' => [
'syntax' => 'short',
],
'list_syntax' => [
'syntax' => 'short',
],
'concat_space' => [
'spacing' => 'one',
],
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
'import_functions' => null,
],
'blank_line_before_statement' => [
'statements' => [
'declare',
],
],
'general_phpdoc_annotation_remove' => [
'annotations' => [
'author',
],
],
'ordered_imports' => [
'imports_order' => [
'class', 'function', 'const',
],
'sort_algorithm' => 'alpha',
],
'single_line_comment_style' => [
'comment_types' => [
],
],
'yoda_style' => [
'always_move_variable' => false,
'equal' => false,
'identical' => false,
],
'phpdoc_align' => [
'align' => 'left',
],
'multiline_whitespace_before_semicolons' => [
'strategy' => 'no_multi_line',
],
'constant_case' => [
'case' => 'lower',
],
'class_attributes_separation' => true,
'combine_consecutive_unsets' => true,
'declare_strict_types' => true,
'linebreak_after_opening_tag' => true,
'lowercase_static_reference' => true,
'no_useless_else' => true,
'no_unused_imports' => true,
'not_operator_with_successor_space' => true,
'not_operator_with_space' => false,
'ordered_class_elements' => true,
'php_unit_strict' => false,
'phpdoc_separation' => false,
'single_quote' => true,
'standardize_not_equals' => true,
'multiline_comment_opening_closing' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->exclude('public')
->exclude('runtime')
->exclude('vendor')
->in(__DIR__)
)
->setUsingCache(false);
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
# SunoAI-SDK-Suno-SDK
<p align="center"><a href="https://www.suno.ai" target="_blank" rel="noopener noreferrer"><img width="100" src="img.png" alt="suno Logo"></a></p>


# Unofficial Suno PHP-SDK
This is an unofficial Suno API based on PHP; it provides support for all Suno interfaces.

## Installation

```bash
composer require yunzhiyike/suno-ai-sdk
```

## Methods
32 changes: 32 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "yunzhiyike/suno-ai-sdk",
"description": "This is an unofficial Suno API based on PHP; it provides support for all Suno interfaces.",
"type": "library",
"autoload": {
"psr-4": {
"Yunzhiyike\\SunoAiSdk\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Yunzhiyike\\Test\\": "tests/"
}
},
"authors": [
{
"name": "云知易客",
"email": "[email protected]"
}
],
"require": {
"guzzlehttp/guzzle": "^7.8"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.52",
"phpunit/phpunit": "^10.5"
},
"scripts": {
"cs-fix": "php-cs-fixer fix $1",
"test": "phpunit -c phpunit.xml --colors=always"
}
}

0 comments on commit a8ce323

Please sign in to comment.