Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [composer]

Composer is a dependency manager for PHP.

0
votes
0answers
7 views

JS Composer live edit problem [closed]

I am integrating js composer to my theme. I created a slider shortcode with swiper for js_composer. It works on front-end site. But slider doesn't work in wp bakery live edit screen. Where i am wrong?
0
votes
0answers
23 views

Distributing WordPress Plugin with composer vendor folder

So I am trying to prepare my plugin for distribution. My plugin uses Composer for its dependency management. I wrote almost all of the business logic as a separate composer package, because I read, ...
0
votes
0answers
111 views

Wordpress visual composer backend editor not showing

i have a problem with my wordpress visual composer. It's working in woo commerce during uploading of pictutes and content but not showing in page edit. When ever i try to edit page, it's just showing ...
0
votes
0answers
19 views

How to properly use composer packages in wordpress?

I need to implement in a wordpress instance a feature that allows me to search for the most recent file with extension .xlsx in the wp-content/upload directory, once the file has been identified, it ...
2
votes
1answer
31 views

In a continuous integration environment how do you implement the database entries for plugins and themes

I'm setting up a wordpress continuous integration environment - git->composer->bitbucket-AWS codepipeline, etc. I have yet to figure out how I automate, for the development team, the setup of the ...
1
vote
0answers
29 views

How do I configure wordpress structure for development using git and composer

I've been developing in other languages and web frameworks and I'm now starting with a Wordpress project. I'm used to using git and a package manager, but Wordpress development poses some unique ...
0
votes
0answers
11 views

HowTo: Properly Use a Classname in register_activation/deactivation_hook [duplicate]

I'm using Composer PSR-4 to autoload classes, but when I try to call register_activation_hook using a classname if get the following error (same for register_deactivation_hook): call_user_func_array()...
0
votes
0answers
63 views

Error in loading Google Calendar API

I'm looking to create a Google Calendar event upon submitting a form with Formidable. I am however having issues with loading the correct Google services. The following error is triggered upon ...
0
votes
2answers
142 views

Ran into a problem installing plugins with Composer

I'm using Composer to install plugins with the wpackagist repository. I've added all the relevant lines to my composer.json file in my main wp/ directory. The plugin installed as expected (it's this ...
0
votes
1answer
585 views

How can I search all plugins for composer's vendor/autoload.php?

I've got projects (both themes and plugins) set up as composer projects. These projects can be dev-dependencies of each other. Right now I'm working on a theme which requires the vendor/autoload.php ...
1
vote
1answer
78 views

How to add in my plugin a third vendor Git project with composer.json

I need to use this Git project in my plugin. First I drop source code in a folder, and load it with require_once dirname(__FILE__) . '/vendor/Frozensheep/RightmoveADF/RightmoveADF.php'; But there ...
0
votes
1answer
1k views

Composer setup-config.php not found

I'm trying to install WordPress on my localhost with composer. When I go to localhost I get redirected to localhost/wp-admin/setup-config.php. Instead of getting the install I'm getting the error The ...
0
votes
0answers
43 views

NGINX: Remove WordPress subdirectory from url [duplicate]

I have installed WordPress core in a subdirectory as I am using composer. The root is /www/example.com/ and WordPress is placed in /www/example.com/wp/ In the root is index.php and wp-config.php. ...
0
votes
1answer
474 views

Wp-CLI not working with WordPress installed with composer

I've installed a version of Wordpress using composer, and modified the default folders for the content (/wp-content) and the core (/wp). My wp-config.php gets its DB_NAME, DB_USERNAME, DB_PASSWORD ...
1
vote
1answer
353 views

Install wordpress using composer in a specific language

I'm using composer to automatically deploy wordpress on a ubuntu-server. Additionally, I need to install the german language pack. I learned that there are some guys who create composer-packages from ...
5
votes
1answer
535 views

Autoloading in Child Theme

I'm trying to autoload the vendor/autoload.php from my parent theme into my child theme. heres what i have tried but to no avail: function beast_theme_setup() { $var1 = get_theme_root_uri() . '/...
1
vote
3answers
764 views

Deploying Wordpress with Bedrock/Capistrano on Siteground - Composer returns “text/html” message

I've been using Bedrock (https://roots.io/bedrock/) for a while to deploy WordPress websites, but have encountered some issues when deploying to a Siteground.com shared server. The issue is with ...
7
votes
2answers
867 views

Why include a composer.json file with my plugin?

What is the advantage of explicitly including a composer.json file in my plugin if potential users of my plugin can already get it as a package through WPackagist?
0
votes
2answers
366 views

How to update WP-CLI on Windows via Composer?

I installed wp-cli back in April on my Windows box using composer. I believe with the following command: composer create-project wp-cli/wp-cli --no-dev as outlined in the alternate install methods on ...
1
vote
1answer
117 views

Using WordPress gettext functions in a library outside plugin or theme scope

If I have a library available through packagist that could be used in WordPress plugin or theme development, how should I address multilanguage support if I have a few strings that could be localized? ...
2
votes
0answers
111 views

Wordpress with Composer and different plugins for dev/live.

I'm using a Bedrock-like setup where I handle Wordpress core & plugins with Composer. I have my usual plugins in my composer.json within the "require" block, and some dev related plugins in "...
1
vote
0answers
307 views

How to use Wordpress methods (themes, plugins, context) with Behat?

My Wordpress project is running with a composer inside my plugin folder, just to test Behat a little bit, i'm not using Bedrock Wordpress yet. I can run Behat to do some behavior tests using the ...
3
votes
2answers
993 views

How to prevent Composer dependency conflicts amongst WP plugins?

In our plugin development we use Composer to install e.g. Symfony\Process that we later use in the code. The big question is how do we make sure that this dependency is not in a conflict with some ...
3
votes
1answer
463 views

Wordpress with composer, how to handle updates?

I'm trying to step up my workflow a bit and I'm now trying out Composer to handle Wordpress & Wordpress plugins. I have never used Composer before and I'm getting quite confused as to how I'm ...
0
votes
2answers
82 views

How to install WPMU with composer?

I am looking for a way to install WPMU and a premium ACF plugin with composer, but have not found any functional way of installing them. The best alternativ I found is to upload them to a private ...
4
votes
1answer
152 views

Namespacing WordPress project according to FIG standards

I am trying to wrap my head around the namespaces, autoloaders and FIG standards and most importantly how to achieve their integration to WordPress as close as possible. Here is my file structure, ...
4
votes
1answer
1k views

Using composer for dependency management in plugindevelopment

I'm new to wordpress plugin development. Normally I would use composer to add thirdparty libs to my code, but I couldn't find any wordpress plugin on github that uses composer for that. I read about ...