PHPackages                             awsm/lib-wp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. awsm/lib-wp

ActiveLibrary

awsm/lib-wp
===========

Awesome Lib - WP

018PHP

Since Jan 13Pushed 4y ago2 watchersCompare

[ Source](https://github.com/awsmug/lib-wp)[ Packagist](https://packagist.org/packages/awsm/lib-wp)[ RSS](/packages/awsm-lib-wp/feed)WikiDiscussions develop Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Awesome Lib - WP (pre alpha)
============================

[](#awesome-lib---wp-pre-alpha)

**An OOP Layer for WordPress**

This library wraps WordPress functionality and tries to make WordPress easy to use in object orientated PHP. We also put a little magic in this for less effort on programming.

Creating a Plugin
-----------------

[](#creating-a-plugin)

At first the Lib WP have to be added by requiring it with composer.

`composer require awsm/lib-wp`

After that the main plugin file have to be created.

### Plugin Example file

[](#plugin-example-file)

The main work is done in creating a plugin file with the necessary comments. Please take care that the comments section is important for the library. It reads all data and works with it.

#### Text Domain

[](#text-domain)

Setting this data is needed for loading the textdomain.

#### Domain Path

[](#domain-path)

If langauage files are stored within the plugin, you have to add the path to these files here. Be sure that the the language files have the syntax \[Textdomain\]\_\[language\].mo. For example `mytextdomain_de_DE.mo`.

#### Requires at least

[](#requires-at-least)

The minimum WordPress version which is needed for the plugin.

#### Requires PHP

[](#requires-php)

The minumum PHP version which is needed for the Plugin.

```
