Skip to content

Commit 1a13af0

Browse files
committed
Initial commit
0 parents  commit 1a13af0

15 files changed

Lines changed: 3545 additions & 0 deletions

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.idea/
2+
/vendor/
3+
.php-cs-fixer.cache

.php-cs-fixer.php

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace arkania;
6+
7+
use PhpCsFixer\Config;
8+
use PhpCsFixer\Finder;
9+
10+
$finder = Finder::create()
11+
->in('src/');
12+
13+
return (new Config())
14+
->setRiskyAllowed(true)
15+
->setRules([
16+
'native_function_invocation' => [
17+
'include' => [
18+
'@all'
19+
],
20+
'scope' => 'namespaced',
21+
'strict' => true,
22+
],
23+
'no_empty_phpdoc' => true,
24+
'no_unused_imports' => true,
25+
'ordered_imports' => [
26+
'imports_order' => [
27+
'class',
28+
'function',
29+
'const',
30+
],
31+
'sort_algorithm' => 'alpha',
32+
],
33+
'phpdoc_align' => [
34+
'align' => 'vertical',
35+
'tags' => [
36+
'param'
37+
]
38+
],
39+
'phpdoc_line_span' => [
40+
'property' => 'single',
41+
'method' => null,
42+
'const' => null,
43+
],
44+
'phpdoc_trim' => true,
45+
'modernize_strpos' => true,
46+
'ordered_interfaces' => true,
47+
'ordered_types' => true,
48+
'elseif' => true,
49+
'include' => true,
50+
'simplified_if_return' => true,
51+
'function_declaration' => true,
52+
'return_type_declaration' => [
53+
'space_before' => 'one'
54+
],
55+
'strict_param' => true,
56+
'unary_operator_spaces' => true,
57+
'align_multiline_comment' => [
58+
'comment_type' => 'phpdocs_only'
59+
],
60+
'binary_operator_spaces' => [
61+
'operators' => [
62+
'=>' => 'align_single_space_minimal',
63+
'=' => 'align_single_space_minimal',
64+
]
65+
],
66+
'blank_line_after_namespace' => true,
67+
'blank_line_after_opening_tag' => true,
68+
'blank_line_before_statement' => [
69+
'statements' => [
70+
'declare'
71+
]
72+
],
73+
'fully_qualified_strict_types' => true,
74+
'concat_space' => [
75+
'spacing' => 'one'
76+
],
77+
'declare_strict_types' => true,
78+
'indentation_type' => false,
79+
'logical_operators' => true,
80+
'native_constant_invocation' => [
81+
'scope' => 'namespaced'
82+
],
83+
'new_with_braces' => [
84+
'named_class' => true,
85+
'anonymous_class' => false,
86+
],
87+
'no_closing_tag' => true,
88+
'no_extra_blank_lines' => true,
89+
'no_trailing_whitespace' => true,
90+
'no_trailing_whitespace_in_comment' => true,
91+
'no_whitespace_in_blank_line' => true,
92+
'phpdoc_trim_consecutive_blank_line_separation' => true,
93+
'@PSR2' => true,
94+
'array_push' => true,
95+
'array_syntax' => ['syntax' => 'short'],
96+
'no_multiline_whitespace_around_double_arrow' => true,
97+
'trim_array_spaces' => true,
98+
'whitespace_after_comma_in_array' => ['ensure_single_space' => true],
99+
'no_multiple_statements_per_line' => true,
100+
'no_trailing_comma_in_singleline' => true,
101+
'single_line_empty_body' => false,
102+
'class_reference_name_casing' => true,
103+
'constant_case' => ['case' => 'lower'],
104+
'integer_literal_case' => true,
105+
'lowercase_keywords' => true,
106+
'lowercase_static_reference' => true,
107+
'magic_constant_casing' => true,
108+
'magic_method_casing' => true,
109+
'native_function_casing' => true,
110+
'native_function_type_declaration_casing' => true,
111+
'cast_spaces' => true,
112+
'lowercase_cast' => true,
113+
'class_definition' => [
114+
'inline_constructor_arguments' => false,
115+
'space_before_parenthesis' => true,
116+
'multi_line_extends_each_single_line' => false,
117+
'single_item_single_line' => true
118+
],
119+
'final_internal_class' => true,
120+
'no_blank_lines_after_class_opening' => true,
121+
'header_comment' => [
122+
'comment_type' => 'comment',
123+
'header' => <<<BODY
124+
____ __ __ _ _ ___ ____ ____ ___ _____
125+
/ ___| \ \ / / | \ | | / _ \ | _ \ / ___| |_ _| | ____|
126+
\___ \ \ V / | \| | | | | | | |_) | \___ \ | | | _|
127+
___) | | | | |\ | | |_| | | __/ ___) | | | | |___
128+
|____/ |_| |_| \_| \___/ |_| |____/ |___| |_____|
129+
130+
Cet API permet de gérer de manière facile les webhooks/message envoyés sur discord.
131+
132+
@author SynopsieTeam
133+
@link https://neta.arkaniastudios.com/
134+
@version 2.0.1
135+
136+
BODY,
137+
'location' => 'after_open'
138+
139+
],
140+
'no_empty_comment' => true,
141+
'control_structure_braces' => true,
142+
'control_structure_continuation_position' => true,
143+
'no_superfluous_elseif' => true,
144+
'no_useless_else' => true,
145+
'global_namespace_import' => [
146+
'import_classes' => true,
147+
'import_constants' => true,
148+
'import_functions' => true
149+
],
150+
'single_import_per_statement' => true,
151+
'single_line_after_imports' => true,
152+
'combine_consecutive_unsets' => true,
153+
'combine_consecutive_issets' => true,
154+
'no_blank_lines_after_phpdoc' => true,
155+
'no_superfluous_phpdoc_tags' => true,
156+
'curly_braces_position' => [
157+
'functions_opening_brace' => 'same_line',
158+
'classes_opening_brace' => 'same_line'
159+
]
160+
])
161+
->setFinder($finder)
162+
->setIndent("\t")
163+
->setLineEnding("\n");

LICENSE

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) 2024 Dumont-Julien
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: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Neta-Webhook API 📡
2+
3+
Facilitez la gestion des webhooks et des messages envoyés sur Discord avec Neta-Webhook, une API conçue pour simplifier les interactions.
4+
5+
## Nouveautés de cette Version
6+
7+
- Simplification de la gestion des webhooks et des messages pour une utilisation plus intuitive.
8+
- Amélioration de la performance et de la fiabilité des fonctionnalités d'envoi de messages.
9+
- Correction de bugs mineurs pour une expérience utilisateur plus fluide.
10+
- Documentation mise à jour pour une meilleure compréhension des fonctionnalités et des paramètres.
11+
- Système de file d'attente pour ne pas bloquer l'envoie des webhooks.
12+
13+
## Pour Commencer
14+
15+
Intégrez dès maintenant la dernière version de Neta-Webhook à vos projets et profitez d'une gestion simplifiée des webhooks et des messages sur Discord.
16+
17+
## Support
18+
19+
Besoin d'aide ou avez-vous des questions ? N'hésitez pas à nous contacter ou à consulter la documentation pour obtenir des informations supplémentaires.
20+
21+
## Crédits
22+
23+
Neta-Webhook est développé par [Synopsie](https://discord.gg/JkpT7BJPXR). Merci à toute l'équipe pour son travail acharné et son dévouement à améliorer l'expérience de développement pour la communauté Discord.
24+
25+
Facilitez la gestion des webhooks et des messages sur Discord avec Neta-Webhook et simplifiez vos interactions en ligne ! 📡

composer.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "arkania/neta-webhook",
3+
"description": "Cet API permet de gérer de manière facile les webhooks/message envoyés sur discord.",
4+
"type": "library",
5+
"require": {
6+
"php": "^8.1",
7+
"ext-curl": "*"
8+
},
9+
"require-dev": {
10+
"pocketmine/pocketmine-mp": "^5.13",
11+
"friendsofphp/php-cs-fixer": "^3.52",
12+
"phpstan/phpstan": "^1.10"
13+
},
14+
"license": "MIT",
15+
"autoload": {
16+
"psr-4": {
17+
"neta\\": "src/"
18+
}
19+
},
20+
"authors": [
21+
{
22+
"name": "Dumont-Julien",
23+
"email": "dumontj357@gmail.com"
24+
}
25+
],
26+
"minimum-stability": "stable"
27+
}

0 commit comments

Comments
 (0)