Need help Installing Website Github Repository

Hello, I am new into github and I want to clone or install free open source github repository on my computer using composer and then upload it into my infinity site.

composer require matthiasmullie/minify

Above is the composer github command. I already tried several times, but still unlucky to get. This is what I get from command:

Root package 'matthiasmullie/minify' cannot require itself in its composer.json

I have installed xamp, php, composer plus the composer.json that I get from the repository folders. I really need help on how to get or install the clone so I could start my website. Thank you!!

I recommend going to and signing up for an account there if you want to use a github repository. I’m not sure if you can use a github repository on this hosting service.

1 Like

The issue is that you’ve cloned the repository from GitHub - matthiasmullie/minify: CSS & JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns. , and are now trying to add this same repository as a dependency to itself. Composer doesn’t like that.

I would expect that you can use this project by cloning it manually OR by adding it as a composer dependency to your own project. You can’t do both.

@anon95130038 As far as I know, Netlify only does static site hosting. While yes, it can run websites from GitHub, it only works with static websites (or generators). Netlify doesn’t run any dynamic programming languages, like PHP, so it can’t run every GitHub project.


I don’t really like it. Thanks anyway!

Thank you admin, I will clarify my question.

I want to have a site like this, where users can minify their css code, I want to have something like that on my website, for example, or

The dependency is open source code and I want to make a clone for it or you know get the php code or script then upload/use it into my site. But I really don’t know on how to make it, you know, upload the script for my site then to work. Can you help me with that? Thanks, hope you would understand, hoping for some help. Thank you!!

A post was merged into an existing topic: Deploying github php code?

Let’s not discuss this in multiple topics at the same time, shall we? Let’s keep everything centralized here.

1 Like