teddy-dubal / weez-zpl Goto Github PK
View Code? Open in Web Editor NEWPhp Zpl Generator
Php Zpl Generator
Why is ZEBRA_ZERO defined as 0 (int) and not '0' (string)?
Afterwards you expect the letter-parameter as string:
/**
*
Hi,
I can't put image on zpl label cause when i try to add image i got this error:
Class 'Zebra\Zpl\Image' not found in path.../ZPLBuilder/Model/Element/ZebraImage.php on line 29
My server is running php 5.5.38
i don't install it with docker but i download the file and put to server.
I already try like example but i got this error:
Class 'Factory' not found
How i can resolve?
Hello,
great library!
By using it I recognized that class names in annotation seem to miss namespaces. For example: https://github.com/teddy-dubal/weez-zpl/blob/master/src/Weez/Zpl/Model/ZebraLabel.php#L85
/**
* Use to define a default Zebra font on the label
*
* @param ZebraFont $defaultZebraFont
* @return self
*/
public function setDefaultZebraFont($defaultZebraFont)
The defaultZebraFont
parameter is of type ZebraFont
. Since no namespace is provided, the namespace is the same as of the "surrounding" class, Weez\Zpl\Model\ZebraLabel
in this case. Therefore the assumed namespace is Weez\Zpl\Model\
, which means the full qualified name of the class is assumed to be Weez\Zpl\Model\ZebraFont
. Which is wrong, no such class with this name exists, actually it should be Weez\Zpl\Constant\ZebraFont
.
I used to do the same: only using (short) class names in annotations and not importing their namespaces. However, my IDE (PhpStorm) is capable of reading these annotations, but it cannot guess the namespace, so it is displaying errors...
Therefore it would be awesome to have correct class names / namespaces in the annotations!
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.