{"id":33978864,"url":"https://github.com/ntpages/laravel-encore","last_synced_at":"2026-05-06T19:34:25.337Z","repository":{"id":57029166,"uuid":"364513344","full_name":"ntpages/laravel-encore","owner":"ntpages","description":"The power of webpack-encore in your laravel project","archived":false,"fork":false,"pushed_at":"2021-07-13T11:14:15.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-17T18:35:33.034Z","etag":null,"topics":["laravel","webpack"],"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/ntpages.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":"2021-05-05T08:42:59.000Z","updated_at":"2021-07-13T11:14:17.000Z","dependencies_parsed_at":"2022-08-23T16:20:46.424Z","dependency_job_id":null,"html_url":"https://github.com/ntpages/laravel-encore","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ntpages/laravel-encore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntpages%2Flaravel-encore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntpages%2Flaravel-encore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntpages%2Flaravel-encore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntpages%2Flaravel-encore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ntpages","download_url":"https://codeload.github.com/ntpages/laravel-encore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntpages%2Flaravel-encore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27699167,"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-12-13T02:00:09.769Z","response_time":147,"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":["laravel","webpack"],"created_at":"2025-12-13T02:59:02.009Z","updated_at":"2025-12-13T02:59:02.707Z","avatar_url":"https://github.com/ntpages.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Encore\n\nPackage made for those who understand the power of [symfony/webpack-encore](https://github.com/symfony/webpack-encore)\n\n## Installation\n\n### Frontend\n\nYou can read more about webpack encore\non [official symfony's docs page](https://symfony.com/doc/current/frontend.html#webpack-encore).\n\nFor the Laravel project you'll only need next setup:\n\n1. Install the node package\\\n   `yarn add @symfony/webpack-encore --dev`\n\n2. Create basic configuration file `webpack.config.js`\n\n```javascript\nconst Encore = require('@symfony/webpack-encore');\n\n/* [configuration and entrypoints, see docs] */\n\nmodule.exports = Encore.getWebpackConfig();\n```\n\n3. Add shortcuts to the `package.json` scripts section\n\n```json\n{\n    \"dev-server\": \"encore dev-server\",\n    \"dev\": \"encore dev\",\n    \"build\": \"encore production\",\n    \"deploy\": \"encore production\"\n}\n```\n\n### Backend\n\n1. Install the PHP library on your Laravel project\\\n   `composer require ntpages/laravel-encore`\n\n2. Copy the config files\\\n   `php artisan vendor:publish`\n\n3. Add the provider in `config/app.php` providers section\n\n```php\n\u003c?php\nreturn [\n   //...\n   'providers' =\u003e [\n      //...\n      \\Ntpages\\LaravelEncore\\EncoreServiceProvider::class,\n   ]\n];\n```\n\nYou're ready to go!\n\n## Usage\n\nIt's as simple as just using the helpers from the package!\\\n\nFor javascripts:\n\n```php\n\u003c?=encore_script_tags('app')?\u003e\n```\n\nFor stylesheets:\n\n```php\n\u003c?=encore_link_tags('app')?\u003e\n```\n\n\u003e You can stop worrying about where you include the entry files the package manages duplications for you\n\u003e and prints tags only once per page render.\n\n### Advanced config\n\nTBD\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntpages%2Flaravel-encore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fntpages%2Flaravel-encore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntpages%2Flaravel-encore/lists"}