Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added composer.json with foglcz/adminer-installer for interactive install #22

Closed
wants to merge 1 commit into from

3 participants

@foglcz

Updated adminer to support installation via composer. If merged & added to packagist.org, people can install adminer via composer.json file:

"require" : {
    "vrana/adminer": "3.*"
}

It uses separate type with interactive command-line installer:

@fprochazka

Není to zbytečný? Nešlo by ten hook udělat přímo v admineru?

@foglcz

do not merge. hook je lepsi napad.

@foglcz foglcz closed this
@halilim

I was searching for Composer support for Adminer and have seen this. It looks like the idea is dismissed. Can you guys provide reasons (in English, please :)) and any update on this?

@foglcz

Well, that's a good question. Mainly because of lack of time & focus, really.
The solution which I did was via separate composer installer - while the proposal was to do it via composer hook (obviously; there's one repository required for the installer, while all this can be done within the repo itself.)

However, the code still exists ( https://github.com/foglcz/adminer-installer/blob/master/foglcz/Adminer/Installer.php ). It's been nine months now, should probably take it further and finish this thing.

The main reason, why it's not so-much-pain-in-the-ass for us is, that we have adminer bundled within Nette framework which we are using ( github.com/nette/sandbox ). However, provided that this feature would be finished, we could then add adminer to the main composer.json file and have it installed during dependencies installation.

Should there be special configuration variable within composer.json, it could also be unattended.
Hope to look into it soon; but can't make any promises..

@halilim

Thanks, I'll be looking forward to it, and would like to provide any help if there is something I can do. Since the compiled size of Adminer is quite small, it's not a problem to include the file using the traditional ways but Composer support would be even better with much easier updates etc. and with an already existing vendor/ .gitignore rule in the including project.

@RobLoach RobLoach referenced this pull request
Closed

Add Composer support #104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 22 additions and 0 deletions.
  1. +22 −0 composer.json
View
22 composer.json
@@ -0,0 +1,22 @@
+{
+ "name": "vrana/adminer",
+ "description": "Adminer - Database management in single PHP file",
+ "keywords": ["adminer", "phpmyadmin", "mysql", "pgsql", "oracle", "sql"],
+ "homepage": "http://www.adminer.org",
+ "license": ["Apache-2.0", "GPL-2.0"],
+ "type": "vrana-adminer",
+ "authors":[
+ {
+ "name": "Jakub Vrana",
+ "homepage": "http://vrana.cz"
+ }
+ ],
+ "support": {
+ "issues": "http://sourceforge.net/tracker/?group_id=264133&atid=1127745",
+ "source": "https://github.com/vrana/adminer/"
+ },
+ "require":{
+ "php": ">=5.3.2",
+ "foglcz/adminer-installer": "1.*"
+ }
+}
Something went wrong with that request. Please try again.