Skip to content

Commit 7e81722

Browse files
committed
Initial commit
0 parents  commit 7e81722

File tree

440 files changed

+58723
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

440 files changed

+58723
-0
lines changed

.editorconfig

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
indent_style = space
7+
indent_size = 4
8+
trim_trailing_whitespace = true
9+
10+
[*.php]
11+
indent_size = 4

.gitattributes

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Autodetect file teks
2+
* text=auto
3+
4+
# Perlakukan file - file ini sebagai teks
5+
*.php text
6+
*.css text
7+
*.js text
8+
*.txt text
9+
*.md text
10+
*.xml text
11+
*.json text
12+
*.bat text
13+
*.sql text
14+
*.yml text
15+
16+
# Pastikan file - file ini tidak diutak-atik
17+
*.png binary
18+
*.jpg binary
19+
*.gif binary
20+
*.ttf binary
21+
*.phar binary
22+
*.pem binary
23+
24+
# Jangan sertakan file dan folder ini ke arsip rilis
25+
/.github export-ignore
26+
/tests export-ignore
27+
/.editorconfig export-ignore
28+
/.gitattributes export-ignore
29+
/.gitignore export-ignore
30+
/repositories.json export-ignore
31+
/.sami export-ignore
32+
*.bc.php export-ignore
33+
*.cache.php export-ignore
34+
*.log.php export-ignore
35+
*.session.php export-ignore
36+
/.php_cs export-ignore
37+
*.phar export-ignore
38+
*.pem export-ignore

.github/FUNDING.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: esyede
2+
custom: https://saweria.co/esyede

.github/ISSUE_TEMPLATE

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
### Deskripsi
2+
3+
4+
5+
6+
### Informasi tambahan
7+
8+
- Versi rakit : -
9+
- Versi php : -
10+
- Webserver : -

.github/PULL_REQUEST_TEMPLATE

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
### Deskripsi
2+
3+
4+
5+
### Cara Mencoba
6+
7+
8+
9+
### Ceklis:
10+
Tambahkan `x` pada kotak - kotak yang sesuai.
11+
12+
**Jenis perubahan:**
13+
- [ ] Perbaikan/penambahan fitur tanpa memutus kompatibilitas
14+
- [ ] BC-break (perubahan yang memutus komaptibilitas dengan versi terdahulu)
15+
16+
**Lainnya:**
17+
- [ ] Gaya penulisan kode saya sudah mengikuti standar rakit.
18+
- [ ] Perubahan ini juga memerlukan perubahan pada dokumentasi.
19+
- [ ] Dokumentasi sudah saya perbarui.

.github/workflows/phpcs.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
on:
2+
push:
3+
branches:
4+
- 'master'
5+
pull_request:
6+
paths:
7+
- '**.php'
8+
9+
name: phpcs
10+
11+
jobs:
12+
phpcs:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
ref: ${{ github.head_ref }}
18+
19+
- name: check php version
20+
run: php -v
21+
22+
- name: download phpcs
23+
run: wget -O phpcs.phar https://cs.symfony.com/download/php-cs-fixer-v2.phar
24+
25+
- name: Make PHP-CS-Fixer Executable
26+
run: chmod +x phpcs.phar
27+
28+
- name: apply coding style
29+
run: php phpcs.phar fix
30+
31+
- name: remove phpcs
32+
run: rm -f phpcs.phar
33+
34+
- uses: stefanzweifel/git-auto-commit-action@v4
35+
with:
36+
commit_message: 'phpcs: apply coding style'

.gitignore

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Framework
2+
/storage
3+
*.sqlite
4+
*.bc.php
5+
*.cache.php
6+
*.log.php
7+
*.session.php
8+
9+
10+
# Phpstorm
11+
.idea
12+
*.iml
13+
14+
# Netbeans
15+
nbproject
16+
17+
# Zend studio eclipse
18+
.buildpath
19+
.project
20+
.settings
21+
22+
# Sublime text
23+
*.sublime-project
24+
*.sublime-workspace
25+
/.phpintel
26+
27+
# Vscode
28+
.vscode
29+
30+
# Cache thumbnail windows
31+
Thumbs.db
32+
33+
# Composer
34+
composer.phar
35+
composer.lock
36+
/vendor
37+
38+
# Mac
39+
.DS_Store
40+
41+
# Phpunit
42+
phpunit.phar
43+
phpunit.xml
44+
45+
# Nodejs
46+
/node_modules
47+
.env

.htaccess

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Options -MultiViews -Indexes
2+
RewriteEngine on
3+
4+
RewriteCond %{HTTP:Authorization} .
5+
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
6+
7+
RewriteCond %{REQUEST_FILENAME} !-d
8+
RewriteCond %{REQUEST_URI} (.+)/$
9+
RewriteRule ^ %1 [L,R=301]
10+
11+
RewriteRule ^(application|cgi-bin|packages|storage|system|vendor)/(.*)?$ / [F,L]
12+
RewriteRule ^composer\.(lock|json)$ / [F,L]
13+
RewriteRule ^\.ftp-deploy - [F,L]
14+
15+
RewriteCond %{REQUEST_FILENAME} !-f
16+
RewriteCond %{REQUEST_FILENAME} !-d
17+
RewriteRule . index.php [L]

.php_cs.dist

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<?php
2+
use PhpCsFixer\Finder;
3+
use PhpCsFixer\Config;
4+
5+
$directories = ['storage', 'assets', 'vendor'];
6+
$files = ['*.blade.php', '*.bc.php', '_ide_helper.php', '*.phar'];
7+
8+
$rules = [
9+
'@PSR2' => true,
10+
'array_syntax' => ['syntax' => 'short'],
11+
'binary_operator_spaces' => ['align_equals' => false, 'align_double_arrow' => false],
12+
'class_keyword_remove' => true,
13+
'cast_spaces' => true,
14+
'combine_consecutive_unsets' => true,
15+
'concat_space' => ['spacing' => 'none'],
16+
'dir_constant' => true,
17+
'elseif' => true,
18+
'explicit_indirect_variable' => true,
19+
'full_opening_tag' => true,
20+
'hash_to_slash_comment' => true,
21+
'heredoc_to_nowdoc' => true,
22+
'include' => true,
23+
'linebreak_after_opening_tag' => true,
24+
'list_syntax' => ['syntax' => 'long'],
25+
'lowercase_cast' => true,
26+
'lowercase_constants' => true,
27+
'lowercase_keywords' => true,
28+
'method_argument_space' => ['ensure_fully_multiline' => false],
29+
'method_chaining_indentation' => true,
30+
'method_separation' => true,
31+
'modernize_types_casting' => true,
32+
'normalize_index_brace' => true,
33+
'new_with_braces' => true,
34+
'no_blank_lines_after_class_opening' => true,
35+
'no_blank_lines_after_phpdoc' => true,
36+
'single_blank_line_before_namespace' => false,
37+
'no_blank_lines_after_class_opening' => true,
38+
'no_blank_lines_after_phpdoc' => true,
39+
'no_break_comment' => false,
40+
'no_closing_tag' => true,
41+
'no_empty_comment' => true,
42+
'no_empty_statement' => true,
43+
'no_extra_consecutive_blank_lines' => true,
44+
'no_leading_import_slash' => true,
45+
'no_mixed_echo_print' => ['use' => 'echo'],
46+
'no_null_property_initialization' => true,
47+
'no_short_echo_tag' => true,
48+
'no_spaces_around_offset' => true,
49+
'no_spaces_inside_parenthesis' => true,
50+
'no_trailing_comma_in_singleline_array' => true,
51+
'no_trailing_whitespace' => true,
52+
'no_trailing_whitespace_in_comment' => true,
53+
'no_unused_imports' => true,
54+
'no_useless_else' => true,
55+
'no_useless_return' => true,
56+
'no_whitespace_in_blank_line' => true,
57+
'no_whitespace_before_comma_in_array' => true,
58+
'no_whitespace_in_blank_line' => true,
59+
'not_operator_with_successor_space' => true,
60+
'phpdoc_align' => true,
61+
'phpdoc_indent' => true,
62+
'phpdoc_order' => true,
63+
'phpdoc_separation' => true,
64+
'phpdoc_single_line_var_spacing' => true,
65+
'phpdoc_summary' => true,
66+
'phpdoc_to_comment' => true,
67+
'phpdoc_trim' => true,
68+
'phpdoc_var_without_name' => true,
69+
'semicolon_after_instruction' => true,
70+
'short_scalar_cast' => true,
71+
'simplified_null_return' => true,
72+
'single_blank_line_at_eof' => true,
73+
'single_import_per_statement' => true,
74+
'single_quote' => true,
75+
'standardize_not_equals' => true,
76+
'switch_case_space' => false,
77+
'ternary_operator_spaces' => true,
78+
'ternary_to_null_coalescing' => false,
79+
'trailing_comma_in_multiline_array' => true,
80+
'trim_array_spaces' => true,
81+
'unary_operator_spaces' => true,
82+
];
83+
84+
$finder = Finder::create()
85+
->in(__DIR__)
86+
->exclude($directories);
87+
88+
foreach ($files as $file) {
89+
$finder->notName($file);
90+
}
91+
92+
return Config::create()
93+
->setRiskyAllowed(true)
94+
->setRules($rules)
95+
->setUsingCache(false)
96+
->setFinder($finder);

.sami

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
use Sami\Sami;
4+
use Symfony\Component\Finder\Finder;
5+
6+
define('DS', DIRECTORY_SEPARATOR);
7+
8+
require 'paths.php';
9+
require 'system/core.php';
10+
11+
$iterator = Finder::create()
12+
->files()
13+
->name('*.php')
14+
->in(__DIR__.DS.'system');
15+
16+
$options = [
17+
'title' => RAKIT_VERSION,
18+
'build_dir' => __DIR__.DS.'api'.DS.'api'.DS,
19+
'cache_dir' => __DIR__.DS.'api'.DS.'cache'.DS,
20+
];
21+
22+
return new Sami($iterator, $options);
23+
// Download sami.phar di: http://get.sensiolabs.org/sami.phar (PHP 7.0.0+)
24+
// Run command: php sami.phar update .sami

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Rakit Web Framework
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

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
# website
3+
4+
Repositori untuk website resmi rakit

0 commit comments

Comments
 (0)