您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # CodeIgniter 4 Application Starter
  2. ## What is CodeIgniter?
  3. CodeIgniter is a PHP full-stack web framework that is light, fast, flexible and secure.
  4. More information can be found at the [official site](http://codeigniter.com).
  5. This repository holds a composer-installable app starter.
  6. It has been built from the
  7. [development repository](https://github.com/codeigniter4/CodeIgniter4).
  8. More information about the plans for version 4 can be found in [the announcement](http://forum.codeigniter.com/thread-62615.html) on the forums.
  9. The user guide corresponding to this version of the framework can be found
  10. [here](https://codeigniter4.github.io/userguide/).
  11. ## Installation & updates
  12. `composer create-project codeigniter4/appstarter` then `composer update` whenever
  13. there is a new release of the framework.
  14. When updating, check the release notes to see if there are any changes you might need to apply
  15. to your `app` folder. The affected files can be copied or merged from
  16. `vendor/codeigniter4/framework/app`.
  17. ## Setup
  18. Copy `env` to `.env` and tailor for your app, specifically the baseURL
  19. and any database settings.
  20. ## Important Change with index.php
  21. `index.php` is no longer in the root of the project! It has been moved inside the *public* folder,
  22. for better security and separation of components.
  23. This means that you should configure your web server to "point" to your project's *public* folder, and
  24. 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
  25. framework are exposed.
  26. **Please** read the user guide for a better explanation of how CI4 works!
  27. ## Repository Management
  28. We use GitHub issues, in our main repository, to track **BUGS** and to track approved **DEVELOPMENT** work packages.
  29. We use our [forum](http://forum.codeigniter.com) to provide SUPPORT and to discuss
  30. FEATURE REQUESTS.
  31. This repository is a "distribution" one, built by our release preparation script.
  32. Problems with it can be raised on our forum, or as issues in the main repository.
  33. ## Server Requirements
  34. PHP version 7.4 or higher is required, with the following extensions installed:
  35. - [intl](http://php.net/manual/en/intl.requirements.php)
  36. - [libcurl](http://php.net/manual/en/curl.requirements.php) if you plan to use the HTTP\CURLRequest library
  37. Additionally, make sure that the following extensions are enabled in your PHP:
  38. - json (enabled by default - don't turn it off)
  39. - [mbstring](http://php.net/manual/en/mbstring.installation.php)
  40. - [mysqlnd](http://php.net/manual/en/mysqlnd.install.php)
  41. - xml (enabled by default - don't turn it off)