gws / php-valueobjects Goto Github PK
View Code? Open in Web Editor NEWPHP value objects (PoEAA)
PHP value objects (PoEAA)
Packagist is using https://packagist.org/packages/gwis/php-valueobjects
Github is using https://github.com/gws/php-valueobjects
The issue comes when I want to use my fork whilst waiting for a PR merge.
My composer has { "type": "vcs", "url": "https://github.com/rquadling/php-valueobjects" },
in the repositories
, but the package name doesn't exist in both places.
I either have to say I want gwis/php-valueobjects
when I am using Packagist (and therefore no fork) or gws/php-valueobjects
when I am using Github (and therefore ONLY my fork which I'll delete once you've merged my PR).
Ideally they should be the same name.
Can this be resolved please?
Hi.
Wanting to use DateTimeImmutable
for DateRange
, but the typehint is current DateTime
.
Moving to DateTimeInterface
would be ideal, but this is PHP5.5+ only.
Polyfilling of the DateTimeInterface
and DateTimeImmutable
is all possible, but the issue is that you cannot add the DateTimeInterface
to DateTime
so you would lose compatibility at some stage.
Maybe a branch for PHP5.5+ that uses DateTimeInterface
typehint, rather than DateTime
would be nice.
For some reason, our production server wasn't built using --enable-bcmath
. As a consequence we have to use --ignore-platform-reqs
to get this package installed.
Is there any benefit in any of the following ideas:
Having said that:
I suppose just getting the admin to install bcmath is the solution.
Unless you have any other ideas.
Currently, to test a DateRange (or DateTimeRange) to see if it is anchored in the PAST/FUTURE or both (INFINITE), you have to create a new DateTime(DateRange::PAST)
or DateTime(DateTimeRange::PAST)
.
#7 allows you to simply test your existing range (date or datetime).
$dr1 = new DateRange(new DateTime('2006-09-06'), new DateTime('2006-09-15'));
$dr1->isPast(); // false
Hi.
Really minor thing, but could you retag/release the lastest changes please?
Thank you.
Whilst DateRange
seems to concentrate on dates only (i.e. no implicit setting of times to 00:00:00/23:59:59), http://en.wikipedia.org/wiki/ISO_8601#Time_intervals says that the format includes the time part.
I've created #3 to address this.
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.