Next steps to v5 #100
Replies: 9 comments 5 replies
-
|
Support for 3rd party login along with autologin is implemented in the new |
Beta Was this translation helpful? Give feedback.
-
|
I also prepared simplified configuration and plugins setup in
ConfigurationConfiguration can be defined in The file adminneo-config.php will just return the configuration array: <?php
// Define configuration.
return [
"colorVariant" => "green",
];PluginsPlugins can be placed into the adminneo-plugins.php: <?php
// Enable plugins. Files in `adminneo-plugins` are autoloaded, so including the source files is not necessary.
return [
new \AdminNeo\JsonPreviewPlugin(),
new \AdminNeo\XmlDumpPlugin(),
new \AdminNeo\FileUploadPlugin("data/"),
// ...
];Custom Admin classadminneo-instance.php: <?php
class CustomAdmin extends \AdminNeo\Admin
{
public function getServiceTitle(): string
{
return "Custom Service";
}
}
// Use factory method to create CustomAdmin instance.
return CustomAdmin::create();Custom index.phpThe old way. <?php
function adminneo_instance()
{
class CustomAdmin extends \AdminNeo\Admin
{
public function getServiceTitle(): string
{
return "Custom Service";
}
}
// Define configuration.
$config = [
"colorVariant" => "green",
];
// Enable plugins.
$plugins = [
new \AdminNeo\JsonPreviewPlugin(),
new \AdminNeo\XmlDumpPlugin(),
new \AdminNeo\FileUploadPlugin("data/"),
// ...
];
// Use factory method to create Admin instance.
return CustomAdmin::create($config, $plugins);
}
// Include AdminNeo file.
include "/non-public-path/adminneo.php";(I renamed Any thoughts or complains? 😉 |
Beta Was this translation helpful? Give feedback.
-
|
And one more thing. I'm reconsidering PHP 5 support. It is a prehistory for me, but Jakub trod the path in Adminer. He bumped PHP to 7.4 in the source code and implemented a conversion to PHP 5 during compilation into the single file. Our situation is more complicated because I use more language features than just strict typing, which can be stripped relatively easily. But I think it can be done and we can go down to PHP 5.6, maybe even to 5.4. So what do you think? Would it be worth it? I can imagine that people like @adrianbj will be happy, but maybe also a little bit angry. Because the public interface of the |
Beta Was this translation helpful? Give feedback.
-
|
It would definitely simplify my life if compilation to PHP 5 was implemented. It would also mean all the great new features and design would be available to those using PHP 5 - at the moment I am having to fallback to AdminNeo 4 with your old custom theme (which is still pretty good, but not as good as the new default theme). Regarding plugin autoloading - I don't really care either way - manual hasn't been a problem and has allowed for some flexibility in my case where I am loading different version of plugins (and different plugins like AdminerTableHeaderScroll) for v4 vs v5, but if you take the compilation to PHP5 route, then this won't be needed anyway. |
Beta Was this translation helpful? Give feedback.
-
|
I report success, compiled version now supports PHP 5.4+ 😎 I did basic tests on PHP 5.6 and it looks good. I have no option to install lower PHP versions in my testing environment. Even official Docker image for PHP 5.4 no longer works. Small limitations:
Implementation is in |
Beta Was this translation helpful? Give feedback.
-
|
Branch I've also made a few changes to the compilation:
@adrianbj, @devinemke, @wintstar and others, could you check that compiled version is working for you, please? |
Beta Was this translation helpful? Give feedback.
-
|
No problems The dir "adminneo-plugins" was created. New german translate Great work. Many thanks |
Beta Was this translation helpful? Give feedback.
-
|
all good. @peterpp thanks for all of your hard work on this. |
Beta Was this translation helpful? Give feedback.
-
|
I have restored the automated Katalon tests inherited from Adminer 4 and they all pass in both development and compiled AdminNeo on PHP 5.6 up to 8.4. It looks like we have a release candidate here 😉 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As many of you may have noticed, I merged the
version5branch into themainas we are getting closer to the v5 release. We also have the very first official Docker image 🎉 What more do we need? I could spend endless time with further refactoring, polishing, merging features from recent Adminer versions, testing, fixing, staring at the stars in the sky...Let's finish the first chapter of this rollercoaster ride. I would like to analyze and implement the last two things:
Pluginerin our case).And that's all 😉
Beta Was this translation helpful? Give feedback.
All reactions