Download the PHP package monkdev/monkcms without Composer

On this page you can find all versions of the php package monkdev/monkcms. 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 monkcms

MonkCMS PHP

Latest Stable Version Build Status codecov Dependency Status

A PHP client for accessing the MonkCMS API in non-website environments.

While monkcms.php is great for building websites, it includes many features that simply aren't necessary — and make it hard to use — in other environments: sessions, caching, Easy Edit, etc. This library strips all of that away to provide only what's absolutely necessary to access content through the MonkCMS API. It's ideal for use in web apps, command line scripts, APIs, and more.

Overview

Install

Using Composer, add monkdev/monkcms to your composer.json:

Or:

Configure

Configuration can be done by passing an array to the constructor:

Or after instantiation by calling setConfig:

When a configuration value isn't set, it falls back to a sensible default in many cases. These defaults can be changed to help alleviate repeating the same configuration in multiple places:

While only the siteId and the siteSecret are required, the following configuration values are avaialble for use

Request

Requesting content is simple:

If you're familiar with getContent from monkcms.php,

Additional parameters can be passed in an array as the second argument:

If you'd prefer to forgo the slash-separated string format, you can instead pass a single array argument with all of the values:

get returns JSON as described by the API docs in associative array form. So, for example, a sermon's title can be accessed at $content['show']['title'].

If a failure occurs, get throws a Monk\Cms\Exception.

Multiple shows

If you want to use show key to format API output, there are 2 ways

1. Using inline string

For example:

2. Using an array

For example:

Development

Composer is used for dependency management and task running. Start by installing the dependencies:

Tests

Testing is done with PHPUnit. To run the tests:

Continuous integration is setup through Travis CI to run the tests against PHP v5.6, v7.0, and v7.1. (Circle CI is also setup to run the tests against PHP v5.6, but is backup for now until multiple versions can easily be specified.) The code coverage results are sent to Codecov during CI for tracking over time. Badges for both are dispayed at the top of this README.

Documentation

phpDocumentor is used for code documentation. To build:

This creates a doc directory (that is ignored by git).

Quality

A number of code quality tools are configured to aid in development. To run them all at once:

Each tool can also be run individually:

Deployment

Publishing a release to Packagist simply requires creating a git tag:

Be sure to choose the correct version by following Semantic Versioning.

Publish Documentation

After releasing a new version, the documentation must be manually built and published to the gh-pages branch.


All versions of monkcms with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
rmccue/requests Version >=1.0
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 monkdev/monkcms contains the following files

Loading the files please wait ....