Download the PHP package nucivic/dkanextension without Composer

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

DEPRECATED: This module has been moved into DKAN core for release 7.x-1.13. To maintain backward compatibility this project will remain on Github but new features will be applied directly to the DKAN core folder test/dkanextension.

Behat DKAN Context

This creates a feature context for DKAN and NuCivic specific steps.

Install

  1. Create a composer.json file with the following:

  2. Install dependencies: composer install

  3. Initialize: behat --init

Contexts

DKANExtension ships with a bunch of "Contexts" or Classes that Behat uses to add step functions or other functionality. By default, none of those contexts are loaded. You need to add each context that you want to use to your behat.yml file. Here is an example where we add all the contexts, but you can instead choose to only load the ones you want. This can be very useful if you want to override one of these contexts and use your custom version instead. If you've used the DrupalExtension, which DKANExtension depends on, it works the same way.

Setting up your behat.yml

Contexts Available

All contexts are in the src/Drupal/DKANExtension/Context folder. We're only showing the contexts that you'll consider loading in your behat.yml and only the custom steps they provide.

DKANContext.php

The generic context that holds some helper steps

DKANDataStoryContext.php

Extends RawDKANEntityContext

DataDashboardContext.php

Extends RawDKANEntityContext

DatasetContext.php

Extends RawDKANEntityContext

GroupContext.php

Extends RawDKANEntityContext

MailContext.php

(currently no additinal steps)

PageContext.php

ResourceContext.php

Extends RawDKANEntityContext

About RawDKANEntityContext

RawDKANEntityContext is a base Class that the other Content/Entity contexts extend from. It can be used to easily create new contexts for content that have a following features:

You should use the existing "entity contexts", or create a new one for your project instead of the DrupalExtension's @Given content: which lacks most of these features. Because the entity api needs to be bootstrapped, you can only use the 'drupal driver', not 'drush' or 'blackbox' when using relevant steps.

Creating a new Entity Context

To create a new Context for any entity (and nodes), create a new context in your /bootstrap folder. For this example, we'll pretend the entity is a node type called "myentity". Call the file MyEntityContext.php (where MyEntity is the name of your entity.) You can use this template to get started.

Now add the new Entity Context to your behat.yml like you'd do for any new custom context:

TODO


All versions of dkanextension with dependencies

PHP Build Version
Package Version
Requires drupal/drupal-extension Version ~3.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 nucivic/dkanextension contains the following files

Loading the files please wait ....