Download the PHP package sulu/product-bundle without Composer

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

SuluProductBundle Build Status StyleCI

Dependencies

Sulu:

This version of product-bundle will only work with sulu version >= 1.3. If you use an older sulu version please use product-bundle version ~0.16.

Installation

Add the following to composer.json

Add the following to your application kernel:

Add the following to your admin/routing.yml:

Configuration

Sample configuration:

Note: If you use Sulu 1.3.* routing has to be defined as follows:

Localization

Multiple locales for managing products can be defined in the config. If non defined, 'en' is taken as default.

If the users language matches any of the given locales, that one is displayed in the admin area. Otherwise the fallback_locale parameter is used.

Custom Routing

You can define custom routes by defining the sulu_route.mappings parameter for ProductTranslation entity. Then you can specify the sulu_product.template parameter to define which template is shown when route is called.

To update routes for existing products, simply call

How the routing mechanism works

When creating a new product translation a new route is created. You then can change the route's path in the content tab.

The following properties are available when defining a route:

Recurring prices

The property recurring prices can be disabled via parameter display_recurring_prices. This option hides the UI elements for recurring prices.

Custom Entity and Repository

If you'd like to overwrite the sulu product entity you simply need to set the objects.product parameters.

Shop templates

For shop purposes template can be used to define the template for displaying product details.

Attribute Fixtures

You can write multiple attribute fixture files and define the path of your xmls in your config (as seen in the example above)

Example XML

Content type 'product'

API Documentation

The following api's have been documented: Product Addon Api Product Variant Api

Developer Documentation

The sulu product developer documentation can be found here: Developer Documentation


All versions of product-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
doctrine/orm Version 2.5.*
willdurand/hateoas-bundle Version >=0.3
oro/doctrine-extensions Version 1.0.*
symfony-cmf/routing-bundle Version 1.2.*
sulu/sulu Version ~1.3
sulu/validation-bundle Version ~0.1
jackalope/jackalope-doctrine-dbal Version ~1.2.0
jackalope/jackalope-jackrabbit Version ~1.2.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 sulu/product-bundle contains the following files

Loading the files please wait ....