kanvas / social
Add social layout to your kanvas application.
Installs: 13 101
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 3
Type:project
Requires
- php: >= 7.4
- ext-phalcon: >=4
- canvas/core: 0.3.x-dev
Requires (Dev)
- baka/baka: ^0.7@dev
- codeception/codeception: ^4.1
- codeception/module-asserts: ^1.2
- codeception/module-filesystem: ^1.0
- codeception/module-phalcon: ^1.0
- codeception/module-phalcon4: ^1.0
- codeception/module-rest: ^1.2
- codeception/verify: *
- fzaninotto/faker: ^1.9
- mark-gerarts/auto-mapper-plus: 2.0.0-alpha1
- odan/phinx-migrations-generator: ^5
- phalcon/ide-stubs: ^4.0
- phalcon/incubator: 4.0.x-dev
- phalcon/incubator-acl: ^1.0.0-alpha.1
- phalcon/incubator-test: ^1.0.0-alpha.1
- phpstan/phpstan: ^0.12
- phpunit/phpunit: ^9.1
- robmorgan/phinx: ^0.12
- squizlabs/php_codesniffer: 3.2
- symfony/var-dumper: ^4.3@dev
- vlucas/phpdotenv: ^4.1
This package is auto-updated.
Last update: 2024-11-07 19:13:48 UTC
README
Kanvas Social package , allows you to implement a social layer to any kanvas app.
What do we consider a social layer?
- Follow Entity
- User Interactions
- Comment System
- User Feeds
- Group
- Channels
- Comment Interactions
Indexing Elastic Messages
To create a new index for messages use the following command:
php cli/cli.php social indexMessages
Erasing the messages index
In case you want you want to erase the messages index, in your terminal, execute the following:
php cli/cli.php social eraseMessages
Elastic Configuration
Update total fields limit for message index
curl -s -XPUT https://{elastichost}/messages/_settings -H 'Content-Type: application/json' -d '{"index.mapping.total_fields.limit": 100}'
Allow all object properties of a specific index to be nested , allowing use to use multi nested level query proper.index.property.index Example
{{URL}}/{{VERSION}}/messages?q=(chs.slug:test-uuid,rlmsg.activities_status.id:2)&format=true
curl -s -XPUT https://{elastichost}/_template/social_messages -H 'Content-Type: application/json' -d '{
"index_patterns": [
"message*"
],
"mappings": {
"dynamic_templates": [
{
"nested": {
"match_mapping_type": "object",
"mapping": {
"type": "nested"
}
}
}
]
}
}'
Running Tests:
composer test