{"id":22398711,"url":"https://github.com/tappnetwork/laravel-hubspot","last_synced_at":"2025-07-31T13:32:04.642Z","repository":{"id":238922994,"uuid":"791451758","full_name":"TappNetwork/Laravel-Hubspot","owner":"TappNetwork","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-03T19:25:49.000Z","size":60,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-04T21:42:34.079Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TappNetwork.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"TappNetwork"}},"created_at":"2024-04-24T18:37:16.000Z","updated_at":"2024-12-03T19:25:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff5fe469-e798-4e74-9abc-3a04be41ddeb","html_url":"https://github.com/TappNetwork/Laravel-Hubspot","commit_stats":null,"previous_names":["tappnetwork/laravel-hubspot"],"tags_count":6,"template":false,"template_full_name":"spatie/package-skeleton-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TappNetwork%2FLaravel-Hubspot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TappNetwork%2FLaravel-Hubspot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TappNetwork%2FLaravel-Hubspot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TappNetwork%2FLaravel-Hubspot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TappNetwork","download_url":"https://codeload.github.com/TappNetwork/Laravel-Hubspot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228249352,"owners_count":17891461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-05T07:11:53.540Z","updated_at":"2025-07-31T13:32:04.626Z","avatar_url":"https://github.com/TappNetwork.png","language":"PHP","funding_links":["https://github.com/sponsors/TappNetwork"],"categories":[],"sub_categories":[],"readme":"# This is my package laravel-hubspot\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/tappnetwork/laravel-hubspot.svg?style=flat-square)](https://packagist.org/packages/tappnetwork/laravel-hubspot)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/tappnetwork/laravel-hubspot/run-tests.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/tappnetwork/laravel-hubspot/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/tappnetwork/laravel-hubspot/fix-php-code-style-issues.yml?branch=main\u0026label=code%20style\u0026style=flat-square)](https://github.com/tappnetwork/laravel-hubspot/actions?query=workflow%3A\"Fix+PHP+code+style+issues\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/tappnetwork/laravel-hubspot.svg?style=flat-square)](https://packagist.org/packages/tappnetwork/laravel-hubspot)\n\nThis is where your description should go. Limit it to a paragraph or two. Consider adding a small example.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require tapp/laravel-hubspot\n```\n\nYou can publish and run the migrations with:\n\n```bash\nphp artisan vendor:publish --tag=\"hubspot-migrations\"\nphp artisan migrate\n```\n\nYou can publish the config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"laravel-hubspot-config\"\n```\n\nThis is the contents of the published config file:\n\n```php\nreturn [\n    'api_key' =\u003e env('HUBSPOT_TOKEN'),\n    'log_requests' =\u003e env('HUBSPOT_LOG_REQUESTS', true),\n    'property_group' =\u003e env('HUBSPOT_PROPERTY_GROUP', 'app_user_profile'),\n    'property_group_label' =\u003e env('HUBSPOT_PROPERTY_GROUP_LABEL', 'App User Profile'),\n];\n```\n\n## Usage\n\n### API Key\nPublish the config, add your api key to the env\n\n### User Model\nAdd the trait to your user model and define any fields to the $hubspotMap property that will determine the data sent to HubSpot. You may use dot notation to access data from relations. For further customization, use [Laravel's accessor pattern](https://laravel.com/docs/11.x/eloquent-mutators#defining-an-accessor)\n```php\nuse Tapp\\LaravelHubspot\\Models\\HubspotContact;\n\nclass User extends Authenticatable \n{\n    use HubspotContact; \n\n    public array $hubspotMap = [\n        'email' =\u003e 'email',\n        'first_name' =\u003e 'first_name',\n        'last_name' =\u003e 'last_name',\n        'user_type' =\u003e 'type.name',\n    ];\n```\n\n### Create HubSpot Properties\nrun the following command to create the property group and properties.\n\n``` bash\nphp artisan hubspot:sync-properties\n```\n\n### Sync to HubSpot\nThe package uses model events to create or update contacts in HubSpot. Try registering a user and see that they have been created in HubSpot with properties from the $hubspotMap array.\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [TappNetwork](https://github.com/Scott Grayson)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftappnetwork%2Flaravel-hubspot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftappnetwork%2Flaravel-hubspot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftappnetwork%2Flaravel-hubspot/lists"}