DataTables / Buttons

Buttons is an extension for DataTables that adds control buttons to the table.
Other
137 stars 149 forks source link

composer error #172

Closed Theolodewijk closed 4 years ago

Theolodewijk commented 4 years ago

composer require datatables/buttons

[InvalidArgumentException] Could not find a matching version of package datatables/buttons. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (stable).

Theolodewijk commented 4 years ago

I like do use composer to download this an get updates

DataTables commented 4 years ago

We don't currently support composer as a package manager - sorry. Currently npm is our main one and we are planning to add Nuget support in future.

Theolodewijk commented 4 years ago

whay not composer ?

Theolodewijk commented 4 years ago

can you also simply download updates with npm and have conjob updated and if there is a new version from behind the public folder to public volder copy?

DataTables commented 4 years ago

We've not had many requests for composer support, so it hasn't been a priority for us I'm afraid (also we don't use it ourselves).

We'd welcome a pull request to all our distribution repos if it is something you would be willing to support:

Allan

Theolodewijk commented 4 years ago

On a CentOS 8 server with Directadmin and Nginx npm and bower wil not work.

A pity that you limit the use of Datatables to yourself and that everyone has to download it manually every time to stay up to date!

DataTables commented 4 years ago

Its not limited at all. Its open source under the MIT license. We haven't made it available via composer - but we might in future, or as I say, we would take pull requests to add support for that one specific package manager.

Theolodewijk commented 4 years ago

it is limited if you cannot simply update easily where milienen systems use composer to perform such updates and I have to do everything to be able to perform such updates automatically.

Theolodewijk commented 4 years ago

For users who want use composer I have a workaround use composer and git

composer.json { "require": { "datatables/datatables": "^1.10" }, "scripts": { "post-update-cmd": [ "rm -rf public_html/DataTables/latest", "cp -R vendor/datatables/datatables/media/ public_html/DataTables/latest", "rm -rf git/Dist-DataTables-Buttons", "rm -rf public_html/Dist-DataTables-Buttons/latest/js/", "git clone https://github.com/DataTables/Dist-DataTables-Buttons git/Dist-DataTables-Buttons", "cp -R git/Dist-DataTables-Buttons/js/ public_html/Dist-DataTables-Buttons/latest/js" ] } }

Thanks for the quick replay Allen

DataTables commented 4 years ago

Thanks for posting that!