Skip to content

Commit 3c8b610

Browse files
first version
0 parents  commit 3c8b610

File tree

442 files changed

+80280
-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.

442 files changed

+80280
-0
lines changed

.editorconfig

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[*.{css,scss,less,js,json,ts,sass,html,hbs,mustache,phtml,html.twig,md,yml}]
2+
charset = utf-8
3+
indent_style = space
4+
indent_size = 2
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[*.md]
11+
indent_size = 4
12+
trim_trailing_whitespace = false
13+
14+
[site/templates/**.php]
15+
indent_size = 2
16+
17+
[site/snippets/**.php]
18+
indent_size = 2
19+
20+
[package.json,.{babelrc,editorconfig,eslintrc,lintstagedrc,stylelintrc}]
21+
indent_style = space
22+
indent_size = 2

.gitignore

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# System files
2+
# ------------
3+
4+
Icon
5+
.DS_Store
6+
7+
# Temporary files
8+
# ---------------
9+
10+
/media/*
11+
!/media/index.html
12+
13+
# -------------SECURITY-------------
14+
# NEVER publish these files via Git!
15+
# -------------SECURITY-------------
16+
17+
# Cache Files
18+
# ---------------
19+
20+
/site/cache/*
21+
!/site/cache/index.html
22+
23+
# Accounts
24+
# ---------------
25+
26+
/site/accounts/*
27+
!/site/accounts/index.html
28+
29+
# Sessions
30+
# ---------------
31+
32+
/site/sessions/*
33+
!/site/sessions/index.html
34+
35+
# License
36+
# ---------------
37+
/site/config/.license

.htaccess

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Kirby .htaccess
2+
3+
# rewrite rules
4+
<IfModule mod_rewrite.c>
5+
6+
# enable awesome urls. i.e.:
7+
# http://yourdomain.com/about-us/team
8+
RewriteEngine on
9+
10+
# make sure to set the RewriteBase correctly
11+
# if you are running the site in a subfolder.
12+
# Otherwise links or the entire site will break.
13+
#
14+
# If your homepage is http://yourdomain.com/mysite
15+
# Set the RewriteBase to:
16+
#
17+
# RewriteBase /mysite
18+
19+
# In some enviroments it's necessary to
20+
# set the RewriteBase to:
21+
#
22+
# RewriteBase /
23+
24+
# block files and folders beginning with a dot, such as .git
25+
# except for the .well-known folder, which is used for Let's Encrypt and security.txt
26+
RewriteRule (^|/)\.(?!well-known\/) index.php [L]
27+
28+
# block text files in the content folder from being accessed directly
29+
RewriteRule ^content/(.*)\.(txt|md|mdown)$ index.php [L]
30+
31+
# block all files in the site folder from being accessed directly
32+
# except for requests to plugin assets files
33+
RewriteRule ^site/(.*) index.php [L]
34+
35+
# Enable authentication header
36+
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
37+
38+
# block direct access to kirby and the panel sources
39+
RewriteRule ^kirby/(.*) index.php [L]
40+
41+
# make site links work
42+
RewriteCond %{REQUEST_FILENAME} !-f
43+
RewriteCond %{REQUEST_FILENAME} !-d
44+
RewriteRule ^(.*) index.php [L]
45+
46+
</IfModule>
47+
48+
# compress text file responses
49+
<IfModule mod_deflate.c>
50+
AddOutputFilterByType DEFLATE text/plain
51+
AddOutputFilterByType DEFLATE text/html
52+
AddOutputFilterByType DEFLATE text/css
53+
AddOutputFilterByType DEFLATE text/javascript
54+
AddOutputFilterByType DEFLATE application/json
55+
AddOutputFilterByType DEFLATE application/javascript
56+
AddOutputFilterByType DEFLATE application/x-javascript
57+
</IfModule>

README.md

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# Kirby Plainkit
2+
3+
Kirby is a file-based CMS.
4+
Easy to setup. Easy to use. Flexible as hell.
5+
6+
## Trial
7+
8+
You can try Kirby on your local machine or on a test
9+
server as long as you need to make sure it is the right
10+
tool for your next project.
11+
12+
## Buy a license
13+
14+
You can purchase your Kirby license at
15+
<https://getkirby.com/buy>
16+
17+
A Kirby license is valid for a single domain. You can find
18+
Kirby's license agreement here: <https://getkirby.com/license>
19+
20+
## The Plainkit
21+
22+
Kirby's Plainkit is the most minimal setup you can get started with.
23+
It does not include any content, styles or other kinds of decoration,
24+
so it's perfect to use this as a starting point for your own project.
25+
26+
## The Panel
27+
28+
You can find the login for Kirby's admin interface at
29+
http://yourdomain.com/panel. You will be guided through the signup
30+
process for your first user, when you visit the panel
31+
for the first time.
32+
33+
## Installation
34+
35+
Kirby does not require a database, which makes it very easy to
36+
install. Just copy Kirby's files to your server and visit the
37+
URL for your website in the browser.
38+
39+
**Please check if the invisible .htaccess file has been
40+
copied to your server correctly**
41+
42+
### Requirements
43+
44+
Kirby runs on PHP 7.1+, Apache or Nginx.
45+
46+
### Download
47+
48+
You can download the latest version of the Starterkit
49+
from https://download.getkirby.com
50+
51+
### With Git
52+
53+
If you are familiar with Git, you can clone Kirby's
54+
Starterkit repository from Github.
55+
56+
git clone https://github.com/getkirby/starterkit.git
57+
58+
## Documentation
59+
60+
<https://getkirby.com/docs>
61+
62+
## Issues
63+
64+
If you have a Github account, please report issues
65+
directly on Github: <https://github.com/getkirby/kirby/issues>
66+
67+
Otherwise you can use Kirby's forum: https://forum.getkirby.com
68+
or send us an email: <[email protected]>
69+
70+
## Ideas & Feature Requests
71+
72+
If you have ideas for new features, please submit a ticket in our ideas repository:
73+
<https://github.com/getkirby/kirby/ideas>
74+
75+
## Support
76+
77+
<https://getkirby.com/support>
78+
79+
## Copyright
80+
81+
© 2009-2019 Bastian Allgeier (Bastian Allgeier GmbH)
82+
<https://getkirby.com>

composer.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "getkirby/plainkit",
3+
"description": "Kirby Plainkit",
4+
"type": "project",
5+
"keywords": ["kirby", "cms", "starterkit"],
6+
"homepage": "https://getkirby.com",
7+
"authors": [
8+
{
9+
"name": "Bastian Allgeier",
10+
"email": "[email protected]",
11+
"homepage": "https://getkirby.com"
12+
}
13+
],
14+
"support": {
15+
"email": "[email protected]",
16+
"issues": "https://github.com/getkirby/starterkit/issues",
17+
"forum": "https://forum.getkirby.com",
18+
"source": "https://github.com/getkirby/starterkit"
19+
},
20+
"require": {
21+
"php": ">=7.1.0",
22+
"getkirby/cms": "^3.0"
23+
},
24+
"config": {
25+
"optimize-autoloader": true
26+
}
27+
}

content/error/error.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Title: Error

content/home/home.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Title: Home

content/site.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Title: Site Title

index.php

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
require 'kirby/bootstrap.php';
4+
5+
echo (new Kirby)->render();

kirby/.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# This file is for unifying the coding style for different editors and IDEs
2+
# editorconfig.org
3+
4+
# PHP PSR-2 Coding Standards
5+
# http://www.php-fig.org/psr/psr-2/
6+
7+
root = true
8+
9+
[*.php]
10+
charset = utf-8
11+
end_of_line = lf
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
indent_style = space
15+
indent_size = 4

kirby/README.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Kirby
2+
3+
[![Build Status](https://travis-ci.com/k-next/kirby.svg?branch=master)](https://travis-ci.com/k-next/kirby)
4+
[![Coverage Status](https://coveralls.io/repos/github/k-next/kirby/badge.svg?branch=master)](https://coveralls.io/github/k-next/kirby?branch=master)
5+
6+
This is Kirby's core application folder. Get started with one of the following repositories instead:
7+
8+
- [Starterkit](https://github.com/getkirby/starterkit)
9+
- [Plainkit](https://github.com/getkirby/plainkit)
10+
11+
## Bug reports
12+
13+
Please post all bug reports in our issue tracker:
14+
https://github.com/getkirby/kirby/issues
15+
16+
## Feature suggestions
17+
18+
If you want to suggest features or enhancements for Kirby, please use our Ideas repository:
19+
https://github.com/getkirby/ideas/issues
20+
21+
## License
22+
23+
Kirby is not free software. In order to run Kirby on a public server you must purchase a valid license.
24+
- https://getkirby.com/buy
25+
- https://getkirby.com/license

kirby/bootstrap.php

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
/**
4+
* Validate the PHP version to already
5+
* stop at older versions
6+
*/
7+
if (version_compare(phpversion(), '7.1.0', '>') === false) {
8+
die(include __DIR__ . '/views/php.php');
9+
}
10+
11+
if (is_file($autoloader = dirname(__DIR__) . '/vendor/autoload.php')) {
12+
13+
/**
14+
* Always prefer a site-wide Composer autoloader
15+
* if it exists, it means that the user has probably
16+
* installed additional packages
17+
*/
18+
include $autoloader;
19+
} elseif (is_file($autoloader = __DIR__ . '/vendor/autoload.php')) {
20+
21+
/**
22+
* Fall back to the local autoloader if that exists
23+
*/
24+
include $autoloader;
25+
} else {
26+
27+
/**
28+
* If neither one exists, don't bother searching
29+
* it's a custom directory setup and the users need to
30+
* load the autoloader themselves
31+
*/
32+
}
33+
34+
define('DS', '/');

kirby/composer.json

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "getkirby/cms",
3+
"description": "The Kirby 3 core",
4+
"version": "3.0.0-RC-5.0",
5+
"license": "proprietary",
6+
"keywords": ["kirby", "cms", "core"],
7+
"homepage": "https://getkirby.com",
8+
"type": "kirby-cms",
9+
"authors": [
10+
{
11+
"name": "Kirby Team",
12+
"email": "[email protected]",
13+
"homepage": "https://getkirby.com"
14+
}
15+
],
16+
"support": {
17+
"email": "[email protected]",
18+
"issues": "https://github.com/getkirby/kirby/issues",
19+
"forum": "https://forum.getkirby.com",
20+
"source": "https://github.com/getkirby/kirby"
21+
},
22+
"require": {
23+
"php": ">=7.1.0",
24+
"ext-mbstring": "*",
25+
"ext-ctype": "*",
26+
"getkirby/composer-installer": "*",
27+
"mustangostang/spyc": "0.6.*",
28+
"michelf/php-smartypants": "1.8.*",
29+
"claviska/simpleimage": "3.3.*",
30+
"phpmailer/phpmailer": "6.0.*",
31+
"filp/whoops": "2.3.*",
32+
"true/punycode": "2.1.*",
33+
"zendframework/zend-escaper": "2.6.*"
34+
},
35+
"autoload": {
36+
"files": ["config/helpers.php", "config/aliases.php", "config/tests.php"],
37+
"classmap": ["dependencies/"],
38+
"psr-4": {
39+
"Kirby\\": "src/"
40+
}
41+
},
42+
"scripts": {
43+
"analyze": "phpstan analyse src",
44+
"test": "phpunit --stderr --coverage-html=tests/coverage",
45+
"zip": "composer archive --format=zip --file=dist",
46+
"build": "./scripts/build",
47+
"fix": "php-cs-fixer fix ."
48+
},
49+
"config": {
50+
"optimize-autoloader": true
51+
}
52+
}

0 commit comments

Comments
 (0)