Advanced index views and operations for CakePHP
A CakePHP plugin to use Airbrake for errors and exceptions.
A CakePHP plugin providing EASY content management, inspired by Wildflower, Magento and CMS Made Simple
arnold-almeida/UIKit-Laravel 4
UIKit implementation for the Laravel framework
Useful libraries to complement the shortcomings of the media plugin
Basecamp API Wrapper for PHP 5.3+
digitalrisks/laravel-eventstore-example 0
Example usage of the digitalrkisks/laravel-evenstore package
startedsimoebenhida/laravel-intellisense
started time in 15 hours
fork morrislaptop/google-api-nodejs-client
Google's officially supported Node.js client library for accessing Google APIs. Support for authorization and authentication with OAuth 2.0, API Keys and JWT (Service Tokens) is included.
https://googleapis.dev/nodejs/googleapis/latest/
fork in a day
startedream/ream
started time in 3 days
startedream/ream
started time in 4 days
PR opened laravel-shift/blueprint
As per #265, supports blueprint:build --overwrite-migrations
Was a little awkward passing options down from the command to a generator, would be worth refactoring if other options for generators will be supported in the future.
pr created time in 7 days
create barnchmorrislaptop/blueprint
branch : migration-fixed-timestamp
created branch time in 7 days
A code generation tool for Laravel developers.
fork in 7 days
pull request commentKnpLabs/php-github-api
Fix call to test a webhook method
The result was the same for both GithubApp and oAuth App.
I don’t have GitHub enterprise so can’t comment on that.
On Sun, 2 Aug 2020 at 22:35, Graham Campbell [email protected] wrote:
Interesting. Are you calling this from a "GitHub app" or an "OAuth app". Do you know what version of GitHub Enterprise supports the new endpoint. Changing this could break things for those users.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/KnpLabs/php-github-api/pull/915#issuecomment-667727625, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAQRX75VNYKQ72J3OQVX4LR6XL3DANCNFSM4PSU4EIA .
comment created time in 10 days
push eventmorrislaptop/php-github-api
commit sha 7c0c814bed644d60955ce36a5e55f47ce4e8fc2d
Update HooksTest.php
push time in 11 days
push eventmorrislaptop/php-github-api
commit sha 2356d04cc44b1a24d8f0b8901e7b73b5713d5336
Update HooksTest.php
push time in 11 days
push eventmorrislaptop/php-github-api
commit sha 76510c3312ca39e21c827f8745b240cb66c4a549
Fix webhook test function https://docs.github.com/en/rest/reference/repos#test-the-push-repository-webhook (see note)
push time in 11 days
fork morrislaptop/php-github-api
A simple PHP GitHub API client, Object Oriented, tested and documented.
fork in 11 days
fork morrislaptop/blueprint-nova-addon
A Blueprint addon which generates Nova resources
fork in 17 days
startedmaizzle/framework
started time in 23 days
startedwhitecube/php-prices
started time in a month
push eventmorrislaptop/rome
commit sha 6c9c419815297e8757a40e9f2ebfe3cc72c5e02b
Fix link to philosophy page
push time in a month
fork morrislaptop/rome
The Rome Frontend Toolchain. Standardizing the web development experience.
fork in a month
issue closedHubSpot/hubspot-cms-tools
Can't upload changes to templates?
When I run hs upload "hubspot/Coded files" "Coded files" --portal DR-Stage I get lots of errors saying that Another template with id xxxxx already exists with the path Custom/email/xxxxx.html
How do I publish changes back into Hubspot?
closed time in a month
morrislaptoppull request commentspatie/laravel-event-sourcing
Pass metadata to serializer to allow events to be upgraded
@freekmurze done :)
comment created time in 2 months
push eventmorrislaptop/laravel-event-sourcing
commit sha 9125c1f5df9e1d254cc135e1f6627daa14b7b04e
Simplify test class
commit sha f2520f3e27ed02ac1bb69d1af41feda128978e8f
Add docs
push time in 2 months
pull request commentspatie/laravel-event-sourcing
Pass metadata to serializer to allow events to be upgraded
I did target v4, it would be good to have a section in the docs with an approach on upgrading events
comment created time in 2 months
PR opened spatie/laravel-event-sourcing
This is a first pass suggestion on how to implement an upgrade backwards compatible event versions.
For example if we had an event like AccountCreated and stored the open date as 2019-03-43 12:30:00. This event payload is v1.
In later versions of the app, we're going international and so the open date now needs a timezone attached to it like 2019-03-43 12:30:00 +00:00.
We change the code to include the timezone and it's now v2 of the event payload.
When we replay events we expect the latest version of the event payload in order to function correctly. This PR allows the event serializer to upgrade the event live so it can be transformed to the latest version.
pr created time in 2 months
push eventmorrislaptop/laravel-event-sourcing
commit sha 00c6a01c625c5e8fe9cf9fe102abf29470322898
Pass metadata to serializer to allow events to be upgraded
push time in 2 months
push eventmorrislaptop/laravel-event-sourcing
commit sha 8be437e86d036a9a777d63f55ecd9b2853af6846
finish sentence
commit sha 2e927470914a65c19a33037d1f3e38508c78fff3
only public properties when snapshotting
commit sha e0cb5c5aa7abe060805ed53f57d1c5850332c36a
don't want to replay into a reactor
commit sha ff8f92b4f96d5fcd7f1d11f9e45b550ad3db5c6a
Fix doc version links
commit sha 753ad7befd3c494bdf51369efb2d77ae0f1e711f
Merge pull request #104 from morrislaptop/docs-updates Docs updates
commit sha a5e8c54ed062825bc589680e591a128840d1adfa
Merge pull request #105 from morrislaptop/excluse-protected-props-in-snapshots Only include public properties of the aggregate when snapshotting
commit sha 3df5b73c0727229a62e860538620e7d29d6536b4
Update CHANGELOG.md
commit sha 2ae99c259fc5c8739d4609bec8d4cd73b106ac55
Update README with new "Support us" section
commit sha 47e2d8c934a97f27b5e529ff582957bb1b201a68
Allow aggregate roots to have dependencies in constructor
commit sha ccfafad543d9d5a3a6c67cc54b892a72be460a6d
Update AccountAggregateRoot.php
commit sha db3378b3ca6c10ec3f89b3319e1730a2aca92bbc
Update AggregateRootTest.php
commit sha c0dbd5f01fdc7aea5f84cc20f2b8c2f283a70c4d
Update CHANGELOG.md
commit sha cbd179664cac0e2862b5c7a09f0d56519d8f236d
Merge pull request #111 from morrislaptop/aggregate-construct-ioc Allow aggregate roots to have dependencies in constructor
commit sha c6b111531723875d00051c909951f8e8ef64ad6d
Update CHANGELOG.md
push time in 2 months
create barnchmorrislaptop/laravel-event-sourcing
created branch time in 2 months
created tagmorrislaptop/laravel-event-sourcing
The easiest way to get started with event sourcing in Laravel
created time in 2 months
created tagmorrislaptop/laravel-event-sourcing
The easiest way to get started with event sourcing in Laravel
created time in 2 months
created tagmorrislaptop/laravel-event-sourcing
The easiest way to get started with event sourcing in Laravel
created time in 2 months
delete branch morrislaptop/laravel-event-sourcing
delete branch : aggregate-construct-ioc
delete time in 2 months
pull request commentspatie/laravel-event-sourcing
Allow aggregate roots to have dependencies in constructor
@freekmurze you forgot to merge before releasing 😆
comment created time in 2 months
PR opened spatie/laravel-event-sourcing
By resolving the class from Laravel's IoC.
pr created time in 2 months
create barnchmorrislaptop/laravel-event-sourcing
branch : aggregate-construct-ioc
created branch time in 2 months
delete branch morrislaptop/laravel-event-sourcing
delete branch : aggreate-apply-method-injection
delete time in 2 months
push eventmorrislaptop/laravel-event-sourcing
commit sha bca7f07105f5dd1f4a97d7d3ef0002c5338a6dc5
style
push time in 2 months
PR opened spatie/laravel-event-sourcing
Fixes #108
This change allows the apply methods on an aggregate to use method injection, so you can resolve any dependencies you need in those methods as well.
It does require the apply method to call the variable $event, however this is a convention that is used for projections and reactors so I don't see this being a problem.
If method injection fails for whatever reason, it resorts to the original approach so there shouldn't be any breaking changes.
<?php
namespace Spatie\EventSourcing\Tests\TestClasses\AggregateRoots;
use Math;
use Spatie\EventSourcing\AggregateRoot;
use Spatie\EventSourcing\Tests\TestClasses\AggregateRoots\StorableEvents\MoneyAdded;
use Spatie\EventSourcing\Tests\TestClasses\AggregateRoots\StorableEvents\MoneyMultiplied;
class AccountAggregateRoot extends AggregateRoot
{
public int $balance = 0;
public function multiplyMoney(int $amount): self
{
$this->recordThat(new MoneyMultiplied($amount));
return $this;
}
public function applyMoneyMultiplied(MoneyMultiplied $event, Math $math)
{
$this->balance = $math->multiply($this->balance, $event->amount);
}
}
pr created time in 2 months
push eventmorrislaptop/laravel-event-sourcing
commit sha f31371da147259a28a8fc2861bc8bb94b78e94ce
backwards compatibility
push time in 2 months
create barnchmorrislaptop/laravel-event-sourcing
branch : aggreate-apply-method-injection
created branch time in 2 months
issue openedspatie/laravel-event-sourcing
Method injection for aggregate apply* methods like reactors and projectors
Would you accept a PR for this?
created time in 2 months
push eventmorrislaptop/livewire
commit sha 44f25d95a38680a1cf885b9ed152933a66e49664
Fix up assertions
push time in 2 months
PR opened livewire/livewire
1️⃣ Is this something that is wanted/needed? Did you create an issue / discussion about it first?
Needed. This is an issue in the form of a PR with tests to help solve the issue.
2️⃣ Does it contain multiple, unrelated changes? Please separate the PRs out.
No
3️⃣ Does it include tests, if possible? (Not a deal-breaker, just a nice-to-have)
Yes, but only tests! I'm not sure on the solution
4️⃣ Please include a thorough description of the improvement and reasons why it's useful.
Laravel's validation only works with primitive types with the exception of DateTimeInterface. However, the components properties are cast into collections / dates / custom objects BEFORE we have the chance to do validation, so Laravel's validation will not work properly (tests attached)
Validation should be performed on the uncast values rather than the cast values.
As far as I can tell, the cast process completely overwrites the uncast values so I'm not sure on the best approach for this.
5️⃣ Thanks for contributing! 🙌
pr created time in 2 months
create barnchmorrislaptop/livewire
branch : validate-cast-properties
created branch time in 2 months
PR opened livewire/docs
If the public properties are set to the "uncast" versions, we get exceptions when trying to uncast an uncasted value.
For example when setting a field to cast as collection we get Call to a member function toArray() on array
pr created time in 2 months
push eventmorrislaptop/docs-2
commit sha cf6bbc4bb15b9306db839e8670f7ec23e3796873
Initiate custom cast properties to avoid exceptions If the public properties are set to the "uncast" versions, we get exceptions when trying to uncast an uncasted value. For example when setting a field to cast as collection we get `Call to a member function toArray() on array`
push time in 2 months
PR opened livewire/livewire
1️⃣ Is this something that is wanted/needed? Did you create an issue / discussion about it first?
Wanted. Did not create an issue first
2️⃣ Does it contain multiple, unrelated changes? Please separate the PRs out.
No
3️⃣ Does it include tests, if possible? (Not a deal-breaker, just a nice-to-have)
Yes
4️⃣ Please include a thorough description of the improvement and reasons why it's useful.
Similar to custom casts in Laravel, this PR allows you to pass additional arguments into a custom caster. This is useful for various use cases, as an example below for Spatie's Data Transfer Objects.
class Login extends DataTransferObject
{
public $email;
}
```php
class FooComponent extends Component
{
public $email;
public function mount()
{
$this->email = new Login(['email' => '[email protected]']);
}
protected $casts = [
'email' => DataTransferObjectCaster::class.':Login'
];
...
use Livewire\Castable;
class DataTransferObjectCaster implements Castable {
public function cast($value, $extras = [])
{
$className = $extras[0];
return new $className($value);
}
public function uncast($value, $extras = [])
{
return $value->toArray();
}
}
5️⃣ Thanks for contributing! 🙌
pr created time in 2 months
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
fork in 2 months
startedkodekeep/sushi-countries
started time in 2 months
issue openedspatie/data-transfer-object
Providing more than one type option
Is there the ability to do anything like https://github.com/typestack/class-transformer#providing-more-than-one-type-option?
<?php
class Photo {
public int $id;
public string $filename;
}
class Landscape extends Photo {
public bool $panorama;
}
class Portrait extends Photo {
public Person $person;
}
class UnderWater extends Photo {
public int $depth;
}
class Album
{
public int $id;
public string $name;
public Photo $photo;
}
$arr = [
"id" => 1,
"name" => "foo",
"topPhoto" => [
"id" => 9,
"filename" => "cool_wale.jpg",
"depth" => 1245,
"__type" => "Underwater"
]
];
created time in 2 months
issue commentHubSpot/hubspot-cms-tools
Can't upload changes to templates?
Any update?
comment created time in 2 months
issue openedlorisleiva/laravel-actions
Actions as Laravel Livewire Components
Would you be open to this?
created time in 2 months
push eventmorrislaptop/data-transfer-object
commit sha 5386dc10cce4b1e8cf3884d777e45959f5904df7
Support multiple types, docblocks, throw exception on no type defined
push time in 2 months
PR opened spatie/data-transfer-object
Struggling with 2 tests but would love feedback in the mean time.
Fixes #116
pr created time in 2 months
push eventmorrislaptop/data-transfer-object
commit sha 29d50a0bb886804c0ba3a58c66d7f003b083968c
add test
commit sha d03ada49833c29097e8064826511bcc37f6a724f
Add more tests
commit sha 206bdb1192e2f57f3f544cfe6ea8244ad987c6b7
Initial functionality
push time in 2 months
create barnchmorrislaptop/data-transfer-object
branch : cast-nested-collections
created branch time in 2 months
issue commentspatie/data-transfer-object
Automatic casting of nested array DTOs doesn't work with DataTransferObjectCollection
Yep - see if the type extends DataTransferObjectCollection then get the type from the current method and try to cast to that...
comment created time in 2 months
fork morrislaptop/data-transfer-object
Data transfer objects with batteries included
fork in 2 months
issue openedspatie/data-transfer-object
Automatic casting of nested array DTOs doesn't work with DataTransferObjectCollection
class TagData extends DataTransferObject
{
public string $name;
}
class TagDataCollection extends DataTransferObjectCollection
{
public function current(): TagData
{
return parent::current();
}
}
class PostData extends DataTransferObject
{
/** @var \TagData[] */
public TagDataCollection $tags;
}
$postData = new PostData([
'tags' => [
['name' => 'foo'],
['name' => 'bar']
]
]);
Would you be open for a PR?
created time in 2 months
issue commentspatie/data-transfer-object
Cannot use spatie/data-transfer-object DTOs with events
FWIW if you're using DataTransferObject's as events it gives you the opportunity to use a much simpler serializer than the Symfony process
use Spatie\EventSourcing\EventSerializers\EventSerializer;
use Spatie\EventSourcing\ShouldBeStored;
class DataTransferObjectEventSerializer implements EventSerializer
{
public function serialize(ShouldBeStored $event): string
{
return json_encode($event->toArray());
}
public function deserialize(string $eventClass, string $json): ShouldBeStored
{
return new $eventClass(json_decode($json, true));
}
}
Haven't heavily used this, for example expectings to go wrong with DateTime instances, but going to use this approach going forward.
comment created time in 2 months
issue openedHubSpot/hubspot-cms-tools
Can't upload changes to templates?
When I run hs upload "hubspot/Coded files" "Coded files" --portal DR-Stage I get lots of errors saying that Another template with id xxxxx already exists with the path Custom/email/xxxxx.html
How do I publish changes back into Hubspot?
created time in 3 months
push eventmorrislaptop/deno-progressbar
commit sha 631dfb99019612ffcabf79201524a239dca557df
Fix percentage formula
push time in 3 months
issue openedprooph/event-store-http-client
ErrorException: Undefined variable: nextPosition when reading all events
use Prooph\EventStore\EndPoint;
use Prooph\EventStore\UserCredentials;
use Prooph\EventStoreHttpClient\ConnectionSettings;
use Prooph\EventStore\UserCredentials;
use Prooph\EventStoreHttpClient\EventStoreConnectionFactory;
use Prooph\EventStore\Position;
$creds = new UserCredentials('admin', 'changeit');
$settings = new ConnectionSettings(
new EndPoint('localhost', '2113'),
'http',
$creds
);
$connection = EventStoreConnectionFactory::create($settings);
$from = Position::start();
do {
$slice = $connection->readAllEventsForward($from, 4096);
foreach ($slice->events() as $event) {
$event = $event->event();
var_dump("/streams/{$event->eventStreamId()}/{$event->eventNumber()}");
}
$from = $slice->nextPosition();
}
while (!$slice->isEndOfStream());
created time in 3 months
push eventmannum/lumen-doctrine-mongodb-odm
commit sha 3d2c4f14a807d5b741373d567687dc9e0723eb7b
Update composer.json
push time in 3 months
fork morrislaptop/lumen-doctrine-mongodb-odm
Doctrine MongoDB ODM bindings for lumen
fork in 3 months
push eventdigitalrisks/hubspot-notification-channel
commit sha 547b91e9c9fed0c74cfd17f1528cf0f01815fe15
fix: laravel version
push time in 3 months
push eventdigitalrisks/hubspot-notification-channel
commit sha 6e4fd04b116843079c70e3b0da0f9fbe310d9397
Support Laravel 7
push time in 3 months
push eventdigitalrisks/lese
commit sha 4e40802f9fed30966f637f2e108c83f1411b9f36
fix: replaying from different types of streams
push time in 3 months
issue commentprooph/event-store
ErrorException: Undefined variable: nextPosition when reading all events
Ironic issue number 😆
comment created time in 3 months
issue commentprooph/event-store
ErrorException: Undefined variable: nextPosition when reading all events
Due to this line - https://github.com/prooph/event-store/blob/ae40e9982935c9d66b4c6ef63144f8a2a9c41d7c/src/AllEventsSlice.php#L40
comment created time in 3 months
issue openedprooph/event-store
ErrorException: Undefined variable: nextPosition when reading all events
use Prooph\EventStore\EndPoint;
use Prooph\EventStore\UserCredentials;
use Prooph\EventStoreHttpClient\ConnectionSettings;
use Prooph\EventStore\UserCredentials;
use Prooph\EventStoreHttpClient\EventStoreConnectionFactory;
use Prooph\EventStore\Position;
$creds = new UserCredentials('admin', 'changeit');
$settings = new ConnectionSettings(
new EndPoint('localhost', '2113'),
'http',
$creds
);
$connection = EventStoreConnectionFactory::create($settings);
$from = Position::start();
do {
$slice = $connection->readAllEventsForward($from, 4096);
foreach ($slice->events() as $event) {
$event = $event->event();
var_dump("/streams/{$event->eventStreamId()}/{$event->eventNumber()}");
}
$from = $slice->nextPosition();
}
while (!$slice->isEndOfStream());
created time in 3 months
startedpestphp/pest
started time in 3 months
issue commentspatie/laravel-event-sourcing
Hi @freekmurze and @riasvdv ,
I've finished the first version of the EventStore bridge - it's at https://github.com/digitalrisks/lese. I've implemented it in both larabank-projectors and larabank-aggregates and seems to work pretty well!
Would love your feedback! Thanks for such a great package.
comment created time in 3 months
push eventdigitalrisks/lese
commit sha 9ae08284a45ca9bd05b324285ae5b8da8fc94e39
chore: docs
push time in 3 months
push eventdigitalrisks/lese
commit sha 61dbfbe3fbea5ea1e68f79a4146def3546572688
feat: Support not using aggregates
push time in 3 months
push eventdigitalrisks/lese
commit sha 2e6ebf3ea0204284793c6e1ca0aad7c44c6bac39
chore: docs
push time in 3 months
PR opened spatie/laravel-event-sourcing
Otherwise properties like aggregateVersion and aggregateVersionAfterReconstitution are getting into the event properties.
pr created time in 3 months
create barnchmorrislaptop/laravel-event-sourcing
branch : excluse-protected-props-in-snapshots
created branch time in 3 months
PR opened spatie/laravel-event-sourcing
pr created time in 3 months
push eventdigitalrisks/lese
commit sha 5c3bdb6bb158fd91c0cb627d630978c7f284186a
docs and improvements
push time in 3 months
push eventmorrislaptop/laravel-event-sourcing
commit sha 8be437e86d036a9a777d63f55ecd9b2853af6846
finish sentence
commit sha e0cb5c5aa7abe060805ed53f57d1c5850332c36a
don't want to replay into a reactor
commit sha ff8f92b4f96d5fcd7f1d11f9e45b550ad3db5c6a
Fix doc version links
push time in 3 months
push eventdigitalrisks/lese
commit sha 7bec3ee07e5f726414c5a16fd45bfbb4192a6f78
WIP docs
commit sha 066b900d8ac75650797cdcafc18d765ef7cf2711
WIP docs
push time in 3 months
push eventmorrislaptop/laravel-event-sourcing
commit sha 83d0af2bf29dce22864d8a865c13925006f60a82
Added rejection clause to getState for snapshots
commit sha 26b2e75e37381fee3aed4ec9d8c8180aa1c7d0ff
Merge pull request #102 from roelofjan-elsinga/patch-1 Added rejection clause to getState for snapshots
push time in 3 months
create barnchmorrislaptop/laravel-event-sourcing
created branch time in 3 months
push eventdigitalrisks/lese
commit sha 3f5f3a8b9760459feed5e5958b91c691ba500030
fix: release process
push time in 3 months
push eventdigitalrisks/lese
commit sha 7d727bdf69072e45e2ad475a9b179ac688d7d076
test release
push time in 3 months
push eventmorrislaptop/action-splitsh
commit sha 06f261604db4e071eb24ae53076e7e413d38c121
Fixes #1
push time in 3 months
fork morrislaptop/action-splitsh
Synchronises a subtree repository using splitsh-lite
fork in 3 months
push eventdigitalrisks/lese
commit sha 093b33ae31b00df3f5bc0c47766011df60c89124
feat: feature complete
push time in 3 months
push eventdigitalrisks/lese
commit sha 69b9c442e912773143904135960563724b17e9f2
remove debug
push time in 3 months
push eventdigitalrisks/lese
commit sha 4b8b681dadde0071f1c1321ba0a4504fd1041bcd
add metadata
push time in 3 months
push eventdigitalrisks/lese
commit sha 3d71712459fcdb4316c97b278be4f7cc2fe439e5
metadata callbacks
push time in 3 months