cmnty / php-push Goto Github PK
View Code? Open in Web Editor NEWWeb Push library for PHP
License: MIT License
Web Push library for PHP
License: MIT License
I think this issue similar to web-push-libs/web-push-php#12
Im not sure how to fix this
Type: InvalidArgumentException
Message: Invalid data: only uncompressed keys are supported.
Filename: /home/vagrant/Code/zxc/vendor/mdanter/ecc/src/Serializer/Point/UncompressedPointSerializer.php
Line Number: 49
Backtrace:
Both mozilla and google have support for VAPID. The use of vapid should be optional.
The current draft for the spec can be found here: https://tools.ietf.org/html/draft-thomson-webpush-vapid-02
In the case of google this means the api key wont be necessary anymore when vapid is used. @see https://developers.google.com/web/updates/2016/07/web-push-interop-wins
$encryptedText = openssl_encrypt($plainText, 'aes-128-gcm', $contentEncryptionKey->getRawKeyMaterial(), OPENSSL_RAW_DATA, $nonce->getRawBytes(), $tag);
undefined var $tag
Refactor the crypto parts to use strict type checking / type declarations. Write specifications in phpspec for every class.
Also ensure every object is valid on creation. Throw appropriate exceptions otherwise.
php-push/src/Crypto/PublicKey.php
Line 57 in 5787583
My Ubuntu dont have this module
Error output in composer
Problem 1
- Installation request for cmnty/push ^0.0.1 -> satisfiable by cmnty/push[0.0.1].
- cmnty/push 0.0.1 requires ext-crypto * -> the requested PHP extension crypto is missing from your system.
even with
sudo apt-get install php7.0-crypto
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.