nicl / Silex-Markdown

A lightweight markdown service provider for Silex
MIT License
10 stars 5 forks source link

Installing nicl/silex-markdown with Silex 1.1 #11

Open klor opened 10 years ago

klor commented 10 years ago

I experienced two issues when installing nicl/silex-markdown with Silex 1.1:

Installing nicl/silex-markdown failed with Silex 1.1 when following the installation procedure. Composer said:

Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for nicl/silex-markdown 1.0.* -> satisfiable by nicl/silex-markdown[1.0.0
].
- Conclusion: remove silex/silex v1.1.2
- nicl/silex-markdown 1.0.0 requires silex/silex 1.0.* -> satisfiable by silex/silex[v1.0.0, v1.0.1, v1.0.2].
- Can only install one of: silex/silex[v1.1.2, v1.0.0].
- Can only install one of: silex/silex[v1.1.2, v1.0.1].
- Can only install one of: silex/silex[v1.1.2, v1.0.2].
- Installation request for silex/silex == 1.1.2.0 -> satisfiable by silex/silex[v1.1.2].

This can be resolved by changing the composer.json to the following. Note also that "minimum-stability": "dev" line was not necessary.

{
    "require": {
        "nicl/silex-markdown": "1.*"
    }
}

Ad. Usage: Registering Nicl\Silex required a name space:

I am aware that this repository is no longer being maintained and provide the above information to others experiencing the same issue.

nicl commented 10 years ago

@klor thanks for this! I'm sure it will be really useful to others.

As you say, I'm no longer maintaining this repo, but I'm currently on hoilday so will update the readme and composer file if I find the time.

In the meantime, PRs welcome!

Thanks again