Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer-friendly PHP wrapper? #98

Closed
gene-eu-zz opened this issue Mar 5, 2016 · 9 comments
Closed

Composer-friendly PHP wrapper? #98

gene-eu-zz opened this issue Mar 5, 2016 · 9 comments
Assignees
Labels
W-PHPThemis 🐘 Wrapper: PHPThemis, PHP API
Milestone

Comments

@gene-eu-zz
Copy link

Study how Composer works, figure out what is necessary to wrap PHP library for Composer.

@gene-eu-zz gene-eu-zz added W-PHPThemis 🐘 Wrapper: PHPThemis, PHP API next release labels Mar 5, 2016
@gene-eu-zz gene-eu-zz added this to the 0.9.3 milestone Mar 5, 2016
@mnaza
Copy link
Contributor

mnaza commented Mar 5, 2016

If I understand correctly, composer can add php-extensions(phpthemis is extension) as requirements of php project but it can`t build and install it.

@gene-eu-zz gene-eu-zz reopened this Mar 7, 2016
@gene-eu-zz gene-eu-zz removed this from the 0.9.3 milestone Mar 7, 2016
@gene-eu-zz
Copy link
Author

Leaving this for future - maybe someone someday will figure out how to benefit more from Composer

@gene-eu-zz gene-eu-zz added hacktoberfest and removed W-PHPThemis 🐘 Wrapper: PHPThemis, PHP API labels Oct 10, 2016
@gene-eu-zz
Copy link
Author

Thing is, we know that within PHP ecosystem there are some nifty packaging options, which will significantly simplify using Themis for PHP folks, but we're not aware of current PHP packaging trends, apart from knowing that there is Composer and it somehow helps :)

@vixentael vixentael added the W-PHPThemis 🐘 Wrapper: PHPThemis, PHP API label Dec 7, 2016
@gene-eu-zz
Copy link
Author

Formal criterias from awesome-php

Software that is PHP 5.5+, Composer-installable, PSR compliant, semantically versioned, unit tested

@gene-eu-zz
Copy link
Author

https://getcomposer.org/ - docs here, then submit here https://packagist.org/

@mnaza
Copy link
Contributor

mnaza commented Dec 30, 2016

Composer can't install php extensions like phpthemis, in Composer terms called platform paskages. The only thing user can do is add line:

"ext-phpthemis": "*"

to require section of his composer.json in his project to check - is phpthemis installed in system.

Even if we create some php wrapper around phpthemis and create Composer paskage from it manual instalation of phpthemis will be require.

@gene-eu-zz
Copy link
Author

You mean we can't install php wrapper around themis as composer package or all of it? (obviously we can't build binaries through php, it's not that we expect to).

@gene-eu-zz gene-eu-zz added this to the 0.9.5 milestone Jan 9, 2017
@gene-eu-zz gene-eu-zz modified the milestones: 0.9.6, 0.9.5 Jun 15, 2017
@vixentael vixentael removed this from the 0.9.6 milestone Dec 13, 2017
@vixentael vixentael added this to the 0.9.7 milestone Dec 13, 2017
@vixentael
Copy link
Contributor

vixentael commented Jan 26, 2018

We decided to distribute PHP wrapper via pre-built packages. Working on this right now. I'll post instructions here when we finish it.

However, now we support phpthemis testing using composer (#284)

@vixentael
Copy link
Contributor

Okay, now you can install phpthemis downloading its package:
https://github.com/cossacklabs/themis/wiki/PHP-Howto#quickstart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
W-PHPThemis 🐘 Wrapper: PHPThemis, PHP API
Projects
None yet
Development

No branches or pull requests

4 participants