Skip to content

Commit febe2f0

Browse files
committed
Merge branch 'release-4.0.0-alpha.1'
2 parents 7a5f529 + ab29dc6 commit febe2f0

File tree

739 files changed

+85327
-18161
lines changed

Some content is hidden

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

739 files changed

+85327
-18161
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
; top-most EditorConfig file
2+
root = true
3+
4+
; Unix-style newlines
5+
[*]
6+
end_of_line = lf
7+
8+
[*.php]
9+
indent_style = tab
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ phpdoc.dist.xml export-ignore
1515
readme.rst
1616

1717
# They don't want all of our tests...
18+
tests/bin/ export-ignore
1819
tests/codeigniter/ export-ignore
1920
tests/travis/ export-ignore
2021

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
---
8+
name: Bug report
9+
about: Help us improve the framework by reporting bugs!
10+
11+
---
12+
13+
**Direction**
14+
We use github issues to track bugs, not for support.
15+
If you have a support question, or a feature request, raise these as threads on our
16+
[forum](https://forum.codeigniter.com/index.php).
17+
18+
**Describe the bug**
19+
A clear and concise description of what the bug is.
20+
21+
**CodeIgniter 4 version**
22+
Which version (and branch, if applicable) the bug is in.
23+
24+
**Affected module(s)**
25+
Which package or class is the bug in, if known.
26+
27+
**Expected behavior, and steps to reproduce if appropriate**
28+
A clear and concise description of what you expected to happen,
29+
and how you got there.
30+
Feel free to include a text/log extract, but use a pastebin facility for any
31+
screenshots you deem necessary.
32+
33+
**Context**
34+
- OS: [e.g. Windows 99]
35+
- Web server [e.g. Apache 1.2.3]
36+
- PHP version [e.g. 6.5.4]

.gitignore

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ $RECYCLE.BIN/
4242
# These should never be under version control,
4343
# as it poses a security risk.
4444
.env
45+
.vagrant
4546
application/.env
47+
Vagrantfile
4648

4749
#-------------------------
4850
# Temporary Files
@@ -55,10 +57,20 @@ writable/logs/*
5557
!writable/logs/index.html
5658
!writable/logs/.htaccess
5759

60+
writable/session/*
61+
!writable/session/index.html
62+
!writable/session/.htaccess
63+
5864
writable/uploads/*
5965
!writable/uploads/index.html
6066
!writable/uploads/.htaccess
6167

68+
writable/debugbar/*
69+
70+
application/Database/Migrations/2*
71+
72+
php_errors.log
73+
6274
#-------------------------
6375
# User Guide Temp Files
6476
#-------------------------
@@ -88,6 +100,9 @@ composer.lock
88100
# Modules Testing
89101
_modules/*
90102

103+
# phpenv local config
104+
.php-version
105+
91106
# Jetbrains editors (PHPStorm, etc)
92107
.idea/
93108
*.iml
@@ -102,10 +117,18 @@ nbactions.xml
102117
nb-configuration.xml
103118
.nb-gradle/
104119

105-
## Sublime Text
120+
# Sublime Text
106121
*.tmlanguage.cache
107122
*.tmPreferences.cache
108123
*.stTheme.cache
109124
*.sublime-workspace
110125
*.sublime-project
111-
/api/
126+
.phpintel
127+
/api/
128+
129+
# Visual Studio Code
130+
.vscode/
131+
132+
/results/
133+
/phpunit*.xml
134+
File renamed without changes.

.php_cs

Lines changed: 0 additions & 65 deletions
This file was deleted.

.travis.yml

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,46 @@
11
language: php
22

33
php:
4-
- 7
4+
- 7.1
5+
- 7.2
6+
- nightly
57

6-
env:
7-
- DB_GROUP=mysqli
8-
- DB_GROUP=postgres
8+
matrix:
9+
fast_finish: true
10+
allow_failures:
11+
- php: nightly
912

10-
script:
11-
- php vendor/bin/phpunit -v
13+
global:
14+
- CI=true
15+
- CI_ENVIRONMENT=testing
16+
17+
# Recommended by Travis support
18+
sudo: required
19+
dist: precise
20+
21+
env:
22+
- DB=mysqli
23+
- DB=postgres
24+
- DB=sqlite
1225

1326
services:
27+
- memcached
1428
- mysql
1529
- postgresql
30+
- redis-server
31+
32+
script:
33+
- php vendor/bin/phpunit -v
1634

1735
before_install:
18-
- if [ $DB_GROUP = 'mysqli' ]; then mysql -e "create database IF NOT EXISTS test;" -uroot; fi
19-
- if [ $DB_GROUP = 'postgres' ]; then psql -c 'create database test;' -U postgres; fi
36+
- mysql -e "CREATE DATABASE IF NOT EXISTS test;" -uroot;
37+
- mysql -e "SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = 'test';" -uroot
38+
- psql -c 'CREATE DATABASE test;' -U postgres
2039

2140
before_script:
22-
- composer install
41+
- echo 'extension = memcached.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
42+
- echo 'extension = redis.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
43+
- composer install --prefer-source
44+
45+
after_success:
46+
- travis_retry php tests/bin/php-coveralls.phar -v

CODE_OF_CONDUCT.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

PULL_REQUEST_TEMPLATE.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Each pull request should address a single issue, and have a meaningful title.
2+
3+
**Description**
4+
Explain what you have changed, and why.
5+
6+
**Checklist:**
7+
- [ ] Securely signed commits
8+
- [ ] Component(s) with PHPdocs
9+
- [ ] Unit testing, with >80% coverage
10+
- [ ] User guide updated
11+
- [ ] Conforms to style guide
12+
13+
---------Remove from here down in your description----------
14+
15+
**Notes**
16+
- Pull requests must be in English
17+
- If the PR solves an issue, reference it with a suitable verb and the issue number
18+
(e.g. fixes <hash>12345
19+
- Unsolicited PRs will be considered, but there is no guarantee of acceptance
20+
- Pull requests should be from a feature branch in the contributor's fork of the repository
21+
to the develop branch of the project repository
22+

README.md

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# CodeIgniter 4 Development
22

3-
[![Build Status](https://travis-ci.org/lonnieezell/CodeIgniter4.svg?branch=develop)](https://travis-ci.org/lonnieezell/CodeIgniter4)
3+
[![Build Status](https://travis-ci.org/bcit-ci/CodeIgniter4.svg?branch=develop)](https://travis-ci.org/bcit-ci/CodeIgniter4)
4+
[![Coverage Status](https://coveralls.io/repos/github/bcit-ci/CodeIgniter4/badge.svg?branch=develop)](https://coveralls.io/github/bcit-ci/CodeIgniter4?branch=develop)
45
<br>
5-
[![StyleCI](https://styleci.io/repos/41463886/shield)](https://styleci.io/repos/41463886)
66

77
## What is CodeIgniter?
88
CodeIgniter is a PHP full-stack web framework that is light, fast, flexible, and secure.
@@ -16,6 +16,22 @@ while still keeping as many of the things intact that has made people love the f
1616

1717
More information about the plans for version 4 can be found in [the announcement](http://forum.codeigniter.com/thread-62615.html) on the forums.
1818

19+
### Documentation
20+
21+
The current documentation can be found [here](https://bcit-ci.github.io/CodeIgniter4/). As with the rest of the framework, it is currently a work in progress, and will see changes over time to structure, explanations, etc.
22+
23+
## Important Change with index.php
24+
25+
index.php is no longer in the root of the project! It has been moved inside the *public* folder,
26+
for better security and separation of components.
27+
28+
This means that you should configure your web server to "point" to your project's *public* folder, and
29+
not to the project root. A better practice would be to configure a virtual host to point there. A poor practice would be to point your web server to the project root and expect to enter *public/...*, as the rest of your logic and the
30+
framework are exposed.
31+
32+
**Please** read the user guide for a better explanation of how CI4 works!
33+
The user guide updating and deployment is a bit awkward at the moment, but we are working on it!
34+
1935
## Repository Management
2036
We use Github issues to track **BUGS** and to track approved **DEVELOPMENT** work packages.
2137
We use our [forum](http://forum.codeigniter.com) to provide SUPPORT and to discuss
@@ -39,14 +55,21 @@ Remember that some components that were part of CodeIgniter 3 are being moved
3955
to optional packages, with their own repository.
4056

4157
## Contributing
42-
We are not accepting contributions from the public until a stable enough base has been formed,
43-
and our plans fleshed out and things settle down a little bit.
44-
At that point, we will welcome your comments and help creating the best framework for our community.
58+
We **are** accepting contributions from the community, specifically those identified as part of phase 2.
59+
60+
We will try to manage the process somewhat, by adding a "Help wanted" label to those that we are
61+
specifically interested in at any point in time. Join the discussion for those issues, and let us know
62+
if you want to take the lead for one of them.
63+
64+
We are not looking for out-of-scope contributions, only those that would be considered part of our controlled evolution!
4565

46-
Please read the *Contributing to CodeIgniter* section in the user guide
66+
Please read the [*Contributing to CodeIgniter*](https://github.com/bcit-ci/CodeIgniter4/blob/develop/contributing.md) section in the user guide
4767

4868
## Server Requirements
49-
PHP version 7 or higher is required.
69+
PHP version 7.1 or higher is required, with the following extensions installed:
70+
71+
- intl
72+
5073

5174
## Running CodeIgniter Tests
52-
Information on running CodeIgniter test suite can be found in the README.md file in the tests directory.
75+
Information on running CodeIgniter test suite can be found in the [README.md](tests/README.md) file in the tests directory.

0 commit comments

Comments
 (0)