{"id":19081506,"url":"https://github.com/intracto/socialstatsbundle","last_synced_at":"2025-08-25T21:04:22.749Z","repository":{"id":31908555,"uuid":"35477666","full_name":"Intracto/SocialStatsBundle","owner":"Intracto","description":"Symfony bundle. Provides a way to show social media statistics.","archived":false,"fork":false,"pushed_at":"2015-05-12T12:19:23.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":34,"default_branch":"master","last_synced_at":"2025-02-22T06:13:40.342Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Intracto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-12T08:59:25.000Z","updated_at":"2018-07-18T16:30:54.000Z","dependencies_parsed_at":"2022-08-03T11:30:46.905Z","dependency_job_id":null,"html_url":"https://github.com/Intracto/SocialStatsBundle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Intracto/SocialStatsBundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intracto%2FSocialStatsBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intracto%2FSocialStatsBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intracto%2FSocialStatsBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intracto%2FSocialStatsBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Intracto","download_url":"https://codeload.github.com/Intracto/SocialStatsBundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intracto%2FSocialStatsBundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272131793,"owners_count":24878986,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-09T02:36:36.409Z","updated_at":"2025-08-25T21:04:22.725Z","avatar_url":"https://github.com/Intracto.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"SocialStatsBundle\n=================\n\n##Installation\nLoad the bundle in app/AppKernel.php\n\n````\npublic function registerBundles()\n    {\n        $bundles = array(\n\t\t\t...\n\t\t\t\n            new SocialStatsBundle\\SocialStatsBundle()\n        );\n     ....\n        \n````\n\nRun composer update or install to make sure you have all necessary vendors installed.\n\nUpdate your doctrine schema\n\n````\nphp app/console doctrine:schema:update --force\n````\nYou are now ready to configure the bundle.\n\n##Bundle configuration\nThe following is required in your config.yml file. \n\n````\nsocial_stats:\n    twitter:\n        api_key: %social_stats.twitter.api_key%\n        api_secret: %social_stats.twitter.api_secret%\n        access_token: %social_stats.twitter.access_token%\n        access_token_secret: %social_stats.twitter.access_token_secret%\n        owner_id: %social_stats.twitter.api_owner_id%\n    facebook:\n        app_id: %social_stats.facebook.app_id%\n        api_secret: %social_stats.facebook.api_secret%\n\n````\n\nYou need to specify your Facebook pages and Twitter names in the parameters.yml file. Your API authentication info goes here too.\n\n````\n    social_stats.twitter.api_key: \"EDIT ME\"\n    social_stats.twitter.api_secret: \"EDIT ME\"\n    social_stats.twitter.access_token: \"EDIT ME\"\n    social_stats.twitter.access_token_secret: \"EDIT ME\"\n    social_stats.twitter.api_owner_id: \"1234567890\"\n    social_stats.twitter.usernames:\n        - \"Intracto\"\n        - \"...\"\n\n    social_stats.facebook.app_id: \"123456789012345\"\n    social_stats.facebook.api_secret: \"EDIT ME\"\n    social_stats.facebook.pages:\n        - \"intracto\"\n        - \"...\"\n\n````\n\n\n##Data structure\n\nEvery log has following properties.\n\n| Property        | Description|\n| ------------- |:-------------:| \n| ID      | A unique identifier | \n| Timestamp     | A datetime field       |\n| Source | Source of data. E.g. Facebook|\n| Account | Account of which we logged data. E.g. Intracto|\n| Type | Type of data we logged E.g. likes|\n| Content | Actual data. E.g. 15695 |\n\n##Logging social media\n\nSet up a cron job to execute these commands from the Symfony console. You can choose how often you log, but every 12 hours is recommended.\n\n````\nphp app/console socialstats:log:facebook:page-likes-count\nphp app/console socialstats:log:twitter:follower-count\n````\n\nThese commands will use the usernames or pagenames set up in your parameters.yml file, so make sure these are correct. \n\n##Generating dummy data\nWhen you have set up a few usernames or pagenames, you can create some dummy data to check out the functionality of this bundle. You do this by executing following command.\n\n````\nphp app/console socialstats:generator:log-dummy-data\n````\nThis will generate dummy data logs, for each account specified in parameters.yml. 100 logs will be created for each type (Likes, Follower count) of each social network (Facebook and Twitter).\n\n````\nphp app/console socialstats:generator:log-dummy-data --quantity=50 Twitter\n````\n\nYou can change the quantity and the social network (a.k.a. source) as you desire. \n\n** Keep in mind that the command will not generate 50 logs in total. **\n\nIt will generate 50 logs for each username/page of all the logging types available for the source type.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintracto%2Fsocialstatsbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintracto%2Fsocialstatsbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintracto%2Fsocialstatsbundle/lists"}