{"id":37002564,"url":"https://github.com/nkkollaw/spark","last_synced_at":"2026-01-14T00:29:29.441Z","repository":{"id":57027654,"uuid":"100856468","full_name":"nkkollaw/spark","owner":"nkkollaw","description":"Spark 1.0—A non-deleted fork of Laravel/Spark before it became closed-source","archived":false,"fork":true,"pushed_at":"2017-08-20T23:08:48.000Z","size":99,"stargazers_count":10,"open_issues_count":1,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-19T13:40:46.337Z","etag":null,"topics":["laravel","laravel-spark","php","php7","saas"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"certly/spark","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nkkollaw.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":"2017-08-20T11:18:11.000Z","updated_at":"2024-04-19T13:40:46.338Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nkkollaw/spark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nkkollaw/spark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkkollaw%2Fspark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkkollaw%2Fspark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkkollaw%2Fspark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkkollaw%2Fspark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nkkollaw","download_url":"https://codeload.github.com/nkkollaw/spark/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkkollaw%2Fspark/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406486,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","laravel-spark","php","php7","saas"],"created_at":"2026-01-14T00:29:28.631Z","updated_at":"2026-01-14T00:29:29.430Z","avatar_url":"https://github.com/nkkollaw.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spark 1.0 fork\n\n## Introduction\n\nThis is a non-deleted fork of Laravel Spark 1.0, which eventually became a paid product (available at https://spark.laravel.com/).\n\nThe latest supported Laravel version is currently 5.2 (compatibility with Laravel 5.3 was added in Spark 2.0).\n\n## Installation\n\nCreate a new Laravel 5.2 application and give it a name (`project-name` here):\n\n```\ncomposer create-project laravel/laravel project-name 5.2.*\n\ncd project-name\n```\n\nAdd the Spark installer and install Spark (answer \"no\" to all questions it will ask you):\n\n```\ncomposer require \"nkkollaw/spark-installer=~1.0\"\n\nvendor/nkkollaw/spark-installer/spark install\n```\n\nCreate a database for your app.\n\nEdit `.env` to add your database info and your URL if different than `http://localhost`. You might want to also set the `AUTHY_KEY`, `STRIPE_KEY`, and `STRIPE_SECRET` environment variables or do it later.\n\nMigrate your database:\n\n```\nphp artisan migrate\n```\n\nInstall NPM dependencies:\n\n```\nnpm install\n```\n\nExecute Gulp tasks:\n\n```\ngulp\n```\n\nIt should work.\n\n### Post-install\n\nYou may also wish to review the `SparkServiceProvider` class that was installed in your application. This provider is the central location for customizing your Spark installation.\n\n### Notes\n\nInstalling Spark should be done while crafting your application. Installing Spark after running commands such as `php artisan app:name MyApp` may result in errors when trying to install.\n\nThere are many articles and tutorials on the web about Spark 1.0, such as:\n\n- https://mattstauffer.co/blog/introducing-laravel-spark-a-deep-dive\n\nFrom now on you're on your own. The rest of this README has not been checked and things may or may not work (although they should).\n\n## Defining Subscription Plans\n\nSubscription plans may be defined in your `app/Providers/SparkServiceProvider.php` file. This file contains a `customizeSubscriptionPlans` method. Within this method, you may define all of your application's subscription plans. There are a few examples in the method to get you started.\n\nWhen defining a Spark plan, the `plan` method accepts two arguments: the name of the plan and the Stripe ID of the plan. Be sure that the Stripe ID given to the `plan` method corresponds to a plan ID on your Stripe account:\n```php\n\tSpark::plan('Display Name', 'stripe-id')\n\t\t-\u003eprice(10)\n\t\t-\u003efeatures([\n\t\t\t//\n\t\t]);\n```\n\n### Yearly Plans\n\nTo define a yearly plan, simply call the `yearly` method on the plan definition:\n```php\n\tSpark::plan('Basic', 'basic-yearly')\n\t\t-\u003eprice(100)\n\t\t-\u003eyearly()\n\t\t-\u003efeatures(\n\t\t\t//\n\t\t);\n```\n### Coupons\n\nTo use a coupon, simply create the coupon on Stripe and access the `/register` route with a `coupon` query string variable that matches the ID of the coupon on Stripe.\n\n\t    http://stripe.app/register?coupon=code\n\nSite-wide promotions may be run using the `Spark::promotion` method within your `SparkServiceProvider`:\n```php\n\tSpark::promotion('coupon-code');\n```\n## Teams\n\nTo enable teams, simply use the `CanJoinTeams` trait on your `User` model. The trait has already been imported in the top of the file, so you only need to add it to the model itself:\n```php\n\tclass User extends Model implements TwoFactorAuthenticatableContract,\n\t                                    BillableContract,\n\t                                    CanResetPasswordContract\n\t{\n\t    use Billable, CanJoinTeams, CanResetPassword, TwoFactorAuthenticatable;\n\t}\n```\nOnce teams are enabled, a team name will be required during registration, and a `Teams` tab will be available in the user settings dashboard.\n\n### Roles\n\nTeam roles may be defined in the `customizeRoles` method of the `SparkServiceProvider`.\n\n\u003ca name=\"customizing-spark-views\"\u003e\u003c/a\u003e\n## Customizing Spark Views\n\nYou may publish Spark's common Blade views by using the `vendor:publish` command:\n\n```\n\tphp artisan vendor:publish --tag=spark-basics\n```\n\nAll published views will be placed in `resources/views/vendor/spark`.\n\nIf you would like to publish every Spark view, you may use the `spark-full` tag:\n\n```\n\tphp artisan vendor:publish --tag=spark-full\n```\n\n## Customizing Spark JavaScript\n\nThe `resources/assets/js/core/components.js` file contains the statements to load some common Spark Vue components. [Vue](http://vuejs.org) is the JavaScript framework used by the Spark registration and settings screens.\n\nYou are free to change any of these require statements to load your own Vue component for a given screen. Most likely, you will want to copy the original component as a starting point for your customization.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnkkollaw%2Fspark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnkkollaw%2Fspark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnkkollaw%2Fspark/lists"}