Download the PHP package divanteltd/pimcore-graphql without Composer

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

Pimcore GraphQl

Pimcore graphQl is a whole solution for building Your API. You can model Your data with simple, point and click/ drag and drop, interface, fill the data with Pimcore based backend, and our application will generate the whole graphQl schema for You.

Table of Contents

Compatibility

This module is compatible with Pimcore 5.1.0 and higher. It requires PHP in version 7.0 or higher.

Installing/Getting started

For existing Pimcore instalations just run composer require divanteltd/pimcore-graphql If You dont have Pimore instance, pleas use one of many docker images like this, follow the instructions, after successfull instalation ssh to container and run command from above.

On Pimcore level - You need to create rest user, and generate API key, which will be used for graphql communication.

Set up default localisation for site, in System settings.

For testing You can use tool like ChromeiQL, setup endpoint address http://[your-host:your-port]/webservice/graphql/graph?apikey=[your-apikey] and You are ready to go.

Now You are ready to model Your data

Create the Class Model/Definition

Go to: Settings -> Object -> Classes and click the button Add Class.

alt text

Now, there is a new product class/model which is a representation of your entity including the underlying database scheme as well as a generated PHP class you can use to create, update, list and delete your entities.

The product should have the following attributes: SKU, picture, name and description. Follow these steps to add them:

alt text

Important: Every generated class in the Pimcore admin panel has also an accordingly PHP class with getters and setters. You can find the PHP class representation of our newly created class definition above in var/classes/DataObject/Product.php

Add a new Object

We've just prepared a simple class for new products. Now we can use it to create objects in Pimcore.

Probably, your view looks like below:

alt text

The last step to finish the product object is add a photo.

The one way to upload a photo is this button:

alt text

Upload image to an object or just drag file which you uploaded from Assets section.

Click Save & Publish button.

That's it.

alt text

For more detailed information please refer here

Quick summary

Developing

In some cases You will see this kind of output from Your graphQl query

Looks like You are using custom type, in Your class. What You need to do, is to implement following interface

and add Your implementation to Your service config, with tag tags: ['graphql.custom.type']

As reference use class Divante\GraphQlBundle\TypeFactory\Classificationstore, and configuration src/Resources/config/services.yml

Contributing

If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.

Licensing

The code in this project is licensed under the GPLv3 license.

Standards & Code Quality

This module respects all Pimcore5 code quality rules and our own PHPCS and PHPMD rulesets.

About Authors

Divante-logo

Founded in 2008, Divante is an expert in providing top-notch eCommerce solutions and products for both B2B and B2C segments. By supporting our clients in sales growth, we define completely novel ideas, implement the latest technologies, and deliver an unprecedented user experience.

We work with industry leaders, like T-Mobile, Continental, and 3M, who perceive technology as their key component to success.

Our team of 170+ in-house experts from various fields includes 30+ certified Magento developers, 30+ Pimcore developers, JS developers (Vue, Angular, React), product designers, analysts, project managers & testers.

As a digital pioneer and strategic partner, our core competencies are focused on the enterprise open source software ecosystem and customized software solutions (we love Pimcore, Magento, Symfony3, Node.js, Angular, React, Vue.js and many others). We offer innovative solutions for eCommerce system and support ERP, PIM, and CRM solutions- to list just a few.

In Divante we trust in cooperation, that's why we contribute to open source products and create our own products like Open Loyalty and Vue.js Storefront.

OUR SERVICES

We are part of the OEX Group which is listed on the Warsaw Stock Exchange. Our annual revenue has been growing at a minimum of about 30% year on year.

Visit our website Divante.co for more information.


All versions of pimcore-graphql with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
pimcore/core-version Version ^5.1.0
webonyx/graphql-php Version ^0.11.6
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 divanteltd/pimcore-graphql contains the following files

Loading the files please wait ....