Download the PHP package aligent/oro-fixtures without Composer

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

Oro Fixtures Bundle

Description

This bundle provides an abstract fixture class that can be extended to load Alice fixtures. Providing an easy way to load small subsets of demo/test data for developer environments. These fixtures can then be easily shared with any Behat tests created for your bundles.

This bundle is not intended to be loaded in production and will only load it's required services in dev mode.

Installation Instructions

  1. Install this module via Composer

    composer require --dev aligent/oro-fixtures
  2. Add the below to your src/AppKernel.php registerBundles function

  3. Clear cache

    php bin/console cache:clear --env=dev

Initializers

Intializers provide a way for Alice fixtures to reference entities that already exist in the database.

This bundle comes with the below initializers:

Initializer Description Example
AdminUserInitializer First user with ROLE_ADMINISTRATOR @admin_user
CustomerUserRoleInitializer All customer user roles @buyer, @admin
ProductUnitInitializer All product unit codes prefixed with unit @unit_each
RootCategoryInitializer The master catalogs root category @root_category
WarehouseInitializer The snake case version of the name of each warehouse (Enterprise only) prefixed with warehouse Some Warehouse becomes @warehouse_some_warehouse
BusinessUnitInitializer All of the existing business units suffixed with _business_unit North Office becomes @north_office_business_unit
DefaultPriceListInitializer The default price list @default_price_list
OrganizationInitializer If more than one organization exists the normalized name of of the organization prefixed by org_. If only one exists it is named default_organization @default_organization or Our Business becomes @org_our_business
SegmentTypeInitializer The available segment types @dynamic_segment_type or static_segment_type
WebsiteInitializer All website names prefixed by website_ Some Store becomes @website_some_store
CustomerGroupInitializer All customer group names prefixed with group_ Registered Buyers becomes @group_registered_buyers
InventoryStatusInitializer All inventory status ids prefixed by inventory_status_ @inventory_status_in_stock or @inventory_status_out_of_stock
ProductFamilyInitializer All Attribute family names prefixed with product_family_ Clothing Attributes becomes @product_family_clothing_attributes
CustomerTaxCodeInitializer The customer tax code lowercased and prefixed with customer_tax_code_ GST_FREE becomes @customer_tax_code_gst_free

Adding and Running Fixtures

  1. Ensure your database has been initialized with an empty installation of OroCommerce (i.e. DO NOT ADD DEMO DATA)

  2. Snapshot your database to create a rollback point
  3. In your bundle create the Demo fixture directory e.g. src/Acme/BaseBundle/Migrations/Data/Demo/ORM

  4. Create a subdirectory called data e.g. src/Acme/BaseBundle/Migrations/Data/Demo/ORM/data and add an alice fixture e.g.

  5. In the demo fixtures directory create a new fixture that extends the AbstractAliceFixture and implement the getFixtures. This can point to a single file or a directory of yml files.

  6. To execute the fixtures run:

Support

If you have any issues with this bundle, please feel free to open GitHub issue with version and steps to reproduce.

Contribution

Any contribution is highly appreciated. The best way to contribute code is to open a pull request on GitHub.

Developer

Adam Hall [email protected].

License

GPLv3

Copyright

(C) 2022 Aligent Consulting


All versions of oro-fixtures with dependencies

PHP Build Version
Package Version
Requires oro/commerce Version 5.0.*
oro/platform Version 5.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 aligent/oro-fixtures contains the following files

Loading the files please wait ....