Download the PHP package ekino/drupal-bundle without Composer

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

Drupal 7 Bundle by Ekino

Build Status

Requires at least Drush 5.0 for compatibility with Symfony console.

The bundle tries to deeply integrate Symfony2 with Drupal and Drupal with Symfony2. Of course this is done without altering the Drupal's core.

When this bundle is activated, the Symfony2 console will have the Drupal libraries autoloaded. So, it makes possible the use of Drupal libraries from your Symfony2 command.

Install

Download the symfony2 sandbox and the Drupal code

Install the files to have the following structure

Symfony Sandbox Root
  - app
  - vendor
  - src
  - web (Drupal source code)

The web directory must be the document root and contains the Drupal source code.

Update the index.php file

This file "share" the container with Drupal so it is possible to reuse Symfony2's services from within Drupal. The initialization process is always handled by Symfony2.

Install the related Drupal module

The module can be downloaded from the following url: https://github.com/ekino/ekino_drupal_symfony2

Configuration

Edit the Symfony config.yml file and add the following lines:

parameters:
    session.flashbag.class:       Ekino\Bundle\DrupalBundle\Port\DrupalFlashBag
    session.attribute_bag.class:  Ekino\Bundle\DrupalBundle\Port\DrupalAttributeBag

framework:
    # ... configuration options
    session:
        # ... configuration options
        storage_id:     ekino.drupal.session.storage

ekino_drupal:
    root:          %kernel.root_dir%/../web
    logger:        ekino.drupal.logger.watchdog
    strategy_id:   ekino.drupal.delivery_strategy.symfony
    # attach a security token to the following provider keys
    provider_keys: [main, admin]

    # not required
    entity_repositories:
        # 3 equivalent examples of configuration:
        - { bundle: page }
        - { type: node, bundle: page }
        - { type: node, bundle: page, class: Ekino\Bundle\DrupalBundle\Entity\EntityRepository }
        # you can also define an entity repository:
        - { type: node, class: Application\Ekino\Bundle\DrupalBundle\Entity\Node\NodeRepository }

    # switch to true if you want to prefix the name of Symfony tables
    table_prefix:
        enabled: false
        prefix:  symfony__
        exclude: [users]

    # optional
    session:
        refresh_cookie_lifetime: true # default value: false

# declare 2 required mapping definition used by Drupal
doctrine:
    dbal:
        driver:   %database_driver%
        dbname:   %database_name%
        user:     %database_user%
        host:     %database_host%
        port:     %database_port%
        password: %database_password%
        charset:  UTF8

        mapping_types:
            longblob: object
            blob: object

        # Tips: this allows Doctrine to consider only tables starting with
        # "symfony__" during a migration generation.
        # Think to add Doctrine migrations table here or configure it in
        # the doctrine_migrations section (table_name)
        schema_filter: ~^(symfony__|migration_versions)~

The bundle comes with 3 delivery strategies:

The (optional) section entity_repositories allows you to easy interact with Drupal API to retrieve contents and handle it from Symfony code. The configuration offers default values:

Update Queries

Usage

Symfony components can be used from within Drupal:

Security

You can secure a Symfony route with a Drupal permission, with prefix PERMISSIONDRUPAL. Like it:

The PERMISSION_DRUPAL_ACCESS_ADMINISTRATION_PAGES is translate in "access administration pages" and used with user_access and global Drupal user.

If you want use you "personal access" permission, use role PERMISSION_DRUPAL_PERSONAL_ACCESS for example.

Limitations

Preview

If installation is completed successfully, the welcome page looks like:

Screenshot

You can note the Web Debug Toolbar of Symfony at the bottom ;-).


All versions of drupal-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
doctrine/common Version ^2.6
doctrine/orm Version ^2.5
friendsofsymfony/user-bundle Version ^2.1
psr/log Version ^1.1
symfony/config Version ^3.4
symfony/dependency-injection Version ^3.4
symfony/event-dispatcher Version ^3.4
symfony/http-foundation Version ^3.4
symfony/http-kernel Version ^3.4
symfony/security-core Version ^3.4
twig/twig Version ^1.42
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 ekino/drupal-bundle contains the following files

Loading the files please wait ....