A platform to create documentation/wiki content built with PHP & Laravel
Go to file
Dan Brown 4c7d6420ee
Some checks failed
analyse-php / build (push) Has been cancelled
lint-js / build (push) Has been cancelled
lint-php / build (push) Has been cancelled
test-js / build (push) Has been cancelled
test-migrations / build (8.2) (push) Has been cancelled
test-migrations / build (8.3) (push) Has been cancelled
test-migrations / build (8.4) (push) Has been cancelled
test-php / build (8.2) (push) Has been cancelled
test-php / build (8.3) (push) Has been cancelled
test-php / build (8.4) (push) Has been cancelled
DB: Aligned entity structure to a common table
As per PR #5800

* DB: Planned out new entity table format via migrations

* DB: Created entity migration logic

Made some other tweaks/fixes while testing.

* DB: Added change of entity relation columns to suit new entities table

* DB: Got most view queries working for new structure

* Entities: Started logic change to new structure

Updated base entity class, and worked through BaseRepo.
Need to go through other repos next.

Removed a couple of redundant interfaces as part of this since we can
move the logic onto the shared ContainerData model as needed.

* Entities: Been through repos to update for new format

* Entities: Updated repos to act on refreshed clones

Changes to core entity models are now done on clones to ensure clean
state before save, and those clones are returned back if changes are
needed after that action.

* Entities: Updated model classes & relations for changes

* Entities: Changed from *Data to a common "contents" system

Added smart loading from builder instances which should hydrate with
"contents()" loaded via join, while keeping the core model original.

* Entities: Moved entity description/covers to own non-model classes

Added back some interfaces.

* Entities: Removed use of contents system for data access

* Entities: Got most queries back to working order

* Entities: Reverted back to data from contents, fixed various issues

* Entities: Started addressing issues from tests

* Entities: Addressed further tests/issues

* Entities: Been through tests to get all passing in dev

Fixed issues and needed test changes along the way.

* Entities: Addressed phpstan errors

* Entities: Reviewed TODO notes

* Entities: Ensured book/shelf relation data removed on destroy

* Entities: Been through API responses & adjusted field visibility

* Entities: Added type index to massively improve query speed
2025-10-18 13:14:30 +01:00
.github Updated translator & dependency attribution before release v25.07.3 2025-10-05 15:26:37 +01:00
app DB: Aligned entity structure to a common table 2025-10-18 13:14:30 +01:00
bootstrap Played around with a new app structure 2023-05-17 17:56:55 +01:00
database DB: Aligned entity structure to a common table 2025-10-18 13:14:30 +01:00
dev DB: Aligned entity structure to a common table 2025-10-18 13:14:30 +01:00
lang Updated translations with latest Crowdin changes (#5786) 2025-10-05 15:22:37 +01:00
public Framework: Performed Laravel 11 upgrade guide steps 2025-01-11 11:14:49 +00:00
resources DB: Aligned entity structure to a common table 2025-10-18 13:14:30 +01:00
routes ZIP Imports: Added API examples, finished testing 2025-07-18 16:19:14 +01:00
storage Added system cli, and created backups directory 2023-04-28 19:08:45 +01:00
tests DB: Aligned entity structure to a common table 2025-10-18 13:14:30 +01:00
themes Added view override support 2017-12-31 16:25:58 +00:00
.env.example Mail Config: Updated how TLS is configured 2023-06-24 11:32:07 +01:00
.env.example.complete Timezones: Seperated out store & display timezones to two options 2025-09-04 15:06:58 +01:00
.gitattributes Initial commit 2015-07-12 20:01:42 +01:00
.gitignore System CLI: Updated with new version 2025-03-11 23:52:01 +00:00
artisan Re-aligned init files with Laravel default 2020-10-31 23:05:48 +00:00
bookstack-system-cli CLI: Updated CLI with fixes 2025-05-17 11:47:33 +01:00
composer.json Packages: Updated predis 2025-08-30 11:47:22 +01:00
composer.lock Merge branch 'v25-07' into development 2025-10-05 15:28:29 +01:00
crowdin.yml Followed Laravel 9 update steps and file changes 2023-02-06 16:58:29 +00:00
docker-compose.yml Dev compose: Set image versions, removed unsupported mysql flag 2024-07-17 11:13:39 +01:00
eslint.config.mjs JS: Upated npm deps, upgraded eslint, new eslint config 2025-02-23 11:55:09 +00:00
jest.config.ts Lexical: Added testing for some added shortcuts 2024-12-16 16:27:44 +00:00
LICENSE Meta: Updated sponsor list, licence year and readme 2025-02-05 21:17:48 +00:00
package-lock.json Packages: Updated npm packages 2025-08-30 22:18:09 +01:00
package.json Packages: Updated npm packages 2025-08-30 22:18:09 +01:00
phpcs.xml Maintenance: Reached PHPstan level 2 2025-09-02 16:02:52 +01:00
phpstan.neon.dist Maintenance: Updated larastan target level, fixed issues from tests 2025-09-03 15:42:50 +01:00
phpunit.xml Timezones: Updated date displays to use consistent formats 2025-09-04 16:11:35 +01:00
readme.md Sponsors: Updated diagrams.net sponsor level 2025-09-11 18:58:26 +01:00
tsconfig.json TypeScript: Updated compile target, addressed issues 2025-07-23 15:41:55 +01:00
version Meta: Updated dev version and sponsor link 2025-02-11 15:52:35 +00:00

BookStack

GitHub release license Crowdin Build Status Lint Status php-metrics
Alternate Source Repo Stats Discord Mastodon
PeerTube YouTube

A platform for storing and organising information and documentation. Details for BookStack can be found on the official website at https://www.bookstackapp.com/.

📚 Project Definition

BookStack is an opinionated documentation platform that provides a pleasant and simple out-of-the-box experience. New users to an instance should find the experience intuitive and only basic word-processing skills should be required to get involved in creating content on BookStack. The platform should provide advanced power features to those that desire it, but they should not interfere with the core simple user experience.

BookStack is not designed as an extensible platform to be used for purposes that differ to the statement above.

In regard to development philosophy, BookStack has a relaxed, open & positive approach. We aim to slowly yet continuously evolve the platform while providing a stable & easy upgrade path.

You can read more about the project and its origins in our FAQ here.

🌟 Project Sponsors

Shown below are our bronze, silver and gold project sponsors. Big thanks to these companies for supporting the project. Note: The listed services are not tested, vetted nor supported by the official BookStack project in any manner.

Project donation details - GitHub Sponsors Page - Ko-fi Page

Gold Sponsor

Federated.computer
Diagrams.net

Bronze Sponsors

Cloudabove Practicali
Stellar Hosted NETWAYS Web Services
Schroeck IT Consulting Practinet
Route4Me - Route Optimizer and Route Planner Software phamos
SiteSpeakAI

🛠️ Development & Testing

Please see our development docs for full details regarding work on the BookStack source code.

If you're just looking to customize or extend your own BookStack instance, take a look at our Hacking BookStack documentation page for details on various options to achieve this without altering the BookStack source code.

Details about BookStack's versioning scheme and the general release process can be found here.

🌎 Translations

Translations for text within BookStack are managed through the BookStack project on Crowdin. Some strings have colon-prefixed variables such as :userName. Leave these values as they are as they will be replaced at run-time.

Please use Crowdin to contribute translations instead of opening a pull request. The translations within the working codebase can be out-of-date, and merging via code can cause conflicts & sync issues. If for some reason you can't use Crowdin feel free to open an issue to discuss alternative options.

If you'd like a new language to be added to Crowdin, for you to be able to provide translations for, please open a new issue here.

Please note, translations in BookStack are provided to the "Crowdin Global Translation Memory" which helps BookStack and other projects with finding translations. If you are not happy with contributing to this then providing translations to BookStack, even manually via GitHub, is not advised.

🎁 Contributing, Issues & Pull Requests

Feel free to create issues to request new features or to report bugs & problems. Just please follow the template given when creating the issue.

Pull requests are welcome but, unless it's a small tweak, it may be best to open the pull request early or create an issue for your intended change to discuss how it will fit into the project and plan out the merge. Just because a feature request exists, or is tagged, does not mean that feature would be accepted into the core project.

Pull requests should be created from the development branch since they will be merged back into development once done. Please do not build from or request a merge into the release branch as this is only for publishing releases. If you are looking to alter CSS or JavaScript content please edit the source files found in resources/. Any CSS or JS files within public are built from these source files and therefore should not be edited directly.

The project's code of conduct can be found here.

🔒 Security

Security information for administering a BookStack instance can be found on the documentation site here.

If you'd like to be notified of new potential security concerns you can sign-up to the BookStack security mailing list.

If you would like to report a security concern, details of doing so can be found here.

Accessibility

We want BookStack to remain accessible to as many people as possible. We aim for at least WCAG 2.1 Level A standards where possible although we do not strictly test this upon each release. If you come across any accessibility issues please feel free to open an issue.

🖥️ Website, Docs & Blog

The website which contains the project docs & blog can be found in the BookStackApp/website repo.

⚖️ License

The BookStack source is provided under the MIT License.

The libraries used by, and included with, BookStack are provided under their own licenses and copyright. The licenses for many of our core dependencies can be found in the attribution list below but this is not an exhaustive list of all projects used within BookStack.

👪 Attribution

The great people that have worked to build and improve BookStack can be seen here. The wonderful people that have provided translations, either through GitHub or via Crowdin can be seen here.

Below are the great open-source projects used to help build BookStack. Note: This is not an exhaustive list of all libraries and projects that would be used in an active BookStack instance.

For a detailed breakdown of the JavaScript & PHP projects imported & used via NPM & composer package managers, along with their licenses, please see the dev/licensing/js-library-licenses.txt and dev/licensing/php-library-licenses.txt files.