loading

dliCore

This is share svg Share this item

Core functionality for plugins created using the dli osclass plugin framework.

If you install any plugin that shows you a message like "This plugin requires dliCore to be installed and enabled."you should install this first.

Since dliCore is a highly object oriented library and uses many modern PHP features the minimum PHP version to use dliCore is 5.6.

 

dliCore

dliCore is a framework that is made up of the dliLib library and the dliCore plugin. They allow you to streamline you creation of Osclass plugins and to encapsulate plugins in a natural object-oriented way.

It started mainly because I found the official guide to building plugins in Osclass to make you end up with quite chaotic overgrown index.php files riddled with publicly visible functions. Instead, I wanted to encapsulate plugins into an object-oriented model that fitted well into the already existing functionality of Osclass, so not to break anything.

The framework has grown over time and I have built a couple of plugins that use it and while doing that I have found new things to add to the framework, things that I felt I needed to re-work etc.

The main idea was never to have other people use this but instead only to help myself create robust plugins faster. But after some time people was interested so I thought I'd try to document it a bit and make it possible for others to use it in creating their own plugins.

Note that it's still in a state of flux and things can change. Some things in the library are still experimental or half-done. But most of the core components described bellow works fine and take care of almost all of the time-consuming wiring of getting your plugin up and running.

To facilitate users getting up and running even faster I have recently written a small CLI script that is available in the bin folder of dliCore. It allows you to setup the skeleton of a new plugin in a few seconds.

 

NOTE

Due to an issue in Osclass issues might arise for routes if friendly URL's are used. A workaround is implemented in 0.3.1.

Some functions used by the library might be locked if you are on a shared hosting solution. This will restrict the functionality of the library by not allowing background work to run etc. Make sure your hosting provider allows you to unlock locked functions such as proc_open if it happens to be locked before installing plugins using this feature to make sure you can take advantage of them. One solution is to move to your own virtual machine setup where you will have full control over your server and will be able to install any library and extension you might need. Linode is one example of a provider that I have used myself and can vouch for. I got a private virtual server with 1 CPU and 2GB of ram for about what I paid for a hosted environment shared by about 100 other sites before.

Version 0.3.0 has had major rework done. This has resulted in massive performance gains in certain situations and a minimum of things needed are actually initialized. This requires older versions of dependent plugins to be updated.

README

Always check dliCore package README for latest info

 

Contact

If you would like to contact me regarding anything. I have a full-time job as a software engineer, but I do the occasional consultant work when I got time and as long as it doesn't interfere with my work or compete with any product or service of my employer.

Additional info

If you would like to use it for your own plugins that's ok. For free plugins you can freely use the library as a base. For paid plugins, drop me a line.

If enough people want to use this to bootstrap their own plugins I'll work in some proper documentation and tutorials. And also handle any depreciation and change in functionality in a way that gives people a chance to prepare for them.

For now most documentation is in the README of the plugin base folder and in the code.

Contact the Author

Please sign in to contact this author.

Nunc placerat mi id nisi interdum mollis. Praesent pharetra, justo ut sceleris que the mattis, leo quam aliquet congue placerat mi id nisi interdum mollis. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher. Nunc placerat mi id nisi interdum mollis. Praesent pharetra, justo ut sceleris que the mattis, leo quam aliquet congue placerat mi id nisi interdum mollis. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher .

Related Products

Yandex Maps PRO

Yandex Maps. This plugin work with new Yandex Maps API 2.1. The new api much more convenient and functional. Plugin can add Yandex Map on ever ...

Free

48

305

Watchlist

Don’t lose anything from your favourite ads! The plugin will display a link on your ads so that users can save items on a watchlist page. In thi ...

Free

48

598

Skrill

Plugin allow users pay Premium, Move to Top, Highlight and Pay Publication on the classified website. Osclass Skrill plugin allows you to work with Sk ...

$19

48

1

Wallet One

Osclass payment plugin Wallet One Plug-in to pay for Premium status, move to top, highlighting and paid publication on the  classified website Osclas ...

$29

48

0

Ready to Join Our Marketplace!

Join Us Today