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/Activity/Controllers/TagController.php
app/Activity/Controllers/TagController.php
<?php namespace BookStack\Activity\Controllers; use BookStack\Activity\TagRepo; use BookStack\Http\Controller; use BookStack\Util\SimpleListOptions; use Illuminate\Http\Request; class TagController extends Controller { public function __construct( protected TagRepo $tagRepo ) { } /** * ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Controllers/FavouriteController.php
app/Activity/Controllers/FavouriteController.php
<?php namespace BookStack\Activity\Controllers; use BookStack\Entities\Queries\QueryTopFavourites; use BookStack\Entities\Tools\MixedEntityRequestHelper; use BookStack\Http\Controller; use Illuminate\Http\Request; class FavouriteController extends Controller { public function __construct( protected Mixed...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Notifications/NotificationManager.php
app/Activity/Notifications/NotificationManager.php
<?php namespace BookStack\Activity\Notifications; use BookStack\Activity\ActivityType; use BookStack\Activity\Models\Activity; use BookStack\Activity\Models\Loggable; use BookStack\Activity\Notifications\Handlers\CommentCreationNotificationHandler; use BookStack\Activity\Notifications\Handlers\CommentMentionNotificat...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Notifications/Messages/PageUpdateNotification.php
app/Activity/Notifications/Messages/PageUpdateNotification.php
<?php namespace BookStack\Activity\Notifications\Messages; use BookStack\Activity\Notifications\MessageParts\EntityLinkMessageLine; use BookStack\Activity\Notifications\MessageParts\ListMessageLine; use BookStack\Entities\Models\Page; use BookStack\Users\Models\User; use Illuminate\Notifications\Messages\MailMessage;...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Notifications/Messages/CommentMentionNotification.php
app/Activity/Notifications/Messages/CommentMentionNotification.php
<?php namespace BookStack\Activity\Notifications\Messages; use BookStack\Activity\Models\Comment; use BookStack\Activity\Notifications\MessageParts\EntityLinkMessageLine; use BookStack\Activity\Notifications\MessageParts\ListMessageLine; use BookStack\Entities\Models\Page; use BookStack\Users\Models\User; use Illumin...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Notifications/Messages/BaseActivityNotification.php
app/Activity/Notifications/Messages/BaseActivityNotification.php
<?php namespace BookStack\Activity\Notifications\Messages; use BookStack\Activity\Models\Loggable; use BookStack\Activity\Notifications\MessageParts\EntityPathMessageLine; use BookStack\Activity\Notifications\MessageParts\LinkedMailMessageLine; use BookStack\App\MailNotification; use BookStack\Entities\Models\Entity;...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Notifications/Messages/CommentCreationNotification.php
app/Activity/Notifications/Messages/CommentCreationNotification.php
<?php namespace BookStack\Activity\Notifications\Messages; use BookStack\Activity\Models\Comment; use BookStack\Activity\Notifications\MessageParts\EntityLinkMessageLine; use BookStack\Activity\Notifications\MessageParts\ListMessageLine; use BookStack\Entities\Models\Page; use BookStack\Users\Models\User; use Illumin...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Notifications/Messages/PageCreationNotification.php
app/Activity/Notifications/Messages/PageCreationNotification.php
<?php namespace BookStack\Activity\Notifications\Messages; use BookStack\Activity\Notifications\MessageParts\EntityLinkMessageLine; use BookStack\Activity\Notifications\MessageParts\ListMessageLine; use BookStack\Entities\Models\Page; use BookStack\Users\Models\User; use Illuminate\Notifications\Messages\MailMessage;...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Notifications/MessageParts/LinkedMailMessageLine.php
app/Activity/Notifications/MessageParts/LinkedMailMessageLine.php
<?php namespace BookStack\Activity\Notifications\MessageParts; use Illuminate\Contracts\Support\Htmlable; use Stringable; /** * A line of text with linked text included, intended for use * in MailMessages. The line should have a ':link' placeholder for * where the link should be inserted within the line. */ clas...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Notifications/MessageParts/ListMessageLine.php
app/Activity/Notifications/MessageParts/ListMessageLine.php
<?php namespace BookStack\Activity\Notifications\MessageParts; use Illuminate\Contracts\Support\Htmlable; use Stringable; /** * A bullet point list of content, where the keys of the given list array * are bolded header elements, and the values follow. */ class ListMessageLine implements Htmlable, Stringable { ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Notifications/MessageParts/EntityPathMessageLine.php
app/Activity/Notifications/MessageParts/EntityPathMessageLine.php
<?php namespace BookStack\Activity\Notifications\MessageParts; use BookStack\Entities\Models\Entity; use Illuminate\Contracts\Support\Htmlable; use Stringable; /** * A link to a specific entity in the system, with the text showing its name. */ class EntityPathMessageLine implements Htmlable, Stringable { /** ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Notifications/MessageParts/EntityLinkMessageLine.php
app/Activity/Notifications/MessageParts/EntityLinkMessageLine.php
<?php namespace BookStack\Activity\Notifications\MessageParts; use BookStack\Entities\Models\Entity; use Illuminate\Contracts\Support\Htmlable; use Stringable; /** * A link to a specific entity in the system, with the text showing its name. */ class EntityLinkMessageLine implements Htmlable, Stringable { publi...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Notifications/Handlers/CommentCreationNotificationHandler.php
app/Activity/Notifications/Handlers/CommentCreationNotificationHandler.php
<?php namespace BookStack\Activity\Notifications\Handlers; use BookStack\Activity\Models\Activity; use BookStack\Activity\Models\Comment; use BookStack\Activity\Models\Loggable; use BookStack\Activity\Notifications\Messages\CommentCreationNotification; use BookStack\Activity\Tools\EntityWatchers; use BookStack\Activi...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Notifications/Handlers/NotificationHandler.php
app/Activity/Notifications/Handlers/NotificationHandler.php
<?php namespace BookStack\Activity\Notifications\Handlers; use BookStack\Activity\Models\Activity; use BookStack\Activity\Models\Loggable; use BookStack\Users\Models\User; interface NotificationHandler { /** * Run this handler. * Provides the activity, related activity detail/model * along with th...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Notifications/Handlers/CommentMentionNotificationHandler.php
app/Activity/Notifications/Handlers/CommentMentionNotificationHandler.php
<?php namespace BookStack\Activity\Notifications\Handlers; use BookStack\Activity\ActivityType; use BookStack\Activity\Models\Activity; use BookStack\Activity\Models\Comment; use BookStack\Activity\Models\Loggable; use BookStack\Activity\Models\MentionHistory; use BookStack\Activity\Notifications\Messages\CommentMent...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Notifications/Handlers/PageUpdateNotificationHandler.php
app/Activity/Notifications/Handlers/PageUpdateNotificationHandler.php
<?php namespace BookStack\Activity\Notifications\Handlers; use BookStack\Activity\ActivityType; use BookStack\Activity\Models\Activity; use BookStack\Activity\Models\Loggable; use BookStack\Activity\Notifications\Messages\PageUpdateNotification; use BookStack\Activity\Tools\EntityWatchers; use BookStack\Activity\Watc...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Notifications/Handlers/PageCreationNotificationHandler.php
app/Activity/Notifications/Handlers/PageCreationNotificationHandler.php
<?php namespace BookStack\Activity\Notifications\Handlers; use BookStack\Activity\Models\Activity; use BookStack\Activity\Models\Loggable; use BookStack\Activity\Notifications\Messages\PageCreationNotification; use BookStack\Activity\Tools\EntityWatchers; use BookStack\Activity\WatchLevels; use BookStack\Entities\Mod...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Notifications/Handlers/BaseNotificationHandler.php
app/Activity/Notifications/Handlers/BaseNotificationHandler.php
<?php namespace BookStack\Activity\Notifications\Handlers; use BookStack\Activity\Models\Loggable; use BookStack\Activity\Notifications\Messages\BaseActivityNotification; use BookStack\Entities\Models\Entity; use BookStack\Permissions\Permission; use BookStack\Permissions\PermissionApplicator; use BookStack\Users\Mod...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Models/Favourite.php
app/Activity/Models/Favourite.php
<?php namespace BookStack\Activity\Models; use BookStack\App\Model; use BookStack\Permissions\Models\JointPermission; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Relations\MorphTo; class Favourite extends Model { use ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Models/Tag.php
app/Activity/Models/Tag.php
<?php namespace BookStack\Activity\Models; use BookStack\App\Model; use BookStack\Permissions\Models\JointPermission; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Relations\MorphTo; /** * @property int $id * @property...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Models/Webhook.php
app/Activity/Models/Webhook.php
<?php namespace BookStack\Activity\Models; use BookStack\Activity\ActivityType; use Carbon\Carbon; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasMany; /** * @property int ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Models/Comment.php
app/Activity/Models/Comment.php
<?php namespace BookStack\Activity\Models; use BookStack\App\Model; use BookStack\Permissions\Models\JointPermission; use BookStack\Permissions\PermissionApplicator; use BookStack\Users\Models\HasCreatorAndUpdater; use BookStack\Users\Models\OwnableInterface; use BookStack\Util\HtmlContentFilter; use Illuminate\Datab...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Models/Loggable.php
app/Activity/Models/Loggable.php
<?php namespace BookStack\Activity\Models; interface Loggable { /** * Get the string descriptor for this item. */ public function logDescriptor(): string; }
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Models/MentionHistory.php
app/Activity/Models/MentionHistory.php
<?php namespace BookStack\Activity\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Carbon; /** * @property int $id * @property string $mentionable_type * @property int $mentionable_id * @property int $from_user_id * @property int $to_user_id * @property Carbon $created_at * @property Ca...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Models/Activity.php
app/Activity/Models/Activity.php
<?php namespace BookStack\Activity\Models; use BookStack\App\Model; use BookStack\Entities\Models\Entity; use BookStack\Permissions\Models\JointPermission; use BookStack\Users\Models\User; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Datab...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Models/Viewable.php
app/Activity/Models/Viewable.php
<?php namespace BookStack\Activity\Models; use Illuminate\Database\Eloquent\Relations\MorphMany; interface Viewable { /** * Get all view instances for this viewable model. */ public function views(): MorphMany; }
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Models/WebhookTrackedEvent.php
app/Activity/Models/WebhookTrackedEvent.php
<?php namespace BookStack\Activity\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; /** * @property int $id * @property int $webhook_id * @property string $event */ class WebhookTrackedEvent extends Model { use HasFactory; protected $fillable =...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Models/Watch.php
app/Activity/Models/Watch.php
<?php namespace BookStack\Activity\Models; use BookStack\Activity\WatchLevels; use BookStack\Permissions\Models\JointPermission; use Carbon\Carbon; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Models/View.php
app/Activity/Models/View.php
<?php namespace BookStack\Activity\Models; use BookStack\App\Model; use BookStack\Permissions\Models\JointPermission; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Relations\MorphTo; /** * Class View * Views are stored per-item per-person within the database. * They can be u...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Models/Favouritable.php
app/Activity/Models/Favouritable.php
<?php namespace BookStack\Activity\Models; use Illuminate\Database\Eloquent\Relations\MorphMany; interface Favouritable { /** * Get the related favourite instances. */ public function favourites(): MorphMany; }
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Tools/CommentTree.php
app/Activity/Tools/CommentTree.php
<?php namespace BookStack\Activity\Tools; use BookStack\Activity\Models\Comment; use BookStack\Entities\Models\Page; use BookStack\Permissions\Permission; class CommentTree { /** * The built nested tree structure array. * @var CommentTreeNode[] */ protected array $tree; /** * A linea...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Tools/MentionParser.php
app/Activity/Tools/MentionParser.php
<?php namespace BookStack\Activity\Tools; use BookStack\Util\HtmlDocument; use DOMElement; class MentionParser { public function parseUserIdsFromHtml(string $html): array { $doc = new HtmlDocument($html); $ids = []; $mentionLinks = $doc->queryXPath('//a[@data-mention-user-id]'); ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Tools/WatchedParentDetails.php
app/Activity/Tools/WatchedParentDetails.php
<?php namespace BookStack\Activity\Tools; use BookStack\Activity\WatchLevels; class WatchedParentDetails { public function __construct( public string $type, public int $level, ) { } public function ignoring(): bool { return $this->level === WatchLevels::IGNORE; } }
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Tools/WebhookFormatter.php
app/Activity/Tools/WebhookFormatter.php
<?php namespace BookStack\Activity\Tools; use BookStack\Activity\ActivityType; use BookStack\Activity\Models\Loggable; use BookStack\Activity\Models\Webhook; use BookStack\App\Model; use BookStack\Entities\Models\Entity; use BookStack\Entities\Models\Page; use BookStack\Users\Models\User; use Illuminate\Support\Carbo...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Tools/IpFormatter.php
app/Activity/Tools/IpFormatter.php
<?php namespace BookStack\Activity\Tools; class IpFormatter { protected string $ip; protected int $precision; public function __construct(string $ip, int $precision) { $this->ip = trim($ip); $this->precision = max(0, min($precision, 4)); } public function format(): string ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Tools/UserEntityWatchOptions.php
app/Activity/Tools/UserEntityWatchOptions.php
<?php namespace BookStack\Activity\Tools; use BookStack\Activity\Models\Watch; use BookStack\Activity\WatchLevels; use BookStack\Entities\Models\BookChild; use BookStack\Entities\Models\Entity; use BookStack\Entities\Models\Page; use BookStack\Permissions\Permission; use BookStack\Users\Models\User; use Illuminate\Da...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Tools/TagClassGenerator.php
app/Activity/Tools/TagClassGenerator.php
<?php namespace BookStack\Activity\Tools; use BookStack\Activity\Models\Tag; use BookStack\Entities\Models\BookChild; use BookStack\Entities\Models\Entity; use BookStack\Entities\Models\Page; use BookStack\Permissions\Permission; class TagClassGenerator { public function __construct( protected Entity $en...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Tools/CommentTreeNode.php
app/Activity/Tools/CommentTreeNode.php
<?php namespace BookStack\Activity\Tools; use BookStack\Activity\Models\Comment; class CommentTreeNode { public Comment $comment; public int $depth; /** * @var CommentTreeNode[] */ public array $children; public function __construct(Comment $comment, int $depth, array $children) {...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Tools/ActivityLogger.php
app/Activity/Tools/ActivityLogger.php
<?php namespace BookStack\Activity\Tools; use BookStack\Activity\DispatchWebhookJob; use BookStack\Activity\Models\Activity; use BookStack\Activity\Models\Loggable; use BookStack\Activity\Models\Webhook; use BookStack\Activity\Notifications\NotificationManager; use BookStack\Entities\Models\Entity; use BookStack\Faca...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Tools/EntityWatchers.php
app/Activity/Tools/EntityWatchers.php
<?php namespace BookStack\Activity\Tools; use BookStack\Activity\Models\Watch; use BookStack\Entities\Models\BookChild; use BookStack\Entities\Models\Entity; use BookStack\Entities\Models\Page; use Illuminate\Database\Eloquent\Builder; class EntityWatchers { /** * @var int[] */ protected array $wat...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Activity/Queries/WebhooksAllPaginatedAndSorted.php
app/Activity/Queries/WebhooksAllPaginatedAndSorted.php
<?php namespace BookStack\Activity\Queries; use BookStack\Activity\Models\Webhook; use BookStack\Util\SimpleListOptions; use Illuminate\Pagination\LengthAwarePaginator; /** * Get all the webhooks in the system in a paginated format. */ class WebhooksAllPaginatedAndSorted { public function run(int $count, Simpl...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Uploads/ImageResizer.php
app/Uploads/ImageResizer.php
<?php namespace BookStack\Uploads; use BookStack\Exceptions\ImageUploadException; use Exception; use GuzzleHttp\Psr7\Utils; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Log; use Intervention\Image\Decoders\BinaryImageDecoder; use Intervention\Image\Drivers\Gd\Decoders\NativeObjectDecoder; use ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Uploads/Attachment.php
app/Uploads/Attachment.php
<?php namespace BookStack\Uploads; use BookStack\App\Model; use BookStack\Entities\Models\Entity; use BookStack\Entities\Models\Page; use BookStack\Permissions\Models\JointPermission; use BookStack\Permissions\PermissionApplicator; use BookStack\Users\Models\HasCreatorAndUpdater; use BookStack\Users\Models\OwnableInt...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Uploads/ImageStorage.php
app/Uploads/ImageStorage.php
<?php namespace BookStack\Uploads; use Illuminate\Filesystem\FilesystemManager; use Illuminate\Support\Str; class ImageStorage { public function __construct( protected FilesystemManager $fileSystem, ) { } /** * Get the storage disk for the given image type. */ public function g...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Uploads/Image.php
app/Uploads/Image.php
<?php namespace BookStack\Uploads; use BookStack\App\Model; use BookStack\Entities\Models\Page; use BookStack\Permissions\Models\JointPermission; use BookStack\Permissions\PermissionApplicator; use BookStack\Users\Models\HasCreatorAndUpdater; use BookStack\Users\Models\OwnableInterface; use Illuminate\Database\Eloque...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Uploads/AttachmentService.php
app/Uploads/AttachmentService.php
<?php namespace BookStack\Uploads; use BookStack\Exceptions\FileUploadException; use Exception; use Symfony\Component\HttpFoundation\File\UploadedFile; class AttachmentService { public function __construct( protected FileStorage $storage, ) { } /** * Stream an attachment from storage. ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Uploads/UserAvatars.php
app/Uploads/UserAvatars.php
<?php namespace BookStack\Uploads; use BookStack\Exceptions\HttpFetchException; use BookStack\Http\HttpRequestService; use BookStack\Users\Models\User; use BookStack\Util\WebSafeMimeSniffer; use Exception; use GuzzleHttp\Psr7\Request; use Illuminate\Support\Facades\Log; use Illuminate\Support\Str; use Psr\Http\Client...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Uploads/FaviconHandler.php
app/Uploads/FaviconHandler.php
<?php namespace BookStack\Uploads; use Illuminate\Http\UploadedFile; class FaviconHandler { protected string $path; public function __construct( protected ImageResizer $imageResizer, ) { $this->path = public_path('favicon.ico'); } /** * Save the given UploadedFile instance ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Uploads/ImageStorageDisk.php
app/Uploads/ImageStorageDisk.php
<?php namespace BookStack\Uploads; use BookStack\Util\FilePathNormalizer; use Illuminate\Contracts\Filesystem\Filesystem; use Illuminate\Filesystem\FilesystemAdapter; use Illuminate\Support\Facades\Log; use League\Flysystem\UnableToSetVisibility; use League\Flysystem\Visibility; use Symfony\Component\HttpFoundation\S...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Uploads/FileStorage.php
app/Uploads/FileStorage.php
<?php namespace BookStack\Uploads; use BookStack\Exceptions\FileUploadException; use BookStack\Util\FilePathNormalizer; use Exception; use Illuminate\Contracts\Filesystem\Filesystem as Storage; use Illuminate\Filesystem\FilesystemManager; use Illuminate\Support\Facades\Log; use Illuminate\Support\Str; use Symfony\Com...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Uploads/ImageRepo.php
app/Uploads/ImageRepo.php
<?php namespace BookStack\Uploads; use BookStack\Entities\Queries\PageQueries; use BookStack\Exceptions\ImageUploadException; use BookStack\Permissions\PermissionApplicator; use Exception; use Illuminate\Database\Eloquent\Builder; use Symfony\Component\HttpFoundation\File\UploadedFile; class ImageRepo { public f...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Uploads/ImageService.php
app/Uploads/ImageService.php
<?php namespace BookStack\Uploads; use BookStack\Entities\Queries\EntityQueries; use BookStack\Exceptions\ImageUploadException; use Exception; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Log; use Illuminate\Support\Str; use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Componen...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Uploads/Controllers/AttachmentApiController.php
app/Uploads/Controllers/AttachmentApiController.php
<?php namespace BookStack\Uploads\Controllers; use BookStack\Entities\EntityExistsRule; use BookStack\Entities\Queries\PageQueries; use BookStack\Exceptions\FileUploadException; use BookStack\Http\ApiController; use BookStack\Permissions\Permission; use BookStack\Uploads\Attachment; use BookStack\Uploads\AttachmentSe...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Uploads/Controllers/GalleryImageController.php
app/Uploads/Controllers/GalleryImageController.php
<?php namespace BookStack\Uploads\Controllers; use BookStack\Exceptions\ImageUploadException; use BookStack\Http\Controller; use BookStack\Permissions\Permission; use BookStack\Uploads\ImageRepo; use BookStack\Uploads\ImageResizer; use BookStack\Util\OutOfMemoryHandler; use Illuminate\Http\Request; use Illuminate\Val...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Uploads/Controllers/ImageController.php
app/Uploads/Controllers/ImageController.php
<?php namespace BookStack\Uploads\Controllers; use BookStack\Exceptions\ImageUploadException; use BookStack\Exceptions\NotFoundException; use BookStack\Exceptions\NotifyException; use BookStack\Http\Controller; use BookStack\Permissions\Permission; use BookStack\Uploads\Image; use BookStack\Uploads\ImageRepo; use Boo...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Uploads/Controllers/DrawioImageController.php
app/Uploads/Controllers/DrawioImageController.php
<?php namespace BookStack\Uploads\Controllers; use BookStack\Exceptions\ImageUploadException; use BookStack\Http\Controller; use BookStack\Permissions\Permission; use BookStack\Uploads\ImageRepo; use BookStack\Uploads\ImageResizer; use BookStack\Util\OutOfMemoryHandler; use Exception; use Illuminate\Http\Request; cl...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Uploads/Controllers/ImageGalleryApiController.php
app/Uploads/Controllers/ImageGalleryApiController.php
<?php namespace BookStack\Uploads\Controllers; use BookStack\Entities\Queries\PageQueries; use BookStack\Exceptions\NotFoundException; use BookStack\Http\ApiController; use BookStack\Permissions\Permission; use BookStack\Uploads\Image; use BookStack\Uploads\ImageRepo; use BookStack\Uploads\ImageResizer; use BookStack...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Uploads/Controllers/AttachmentController.php
app/Uploads/Controllers/AttachmentController.php
<?php namespace BookStack\Uploads\Controllers; use BookStack\Entities\EntityExistsRule; use BookStack\Entities\Queries\PageQueries; use BookStack\Entities\Repos\PageRepo; use BookStack\Exceptions\FileUploadException; use BookStack\Exceptions\NotFoundException; use BookStack\Http\Controller; use BookStack\Permissions\...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Theming/CustomHtmlHeadContentProvider.php
app/Theming/CustomHtmlHeadContentProvider.php
<?php namespace BookStack\Theming; use BookStack\Util\CspService; use BookStack\Util\HtmlContentFilter; use BookStack\Util\HtmlNonceApplicator; use Illuminate\Contracts\Cache\Repository as Cache; class CustomHtmlHeadContentProvider { /** * @var CspService */ protected $cspService; /** * @...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Theming/ThemeController.php
app/Theming/ThemeController.php
<?php namespace BookStack\Theming; use BookStack\Facades\Theme; use BookStack\Http\Controller; use BookStack\Util\FilePathNormalizer; class ThemeController extends Controller { /** * Serve a public file from the configured theme. */ public function publicFile(string $theme, string $path) { ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Theming/ThemeService.php
app/Theming/ThemeService.php
<?php namespace BookStack\Theming; use BookStack\Access\SocialDriverManager; use BookStack\Exceptions\ThemeException; use Illuminate\Console\Application; use Illuminate\Console\Application as Artisan; use Symfony\Component\Console\Command\Command; class ThemeService { /** * @var array<string, callable[]> ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Theming/ThemeEvents.php
app/Theming/ThemeEvents.php
<?php namespace BookStack\Theming; /** * The ThemeEvents used within BookStack. * * This file details the events that BookStack may fire via the custom * theme system, including event names, parameters and expected return types. * * This system is regarded as semi-stable. * We'll look to fix issues with it or ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/EntityExistsRule.php
app/Entities/EntityExistsRule.php
<?php namespace BookStack\Entities; use Illuminate\Validation\Rules\Exists; class EntityExistsRule implements \Stringable { public function __construct( protected string $type, ) { } public function __toString() { $existsRule = (new Exists('entities', 'id')) ->where('...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/EntityProvider.php
app/Entities/EntityProvider.php
<?php namespace BookStack\Entities; use BookStack\Entities\Models\Book; use BookStack\Entities\Models\Bookshelf; use BookStack\Entities\Models\Chapter; use BookStack\Entities\Models\Entity; use BookStack\Entities\Models\Page; use BookStack\Entities\Models\PageRevision; /** * Class EntityProvider. * * Provides acc...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/BreadcrumbsViewComposer.php
app/Entities/BreadcrumbsViewComposer.php
<?php namespace BookStack\Entities; use BookStack\Entities\Models\Book; use BookStack\Entities\Tools\ShelfContext; use Illuminate\View\View; class BreadcrumbsViewComposer { public function __construct( protected ShelfContext $shelfContext ) { } /** * Modify data when the view is compose...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Controllers/BookApiController.php
app/Entities/Controllers/BookApiController.php
<?php namespace BookStack\Entities\Controllers; use BookStack\Api\ApiEntityListFormatter; use BookStack\Entities\Models\Book; use BookStack\Entities\Models\Chapter; use BookStack\Entities\Models\Entity; use BookStack\Entities\Queries\BookQueries; use BookStack\Entities\Queries\PageQueries; use BookStack\Entities\Repo...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Controllers/PageRevisionController.php
app/Entities/Controllers/PageRevisionController.php
<?php namespace BookStack\Entities\Controllers; use BookStack\Activity\ActivityType; use BookStack\Entities\Models\PageRevision; use BookStack\Entities\Queries\PageQueries; use BookStack\Entities\Repos\PageRepo; use BookStack\Entities\Repos\RevisionRepo; use BookStack\Entities\Tools\PageContent; use BookStack\Excepti...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Controllers/BookshelfApiController.php
app/Entities/Controllers/BookshelfApiController.php
<?php namespace BookStack\Entities\Controllers; use BookStack\Entities\Models\Bookshelf; use BookStack\Entities\Queries\BookshelfQueries; use BookStack\Entities\Repos\BookshelfRepo; use BookStack\Http\ApiController; use BookStack\Permissions\Permission; use Exception; use Illuminate\Database\Eloquent\Relations\Belong...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Controllers/ChapterApiController.php
app/Entities/Controllers/ChapterApiController.php
<?php namespace BookStack\Entities\Controllers; use BookStack\Entities\Models\Book; use BookStack\Entities\Models\Chapter; use BookStack\Entities\Queries\ChapterQueries; use BookStack\Entities\Queries\EntityQueries; use BookStack\Entities\Repos\ChapterRepo; use BookStack\Exceptions\PermissionsException; use BookStack...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Controllers/RecycleBinController.php
app/Entities/Controllers/RecycleBinController.php
<?php namespace BookStack\Entities\Controllers; use BookStack\Activity\ActivityType; use BookStack\Entities\Models\Deletion; use BookStack\Entities\Models\Entity; use BookStack\Entities\Repos\DeletionRepo; use BookStack\Entities\Tools\TrashCan; use BookStack\Http\Controller; use BookStack\Permissions\Permission; cla...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Controllers/BookController.php
app/Entities/Controllers/BookController.php
<?php namespace BookStack\Entities\Controllers; use BookStack\Activity\ActivityQueries; use BookStack\Activity\ActivityType; use BookStack\Activity\Models\View; use BookStack\Activity\Tools\UserEntityWatchOptions; use BookStack\Entities\Queries\BookQueries; use BookStack\Entities\Queries\BookshelfQueries; use BookSta...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Controllers/PageTemplateController.php
app/Entities/Controllers/PageTemplateController.php
<?php namespace BookStack\Entities\Controllers; use BookStack\Entities\Queries\PageQueries; use BookStack\Entities\Repos\PageRepo; use BookStack\Exceptions\NotFoundException; use BookStack\Http\Controller; use Illuminate\Http\Request; class PageTemplateController extends Controller { public function __construct(...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Controllers/PageApiController.php
app/Entities/Controllers/PageApiController.php
<?php namespace BookStack\Entities\Controllers; use BookStack\Activity\Tools\CommentTree; use BookStack\Entities\Queries\EntityQueries; use BookStack\Entities\Queries\PageQueries; use BookStack\Entities\Repos\PageRepo; use BookStack\Exceptions\PermissionsException; use BookStack\Http\ApiController; use BookStack\Perm...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Controllers/RecycleBinApiController.php
app/Entities/Controllers/RecycleBinApiController.php
<?php namespace BookStack\Entities\Controllers; use BookStack\Entities\Models\Book; use BookStack\Entities\Models\BookChild; use BookStack\Entities\Models\Chapter; use BookStack\Entities\Models\Deletion; use BookStack\Entities\Models\Page; use BookStack\Entities\Repos\DeletionRepo; use BookStack\Http\ApiController; u...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Controllers/ChapterController.php
app/Entities/Controllers/ChapterController.php
<?php namespace BookStack\Entities\Controllers; use BookStack\Activity\Models\View; use BookStack\Activity\Tools\UserEntityWatchOptions; use BookStack\Entities\Models\Book; use BookStack\Entities\Queries\ChapterQueries; use BookStack\Entities\Queries\EntityQueries; use BookStack\Entities\Repos\ChapterRepo; use BookSt...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Controllers/PageController.php
app/Entities/Controllers/PageController.php
<?php namespace BookStack\Entities\Controllers; use BookStack\Activity\Models\View; use BookStack\Activity\Tools\CommentTree; use BookStack\Activity\Tools\UserEntityWatchOptions; use BookStack\Entities\Models\Book; use BookStack\Entities\Models\Chapter; use BookStack\Entities\Queries\EntityQueries; use BookStack\Enti...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Controllers/BookshelfController.php
app/Entities/Controllers/BookshelfController.php
<?php namespace BookStack\Entities\Controllers; use BookStack\Activity\ActivityQueries; use BookStack\Activity\Models\View; use BookStack\Entities\Queries\BookQueries; use BookStack\Entities\Queries\BookshelfQueries; use BookStack\Entities\Queries\EntityQueries; use BookStack\Entities\Repos\BookshelfRepo; use BookSta...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Models/Page.php
app/Entities/Models/Page.php
<?php namespace BookStack\Entities\Models; use BookStack\Entities\Tools\PageContent; use BookStack\Permissions\PermissionApplicator; use BookStack\Uploads\Attachment; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illum...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Models/EntityPageData.php
app/Entities/Models/EntityPageData.php
<?php namespace BookStack\Entities\Models; use Illuminate\Database\Eloquent\Model; /** * @property int $page_id */ class EntityPageData extends Model { public $timestamps = false; protected $primaryKey = 'page_id'; public $incrementing = false; public static array $fields = [ 'draft', ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Models/BookChild.php
app/Entities/Models/BookChild.php
<?php namespace BookStack\Entities\Models; use Illuminate\Database\Eloquent\Relations\BelongsTo; /** * Class BookChild. * * @property int $book_id * @property int $priority * @property string $book_slug * @property Book $book */ abstract class BookChild extends Entity { /** * Get the book thi...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Models/HasDescriptionInterface.php
app/Entities/Models/HasDescriptionInterface.php
<?php namespace BookStack\Entities\Models; use BookStack\Entities\Tools\EntityHtmlDescription; interface HasDescriptionInterface { public function descriptionInfo(): EntityHtmlDescription; }
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Models/Entity.php
app/Entities/Models/Entity.php
<?php namespace BookStack\Entities\Models; use BookStack\Activity\Models\Activity; use BookStack\Activity\Models\Comment; use BookStack\Activity\Models\Favouritable; use BookStack\Activity\Models\Favourite; use BookStack\Activity\Models\Loggable; use BookStack\Activity\Models\Tag; use BookStack\Activity\Models\View; ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Models/DeletableInterface.php
app/Entities/Models/DeletableInterface.php
<?php namespace BookStack\Entities\Models; use Illuminate\Database\Eloquent\Relations\MorphMany; /** * A model that can be deleted in a manner that deletions * are tracked to be part of the recycle bin system. */ interface DeletableInterface { public function deletions(): MorphMany; }
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Models/SlugHistory.php
app/Entities/Models/SlugHistory.php
<?php namespace BookStack\Entities\Models; use BookStack\App\Model; use BookStack\Permissions\Models\JointPermission; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Relations\HasMany; /** * @property int $id * @property int $sluggable_id * @property string $sluggable_type ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Models/HasCoverInterface.php
app/Entities/Models/HasCoverInterface.php
<?php namespace BookStack\Entities\Models; use BookStack\Entities\Tools\EntityCover; use BookStack\Uploads\Image; use Illuminate\Database\Eloquent\Relations\BelongsTo; interface HasCoverInterface { public function coverInfo(): EntityCover; /** * The cover image of this entity. * @return BelongsTo<...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Models/HasDefaultTemplateInterface.php
app/Entities/Models/HasDefaultTemplateInterface.php
<?php namespace BookStack\Entities\Models; use BookStack\Entities\Tools\EntityDefaultTemplate; interface HasDefaultTemplateInterface { public function defaultTemplate(): EntityDefaultTemplate; }
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Models/Deletion.php
app/Entities/Models/Deletion.php
<?php namespace BookStack\Entities\Models; 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\Database\Eloquent\Relations\MorphTo; ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Models/EntityContainerData.php
app/Entities/Models/EntityContainerData.php
<?php namespace BookStack\Entities\Models; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; /** * @property int $entity_id * @property string $entity_type * @property string $description * @property string $description_html * @property ?int $default_template_id * @pro...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Models/Chapter.php
app/Entities/Models/Chapter.php
<?php namespace BookStack\Entities\Models; use BookStack\Entities\Tools\EntityDefaultTemplate; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Support\Collection; /** * @property Collection<Page> $pages * @property ?int $default_...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Models/EntityScope.php
app/Entities/Models/EntityScope.php
<?php namespace BookStack\Entities\Models; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Scope; use Illuminate\Database\Query\JoinClause; class EntityScope implements Scope { /** * Apply the scope to a given Eloquent query builder. */...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Models/EntityQueryBuilder.php
app/Entities/Models/EntityQueryBuilder.php
<?php namespace BookStack\Entities\Models; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Query\Builder as QueryBuilder; class EntityQueryBuilder extends Builder { /** * Create a new Eloquent query builder instance. */ public function __construct(QueryBuilder $query) { ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Models/PageRevision.php
app/Entities/Models/PageRevision.php
<?php namespace BookStack\Entities\Models; use BookStack\Activity\Models\Loggable; use BookStack\App\Model; use BookStack\Users\Models\User; use Carbon\Carbon; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Relations\BelongsTo; /** * Class PageRevision. * * @property mixed...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Models/Bookshelf.php
app/Entities/Models/Bookshelf.php
<?php namespace BookStack\Entities\Models; use BookStack\Entities\Tools\EntityCover; use BookStack\Uploads\Image; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\BelongsToMany; /** * @property string $description...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Models/ContainerTrait.php
app/Entities/Models/ContainerTrait.php
<?php namespace BookStack\Entities\Models; use BookStack\Entities\Tools\EntityHtmlDescription; use Illuminate\Database\Eloquent\Relations\HasOne; /** * @mixin Entity */ trait ContainerTrait { public function descriptionInfo(): EntityHtmlDescription { return new EntityHtmlDescription($this); } ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Models/EntityTable.php
app/Entities/Models/EntityTable.php
<?php namespace BookStack\Entities\Models; use BookStack\Activity\Models\Tag; use BookStack\Activity\Models\View; use BookStack\App\Model; use BookStack\Permissions\Models\EntityPermission; use BookStack\Permissions\Models\JointPermission; use BookStack\Permissions\PermissionApplicator; use Illuminate\Database\Eloque...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Models/Book.php
app/Entities/Models/Book.php
<?php namespace BookStack\Entities\Models; use BookStack\Entities\Tools\EntityCover; use BookStack\Entities\Tools\EntityDefaultTemplate; use BookStack\Sorting\SortRule; use BookStack\Uploads\Image; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illumin...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Tools/PageIncludeContent.php
app/Entities/Tools/PageIncludeContent.php
<?php namespace BookStack\Entities\Tools; use BookStack\Util\HtmlDocument; use DOMNode; class PageIncludeContent { protected static array $topLevelTags = ['table', 'ul', 'ol', 'pre']; /** * @param DOMNode[] $contents * @param bool $isInline */ public function __construct( protecte...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Tools/EntityHydrator.php
app/Entities/Tools/EntityHydrator.php
<?php namespace BookStack\Entities\Tools; use BookStack\Activity\Models\Tag; use BookStack\Entities\Models\Chapter; use BookStack\Entities\Models\Entity; use BookStack\Entities\Models\EntityTable; use BookStack\Entities\Models\Page; use BookStack\Entities\Queries\EntityQueries; use Illuminate\Database\Eloquent\Collec...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Tools/MixedEntityRequestHelper.php
app/Entities/Tools/MixedEntityRequestHelper.php
<?php namespace BookStack\Entities\Tools; use BookStack\Entities\EntityProvider; use BookStack\Entities\Models\Entity; class MixedEntityRequestHelper { public function __construct( protected EntityProvider $entities, ) { } /** * Query out an entity, visible to the current user, for the ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false
BookStackApp/BookStack
https://github.com/BookStackApp/BookStack/blob/e6b754fad029d6c35e139b907d04e6510775997b/app/Entities/Tools/PageIncludeParser.php
app/Entities/Tools/PageIncludeParser.php
<?php namespace BookStack\Entities\Tools; use BookStack\Util\HtmlDocument; use Closure; use DOMDocument; use DOMElement; use DOMNode; class PageIncludeParser { protected static string $includeTagRegex = "/{{@\s?([0-9].*?)}}/"; /** * Nodes to clean up and remove if left empty after a parsing operation. ...
php
MIT
e6b754fad029d6c35e139b907d04e6510775997b
2026-01-04T15:02:34.418809Z
false