Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
PHP directory lister 🦌

## Requirements
PHP >= 8.0
PHP >= 8.3

## Features
- Lightweight and easy to use
- Highly configurable
- README integration
- File preview
- Custom displays
- Lightweight and easy to use
- Highly configurable
- README integration
- File preview
- Custom displays

## License

Expand Down
5 changes: 2 additions & 3 deletions _internal/DeerLister.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
namespace DeerLister;

use DeerLister\ExtensionHelper;
use DeerLister\Previews\ImagePreview;
use Devium\Toml\Toml;
use Twig\Loader\FilesystemLoader;
use Twig\Environment;
use Twig\TwigFilter;
use Yosymfony\Toml\Toml;

class DeerLister
{
Expand All @@ -31,7 +30,7 @@ function __construct()
// load config
if (file_exists("config.toml"))
{
$this->config = Toml::Parse(file_get_contents("config.toml"));
$this->config = Toml::decode(file_get_contents("config.toml"), true);
}

// Convert a size in byte to something more diggest
Expand Down
2 changes: 1 addition & 1 deletion _internal/ParsedownExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ protected function blockHeader($line)
{
$block = Parsedown::blockHeader($line);

$level = (integer)trim($block['element']['name'], 'h');
$level = (int)trim($block['element']['name'], 'h');
if ($level < $this->currLevel)
{
$this->title = $block['element']['text'];
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
"description": "PHP directory lister 🦌",
"license": "MIT",
"require": {
"php": ">=8.3",
"twig/twig": "^3.0",
"erusev/parsedown": "^1.7",
"yosymfony/toml": "^1.0"
"devium/toml": "^1.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading