repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Facades/Theme.php
app/Facades/Theme.php
<?php namespace BookStack\Facades; use BookStack\Theming\ThemeService; use Illuminate\Support\Facades\Facade; class Theme extends Facade { /** * Get the registered name of the component. * * @return string */ protected static function getFacadeAccessor() { return ThemeService:...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Facades/Activity.php
app/Facades/Activity.php
<?php namespace BookStack\Facades; use Illuminate\Support\Facades\Facade; /** * @mixin \BookStack\Activity\Tools\ActivityLogger */ class Activity extends Facade { /** * Get the registered name of the component. * * @return string */ protected static function getFacadeAccessor() { ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Console/Kernel.php
app/Console/Kernel.php
<?php namespace BookStack\Console; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; class Kernel extends ConsoleKernel { /** * Define the application's command schedule. * * @param \Illuminate\Console\Scheduling\Schedule $schedule * *...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Console/Commands/CreateAdminCommand.php
app/Console/Commands/CreateAdminCommand.php
<?php namespace BookStack\Console\Commands; use BookStack\Users\Models\Role; use BookStack\Users\UserRepo; use Illuminate\Console\Command; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Str; use Illuminate\Validation\Rules\Password; class CreateAdminCommand extends Command { /** * The name...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Console/Commands/ClearViewsCommand.php
app/Console/Commands/ClearViewsCommand.php
<?php namespace BookStack\Console\Commands; use BookStack\Activity\Models\View; use Illuminate\Console\Command; class ClearViewsCommand extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'bookstack:clear-views'; /** *...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Console/Commands/UpgradeDatabaseEncodingCommand.php
app/Console/Commands/UpgradeDatabaseEncodingCommand.php
<?php namespace BookStack\Console\Commands; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; class UpgradeDatabaseEncodingCommand extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'bookstack:db-utf8mb4 ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Console/Commands/CopyShelfPermissionsCommand.php
app/Console/Commands/CopyShelfPermissionsCommand.php
<?php namespace BookStack\Console\Commands; use BookStack\Entities\Queries\BookshelfQueries; use BookStack\Entities\Tools\PermissionsUpdater; use Illuminate\Console\Command; class CopyShelfPermissionsCommand extends Command { /** * The name and signature of the console command. * * @var string ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Console/Commands/RegenerateReferencesCommand.php
app/Console/Commands/RegenerateReferencesCommand.php
<?php namespace BookStack\Console\Commands; use BookStack\References\ReferenceStore; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; class RegenerateReferencesCommand extends Command { /** * The name and signature of the console command. * * @var string */ protected $si...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Console/Commands/RegenerateSearchCommand.php
app/Console/Commands/RegenerateSearchCommand.php
<?php namespace BookStack\Console\Commands; use BookStack\Entities\Models\Entity; use BookStack\Search\SearchIndex; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; class RegenerateSearchCommand extends Command { /** * The name and signature of the console command. * * @var strin...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Console/Commands/RegeneratePermissionsCommand.php
app/Console/Commands/RegeneratePermissionsCommand.php
<?php namespace BookStack\Console\Commands; use BookStack\Permissions\JointPermissionBuilder; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; class RegeneratePermissionsCommand extends Command { /** * The name and signature of the console command. * * @var string */ pro...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Console/Commands/ClearRevisionsCommand.php
app/Console/Commands/ClearRevisionsCommand.php
<?php namespace BookStack\Console\Commands; use BookStack\Entities\Models\PageRevision; use Illuminate\Console\Command; class ClearRevisionsCommand extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'bookstack:clear-revisions ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Console/Commands/ClearActivityCommand.php
app/Console/Commands/ClearActivityCommand.php
<?php namespace BookStack\Console\Commands; use BookStack\Activity\Models\Activity; use Illuminate\Console\Command; class ClearActivityCommand extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'bookstack:clear-activity'; ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Console/Commands/AssignSortRuleCommand.php
app/Console/Commands/AssignSortRuleCommand.php
<?php namespace BookStack\Console\Commands; use BookStack\Entities\Models\Book; use BookStack\Sorting\BookSorter; use BookStack\Sorting\SortRule; use Illuminate\Console\Command; class AssignSortRuleCommand extends Command { /** * The name and signature of the console command. * * @var string ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Console/Commands/UpdateUrlCommand.php
app/Console/Commands/UpdateUrlCommand.php
<?php namespace BookStack\Console\Commands; use Illuminate\Console\Command; use Illuminate\Database\Connection; class UpdateUrlCommand extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'bookstack:update-url ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Console/Commands/CleanupImagesCommand.php
app/Console/Commands/CleanupImagesCommand.php
<?php namespace BookStack\Console\Commands; use BookStack\Uploads\ImageService; use Illuminate\Console\Command; use Symfony\Component\Console\Output\OutputInterface; class CleanupImagesCommand extends Command { /** * The name and signature of the console command. * * @var string */ protec...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Console/Commands/HandlesSingleUser.php
app/Console/Commands/HandlesSingleUser.php
<?php namespace BookStack\Console\Commands; use BookStack\Users\Models\User; use Exception; use Illuminate\Console\Command; /** * @mixin Command */ trait HandlesSingleUser { /** * Fetch a user provided to this command. * Expects the command to accept 'id' and 'email' options. * @throws Exception...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Console/Commands/RefreshAvatarCommand.php
app/Console/Commands/RefreshAvatarCommand.php
<?php namespace BookStack\Console\Commands; use BookStack\Users\Models\User; use Exception; use Illuminate\Console\Command; use BookStack\Uploads\UserAvatars; class RefreshAvatarCommand extends Command { use HandlesSingleUser; /** * The name and signature of the console command. * * @var stri...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Console/Commands/ResetMfaCommand.php
app/Console/Commands/ResetMfaCommand.php
<?php namespace BookStack\Console\Commands; use Exception; use Illuminate\Console\Command; class ResetMfaCommand extends Command { use HandlesSingleUser; /** * The name and signature of the console command. * * @var string */ protected $signature = 'bookstack:reset-mfa ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Console/Commands/DeleteUsersCommand.php
app/Console/Commands/DeleteUsersCommand.php
<?php namespace BookStack\Console\Commands; use BookStack\Users\Models\User; use BookStack\Users\UserRepo; use Illuminate\Console\Command; class DeleteUsersCommand extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'bookstack:d...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Util/HtmlDocument.php
app/Util/HtmlDocument.php
<?php namespace BookStack\Util; use DOMDocument; use DOMElement; use DOMNode; use DOMNodeList; use DOMText; use DOMXPath; /** * HtmlDocument is a thin wrapper around DOMDocument built * specifically for loading, querying and generating HTML content. */ class HtmlDocument { protected DOMDocument $document; ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Util/WebSafeMimeSniffer.php
app/Util/WebSafeMimeSniffer.php
<?php namespace BookStack\Util; use finfo; /** * Helper class to sniff out the mime-type of content resulting in * a mime-type that's relatively safe to serve to a browser. */ class WebSafeMimeSniffer { /** * @var string[] */ protected array $safeMimes = [ 'application/json', 'ap...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Util/CspService.php
app/Util/CspService.php
<?php namespace BookStack\Util; use Illuminate\Support\Str; class CspService { protected string $nonce; public function __construct(string $nonce = '') { $this->nonce = $nonce ?: Str::random(24); } /** * Get the nonce value for CSP. */ public function getNonce(): string ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Util/DatabaseTransaction.php
app/Util/DatabaseTransaction.php
<?php namespace BookStack\Util; use Closure; use Illuminate\Support\Facades\DB; use Throwable; /** * Run the given code within a database transactions. * Wraps Laravel's own transaction method, but sets a specific runtime isolation method. * This sets a session level since this won't cause issues if already withi...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Util/FilePathNormalizer.php
app/Util/FilePathNormalizer.php
<?php namespace BookStack\Util; use League\Flysystem\WhitespacePathNormalizer; /** * Utility to normalize (potentially) user provided file paths * to avoid things like directory traversal. */ class FilePathNormalizer { public static function normalize(string $path): string { return (new Whitespace...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Util/OutOfMemoryHandler.php
app/Util/OutOfMemoryHandler.php
<?php namespace BookStack\Util; use BookStack\Exceptions\Handler; use Illuminate\Contracts\Debug\ExceptionHandler; /** * Create a handler which runs the provided actions upon an * out-of-memory event. This allows reserving of memory to allow * the desired action to run as needed. * * Essentially provides a wrap...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Util/SimpleListOptions.php
app/Util/SimpleListOptions.php
<?php namespace BookStack\Util; use Illuminate\Http\Request; /** * Handled options commonly used for item lists within the system, providing a standard * model for handling and validating sort, order and search options. */ class SimpleListOptions { protected string $typeKey; protected string $sort; pr...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Util/HtmlNonceApplicator.php
app/Util/HtmlNonceApplicator.php
<?php namespace BookStack\Util; use DOMElement; use DOMNodeList; class HtmlNonceApplicator { protected static string $placeholder = '[CSP_NONCE_VALUE]'; /** * Prepare the given HTML content with nonce attributes including a placeholder * value which we can target later. */ public static f...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Util/SsrUrlValidator.php
app/Util/SsrUrlValidator.php
<?php namespace BookStack\Util; use BookStack\Exceptions\HttpFetchException; /** * Validate the host we're connecting to when making a server-side-request. * Will use the given hosts config if given during construction otherwise * will look to the app configured config. */ class SsrUrlValidator { protected s...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Util/SvgIcon.php
app/Util/SvgIcon.php
<?php namespace BookStack\Util; class SvgIcon { public function __construct( protected string $name, protected array $attrs = [] ) { } public function toHtml(): string { $attrs = array_merge([ 'class' => 'svg-icon', 'data-icon' => $this->name, ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Util/DateFormatter.php
app/Util/DateFormatter.php
<?php namespace BookStack\Util; use Carbon\Carbon; use Carbon\CarbonInterface; class DateFormatter { public function __construct( protected string $displayTimezone, ) { } public function absolute(Carbon $date): string { $withDisplayTimezone = $date->clone()->setTimezone($this->di...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Util/HtmlContentFilter.php
app/Util/HtmlContentFilter.php
<?php namespace BookStack\Util; use DOMAttr; use DOMElement; use DOMNodeList; class HtmlContentFilter { /** * Remove all the script elements from the given HTML document. */ public static function removeScriptsFromDocument(HtmlDocument $doc) { // Remove standard script tags $scr...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Util/HtmlDescriptionFilter.php
app/Util/HtmlDescriptionFilter.php
<?php namespace BookStack\Util; use DOMAttr; use DOMElement; use DOMNode; /** * Filter to ensure HTML input for description content remains simple and * to a limited allow-list of elements and attributes. * More for consistency and to prevent nuisance rather than for security * (which would be done via a separat...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Config/exports.php
app/Config/exports.php
<?php /** * Export configuration options. * * Changes to these config files are not supported by BookStack and may break upon updates. * Configuration should be altered via the `.env` file or environment variables. * Do not edit this file unless you're happy to maintain any changes yourself. */ $snappyPaperSize...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Config/app.php
app/Config/app.php
<?php /** * Global app configuration options. * * Changes to these config files are not supported by BookStack and may break upon updates. * Configuration should be altered via the `.env` file or environment variables. * Do not edit this file unless you're happy to maintain any changes yourself. */ use Illumina...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Config/clockwork.php
app/Config/clockwork.php
<?php return [ /* |------------------------------------------------------------------------------------------------------------------ | Enable Clockwork |------------------------------------------------------------------------------------------------------------------ | | Clockwork is enabled ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Config/logging.php
app/Config/logging.php
<?php use Monolog\Formatter\LineFormatter; use Monolog\Handler\ErrorLogHandler; use Monolog\Handler\NullHandler; use Monolog\Handler\StreamHandler; use Monolog\Processor\PsrLogMessageProcessor; /** * Logging configuration options. * * Changes to these config files are not supported by BookStack and may break upon ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Config/session.php
app/Config/session.php
<?php use Illuminate\Support\Str; /** * Session configuration options. * * Changes to these config files are not supported by BookStack and may break upon updates. * Configuration should be altered via the `.env` file or environment variables. * Do not edit this file unless you're happy to maintain any changes y...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Config/queue.php
app/Config/queue.php
<?php /** * Queue configuration options. * * Changes to these config files are not supported by BookStack and may break upon updates. * Configuration should be altered via the `.env` file or environment variables. * Do not edit this file unless you're happy to maintain any changes yourself. */ return [ // ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Config/setting-defaults.php
app/Config/setting-defaults.php
<?php /** * Default system settings. * * Changes to these config files are not supported by BookStack and may break upon updates. * Configuration should be altered via the `.env` file or environment variables. * Do not edit this file unless you're happy to maintain any changes yourself. */ return [ 'app-na...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Config/debugbar.php
app/Config/debugbar.php
<?php /** * Debugbar Configuration Options. * * Changes to these config files are not supported by BookStack and may break upon updates. * Configuration should be altered via the `.env` file or environment variables. * Do not edit this file unless you're happy to maintain any changes yourself. */ return [ ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Config/cache.php
app/Config/cache.php
<?php use Illuminate\Support\Str; /** * Caching configuration options. * * Changes to these config files are not supported by BookStack and may break upon updates. * Configuration should be altered via the `.env` file or environment variables. * Do not edit this file unless you're happy to maintain any changes y...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Config/hashing.php
app/Config/hashing.php
<?php /** * Hashing configuration options. * * Changes to these config files are not supported by BookStack and may break upon updates. * Configuration should be altered via the `.env` file or environment variables. * Do not edit this file unless you're happy to maintain any changes yourself. */ return [ /...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Config/view.php
app/Config/view.php
<?php /** * View configuration options. * * Changes to these config files are not supported by BookStack and may break upon updates. * Configuration should be altered via the `.env` file or environment variables. * Do not edit this file unless you're happy to maintain any changes yourself. */ // Join up possibl...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Config/database.php
app/Config/database.php
<?php /** * Database configuration options. * * Changes to these config files are not supported by BookStack and may break upon updates. * Configuration should be altered via the `.env` file or environment variables. * Do not edit this file unless you're happy to maintain any changes yourself. */ // REDIS // Sp...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Config/services.php
app/Config/services.php
<?php /** * Third party service configuration options. * * Changes to these config files are not supported by BookStack and may break upon updates. * Configuration should be altered via the `.env` file or environment variables. * Do not edit this file unless you're happy to maintain any changes yourself. */ ret...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Config/filesystems.php
app/Config/filesystems.php
<?php /** * Filesystem configuration options. * * Changes to these config files are not supported by BookStack and may break upon updates. * Configuration should be altered via the `.env` file or environment variables. * Do not edit this file unless you're happy to maintain any changes yourself. */ return [ ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Config/saml2.php
app/Config/saml2.php
<?php $SAML2_IDP_AUTHNCONTEXT = env('SAML2_IDP_AUTHNCONTEXT', true); $SAML2_SP_x509 = env('SAML2_SP_x509', false); return [ // Display name, shown to users, for SAML2 option 'name' => env('SAML2_NAME', 'SSO'), // Dump user details after a login request for debugging purposes 'dump_user_details' => e...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Config/mail.php
app/Config/mail.php
<?php /** * Mail configuration options. * * Changes to these config files are not supported by BookStack and may break upon updates. * Configuration should be altered via the `.env` file or environment variables. * Do not edit this file unless you're happy to maintain any changes yourself. */ // Configured mail...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Config/api.php
app/Config/api.php
<?php /** * API configuration options. * * Changes to these config files are not supported by BookStack and may break upon updates. * Configuration should be altered via the `.env` file or environment variables. * Do not edit this file unless you're happy to maintain any changes yourself. */ return [ // Th...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Config/oidc.php
app/Config/oidc.php
<?php return [ // Display name, shown to users, for OpenId option 'name' => env('OIDC_NAME', 'SSO'), // Dump user details after a login request for debugging purposes 'dump_user_details' => env('OIDC_DUMP_USER_DETAILS', false), // Claim, within an OpenId token, to find the user's display name ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Config/auth.php
app/Config/auth.php
<?php /** * Authentication configuration options. * * Changes to these config files are not supported by BookStack and may break upon updates. * Configuration should be altered via the `.env` file or environment variables. * Do not edit this file unless you're happy to maintain any changes yourself. */ return [...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Api/ApiEntityListFormatter.php
app/Api/ApiEntityListFormatter.php
<?php namespace BookStack\Api; use BookStack\Entities\Models\BookChild; use BookStack\Entities\Models\Entity; use BookStack\Entities\Models\Page; class ApiEntityListFormatter { /** * The list to be formatted. * @var Entity[] */ protected array $list = []; /** * The fields to show in ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Api/ApiDocsGenerator.php
app/Api/ApiDocsGenerator.php
<?php namespace BookStack\Api; use BookStack\App\AppVersion; use BookStack\Http\ApiController; use Exception; use Illuminate\Contracts\Container\BindingResolutionException; use Illuminate\Support\Collection; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Route; use Illuminate\Support\Str; use Il...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Api/ApiToken.php
app/Api/ApiToken.php
<?php namespace BookStack\Api; use BookStack\Activity\Models\Loggable; use BookStack\Users\Models\User; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Support\Carbon; /** * Class ApiToken. * * @pro...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Api/ListingResponseBuilder.php
app/Api/ListingResponseBuilder.php
<?php namespace BookStack\Api; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; class ListingResponseBuilder { protected Builder $query; protected Request $request; ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Api/ApiDocsController.php
app/Api/ApiDocsController.php
<?php namespace BookStack\Api; use BookStack\Http\ApiController; class ApiDocsController extends ApiController { /** * Load the docs page for the API. */ public function display() { $docs = ApiDocsGenerator::generateConsideringCache(); $this->setPageTitle(trans('settings.users_a...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Api/UserApiTokenController.php
app/Api/UserApiTokenController.php
<?php namespace BookStack\Api; use BookStack\Activity\ActivityType; use BookStack\Http\Controller; use BookStack\Permissions\Permission; use BookStack\Users\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Str; class UserApiTokenController extends Controller { ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Api/ApiTokenGuard.php
app/Api/ApiTokenGuard.php
<?php namespace BookStack\Api; use BookStack\Access\LoginService; use BookStack\Exceptions\ApiAuthException; use BookStack\Permissions\Permission; use Illuminate\Auth\GuardHelpers; use Illuminate\Contracts\Auth\Authenticatable; use Illuminate\Contracts\Auth\Guard; use Illuminate\Support\Carbon; use Illuminate\Support...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Search/SearchResultsFormatter.php
app/Search/SearchResultsFormatter.php
<?php namespace BookStack\Search; use BookStack\Activity\Models\Tag; use BookStack\Entities\Models\Entity; use Illuminate\Support\HtmlString; class SearchResultsFormatter { /** * For the given array of entities, Prepare the models to be shown in search result * output. This sets a series of additional ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Search/SearchOptions.php
app/Search/SearchOptions.php
<?php namespace BookStack\Search; use BookStack\Search\Options\ExactSearchOption; use BookStack\Search\Options\FilterSearchOption; use BookStack\Search\Options\SearchOption; use BookStack\Search\Options\TagSearchOption; use BookStack\Search\Options\TermSearchOption; use Illuminate\Http\Request; class SearchOptions {...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Search/SearchApiController.php
app/Search/SearchApiController.php
<?php declare(strict_types=1); namespace BookStack\Search; use BookStack\Api\ApiEntityListFormatter; use BookStack\Entities\Models\Entity; use BookStack\Http\ApiController; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; class SearchApiController extends ApiController { protected array $rules = [...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Search/SearchTerm.php
app/Search/SearchTerm.php
<?php namespace BookStack\Search; use BookStack\App\Model; class SearchTerm extends Model { protected $fillable = ['term', 'entity_id', 'entity_type', 'score']; public $timestamps = false; /** * Get the entity that this term belongs to. * * @return \Illuminate\Database\Eloquent\Relations\...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Search/SearchOptionSet.php
app/Search/SearchOptionSet.php
<?php namespace BookStack\Search; use BookStack\Search\Options\SearchOption; /** * @template T of SearchOption */ class SearchOptionSet { /** * @var T[] */ protected array $options = []; /** * @param T[] $options */ public function __construct(array $options = []) { ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Search/SearchIndex.php
app/Search/SearchIndex.php
<?php namespace BookStack\Search; use BookStack\Activity\Models\Tag; use BookStack\Entities\EntityProvider; use BookStack\Entities\Models\Entity; use BookStack\Entities\Models\Page; use BookStack\Util\HtmlDocument; use DOMNode; use Illuminate\Database\Eloquent\Builder; use Illuminate\Support\Collection; class Search...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Search/SearchRunner.php
app/Search/SearchRunner.php
<?php namespace BookStack\Search; use BookStack\Entities\EntityProvider; use BookStack\Entities\Models\Entity; use BookStack\Entities\Queries\EntityQueries; use BookStack\Entities\Tools\EntityHydrator; use BookStack\Permissions\PermissionApplicator; use BookStack\Search\Options\TagSearchOption; use BookStack\Users\Mo...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Search/SearchController.php
app/Search/SearchController.php
<?php namespace BookStack\Search; use BookStack\Entities\Queries\PageQueries; use BookStack\Entities\Queries\QueryPopular; use BookStack\Entities\Tools\SiblingFetcher; use BookStack\Http\Controller; use Illuminate\Http\Request; use Illuminate\Pagination\LengthAwarePaginator; class SearchController extends Controller...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Search/SearchTextTokenizer.php
app/Search/SearchTextTokenizer.php
<?php namespace BookStack\Search; /** * A custom text tokenizer which records & provides insight needed for our search indexing. * We used to use basic strtok() but this class does the following which that lacked: * - Tracks and provides the current/previous delimiter that we've stopped at. * - Returns empty toke...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Search/Options/SearchOption.php
app/Search/Options/SearchOption.php
<?php namespace BookStack\Search\Options; abstract class SearchOption { public function __construct( public string $value, public bool $negated = false, ) { } /** * Get the key used for this option when used in a map. * Null indicates to use the index of the containing array...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Search/Options/ExactSearchOption.php
app/Search/Options/ExactSearchOption.php
<?php namespace BookStack\Search\Options; class ExactSearchOption extends SearchOption { public function toString(): string { $escaped = str_replace('\\', '\\\\', $this->value); $escaped = str_replace('"', '\"', $escaped); return ($this->negated ? '-' : '') . '"' . $escaped . '"'; ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Search/Options/FilterSearchOption.php
app/Search/Options/FilterSearchOption.php
<?php namespace BookStack\Search\Options; class FilterSearchOption extends SearchOption { protected string $name; public function __construct( string $value, string $name, bool $negated = false, ) { parent::__construct($value, $negated); $this->name = $name; } ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Search/Options/TagSearchOption.php
app/Search/Options/TagSearchOption.php
<?php namespace BookStack\Search\Options; class TagSearchOption extends SearchOption { /** * Acceptable operators to be used within a tag search option. * * @var string[] */ protected array $queryOperators = ['<=', '>=', '=', '<', '>', 'like', '!=']; public function toString(): string...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Search/Options/TermSearchOption.php
app/Search/Options/TermSearchOption.php
<?php namespace BookStack\Search\Options; class TermSearchOption extends SearchOption { public function toString(): string { return $this->value; } }
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Permissions/ContentPermissionApiController.php
app/Permissions/ContentPermissionApiController.php
<?php namespace BookStack\Permissions; use BookStack\Entities\EntityProvider; use BookStack\Entities\Models\Entity; use BookStack\Entities\Tools\PermissionsUpdater; use BookStack\Http\ApiController; use Illuminate\Http\Request; class ContentPermissionApiController extends ApiController { public function __constr...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Permissions/PermissionFormData.php
app/Permissions/PermissionFormData.php
<?php namespace BookStack\Permissions; use BookStack\Entities\Models\Entity; use BookStack\Permissions\Models\EntityPermission; use BookStack\Users\Models\Role; class PermissionFormData { protected Entity $entity; public function __construct(Entity $entity) { $this->entity = $entity; } ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Permissions/PermissionApplicator.php
app/Permissions/PermissionApplicator.php
<?php namespace BookStack\Permissions; use BookStack\App\Model; use BookStack\Entities\EntityProvider; use BookStack\Entities\Models\Entity; use BookStack\Entities\Models\Page; use BookStack\Permissions\Models\EntityPermission; use BookStack\Users\Models\OwnableInterface; use BookStack\Users\Models\User; use Illumina...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Permissions/PermissionsRepo.php
app/Permissions/PermissionsRepo.php
<?php namespace BookStack\Permissions; use BookStack\Activity\ActivityType; use BookStack\Exceptions\PermissionsException; use BookStack\Facades\Activity; use BookStack\Permissions\Models\RolePermission; use BookStack\Users\Models\Role; use BookStack\Util\DatabaseTransaction; use Exception; use Illuminate\Database\El...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Permissions/PermissionStatus.php
app/Permissions/PermissionStatus.php
<?php namespace BookStack\Permissions; class PermissionStatus { const IMPLICIT_DENY = 0; const IMPLICIT_ALLOW = 1; const EXPLICIT_DENY = 2; const EXPLICIT_ALLOW = 3; }
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Permissions/SimpleEntityData.php
app/Permissions/SimpleEntityData.php
<?php namespace BookStack\Permissions; use BookStack\Entities\Models\Entity; class SimpleEntityData { public int $id; public string $type; public int $owned_by; public ?int $book_id; public ?int $chapter_id; public static function fromEntity(Entity $entity): self { $attrs = $enti...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Permissions/MassEntityPermissionEvaluator.php
app/Permissions/MassEntityPermissionEvaluator.php
<?php namespace BookStack\Permissions; use BookStack\Permissions\Models\EntityPermission; class MassEntityPermissionEvaluator extends EntityPermissionEvaluator { /** * @var SimpleEntityData[] */ protected array $entitiesInvolved; protected array $permissionMapCache; public function __const...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Permissions/EntityPermissionEvaluator.php
app/Permissions/EntityPermissionEvaluator.php
<?php namespace BookStack\Permissions; use BookStack\Entities\Models\Entity; use BookStack\Permissions\Models\EntityPermission; use BookStack\Users\Models\Role; use Illuminate\Database\Eloquent\Builder; class EntityPermissionEvaluator { public function __construct( protected string $action ) { } ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Permissions/Permission.php
app/Permissions/Permission.php
<?php namespace BookStack\Permissions; /** * Enum to represent the permissions which may be used in checks. * These generally align with RolePermission names, although some are abstract or truncated as some checks * are performed across a range of different items which may be subject to inheritance and other compl...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Permissions/JointPermissionBuilder.php
app/Permissions/JointPermissionBuilder.php
<?php namespace BookStack\Permissions; use BookStack\Entities\Models\Book; use BookStack\Entities\Models\BookChild; use BookStack\Entities\Models\Chapter; use BookStack\Entities\Models\Entity; use BookStack\Entities\Models\Page; use BookStack\Entities\Queries\EntityQueries; use BookStack\Permissions\Models\JointPermi...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Permissions/PermissionsController.php
app/Permissions/PermissionsController.php
<?php namespace BookStack\Permissions; use BookStack\Entities\Queries\EntityQueries; use BookStack\Entities\Tools\PermissionsUpdater; use BookStack\Http\Controller; use BookStack\Permissions\Models\EntityPermission; use BookStack\Users\Models\Role; use BookStack\Util\DatabaseTransaction; use Illuminate\Http\Request; ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Permissions/Models/JointPermission.php
app/Permissions/Models/JointPermission.php
<?php namespace BookStack\Permissions\Models; use BookStack\App\Model; use BookStack\Entities\Models\Entity; use BookStack\Users\Models\Role; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\MorphOne; class JointPermission extends Model { protected $primaryKey = nu...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Permissions/Models/RolePermission.php
app/Permissions/Models/RolePermission.php
<?php namespace BookStack\Permissions\Models; use BookStack\App\Model; use BookStack\Users\Models\Role; use Illuminate\Database\Eloquent\Relations\BelongsToMany; /** * @property int $id * @property string $name */ class RolePermission extends Model { /** * The roles that belong to the permission. */...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Permissions/Models/EntityPermission.php
app/Permissions/Models/EntityPermission.php
<?php namespace BookStack\Permissions\Models; use BookStack\App\Model; use BookStack\Users\Models\Role; use Illuminate\Database\Eloquent\Relations\BelongsTo; /** * @property int $id * @property int $role_id * @property int $entity_id * @property string $entity_type * @property boolean $view * @property boolean...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Exports/PdfGenerator.php
app/Exports/PdfGenerator.php
<?php namespace BookStack\Exports; use BookStack\Exceptions\PdfExportException; use Dompdf\Dompdf; use Knp\Snappy\Pdf as SnappyPdf; use Symfony\Component\Process\Exception\ProcessTimedOutException; use Symfony\Component\Process\Process; class PdfGenerator { const ENGINE_DOMPDF = 'dompdf'; const ENGINE_WKHTML...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Exports/ExportFormatter.php
app/Exports/ExportFormatter.php
<?php namespace BookStack\Exports; use BookStack\Entities\Models\Book; use BookStack\Entities\Models\Chapter; use BookStack\Entities\Models\Page; use BookStack\Entities\Tools\BookContents; use BookStack\Entities\Tools\Markdown\HtmlToMarkdown; use BookStack\Entities\Tools\PageContent; use BookStack\Uploads\ImageServic...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Exports/ImportRepo.php
app/Exports/ImportRepo.php
<?php namespace BookStack\Exports; use BookStack\Activity\ActivityType; use BookStack\Entities\Models\Entity; use BookStack\Entities\Queries\EntityQueries; use BookStack\Exceptions\FileUploadException; use BookStack\Exceptions\ZipExportException; use BookStack\Exceptions\ZipImportException; use BookStack\Exceptions\Z...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Exports/Import.php
app/Exports/Import.php
<?php namespace BookStack\Exports; use BookStack\Activity\Models\Loggable; use BookStack\Exports\ZipExports\Models\ZipExportBook; use BookStack\Exports\ZipExports\Models\ZipExportChapter; use BookStack\Exports\ZipExports\Models\ZipExportPage; use BookStack\Users\Models\User; use Carbon\Carbon; use Illuminate\Database...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Exports/Controllers/PageExportController.php
app/Exports/Controllers/PageExportController.php
<?php namespace BookStack\Exports\Controllers; use BookStack\Entities\Queries\PageQueries; use BookStack\Entities\Tools\PageContent; use BookStack\Exceptions\NotFoundException; use BookStack\Exports\ExportFormatter; use BookStack\Exports\ZipExports\ZipExportBuilder; use BookStack\Http\Controller; use BookStack\Permis...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Exports/Controllers/ImportApiController.php
app/Exports/Controllers/ImportApiController.php
<?php declare(strict_types=1); namespace BookStack\Exports\Controllers; use BookStack\Exceptions\ZipImportException; use BookStack\Exceptions\ZipValidationException; use BookStack\Exports\ImportRepo; use BookStack\Http\ApiController; use BookStack\Permissions\Permission; use BookStack\Uploads\AttachmentService; use ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Exports/Controllers/ChapterExportApiController.php
app/Exports/Controllers/ChapterExportApiController.php
<?php namespace BookStack\Exports\Controllers; use BookStack\Entities\Queries\ChapterQueries; use BookStack\Exports\ExportFormatter; use BookStack\Exports\ZipExports\ZipExportBuilder; use BookStack\Http\ApiController; use BookStack\Permissions\Permission; use Throwable; class ChapterExportApiController extends ApiCo...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Exports/Controllers/BookExportApiController.php
app/Exports/Controllers/BookExportApiController.php
<?php namespace BookStack\Exports\Controllers; use BookStack\Entities\Queries\BookQueries; use BookStack\Exports\ExportFormatter; use BookStack\Exports\ZipExports\ZipExportBuilder; use BookStack\Http\ApiController; use BookStack\Permissions\Permission; use Throwable; class BookExportApiController extends ApiControll...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Exports/Controllers/ImportController.php
app/Exports/Controllers/ImportController.php
<?php declare(strict_types=1); namespace BookStack\Exports\Controllers; use BookStack\Exceptions\ZipImportException; use BookStack\Exceptions\ZipValidationException; use BookStack\Exports\ImportRepo; use BookStack\Http\Controller; use BookStack\Permissions\Permission; use BookStack\Uploads\AttachmentService; use Ill...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Exports/Controllers/ChapterExportController.php
app/Exports/Controllers/ChapterExportController.php
<?php namespace BookStack\Exports\Controllers; use BookStack\Entities\Queries\ChapterQueries; use BookStack\Exceptions\NotFoundException; use BookStack\Exports\ExportFormatter; use BookStack\Exports\ZipExports\ZipExportBuilder; use BookStack\Http\Controller; use BookStack\Permissions\Permission; use Throwable; class...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Exports/Controllers/PageExportApiController.php
app/Exports/Controllers/PageExportApiController.php
<?php namespace BookStack\Exports\Controllers; use BookStack\Entities\Queries\PageQueries; use BookStack\Exports\ExportFormatter; use BookStack\Exports\ZipExports\ZipExportBuilder; use BookStack\Http\ApiController; use BookStack\Permissions\Permission; use Throwable; class PageExportApiController extends ApiControll...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Exports/Controllers/BookExportController.php
app/Exports/Controllers/BookExportController.php
<?php namespace BookStack\Exports\Controllers; use BookStack\Entities\Queries\BookQueries; use BookStack\Exceptions\NotFoundException; use BookStack\Exports\ExportFormatter; use BookStack\Exports\ZipExports\ZipExportBuilder; use BookStack\Http\Controller; use BookStack\Permissions\Permission; use Throwable; class Bo...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Exports/ZipExports/ZipExportReferences.php
app/Exports/ZipExports/ZipExportReferences.php
<?php namespace BookStack\Exports\ZipExports; use BookStack\App\Model; use BookStack\Entities\Models\Book; use BookStack\Entities\Models\Chapter; use BookStack\Entities\Models\Page; use BookStack\Exports\ZipExports\Models\ZipExportAttachment; use BookStack\Exports\ZipExports\Models\ZipExportBook; use BookStack\Export...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Exports/ZipExports/ZipExportValidator.php
app/Exports/ZipExports/ZipExportValidator.php
<?php namespace BookStack\Exports\ZipExports; use BookStack\Exceptions\ZipExportException; use BookStack\Exports\ZipExports\Models\ZipExportBook; use BookStack\Exports\ZipExports\Models\ZipExportChapter; use BookStack\Exports\ZipExports\Models\ZipExportPage; class ZipExportValidator { public function __construct...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false