Comments (5)
Wow, you're right. It seems I did not push the change to the autoloader. The change suggested in #1 has been pushed and a new new release is available for composer. Thanks for letting me know.
from xml-signer.
Same for example for the class AttributeNames
from xml-signer.
I've just downloaded the latest version and setup a test script which includes the example from the readme and it works OK for me. Because so many classes are failing maybe the issue is something else. For example, did you add 'use' statements for the classes referenced by the example? Without these PHP will not be able to locate the class. This is an omission by me so I have updated the example to show the necessary use statements which are:
use lyquidity\xmldsig\CertificateResourceInfo;
use lyquidity\xmldsig\InputResourceInfo;
use lyquidity\xmldsig\KeyResourceInfo;
use lyquidity\xmldsig\ResourceInfo;
use lyquidity\xmldsig\XAdES;
use lyquidity\xmldsig\xml\SignatureProductionPlaceV2;
use lyquidity\xmldsig\xml\SignerRoleV2;
use lyquidity\xmldsig\XMLSecurityDSig;
If you have downloaded the source from GitHub (rather than installing using composer) then you will also need to add a reference to the xml-signer autoloader.php or PHP will be unable to find the classes even if the 'use' statements exist. When xml-signer is installed using composer this step is not needed as its autoload.php is called when the composer autoload.php is referenced.
If you have downloaded the source from GitHub you will also need to separately download the dependent requester project. You will then need to reference the autoload.php from this project. Without these steps, PHP will be unable to find the certificate handling code.
download and the
from xml-signer.
thanks for your reply @bseddon !
and sorry for the omitted information:
- I'm using composer with the main branch
- I'm using ubuntu as SO (in a Virtual Machine launched with vagrant and virtualbox)
- When I copied the code, I added the use statements correctly (PhpStorm links the classes properly by the namespaces)
I think is something about your autoload functions, something about differences Windows-linux system, as a route, a path, or something else. The file name and namespace seems to be correct for psr-4.
from xml-signer.
It works! Thank you!
from xml-signer.
Related Issues (10)
- Issues with autoload.php / Generic::fromNode() in UNIX and TSA.php HOT 1
- ArchiveTimestamp error after upgrade to v1.0.9 HOT 5
- composer.json package name HOT 2
- EU validation tools and invalid xades signature format HOT 9
- Timestamping questions HOT 8
- Get the TSA timestamp value HOT 4
- XADES-XL HOT 26
- Class '.\Transform' not found HOT 3
- Wrong enveloped signatures generation HOT 31
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xml-signer.