Download the PHP package youwe/pimcore-deployment without Composer

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

PIMCORE DEPLOYMENT EXTENSION

Version: Pimcore 4.x

Note: NOT compatible with Pimcore versions under 4

Developed by: Youwe (Manea, Roelf)

Reference/latest developments: Manea

Excerpt

... then this extension is for you!

Description

The pimcore deployment extension as the following general functionalities:

Usage and examples

After changing or adding a pimcore object class, use the following command line command to export the updated definitions:

Export all pimcore classes:

./htdocs/plugins/Deployment/cli/export-definition.sh

Export some selected pimcore classes:

./htdocs/plugins/Deployment/cli/export-definition.sh -c product,persom

When the project has been set up on a new dev system, or the project has been deployed to a server. Use the following command to have pimcore update the object class related files and database structure:

Import all json definitions:

./htdocs/plugins/Deployment/cli/import-definition.sh

Import some selected json definitions:

./htdocs/plugins/Deployment/cli/import-definition.sh -c product,persom

Drop all the views (and tables that should be views!) in the database. Typically done before a complete import-definition.

Drop all:

./htdocs/plugins/Deployment/cli/drop-views.sh

Drop selected (by name):

./htdocs/plugins/Deployment/cli/drop-views.sh -c product,persom

Drop selected (by id):

./htdocs/plugins/Deployment/cli/drop-views.sh -i 2,5,6

Clear the classes table in the database. Can be used when the class ids in the exported definition mismatch the ones already in the database. Use with care.

./htdocs/plugins/Deployment/cli/clear-classes.sh

If some tables contain static data which is actually managed whilst developing, and are not supposed to be altered by the client on the server, you can use the static data exporter/importers:

Configure which tables are static using the extras->extensions->deployment-configuration in pimcore. Run this command on your dev station after altering the table data:

./htdocs/plugins/Deployment/cli/export-staticdata.sh

Run this command (automatically) on the server after deployment. Warning: this will completely replace all data in the tables:

./htdocs/plugins/Deployment/cli/import-staticdata.sh

Import all custom layouts json definitions:

./htdocs/plugins/Deployment/cli/import-customlayouts.sh

Export all custom layouts json definitions:

./htdocs/plugins/Deployment/cli/export-customlayouts.sh

Import all custom sql files:

./htdocs/plugins/Deployment/cli/import-customsql.sh

Deployment to server

When deploying your project to a server, the deployment script would typically execute these commands after deploying the updated code:

./htdocs/plugins/Deployment/cli/import-definition.sh
./htdocs/plugins/Deployment/cli/import-staticdata.sh
./htdocs/plugins/Deployment/cli/import-customlayouts.sh
./htdocs/plugins/Deployment/cli/import-customsql.sh
(another command will be added here as soon as the document-migration is done)

Initial (first-time) deployment to server

Be careful not to install this plugin on your server, because it would generate a pimcore table for itself using an improvised ID. Rather follow this route:

Update system.php and config.php from ini files

System.php can be update with:

The ini file structure that we expect is:

Cache.php can be update with:

The ini file structure that we expect is:

Keep in mind that because a lot of environments do not have cache.php the command will create a default one for you and update its values from ini file

Troubleshooting

Before importing the definitions, you might need to set the correct permissions, in order for this script to be able to write to the definition files. In case of local development, a low security solution like the following could be used:

sudo chmod -R 777 .

Installation

Plugin can be installed through composer. Add json to your composer.json:

{
    "config": {
        "document-root-path": "htdocs"
    },
    "require": {
        "youwe/pimcore-deployment": "^0.1.0"
    },
}

Activate/enable the plugin in pimcore's extras->extensions list.

Also, add this to your .gitignore:

plugins/PimcoreDeployment

Plugin development

To create a new version, check out the master branch somewhere and go:

git tag
git tag 0.x.x         (minor update = latest tag + 0.0.1)
git push origin --tags

All versions of pimcore-deployment with dependencies

PHP Build Version
Package Version
Requires pimcore/installer-plugin Version ^1.3
pimcore/core-version Version ^4.3
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 youwe/pimcore-deployment contains the following files

Loading the files please wait ....