Download the PHP package sumedia-wordpress/base without Composer

On this page you can find all versions of the php package sumedia-wordpress/base. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package base

Base for my Wordpress plugins

This WordPress Plugin will provide basic functionality which will be used in any kind of my plugins. So i've not to write it multiple times again.

What is the intention?

As I want to start programming WordPress Plugins and themes and decided not to spam the whole menu with small and big plugins, this plugin will provide a overview over installed plugins under one menu point - found in the plugins section.

I will support some basic classes which are used in my whole projects.

What are the components, and what are there intention?

The first thing that has made me thought of programming WordPress is that there is no namespace for variables and functions. Even if I define a simple variable in the plugin main script it will be present in the whole program. That's why I start my plugins generally in a function this should, if it not needed another way, the only function that will be stored by my plugins on the global scope.

So I decided, and because I'm familiar with it, to program OOP. All data and functions will be encapsulated for this one class.

I think, this could be comprehensibly.

The next Problem on this way is ... autoloading.

Autoloader

My autoloader allows me to load my classes. Each plugin can register it's path to classes with it's plugin name and the autloader will find the file automatically - there for the file- and classname has to follow an specific rule.

Registry

I don't know if I need it really, but I like it's simple concept on encapsulate data and objects. It's much easier to deal with this class as with the global scope variables.

View

I want to manage some rendering stuff on the view site. I will provide some view scripts beside the views template. Combine them and tell WordPress how to render it.

Event Class

I'm wondering, maybe because of backward compatibility issues, the WordPress Hooks does not support closures. Supported since 5.3.0. My first implementation has been made of an Event Manager, but this does not suite to the system in total. I make the decision to break it down to the point, supporting closures with an normal class callable as a simple event. No functions flying around within the global space.


All versions of base with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sumedia-wordpress/base contains the following files

Loading the files please wait ...